diff --git a/stage0/src/Init/Data/List/Control.lean b/stage0/src/Init/Data/List/Control.lean index 7f2912f5bd..6c4911de0c 100644 --- a/stage0/src/Init/Data/List/Control.lean +++ b/stage0/src/Init/Data/List/Control.lean @@ -108,14 +108,14 @@ def filterMapM {m : Type u → Type v} [Monad m] {α β : Type u} (f : α → m filterMapMAux f as.reverse [] @[specialize] -def foldlM {m : Type u → Type v} [Monad m] {s : Type u} {α : Type w} : (s → α → m s) → s → List α → m s +def foldlM {m : Type u → Type v} [Monad m] {s : Type u} {α : Type w} : forall (f : s → α → m s) (init : s), List α → m s | f, s, [] => pure s | f, s, h :: r => do s' ← f s h; foldlM f s' r @[specialize] -def foldrM {m : Type u → Type v} [Monad m] {s : Type u} {α : Type w} : (α → s → m s) → s → List α → m s +def foldrM {m : Type u → Type v} [Monad m] {s : Type u} {α : Type w} : forall (f : α → s → m s) (init : s), List α → m s | f, s, [] => pure s | f, s, h :: r => do s' ← foldrM f s r; diff --git a/stage0/src/Init/Data/Nat/Basic.lean b/stage0/src/Init/Data/Nat/Basic.lean index e23202f1c3..0d68159973 100644 --- a/stage0/src/Init/Data/Nat/Basic.lean +++ b/stage0/src/Init/Data/Nat/Basic.lean @@ -86,15 +86,15 @@ instance : HasMul Nat := | 0, a => a | succ n, a => foldAux n (f (s - (succ n)) a) -@[inline] def fold {α : Type u} (f : Nat → α → α) (n : Nat) (a : α) : α := -foldAux f n n a +@[inline] def fold {α : Type u} (f : Nat → α → α) (n : Nat) (init : α) : α := +foldAux f n n init @[specialize] def foldRevAux {α : Type u} (f : Nat → α → α) : Nat → α → α | 0, a => a | succ n, a => foldRevAux n (f n a) -@[inline] def foldRev {α : Type u} (f : Nat → α → α) (n : Nat) (a : α) : α := -foldRevAux f n a +@[inline] def foldRev {α : Type u} (f : Nat → α → α) (n : Nat) (init : α) : α := +foldRevAux f n init @[specialize] def anyAux (f : Nat → Bool) (s : Nat) : Nat → Bool | 0 => false diff --git a/stage0/src/Init/Data/Nat/Control.lean b/stage0/src/Init/Data/Nat/Control.lean index 41f9b28104..4dab40eeaa 100644 --- a/stage0/src/Init/Data/Nat/Control.lean +++ b/stage0/src/Init/Data/Nat/Control.lean @@ -29,15 +29,15 @@ forRevMAux f n | 0, a => pure a | i+1, a => f (n-i-1) a >>= foldMAux i -@[inline] def foldM {α : Type u} {m : Type u → Type v} [Monad m] (f : Nat → α → m α) (a : α) (n : Nat) : m α := -foldMAux f n n a +@[inline] def foldM {α : Type u} {m : Type u → Type v} [Monad m] (f : Nat → α → m α) (init : α) (n : Nat) : m α := +foldMAux f n n init @[specialize] def foldRevMAux {α : Type u} {m : Type u → Type v} [Monad m] (f : Nat → α → m α) : Nat → α → m α | 0, a => pure a | i+1, a => f i a >>= foldRevMAux i -@[inline] def foldRevM {α : Type u} {m : Type u → Type v} [Monad m] (f : Nat → α → m α) (a : α) (n : Nat) : m α := -foldRevMAux f n a +@[inline] def foldRevM {α : Type u} {m : Type u → Type v} [Monad m] (f : Nat → α → m α) (init : α) (n : Nat) : m α := +foldRevMAux f n init @[specialize] def allMAux {m} [Monad m] (p : Nat → m Bool) (n : Nat) : Nat → m Bool | 0 => pure true diff --git a/stage0/src/Lean/Elab/Inductive.lean b/stage0/src/Lean/Elab/Inductive.lean index 71c85c117c..737e384074 100644 --- a/stage0/src/Lean/Elab/Inductive.lean +++ b/stage0/src/Lean/Elab/Inductive.lean @@ -1,3 +1,4 @@ +#lang lean4 /- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. @@ -12,32 +13,26 @@ import Lean.Elab.CollectFVars import Lean.Elab.DefView import Lean.Elab.DeclUtil -namespace Lean -namespace Elab -namespace Command - +namespace Lean.Elab.Command open Meta def checkValidInductiveModifier (modifiers : Modifiers) : CommandElabM Unit := do -when modifiers.isNoncomputable $ - throwError "invalid use of 'noncomputable' in inductive declaration"; -when modifiers.isPartial $ - throwError "invalid use of 'partial' in inductive declaration"; -unless (modifiers.attrs.size == 0 || (modifiers.attrs.size == 1 && (modifiers.attrs.get! 0).name == `class)) $ - throwError "invalid use of attributes in inductive declaration"; -pure () +if modifiers.isNoncomputable then + throwError "invalid use of 'noncomputable' in inductive declaration" +if modifiers.isPartial then + throwError "invalid use of 'partial' in inductive declaration" +unless modifiers.attrs.size == 0 || (modifiers.attrs.size == 1 && modifiers.attrs[0].name == `class) do + throwError "invalid use of attributes in inductive declaration" def checkValidCtorModifier (modifiers : Modifiers) : CommandElabM Unit := do -when modifiers.isNoncomputable $ - throwError "invalid use of 'noncomputable' in constructor declaration"; -when modifiers.isPartial $ - throwError "invalid use of 'partial' in constructor declaration"; -when modifiers.isUnsafe $ - throwError "invalid use of 'unsafe' in constructor declaration"; -when (modifiers.attrs.size != 0) $ - throwError "invalid use of attributes in constructor declaration"; -pure () - +if modifiers.isNoncomputable then + throwError "invalid use of 'noncomputable' in constructor declaration" +if modifiers.isPartial then + throwError "invalid use of 'partial' in constructor declaration" +if modifiers.isUnsafe then + throwError "invalid use of 'unsafe' in constructor declaration" +if modifiers.attrs.size != 0 then + throwError "invalid use of attributes in constructor declaration" structure CtorView := (ref : Syntax) @@ -80,37 +75,40 @@ private partial def elabHeaderAux (views : Array InductiveView) if h : i < views.size then let view := views.get ⟨i, h⟩; Term.elabBinders view.binders.getArgs fun params => do - lctx ← getLCtx; - localInsts ← getLocalInstances; + let lctx ← getLCtx + let localInsts ← getLocalInstances match view.type? with - | none => do - u ← mkFreshLevelMVar; - let type := mkSort (mkLevelSucc u); - elabHeaderAux (i+1) (acc.push { lctx := lctx, localInsts := localInsts, params := params, type := type, view := view }) - | some typeStx => do - type ← Term.elabTerm typeStx none; - unlessM (isTypeFormerType type) $ - throwErrorAt typeStx "invalid inductive type, resultant type is not a sort"; - elabHeaderAux (i+1) (acc.push { lctx := lctx, localInsts := localInsts, params := params, type := type, view := view }) + | none => + let u ← mkFreshLevelMVar + let type := mkSort (mkLevelSucc u) + elabHeaderAux views (i+1) (acc.push { lctx := lctx, localInsts := localInsts, params := params, type := type, view := view }) + | some typeStx => + let type ← Term.elabTerm typeStx none + unless (← isTypeFormerType type) do + throwErrorAt typeStx "invalid inductive type, resultant type is not a sort" + elabHeaderAux views (i+1) (acc.push { lctx := lctx, localInsts := localInsts, params := params, type := type, view := view }) else pure acc private def checkNumParams (rs : Array ElabHeaderResult) : TermElabM Nat := do -let numParams := (rs.get! 0).params.size; -rs.forM fun r => unless (r.params.size == numParams) $ - throwErrorAt r.view.ref "invalid inductive type, number of parameters mismatch in mutually inductive datatypes"; +let numParams := rs[0].params.size +for r in rs do + unless r.params.size == numParams do + throwErrorAt r.view.ref "invalid inductive type, number of parameters mismatch in mutually inductive datatypes" pure numParams -private def checkUnsafe (rs : Array ElabHeaderResult) : TermElabM Unit := -let isUnsafe := (rs.get! 0).view.modifiers.isUnsafe; -rs.forM fun r => unless (r.view.modifiers.isUnsafe == isUnsafe) $ - throwErrorAt r.view.ref "invalid inductive type, cannot mix unsafe and safe declarations in a mutually inductive datatypes" +private def checkUnsafe (rs : Array ElabHeaderResult) : TermElabM Unit := do +let isUnsafe := rs[0].view.modifiers.isUnsafe +for r in rs do + unless r.view.modifiers.isUnsafe == isUnsafe do + throwErrorAt r.view.ref "invalid inductive type, cannot mix unsafe and safe declarations in a mutually inductive datatypes" -private def checkLevelNames (views : Array InductiveView) : TermElabM Unit := -when (views.size > 1) do - let levelNames := (views.get! 0).levelNames; - views.forM fun view => unless (view.levelNames == levelNames) $ - throwErrorAt view.ref "invalid inductive type, universe parameters mismatch in mutually inductive datatypes" +private def checkLevelNames (views : Array InductiveView) : TermElabM Unit := do +if views.size > 1 then + let levelNames := views[0].levelNames + for view in views do + unless view.levelNames == levelNames do + throwErrorAt view.ref "invalid inductive type, universe parameters mismatch in mutually inductive datatypes" private def mkTypeFor (r : ElabHeaderResult) : TermElabM Expr := do withLCtx r.lctx r.localInsts do @@ -129,70 +127,66 @@ forallTelescopeReducing firstType fun _ firstTypeResult => isDefEq firstTypeResu -- Auxiliary function for checking whether the types in mutually inductive declaration are compatible. private partial def checkParamsAndResultType (type firstType : Expr) (numParams : Nat) : TermElabM Unit := do +try + forallTelescopeCompatible type firstType numParams fun _ type firstType => + forallTelescopeReducing type fun _ type => + forallTelescopeReducing firstType fun _ firstType => do + match type with + | Expr.sort _ _ => + unless (← isDefEq firstType type) do + throwError! "resulting universe mismatch, given{indentExpr type}\nexpected type{indentExpr firstType}" + | _ => + throwError "unexpected inductive resulting type" catch - (do forallTelescopeCompatible type firstType numParams fun _ type firstType => - forallTelescopeReducing type fun _ type => - forallTelescopeReducing firstType fun _ firstType => - match type with - | Expr.sort _ _ => - unlessM (isDefEq firstType type) $ - throwError ("resulting universe mismatch, given " ++ indentExpr type ++ Format.line ++ "expected type" ++ indentExpr firstType) - | _ => - throwError "unexpected inductive resulting type") - (fun ex => match ex with - | Exception.error ref msg => throw (Exception.error ref ("invalid mutually inductive types, " ++ msg)) - | _ => throw ex) + | Exception.error ref msg => throw (Exception.error ref msg!"invalid mutually inductive types, {msg}") + | ex => throw ex -- Auxiliary function for checking whether the types in mutually inductive declaration are compatible. private def checkHeader (r : ElabHeaderResult) (numParams : Nat) (firstType? : Option Expr) : TermElabM Expr := do -type ← mkTypeFor r; +let type ← mkTypeFor r match firstType? with | none => pure type -| some firstType => do - withRef r.view.ref $ checkParamsAndResultType type firstType numParams; +| some firstType => + withRef r.view.ref $ checkParamsAndResultType type firstType numParams pure firstType -- Auxiliary function for checking whether the types in mutually inductive declaration are compatible. private partial def checkHeaders (rs : Array ElabHeaderResult) (numParams : Nat) : Nat → Option Expr → TermElabM Unit -| i, firstType? => when (i < rs.size) do - type ← checkHeader (rs.get! i) numParams firstType?; - checkHeaders (i+1) type +| i, firstType? => do + if i < rs.size then + let type ← checkHeader rs[i] numParams firstType? + checkHeaders rs numParams (i+1) type private def elabHeader (views : Array InductiveView) : TermElabM (Array ElabHeaderResult) := do -rs ← elabHeaderAux views 0 #[]; -when (rs.size > 1) do { - checkUnsafe rs; - numParams ← checkNumParams rs; +let rs ← elabHeaderAux views 0 #[] +if rs.size > 1 then + checkUnsafe rs + let numParams ← checkNumParams rs checkHeaders rs numParams 0 none -}; pure rs -private partial def withInductiveLocalDeclsAux {α} (namesAndTypes : Array (Name × Expr)) (params : Array Expr) - (x : Array Expr → Array Expr → TermElabM α) : Nat → Array Expr → TermElabM α -| i, indFVars => - if h : i < namesAndTypes.size then do - let (id, type) := namesAndTypes.get ⟨i, h⟩; - withLocalDeclD id type fun indFVar => withInductiveLocalDeclsAux (i+1) (indFVars.push indFVar) - else - x params indFVars - /- Create a local declaration for each inductive type in `rs`, and execute `x params indFVars`, where `params` are the inductive type parameters and `indFVars` are the new local declarations. We use the the local context/instances and parameters of rs[0]. Note that this method is executed after we executed `checkHeaders` and established all parameters are compatible. -/ -private def withInductiveLocalDecls {α} (rs : Array ElabHeaderResult) (x : Array Expr → Array Expr → TermElabM α) : TermElabM α := do -namesAndTypes ← rs.mapM fun r => do { - type ← mkTypeFor r; +private partial def withInductiveLocalDecls {α} (rs : Array ElabHeaderResult) (x : Array Expr → Array Expr → TermElabM α) : TermElabM α := do +let namesAndTypes ← rs.mapM fun r => do + let type ← mkTypeFor r pure (r.view.shortDeclName, type) -}; -let r0 := rs.get! 0; -let params := r0.params; -withLCtx r0.lctx r0.localInsts $ withRef r0.view.ref $ - withInductiveLocalDeclsAux namesAndTypes params x 0 #[] +let r0 := rs[0] +let params := r0.params +withLCtx r0.lctx r0.localInsts $ withRef r0.view.ref do + let rec loop (i : Nat) (indFVars : Array Expr) := do + if h : i < namesAndTypes.size then + let (id, type) := namesAndTypes.get ⟨i, h⟩ + withLocalDeclD id type fun indFVar => loop (i+1) (indFVars.push indFVar) + else + x params indFVars + loop 0 #[] private def isInductiveFamily (numParams : Nat) (indFVar : Expr) : TermElabM Bool := do -indFVarType ← inferType indFVar; +let indFVarType ← inferType indFVar forallTelescopeReducing indFVarType fun xs _ => pure $ xs.size > numParams @@ -205,33 +199,30 @@ forallTelescopeReducing indFVarType fun xs _ => - Universe constraints (the kernel checks for it). -/ private def elabCtors (indFVar : Expr) (params : Array Expr) (r : ElabHeaderResult) : TermElabM (List Constructor) := withRef r.view.ref do -indFamily ← isInductiveFamily params.size indFVar; +let indFamily ← isInductiveFamily params.size indFVar r.view.ctors.toList.mapM fun ctorView => Term.elabBinders ctorView.binders.getArgs fun ctorParams => - withRef ctorView.ref $ do - type ← match ctorView.type? with - | none => do - when indFamily $ - throwError "constructor resulting type must be specified in inductive family declaration"; + withRef ctorView.ref do + let type ← match ctorView.type? with + | none => + if indFamily then + throwError "constructor resulting type must be specified in inductive family declaration" pure (mkAppN indFVar params) - | some ctorType => do { - type ← Term.elabTerm ctorType none; - resultingType ← getResultingType type; - unless (resultingType.getAppFn == indFVar) $ - throwError ("unexpected constructor resulting type" ++ indentExpr resultingType); - unlessM (isType resultingType) $ - throwError ("unexpected constructor resulting type, type expected" ++ indentExpr resultingType); - let args := resultingType.getAppArgs; - params.size.forM fun i => do { - let param := params.get! i; - let arg := args.get! i; - unlessM (isDefEq param arg) $ - throwError ("inductive datatype parameter mismatch" ++ indentExpr arg ++ Format.line ++ "expected" ++ indentExpr param); - pure () - }; + | some ctorType => + let type ← Term.elabTerm ctorType none + let resultingType ← getResultingType type + unless resultingType.getAppFn == indFVar do + throwError! "unexpected constructor resulting type{indentExpr resultingType}" + unless (← isType resultingType) do + throwError! "unexpected constructor resulting type, type expected{indentExpr resultingType}" + let args := resultingType.getAppArgs + for i in [:params.size] do + let param := params[i] + let arg := args[i] + unless (← isDefEq param arg) do + throwError! "inductive datatype parameter mismatch{indentExpr arg}\nexpected{indentExpr param}" pure type - }; - type ← mkForallFVars ctorParams type; - type ← mkForallFVars params type; + let type ← mkForallFVars ctorParams type + let type ← mkForallFVars params type pure { name := ctorView.declName, type := type } /- Convert universe metavariables occurring in the `indTypes` into new parameters. @@ -239,11 +230,10 @@ r.view.ctors.toList.mapM fun ctorView => Term.elabBinders ctorView.binders.getAr `inferResultingUniverse`. -/ private def levelMVarToParamAux (indTypes : List InductiveType) : StateRefT Nat TermElabM (List InductiveType) := indTypes.mapM fun indType => do - type ← Term.levelMVarToParam' indType.type; - ctors ← indType.ctors.mapM fun ctor => do { - ctorType ← Term.levelMVarToParam' ctor.type; + let type ← Term.levelMVarToParam' indType.type + let ctors ← indType.ctors.mapM fun ctor => do + let ctorType ← Term.levelMVarToParam' ctor.type pure { ctor with type := ctorType } - }; pure { indType with ctors := ctors, type := type } private def levelMVarToParam (indTypes : List InductiveType) : TermElabM (List InductiveType) := @@ -252,7 +242,7 @@ private def levelMVarToParam (indTypes : List InductiveType) : TermElabM (List I private def getResultingUniverse : List InductiveType → TermElabM Level | [] => throwError "unexpected empty inductive declaration" | indType :: _ => do - r ← getResultingType indType.type; + let r ← getResultingType indType.type match r with | Expr.sort u _ => pure u | _ => throwError "unexpected inductive type resulting type" @@ -264,15 +254,14 @@ def tmpIndParam := mkLevelParam `_tmp_ind_univ_param Return false if `u` does not contain universe metavariables. Throw exception otherwise. -/ def shouldInferResultUniverse (u : Level) : TermElabM Bool := do -u ← instantiateLevelMVars u; +let u ← instantiateLevelMVars u if u.hasMVar then match u.getLevelOffset with | Level.mvar mvarId _ => do - Term.assignLevelMVar mvarId tmpIndParam; + Term.assignLevelMVar mvarId tmpIndParam pure true | _ => - throwError $ - "cannot infer resulting universe level of inductive datatype, given level contains metavariables " ++ mkSort u ++ ", provide universe explicitly" + throwError! "cannot infer resulting universe level of inductive datatype, given level contains metavariables {mkSort u}, provide universe explicitly" else pure false @@ -296,17 +285,17 @@ def accLevelAtCtor : Level → Level → Nat → Array Level → Except String ( /- Auxiliary function for `updateResultingUniverse` -/ private partial def collectUniversesFromCtorTypeAux (r : Level) (rOffset : Nat) : Nat → Expr → Array Level → TermElabM (Array Level) | 0, Expr.forallE n d b c, us => do - u ← getLevel d; - u ← instantiateLevelMVars u; + let u ← getLevel d + let u ← instantiateLevelMVars u match accLevelAtCtor u r rOffset us with | Except.error msg => throwError msg | Except.ok us => withLocalDecl n c.binderInfo d $ fun x => - let e := b.instantiate1 x; - collectUniversesFromCtorTypeAux 0 e us + let e := b.instantiate1 x + collectUniversesFromCtorTypeAux r rOffset 0 e us | i+1, Expr.forallE n d b c, us => do - withLocalDecl n c.binderInfo d $ fun x => - let e := b.instantiate1 x; - collectUniversesFromCtorTypeAux i e us + withLocalDecl n c.binderInfo d fun x => + let e := b.instantiate1 x + collectUniversesFromCtorTypeAux r rOffset i e us | _, _, us => pure us /- Auxiliary function for `updateResultingUniverse` -/ @@ -316,178 +305,161 @@ collectUniversesFromCtorTypeAux r rOffset numParams ctorType us /- Auxiliary function for `updateResultingUniverse` -/ private partial def collectUniverses (r : Level) (rOffset : Nat) (numParams : Nat) (indTypes : List InductiveType) : TermElabM (Array Level) := -indTypes.foldlM - (fun us indType => indType.ctors.foldlM - (fun us ctor => collectUniversesFromCtorType r rOffset ctor.type numParams us) - us) - #[] +indTypes.foldlM (init := #[]) fun us indType => + indType.ctors.foldlM (init := us) fun us ctor => + collectUniversesFromCtorType r rOffset ctor.type numParams us private def updateResultingUniverse (numParams : Nat) (indTypes : List InductiveType) : TermElabM (List InductiveType) := do -r ← getResultingUniverse indTypes; -let rOffset : Nat := r.getOffset; -let r : Level := r.getLevelOffset; -unless (r.isParam) $ - throwError "failed to compute resulting universe level of inductive datatype, provide universe explicitly"; -us ← collectUniverses r rOffset numParams indTypes; -let rNew := Level.mkNaryMax us.toList; -let updateLevel (e : Expr) : Expr := e.replaceLevel fun u => if u == tmpIndParam then some rNew else none; -pure $ indTypes.map fun indType => +let r ← getResultingUniverse indTypes +let rOffset : Nat := r.getOffset +let r : Level := r.getLevelOffset +unless r.isParam do + throwError "failed to compute resulting universe level of inductive datatype, provide universe explicitly" +let us ← collectUniverses r rOffset numParams indTypes +let rNew := Level.mkNaryMax us.toList +let updateLevel (e : Expr) : Expr := e.replaceLevel fun u => if u == tmpIndParam then some rNew else none +return indTypes.map fun indType => let type := updateLevel indType.type; let ctors := indType.ctors.map fun ctor => { ctor with type := updateLevel ctor.type }; { indType with type := type, ctors := ctors } private def traceIndTypes (indTypes : List InductiveType) : TermElabM Unit := indTypes.forM fun indType => - indType.ctors.forM fun ctor => IO.println (" >> " ++ toString ctor.name ++ " : " ++ toString ctor.type) + indType.ctors.forM fun ctor => IO.println s!" >> {ctor.name} : {ctor.type}" private def collectUsed (indTypes : List InductiveType) : StateRefT CollectFVars.State TermElabM Unit := do indTypes.forM fun indType => do - Term.collectUsedFVars indType.type; - indType.ctors.forM fun ctor => Term.collectUsedFVars ctor.type + Term.collectUsedFVars indType.type + indType.ctors.forM fun ctor => + Term.collectUsedFVars ctor.type private def removeUnused (vars : Array Expr) (indTypes : List InductiveType) : TermElabM (LocalContext × LocalInstances × Array Expr) := do -(_, used) ← (collectUsed indTypes).run {}; +let (_, used) ← (collectUsed indTypes).run {} Term.removeUnused vars used private def withUsed {α} (vars : Array Expr) (indTypes : List InductiveType) (k : Array Expr → TermElabM α) : TermElabM α := do -(lctx, localInsts, vars) ← removeUnused vars indTypes; +let (lctx, localInsts, vars) ← removeUnused vars indTypes withLCtx lctx localInsts $ k vars private def updateParams (vars : Array Expr) (indTypes : List InductiveType) : TermElabM (List InductiveType) := indTypes.mapM fun indType => do - type ← mkForallFVars vars indType.type; - ctors ← indType.ctors.mapM fun ctor => do { - ctorType ← mkForallFVars vars ctor.type; + let type ← mkForallFVars vars indType.type + let ctors ← indType.ctors.mapM fun ctor => do + let ctorType ← mkForallFVars vars ctor.type pure { ctor with type := ctorType } - }; pure { indType with type := type, ctors := ctors } private def collectLevelParamsInInductive (indTypes : List InductiveType) : Array Name := -let usedParams := indTypes.foldl - (fun (usedParams : CollectLevelParams.State) indType => - let usedParams := collectLevelParams usedParams indType.type; - indType.ctors.foldl - (fun (usedParams : CollectLevelParams.State) ctor => collectLevelParams usedParams ctor.type) - usedParams) - {}; +let usedParams := indTypes.foldl (init := {}) fun (usedParams : CollectLevelParams.State) indType => + let usedParams := collectLevelParams usedParams indType.type; + indType.ctors.foldl (init := usedParams) fun (usedParams : CollectLevelParams.State) ctor => + collectLevelParams usedParams ctor.type usedParams.params private def mkIndFVar2Const (views : Array InductiveView) (indFVars : Array Expr) (levelNames : List Name) : ExprMap Expr := let levelParams := levelNames.map mkLevelParam; -views.size.fold - (fun i (m : ExprMap Expr) => - let view := views.get! i; - let indFVar := indFVars.get! i; - m.insert indFVar (mkConst view.declName levelParams)) - {} +views.size.fold (init := {}) fun i (m : ExprMap Expr) => + let view := views[i] + let indFVar := indFVars[i] + m.insert indFVar (mkConst view.declName levelParams) /- Remark: `numVars <= numParams`. `numVars` is the number of context `variables` used in the inductive declaration, and `numParams` is `numVars` + number of explicit parameters provided in the declaration. -/ private def replaceIndFVarsWithConsts (views : Array InductiveView) (indFVars : Array Expr) (levelNames : List Name) (numVars : Nat) (numParams : Nat) (indTypes : List InductiveType) : TermElabM (List InductiveType) := -let indFVar2Const := mkIndFVar2Const views indFVars levelNames; +let indFVar2Const := mkIndFVar2Const views indFVars levelNames indTypes.mapM fun indType => do - ctors ← indType.ctors.mapM fun ctor => do { - type ← forallBoundedTelescope ctor.type numParams fun params type => do { + let ctors ← indType.ctors.mapM fun ctor => do + let type ← forallBoundedTelescope ctor.type numParams fun params type => do let type := type.replace fun e => if !e.isFVar then none else match indFVar2Const.find? e with | none => none - | some c => mkAppN c (params.extract 0 numVars); + | some c => mkAppN c (params.extract 0 numVars) mkForallFVars params type - }; pure { ctor with type := type } - }; pure { indType with ctors := ctors } abbrev Ctor2InferMod := Std.HashMap Name Bool private def mkCtor2InferMod (views : Array InductiveView) : Ctor2InferMod := -views.foldl - (fun (m : Ctor2InferMod) view => view.ctors.foldl - (fun (m : Ctor2InferMod) ctorView => m.insert ctorView.declName ctorView.inferMod) - m) - {} +views.foldl (init := {}) fun m view => + view.ctors.foldl (init := m) fun m ctorView => + m.insert ctorView.declName ctorView.inferMod private def applyInferMod (views : Array InductiveView) (numParams : Nat) (indTypes : List InductiveType) : List InductiveType := -let ctor2InferMod := mkCtor2InferMod views; +let ctor2InferMod := mkCtor2InferMod views indTypes.map fun indType => let ctors := indType.ctors.map fun ctor => - let inferMod := ctor2InferMod.find! ctor.name; -- true if `{}` was used - let ctorType := ctor.type.inferImplicit numParams !inferMod; - { ctor with type := ctorType }; + let inferMod := ctor2InferMod.find! ctor.name -- true if `{}` was used + let ctorType := ctor.type.inferImplicit numParams !inferMod + { ctor with type := ctorType } { indType with ctors := ctors } private def mkAuxConstructions (views : Array InductiveView) : TermElabM Unit := do -env ← getEnv; -let hasEq := env.contains `Eq; -let hasHEq := env.contains `HEq; -let hasUnit := env.contains `PUnit; -let hasProd := env.contains `Prod; -views.forM fun view => do { +let env ← getEnv +let hasEq := env.contains `Eq +let hasHEq := env.contains `HEq +let hasUnit := env.contains `PUnit +let hasProd := env.contains `Prod +for view in views do + let n := view.declName + modifyEnv fun env => mkRecOn env n + if hasUnit then modifyEnv fun env => mkCasesOn env n + if hasUnit && hasEq && hasHEq then modifyEnv fun env => mkNoConfusion env n + if hasUnit && hasProd then modifyEnv fun env => mkBelow env n + if hasUnit && hasProd then modifyEnv fun env => mkIBelow env n +for view in views do let n := view.declName; - modifyEnv fun env => mkRecOn env n; - when hasUnit $ modifyEnv fun env => mkCasesOn env n; - when (hasUnit && hasEq && hasHEq) $ modifyEnv fun env => mkNoConfusion env n; - when (hasUnit && hasProd) $ modifyEnv fun env => mkBelow env n; - when (hasUnit && hasProd) $ modifyEnv fun env => mkIBelow env n; - pure () -}; -views.forM fun view => do { - let n := view.declName; - when (hasUnit && hasProd) $ modifyEnv fun env => mkBRecOn env n; - when (hasUnit && hasProd) $ modifyEnv fun env => mkBInductionOn env n; - pure () -} + if hasUnit && hasProd then modifyEnv fun env => mkBRecOn env n + if hasUnit && hasProd then modifyEnv fun env => mkBInductionOn env n private def mkInductiveDecl (vars : Array Expr) (views : Array InductiveView) : TermElabM Unit := do -let view0 := views.get! 0; -scopeLevelNames ← Term.getLevelNames; -checkLevelNames views; -let allUserLevelNames := view0.levelNames; -let isUnsafe := view0.modifiers.isUnsafe; +let view0 := views[0] +let scopeLevelNames ← Term.getLevelNames +checkLevelNames views +let allUserLevelNames := view0.levelNames +let isUnsafe := view0.modifiers.isUnsafe withRef view0.ref $ Term.withLevelNames allUserLevelNames do - rs ← elabHeader views; + let rs ← elabHeader views withInductiveLocalDecls rs fun params indFVars => do - let numExplicitParams := params.size; - indTypes ← views.size.foldM - (fun i (indTypes : List InductiveType) => do - let indFVar := indFVars.get! i; - let r := rs.get! i; - type ← mkForallFVars params r.type; - ctors ← elabCtors indFVar params r; - let indType := { name := r.view.declName, type := type, ctors := ctors : InductiveType }; - pure (indType :: indTypes)) - []; - let indTypes := indTypes.reverse; - Term.synthesizeSyntheticMVarsNoPostponing; - u ← getResultingUniverse indTypes; - inferLevel ← shouldInferResultUniverse u; - withUsed vars indTypes $ fun vars => do - let numVars := vars.size; - let numParams := numVars + numExplicitParams; - indTypes ← updateParams vars indTypes; - indTypes ← levelMVarToParam indTypes; - indTypes ← if inferLevel then updateResultingUniverse numParams indTypes else pure indTypes; - let usedLevelNames := collectLevelParamsInInductive indTypes; + let numExplicitParams := params.size + let indTypes ← views.size.foldM (init := []) fun i (indTypes : List InductiveType) => do + let indFVar := indFVars[i] + let r := rs[i] + let type ← mkForallFVars params r.type + let ctors ← elabCtors indFVar params r + let indType := { name := r.view.declName, type := type, ctors := ctors : InductiveType } + pure (indType :: indTypes) + let indTypes := indTypes.reverse + Term.synthesizeSyntheticMVarsNoPostponing + let u ← getResultingUniverse indTypes + let inferLevel ← shouldInferResultUniverse u + withUsed vars indTypes fun vars => do + let numVars := vars.size + let numParams := numVars + numExplicitParams + let indTypes ← updateParams vars indTypes + let indTypes ← levelMVarToParam indTypes + let indTypes ← if inferLevel then updateResultingUniverse numParams indTypes else pure indTypes + let usedLevelNames := collectLevelParamsInInductive indTypes match sortDeclLevelParams scopeLevelNames allUserLevelNames usedLevelNames with | Except.error msg => throwError msg | Except.ok levelParams => do - indTypes ← replaceIndFVarsWithConsts views indFVars levelParams numVars numParams indTypes; - let indTypes := applyInferMod views numParams indTypes; - let decl := Declaration.inductDecl levelParams numParams indTypes isUnsafe; - Term.ensureNoUnassignedMVars decl; - addDecl decl; - mkAuxConstructions views; + let indTypes ← replaceIndFVarsWithConsts views indFVars levelParams numVars numParams indTypes + let indTypes := applyInferMod views numParams indTypes + let decl := Declaration.inductDecl levelParams numParams indTypes isUnsafe + Term.ensureNoUnassignedMVars decl + addDecl decl + mkAuxConstructions views -- We need to invoke `applyAttributes` because `class` is implemented as an attribute. - views.forM fun view => Term.applyAttributesAt view.declName view.modifiers.attrs AttributeApplicationTime.afterTypeChecking + for view in views do + Term.applyAttributesAt view.declName view.modifiers.attrs AttributeApplicationTime.afterTypeChecking def elabInductiveViews (views : Array InductiveView) : CommandElabM Unit := do -let view0 := views.get! 0; -let ref := view0.ref; -runTermElabM view0.declName fun vars => withRef ref $ mkInductiveDecl vars views +let view0 := views[0] +let ref := view0.ref +runTermElabM view0.declName fun vars => withRef ref do + mkInductiveDecl vars views -end Command -end Elab -end Lean +end Lean.Elab.Command diff --git a/stage0/src/Lean/Elab/StructInst.lean b/stage0/src/Lean/Elab/StructInst.lean index 986213456c..3b0d1689f3 100644 --- a/stage0/src/Lean/Elab/StructInst.lean +++ b/stage0/src/Lean/Elab/StructInst.lean @@ -1,3 +1,4 @@ +#lang lean4 /- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. @@ -8,10 +9,7 @@ import Lean.Elab.App import Lean.Elab.Binders import Lean.Elab.Quotation -namespace Lean -namespace Elab -namespace Term -namespace StructInst +namespace Lean.Elab.Term.StructInst open Std (HashMap) open Meta @@ -20,12 +18,12 @@ open Meta @[builtinMacro Lean.Parser.Term.structInst] def expandStructInstExpectedType : Macro := fun stx => - let expectedArg := stx.getArg 4; + let expectedArg := stx[4] if expectedArg.isNone then Macro.throwUnsupported else - let expected := expectedArg.getArg 1; - let stxNew := stx.setArg 4 mkNullNode; + let expected := expectedArg[1] + let stxNew := stx.setArg 4 mkNullNode `(($stxNew : $expected)) /- @@ -34,17 +32,18 @@ If `stx` is of the form `{ s with ... }` and `s` is not a local variable, expand Note that this one is not a `Macro` because we need to access the local context. -/ private def expandNonAtomicExplicitSource (stx : Syntax) : TermElabM (Option Syntax) := -withFreshMacroScope $ - let sourceOpt := stx.getArg 1; - if sourceOpt.isNone then pure none else do - let source := sourceOpt.getArg 0; - fvar? ← isLocalIdent? source; - match fvar? with +withFreshMacroScope do + let sourceOpt := stx[1] + if sourceOpt.isNone then + pure none + else + let source := sourceOpt[0] + match (← isLocalIdent? source) with | some _ => pure none - | none => do - src ← `(src); - let sourceOpt := sourceOpt.setArg 0 src; - let stxNew := stx.setArg 1 sourceOpt; + | none => + let src ← `(src) + let sourceOpt := sourceOpt.setArg 0 src + let stxNew := stx.setArg 1 sourceOpt `(let src := $source; $stxNew) inductive Source @@ -64,15 +63,15 @@ def setStructSourceSyntax (structStx : Syntax) : Source → Syntax | Source.explicit stx _ => (structStx.setArg 1 stx).setArg 3 mkNullNode private def getStructSource (stx : Syntax) : TermElabM Source := -withRef stx $ -let explicitSource := stx.getArg 1; -let implicitSource := stx.getArg 3; +withRef stx do +let explicitSource := stx[1] +let implicitSource := stx[3] if explicitSource.isNone && implicitSource.isNone then pure Source.none else if explicitSource.isNone then pure $ Source.implicit implicitSource -else if implicitSource.isNone then do - fvar? ← isLocalIdent? (explicitSource.getArg 0); +else if implicitSource.isNone then + let fvar? ← isLocalIdent? explicitSource[0] match fvar? with | none => unreachable! -- expandNonAtomicExplicitSource must have been used when we get here | some src => pure $ Source.explicit explicitSource src @@ -85,16 +84,16 @@ else def structInstArrayRef := parser! "[" >> termParser >>"]" ``` -/ private def isModifyOp? (stx : Syntax) : TermElabM (Option Syntax) := do -let args := (stx.getArg 2).getArgs; -s? ← args.foldSepByM +let args := stx[2].getArgs +let s? ← args.foldSepByM (fun arg s? => /- Remark: the syntax for `structInstField` is ``` def structInstLVal := (ident <|> numLit <|> structInstArrayRef) >> many (group ("." >> (ident <|> numLit)) <|> structInstArrayRef) def structInstField := parser! structInstLVal >> " := " >> termParser ``` -/ - let lval := arg.getArg 0; - let k := lval.getKind; + let lval := arg[0] + let k := lval.getKind if k == `Lean.Parser.Term.structInstArrayRef then match s? with | none => pure (some arg) @@ -111,56 +110,55 @@ s? ← args.foldSepByM throwErrorAt arg "invalid {...} notation, can't mix field and `[..]` at a given level" else pure s?) - none; + none match s? with | none => pure none -| some s => if (s.getArg 0).getKind == `Lean.Parser.Term.structInstArrayRef then pure s? else pure none +| some s => if s[0].getKind == `Lean.Parser.Term.structInstArrayRef then pure s? else pure none -private def elabModifyOp (stx modifyOp source : Syntax) (expectedType? : Option Expr) : TermElabM Expr := -let continue (val : Syntax) : TermElabM Expr := do { - let lval := modifyOp.getArg 0; - let idx := lval.getArg 1; - let self := source.getArg 0; - stxNew ← `($(self).modifyOp (idx := $idx) (fun s => $val)); - trace `Elab.struct.modifyOp fun _ => stx ++ "\n===>\n" ++ stxNew; +private def elabModifyOp (stx modifyOp source : Syntax) (expectedType? : Option Expr) : TermElabM Expr := do +let cont (val : Syntax) : TermElabM Expr := do + let lval := modifyOp[0] + let idx := lval[1] + let self := source[0] + let stxNew ← `($(self).modifyOp (idx := $idx) (fun s => $val)) + trace[Elab.struct.modifyOp]! "{stx}\n===>\n{stxNew}" withMacroExpansion stx stxNew $ elabTerm stxNew expectedType? -}; do -trace `Elab.struct.modifyOp fun _ => modifyOp ++ "\nSource: " ++ source; -let rest := modifyOp.getArg 1; -if rest.isNone then do - continue (modifyOp.getArg 3) -else do - s ← `(s); - let valFirst := rest.getArg 0; - let valFirst := if valFirst.getKind == `Lean.Parser.Term.structInstArrayRef then valFirst else valFirst.getArg 1; - let restArgs := rest.getArgs; - let valRest := mkNullNode (restArgs.extract 1 restArgs.size); - let valField := modifyOp.setArg 0 valFirst; - let valField := valField.setArg 1 valRest; - let valSource := source.modifyArg 0 $ fun _ => s; - let val := stx.setArg 1 valSource; - let val := val.setArg 2 $ mkNullNode #[valField]; - trace `Elab.struct.modifyOp fun _ => stx ++ "\nval: " ++ val; - continue val +trace[Elab.struct.modifyOp]! "{modifyOp}\nSource: {source}" +let rest := modifyOp[1] +if rest.isNone then + cont modifyOp[3] +else + let s ← `(s) + let valFirst := rest[0] + let valFirst := if valFirst.getKind == `Lean.Parser.Term.structInstArrayRef then valFirst else valFirst[1] + let restArgs := rest.getArgs + let valRest := mkNullNode restArgs[1:restArgs.size] + let valField := modifyOp.setArg 0 valFirst + let valField := valField.setArg 1 valRest + let valSource := source.modifyArg 0 fun _ => s + let val := stx.setArg 1 valSource + let val := val.setArg 2 $ mkNullNode #[valField] + trace[Elab.struct.modifyOp]! "{stx}\nval: {val}" + cont val /- Get structure name and elaborate explicit source (if available) -/ private def getStructName (stx : Syntax) (expectedType? : Option Expr) (sourceView : Source) : TermElabM Name := do -tryPostponeIfNoneOrMVar expectedType?; +tryPostponeIfNoneOrMVar expectedType? let useSource : Unit → TermElabM Name := fun _ => match sourceView, expectedType? with | Source.explicit _ src, _ => do - srcType ← inferType src; - srcType ← whnf srcType; - tryPostponeIfMVar srcType; + let srcType ← inferType src + let srcType ← whnf srcType + tryPostponeIfMVar srcType match srcType.getAppFn with | Expr.const constName _ _ => pure constName - | _ => throwError ("invalid {...} notation, source type is not of the form (C ...)" ++ indentExpr srcType) - | _, some expectedType => throwError ("invalid {...} notation, expected type is not of the form (C ...)" ++ indentExpr expectedType) - | _, none => throwError ("invalid {...} notation, expected type must be known"); + | _ => throwError! "invalid \{...} notation, source type is not of the form (C ...){indentExpr srcType}" + | _, some expectedType => throwError! "invalid \{...} notation, expected type is not of the form (C ...){indentExpr expectedType}" + | _, none => throwError! "invalid \{...} notation, expected type must be known" match expectedType? with | none => useSource () -| some expectedType => do - expectedType ← whnf expectedType; +| some expectedType => + let expectedType ← whnf expectedType match expectedType.getAppFn with | Expr.const constName _ _ => pure constName | _ => useSource () @@ -178,9 +176,9 @@ instance FieldLHS.hasFormat : HasFormat FieldLHS := | FieldLHS.modifyOp _ i => "[" ++ i.prettyPrint ++ "]"⟩ inductive FieldVal (σ : Type) -| term (stx : Syntax) : FieldVal -| nested (s : σ) : FieldVal -| default : FieldVal -- mark that field must be synthesized using default value +| term (stx : Syntax) : FieldVal σ +| nested (s : σ) : FieldVal σ +| default : FieldVal σ -- mark that field must be synthesized using default value structure Field (σ : Type) := (ref : Syntax) (lhs : List FieldLHS) (val : FieldVal σ) (expr? : Option Expr := none) @@ -203,7 +201,7 @@ partial def Struct.allDefault : Struct → Bool | ⟨_, _, fields, _⟩ => fields.all fun ⟨_, _, val, _⟩ => match val with | FieldVal.term _ => false | FieldVal.default => true - | FieldVal.nested s => Struct.allDefault s + | FieldVal.nested s => allDefault s def Struct.ref : Struct → Syntax | ⟨ref, _, _, _⟩ => ref @@ -226,7 +224,7 @@ Format.joinSep field.lhs " . " ++ " := " ++ partial def formatStruct : Struct → Format | ⟨_, structName, fields, source⟩ => - let fieldsFmt := Format.joinSep (fields.map (formatField formatStruct)) ", "; + let fieldsFmt := Format.joinSep (fields.map (formatField formatStruct)) ", " match source with | Source.none => "{" ++ fieldsFmt ++ "}" | Source.implicit _ => "{" ++ fieldsFmt ++ " .. }" @@ -258,35 +256,34 @@ def FieldVal.toSyntax : FieldVal Struct → Syntax def Field.toSyntax : Field Struct → Syntax | field => - let stx := field.ref; - let stx := stx.setArg 3 field.val.toSyntax; + let stx := field.ref + let stx := stx.setArg 3 field.val.toSyntax match field.lhs with | first::rest => - let stx := stx.setArg 0 $ first.toSyntax true; - let stx := stx.setArg 1 $ mkNullNode $ rest.toArray.map (FieldLHS.toSyntax false); + let stx := stx.setArg 0 $ first.toSyntax true + let stx := stx.setArg 1 $ mkNullNode $ rest.toArray.map (FieldLHS.toSyntax false) stx | _ => unreachable! private def toFieldLHS (stx : Syntax) : Except String FieldLHS := if stx.getKind == `Lean.Parser.Term.structInstArrayRef then - pure $ FieldLHS.modifyOp stx (stx.getArg 1) + pure $ FieldLHS.modifyOp stx stx[1] else -- Note that the representation of the first field is different. - let stx := if stx.getKind == nullKind then stx.getArg 1 else stx; + let stx := if stx.getKind == nullKind then stx[1] else stx if stx.isIdent then pure $ FieldLHS.fieldName stx stx.getId.eraseMacroScopes else match stx.isFieldIdx? with | some idx => pure $ FieldLHS.fieldIndex stx idx | none => throw "unexpected structure syntax" private def mkStructView (stx : Syntax) (structName : Name) (source : Source) : Except String Struct := do -let args := (stx.getArg 2).getArgs; -let fieldsStx := args.filter $ fun arg => arg.getKind == `Lean.Parser.Term.structInstField; -fields ← fieldsStx.toList.mapM $ fun fieldStx => do { - let val := fieldStx.getArg 3; - first ← toFieldLHS (fieldStx.getArg 0); - rest ← (fieldStx.getArg 1).getArgs.toList.mapM toFieldLHS; +let args := stx[2].getArgs +let fieldsStx := args.filter $ fun arg => arg.getKind == `Lean.Parser.Term.structInstField +let fields ← fieldsStx.toList.mapM fun fieldStx => do + let val := fieldStx[3] + let first ← toFieldLHS fieldStx[0] + let rest ← fieldStx[1].getArgs.toList.mapM toFieldLHS pure $ ({ref := fieldStx, lhs := first :: rest, val := FieldVal.term val } : Field Struct) -}; pure ⟨stx, structName, fields, source⟩ def Struct.modifyFieldsM {m : Type → Type} [Monad m] (s : Struct) (f : Fields → m Fields) : m Struct := @@ -297,25 +294,25 @@ match s with Id.run $ s.modifyFieldsM f def Struct.setFields (s : Struct) (fields : Fields) : Struct := -s.modifyFields $ fun _ => fields +s.modifyFields fun _ => fields private def expandCompositeFields (s : Struct) : Struct := s.modifyFields $ fun fields => fields.map $ fun field => match field with | { lhs := FieldLHS.fieldName ref (Name.str Name.anonymous _ _) :: rest, .. } => field | { lhs := FieldLHS.fieldName ref n@(Name.str _ _ _) :: rest, .. } => - let newEntries := n.components.map $ FieldLHS.fieldName ref; + let newEntries := n.components.map $ FieldLHS.fieldName ref { field with lhs := newEntries ++ rest } | _ => field private def expandNumLitFields (s : Struct) : TermElabM Struct := -s.modifyFieldsM $ fun fields => do - env ← getEnv; - let fieldNames := getStructureFields env s.structName; - fields.mapM $ fun field => match field with +s.modifyFieldsM fun fields => do + let env ← getEnv + let fieldNames := getStructureFields env s.structName + fields.mapM fun field => match field with | { lhs := FieldLHS.fieldIndex ref idx :: rest, .. } => if idx == 0 then throwErrorAt ref "invalid field index, index must be greater than 0" - else if idx > fieldNames.size then throwErrorAt ref ("invalid field index, structure has only #" ++ toString fieldNames.size ++ " fields") - else pure { field with lhs := FieldLHS.fieldName ref (fieldNames.get! $ idx - 1) :: rest } + else if idx > fieldNames.size then throwErrorAt! ref "invalid field index, structure has only #{fieldNames.size} fields" + else pure { field with lhs := FieldLHS.fieldName ref fieldNames[idx - 1] :: rest } | _ => pure field /- For example, consider the following structures: @@ -334,38 +331,36 @@ s.modifyFieldsM $ fun fields => do { toB.toA.x := 0, toB.y := 0, z := true : C } ``` -/ private def expandParentFields (s : Struct) : TermElabM Struct := do -env ← getEnv; -s.modifyFieldsM $ fun fields => fields.mapM $ fun field => match field with +let env ← getEnv +s.modifyFieldsM fun fields => fields.mapM fun field => match field with | { lhs := FieldLHS.fieldName ref fieldName :: rest, .. } => match findField? env s.structName fieldName with - | none => throwErrorAt ref ("'" ++ fieldName ++ "' is not a field of structure '" ++ s.structName ++ "'") + | none => throwErrorAt! ref "'{fieldName}' is not a field of structure '{s.structName}'" | some baseStructName => if baseStructName == s.structName then pure field else match getPathToBaseStructure? env baseStructName s.structName with | some path => do let path := path.map $ fun funName => match funName with | Name.str _ s _ => FieldLHS.fieldName ref (mkNameSimple s) - | _ => unreachable!; + | _ => unreachable! pure { field with lhs := path ++ field.lhs } - | _ => throwErrorAt ref ("failed to access field '" ++ fieldName ++ "' in parent structure") + | _ => throwErrorAt! ref "failed to access field '{fieldName}' in parent structure" | _ => pure field private abbrev FieldMap := HashMap Name Fields private def mkFieldMap (fields : Fields) : TermElabM FieldMap := -fields.foldlM - (fun fieldMap field => - match field.lhs with - | FieldLHS.fieldName _ fieldName :: rest => - match fieldMap.find? fieldName with - | some (prevField::restFields) => - if field.isSimple || prevField.isSimple then - throwErrorAt field.ref ("field '" ++ fieldName ++ "' has already beed specified") - else - pure $ fieldMap.insert fieldName (field::prevField::restFields) - | _ => pure $ fieldMap.insert fieldName [field] - | _ => unreachable!) - {} +fields.foldlM (init := {}) fun fieldMap field => + match field.lhs with + | FieldLHS.fieldName _ fieldName :: rest => + match fieldMap.find? fieldName with + | some (prevField::restFields) => + if field.isSimple || prevField.isSimple then + throwErrorAt! field.ref "field '{fieldName}' has already beed specified" + else + pure $ fieldMap.insert fieldName (field::prevField::restFields) + | _ => pure $ fieldMap.insert fieldName [field] + | _ => unreachable! private def isSimpleField? : Fields → Option (Field Struct) | [field] => if field.isSimple then some field else none @@ -374,7 +369,7 @@ private def isSimpleField? : Fields → Option (Field Struct) private def getFieldIdx (structName : Name) (fieldNames : Array Name) (fieldName : Name) : TermElabM Nat := do match fieldNames.findIdx? $ fun n => n == fieldName with | some idx => pure idx -| none => throwError ("field '" ++ fieldName ++ "' is not a valid field of '" ++ structName ++ "'") +| none => throwError! "field '{fieldName}' is not a valid field of '{structName}'" private def mkProjStx (s : Syntax) (fieldName : Name) : Syntax := Syntax.node `Lean.Parser.Term.proj #[s, mkAtomFrom s ".", mkIdentFrom s fieldName] @@ -382,81 +377,78 @@ Syntax.node `Lean.Parser.Term.proj #[s, mkAtomFrom s ".", mkIdentFrom s fieldNam private def mkSubstructSource (structName : Name) (fieldNames : Array Name) (fieldName : Name) (src : Source) : TermElabM Source := match src with | Source.explicit stx src => do - idx ← getFieldIdx structName fieldNames fieldName; - let stx := stx.modifyArg 0 $ fun stx => mkProjStx stx fieldName; + let idx ← getFieldIdx structName fieldNames fieldName + let stx := stx.modifyArg 0 fun stx => mkProjStx stx fieldName pure $ Source.explicit stx (mkProj structName idx src) | s => pure s @[specialize] private def groupFields (expandStruct : Struct → TermElabM Struct) (s : Struct) : TermElabM Struct := do -env ← getEnv; -let fieldNames := getStructureFields env s.structName; -withRef s.ref $ -s.modifyFieldsM $ fun fields => do - fieldMap ← mkFieldMap fields; - fieldMap.toList.mapM $ fun ⟨fieldName, fields⟩ => +let env ← getEnv +let fieldNames := getStructureFields env s.structName +withRef s.ref do +s.modifyFieldsM fun fields => do + let fieldMap ← mkFieldMap fields + fieldMap.toList.mapM fun ⟨fieldName, fields⟩ => do match isSimpleField? fields with | some field => pure field - | none => do - let substructFields := fields.map $ fun field => { field with lhs := field.lhs.tail! }; - substructSource ← mkSubstructSource s.structName fieldNames fieldName s.source; - let field := fields.head!; + | none => + let substructFields := fields.map fun field => { field with lhs := field.lhs.tail! } + let substructSource ← mkSubstructSource s.structName fieldNames fieldName s.source + let field := fields.head! match Lean.isSubobjectField? env s.structName fieldName with - | some substructName => do - let substruct := Struct.mk s.ref substructName substructFields substructSource; - substruct ← expandStruct substruct; + | some substructName => + let substruct := Struct.mk s.ref substructName substructFields substructSource + let substruct ← expandStruct substruct pure { field with lhs := [field.lhs.head!], val := FieldVal.nested substruct } | none => do -- It is not a substructure field. Thus, we wrap fields using `Syntax`, and use `elabTerm` to process them. - let valStx := s.ref; -- construct substructure syntax using s.ref as template - let valStx := valStx.setArg 4 mkNullNode; -- erase optional expected type - let args := substructFields.toArray.map $ Field.toSyntax; - let valStx := valStx.setArg 2 (mkSepStx args (mkAtomFrom s.ref ",")); - let valStx := setStructSourceSyntax valStx substructSource; + let valStx := s.ref -- construct substructure syntax using s.ref as template + let valStx := valStx.setArg 4 mkNullNode -- erase optional expected type + let args := substructFields.toArray.map Field.toSyntax + let valStx := valStx.setArg 2 (mkSepStx args (mkAtomFrom s.ref ",")) + let valStx := setStructSourceSyntax valStx substructSource pure { field with lhs := [field.lhs.head!], val := FieldVal.term valStx } def findField? (fields : Fields) (fieldName : Name) : Option (Field Struct) := -fields.find? $ fun field => +fields.find? fun field => match field.lhs with | [FieldLHS.fieldName _ n] => n == fieldName | _ => false @[specialize] private def addMissingFields (expandStruct : Struct → TermElabM Struct) (s : Struct) : TermElabM Struct := do -env ← getEnv; -let fieldNames := getStructureFields env s.structName; -let ref := s.ref; +let env ← getEnv +let fieldNames := getStructureFields env s.structName +let ref := s.ref withRef ref do -fields ← fieldNames.foldlM - (fun fields fieldName => do - match findField? s.fields fieldName with - | some field => pure $ field::fields - | none => - let addField (val : FieldVal Struct) : TermElabM Fields := do { - pure $ { ref := s.ref, lhs := [FieldLHS.fieldName s.ref fieldName], val := val } :: fields - }; - match Lean.isSubobjectField? env s.structName fieldName with - | some substructName => do - substructSource ← mkSubstructSource s.structName fieldNames fieldName s.source; - let substruct := Struct.mk s.ref substructName [] substructSource; - substruct ← expandStruct substruct; - addField (FieldVal.nested substruct) - | none => - match s.source with - | Source.none => addField FieldVal.default - | Source.implicit _ => addField (FieldVal.term (mkHole s.ref)) - | Source.explicit stx _ => - -- stx is of the form `optional (try (termParser >> "with"))` - let src := stx.getArg 0; - let val := mkProjStx src fieldName; - addField (FieldVal.term val)) - []; +let fields ← fieldNames.foldlM (init := []) fun fields fieldName => do + match findField? s.fields fieldName with + | some field => pure $ field::fields + | none => + let addField (val : FieldVal Struct) : TermElabM Fields := do + pure $ { ref := s.ref, lhs := [FieldLHS.fieldName s.ref fieldName], val := val } :: fields + match Lean.isSubobjectField? env s.structName fieldName with + | some substructName => do + let substructSource ← mkSubstructSource s.structName fieldNames fieldName s.source + let substruct := Struct.mk s.ref substructName [] substructSource + let substruct ← expandStruct substruct + addField (FieldVal.nested substruct) + | none => + match s.source with + | Source.none => addField FieldVal.default + | Source.implicit _ => addField (FieldVal.term (mkHole s.ref)) + | Source.explicit stx _ => + -- stx is of the form `optional (try (termParser >> "with"))` + let src := stx[0] + let val := mkProjStx src fieldName + addField (FieldVal.term val) pure $ s.setFields fields.reverse private partial def expandStruct : Struct → TermElabM Struct | s => do - let s := expandCompositeFields s; - s ← expandNumLitFields s; - s ← expandParentFields s; - s ← groupFields expandStruct s; + let s := expandCompositeFields s + let s ← expandNumLitFields s + let s ← expandParentFields s + let s ← groupFields expandStruct s addMissingFields expandStruct s structure CtorHeaderResult := @@ -467,15 +459,15 @@ structure CtorHeaderResult := private def mkCtorHeaderAux : Nat → Expr → Expr → Array MVarId → TermElabM CtorHeaderResult | 0, type, ctorFn, instMVars => pure { ctorFn := ctorFn, ctorFnType := type, instMVars := instMVars } | n+1, type, ctorFn, instMVars => do - type ← whnfForall type; + let type ← whnfForall type match type with | Expr.forallE _ d b c => match c.binderInfo with - | BinderInfo.instImplicit => do - a ← mkFreshExprMVar d MetavarKind.synthetic; + | BinderInfo.instImplicit => + let a ← mkFreshExprMVar d MetavarKind.synthetic mkCtorHeaderAux n (b.instantiate1 a) (mkApp ctorFn a) (instMVars.push a.mvarId!) - | _ => do - a ← mkFreshExprMVar d; + | _ => + let a ← mkFreshExprMVar d mkCtorHeaderAux n (b.instantiate1 a) (mkApp ctorFn a) instMVars | _ => throwError "unexpected constructor type" @@ -487,21 +479,21 @@ private partial def getForallBody : Nat → Expr → Option Expr private def propagateExpectedType (type : Expr) (numFields : Nat) (expectedType? : Option Expr) : TermElabM Unit := match expectedType? with | none => pure () -| some expectedType => +| some expectedType => do match getForallBody numFields type with | none => pure () | some typeBody => - unless typeBody.hasLooseBVars $ do - _ ← isDefEq expectedType typeBody; + unless typeBody.hasLooseBVars do + isDefEq expectedType typeBody pure () private def mkCtorHeader (ctorVal : ConstructorVal) (expectedType? : Option Expr) : TermElabM CtorHeaderResult := do -lvls ← ctorVal.lparams.mapM $ fun _ => mkFreshLevelMVar; -let val := Lean.mkConst ctorVal.name lvls; -let type := (ConstantInfo.ctorInfo ctorVal).instantiateTypeLevelParams lvls; -r ← mkCtorHeaderAux ctorVal.nparams type val #[]; -propagateExpectedType r.ctorFnType ctorVal.nfields expectedType?; -synthesizeAppInstMVars r.instMVars; +let lvls ← ctorVal.lparams.mapM fun _ => mkFreshLevelMVar +let val := Lean.mkConst ctorVal.name lvls +let type := (ConstantInfo.ctorInfo ctorVal).instantiateTypeLevelParams lvls +let r ← mkCtorHeaderAux ctorVal.nparams type val #[] +propagateExpectedType r.ctorFnType ctorVal.nfields expectedType? +synthesizeAppInstMVars r.instMVars pure r def markDefaultMissing (e : Expr) : Expr := @@ -511,43 +503,40 @@ def defaultMissing? (e : Expr) : Option Expr := annotation? `structInstDefault e def throwFailedToElabField {α} (fieldName : Name) (structName : Name) (msgData : MessageData) : TermElabM α := -throwError ("failed to elaborate field '" ++ fieldName ++ "' of '" ++ structName ++ ", " ++ msgData) +throwError! "failed to elaborate field '{fieldName}' of '{structName}, {msgData}" -def trySynthStructInstance? (s : Struct) (expectedType : Expr) : TermElabM (Option Expr) := -if !s.allDefault then pure none +def trySynthStructInstance? (s : Struct) (expectedType : Expr) : TermElabM (Option Expr) := do +if !s.allDefault then + pure none else - catch (synthInstance? expectedType) (fun _ => pure none) + try synthInstance? expectedType catch _ => pure none private partial def elabStruct : Struct → Option Expr → TermElabM (Expr × Struct) | s, expectedType? => withRef s.ref do - env ← getEnv; - let ctorVal := getStructureCtor env s.structName; - { ctorFn := ctorFn, ctorFnType := ctorFnType, .. } ← mkCtorHeader ctorVal expectedType?; - (e, _, fields) ← s.fields.foldlM - (fun (acc : Expr × Expr × Fields) field => - let (e, type, fields) := acc; - match field.lhs with - | [FieldLHS.fieldName ref fieldName] => do - type ← whnfForall type; - match type with - | Expr.forallE _ d b c => - let continue (val : Expr) (field : Field Struct) : TermElabM (Expr × Expr × Fields) := do { - let e := mkApp e val; - let type := b.instantiate1 val; - let field := { field with expr? := some val }; - pure (e, type, field::fields) - }; - match field.val with - | FieldVal.term stx => do val ← elabTermEnsuringType stx d; continue val field - | FieldVal.nested s => do - val? ← trySynthStructInstance? s d; -- if all fields of `s` are marked as `default`, then try to synthesize instance - match val? with - | some val => continue val { field with val := FieldVal.term (mkHole field.ref) } - | none => do(val, sNew) ← elabStruct s (some d); val ← ensureHasType d val; continue val { field with val := FieldVal.nested sNew } - | FieldVal.default => do val ← withRef field.ref $ mkFreshExprMVar (some d); continue (markDefaultMissing val) field - | _ => withRef field.ref $ throwFailedToElabField fieldName s.structName ("unexpected constructor type" ++ indentExpr type) - | _ => throwErrorAt field.ref "unexpected unexpanded structure field") - (ctorFn, ctorFnType, []); + let env ← getEnv + let ctorVal := getStructureCtor env s.structName + let { ctorFn := ctorFn, ctorFnType := ctorFnType, .. } ← mkCtorHeader ctorVal expectedType? + let (e, _, fields) ← s.fields.foldlM (init := (ctorFn, ctorFnType, [])) fun (e, type, fields) field => + match field.lhs with + | [FieldLHS.fieldName ref fieldName] => do + let type ← whnfForall type + match type with + | Expr.forallE _ d b c => + let cont (val : Expr) (field : Field Struct) : TermElabM (Expr × Expr × Fields) := do + let e := mkApp e val + let type := b.instantiate1 val + let field := { field with expr? := some val } + pure (e, type, field::fields) + match field.val with + | FieldVal.term stx => cont (← elabTermEnsuringType stx d) field + | FieldVal.nested s => do + -- if all fields of `s` are marked as `default`, then try to synthesize instance + match (← trySynthStructInstance? s d) with + | some val => cont val { field with val := FieldVal.term (mkHole field.ref) } + | none => do let (val, sNew) ← elabStruct s (some d); val ← ensureHasType d val; cont val { field with val := FieldVal.nested sNew } + | FieldVal.default => do let val ← withRef field.ref $ mkFreshExprMVar (some d); cont (markDefaultMissing val) field + | _ => withRef field.ref $ throwFailedToElabField fieldName s.structName msg!"unexpected constructor type{indentExpr type}" + | _ => throwErrorAt field.ref "unexpected unexpanded structure field" pure (e, s.setFields fields.reverse) namespace DefaultFields @@ -587,28 +576,24 @@ structure State := partial def collectStructNames : Struct → Array Name → Array Name | struct, names => - let names := names.push struct.structName; - struct.fields.foldl - (fun names field => - match field.val with - | FieldVal.nested struct => collectStructNames struct names - | _ => names) - names + let names := names.push struct.structName + struct.fields.foldl (init := names) fun names field => + match field.val with + | FieldVal.nested struct => collectStructNames struct names + | _ => names partial def getHierarchyDepth : Struct → Nat | struct => - struct.fields.foldl - (fun max field => - match field.val with - | FieldVal.nested struct => Nat.max max (getHierarchyDepth struct + 1) - | _ => max) - 0 + struct.fields.foldl (init := 0) fun max field => + match field.val with + | FieldVal.nested struct => Nat.max max (getHierarchyDepth struct + 1) + | _ => max partial def findDefaultMissing? (mctx : MetavarContext) : Struct → Option (Field Struct) | struct => - struct.fields.findSome? $ fun field => + struct.fields.findSome? fun field => match field.val with - | FieldVal.nested struct => findDefaultMissing? struct + | FieldVal.nested struct => findDefaultMissing? mctx struct | _ => match field.expr? with | none => unreachable! | some expr => match defaultMissing? expr with @@ -623,31 +608,30 @@ match field.lhs with abbrev M := ReaderT Context (StateRefT State TermElabM) def isRoundDone : M Bool := do -ctx ← read; -s ← get; -pure (s.progress && ctx.maxDistance > 0) +return (← get).progress && (← read).maxDistance > 0 def getFieldValue? (struct : Struct) (fieldName : Name) : Option Expr := -struct.fields.findSome? $ fun field => +struct.fields.findSome? fun field => if getFieldName field == fieldName then field.expr? else none partial def mkDefaultValueAux? (struct : Struct) : Expr → TermElabM (Option Expr) -| Expr.lam n d b c => withRef struct.ref $ +| Expr.lam n d b c => withRef struct.ref do if c.binderInfo.isExplicit then - let fieldName := n; + let fieldName := n match getFieldValue? struct fieldName with | none => pure none - | some val => do - valType ← inferType val; - condM (isDefEq valType d) - (mkDefaultValueAux? (b.instantiate1 val)) - (pure none) - else do - arg ← mkFreshExprMVar d; - mkDefaultValueAux? (b.instantiate1 arg) + | some val => + let valType ← inferType val + if (← isDefEq valType d) then + mkDefaultValueAux? struct (b.instantiate1 val) + else + pure none + else + let arg ← mkFreshExprMVar d + mkDefaultValueAux? struct (b.instantiate1 arg) | e => if e.isAppOfArity `id 2 then pure (some e.appArg!) @@ -656,7 +640,7 @@ partial def mkDefaultValueAux? (struct : Struct) : Expr → TermElabM (Option Ex def mkDefaultValue? (struct : Struct) (cinfo : ConstantInfo) : TermElabM (Option Expr) := withRef struct.ref do -us ← cinfo.lparams.mapM $ fun _ => mkFreshLevelMVar; +let us ← cinfo.lparams.mapM fun _ => mkFreshLevelMVar mkDefaultValueAux? struct (cinfo.instantiateValueLevelParams us) /-- If `e` is a projection function of one of the given structures, then reduce it -/ @@ -664,7 +648,7 @@ def reduceProjOf? (structNames : Array Name) (e : Expr) : MetaM (Option Expr) := if !e.isApp then pure none else match e.getAppFn with | Expr.const name _ _ => do - env ← getEnv; + let env ← getEnv match env.getProjectionStructureName? name with | some structName => if structNames.contains structName then @@ -676,142 +660,126 @@ else match e.getAppFn with /-- Reduce default value. It performs beta reduction and projections of the given structures. -/ partial def reduce (structNames : Array Name) : Expr → MetaM Expr -| e@(Expr.lam _ _ _ _) => lambdaLetTelescope e $ fun xs b => do b ← reduce b; mkLambdaFVars xs b -| e@(Expr.forallE _ _ _ _) => forallTelescope e $ fun xs b => do b ← reduce b; mkForallFVars xs b -| e@(Expr.letE _ _ _ _ _) => lambdaLetTelescope e $ fun xs b => do b ← reduce b; mkLetFVars xs b +| e@(Expr.lam _ _ _ _) => lambdaLetTelescope e fun xs b => do mkLambdaFVars xs (← reduce structNames b) +| e@(Expr.forallE _ _ _ _) => forallTelescope e fun xs b => do mkForallFVars xs (← reduce structNames b) +| e@(Expr.letE _ _ _ _ _) => lambdaLetTelescope e fun xs b => do mkLetFVars xs (← reduce structNames b) | e@(Expr.proj _ i b _) => do - r? ← Meta.reduceProj? b i; - match r? with - | some r => reduce r - | none => do b ← reduce b; pure $ e.updateProj! b + match (← Meta.reduceProj? b i) with + | some r => reduce structNames r + | none => pure $ e.updateProj! (← reduce structNames b) | e@(Expr.app f _ _) => do - r? ← reduceProjOf? structNames e; - match r? with - | some r => reduce r - | none => do - let f := f.getAppFn; - f' ← reduce f; + match (← reduceProjOf? structNames e) with + | some r => reduce structNames r + | none => + let f := f.getAppFn + let f' ← reduce structNames f if f'.isLambda then - let revArgs := e.getAppRevArgs; - reduce $ f'.betaRev revArgs - else do - args ← e.getAppArgs.mapM reduce; + let revArgs := e.getAppRevArgs + reduce structNames (f'.betaRev revArgs) + else + let args ← e.getAppArgs.mapM (reduce structNames) pure (mkAppN f' args) | e@(Expr.mdata _ b _) => do - b ← reduce b; + let b ← reduce structNames b if (defaultMissing? e).isSome && !b.isMVar then pure b else pure $ e.updateMData! b | e@(Expr.mvar mvarId _) => do - val? ← getExprMVarAssignment? mvarId; - match val? with - | some val => if val.isMVar then reduce val else pure val + match (← getExprMVarAssignment? mvarId) with + | some val => if val.isMVar then reduce structNames val else pure val | none => pure e | e => pure e -partial def tryToSynthesizeDefaultAux (structs : Array Struct) (allStructNames : Array Name) (maxDistance : Nat) - (fieldName : Name) (mvarId : MVarId) : Nat → Nat → TermElabM Bool -| i, dist => - if dist > maxDistance then pure false +partial def tryToSynthesizeDefault (structs : Array Struct) (allStructNames : Array Name) (maxDistance : Nat) (fieldName : Name) (mvarId : MVarId) : TermElabM Bool := +let rec loop (i : Nat) (dist : Nat) := do + if dist > maxDistance then + pure false else if h : i < structs.size then do - let struct := structs.get ⟨i, h⟩; - let defaultName := struct.structName ++ fieldName ++ `_default; - env ← getEnv; + let struct := structs.get ⟨i, h⟩ + let defaultName := struct.structName ++ fieldName ++ `_default + let env ← getEnv match env.find? defaultName with | some cinfo@(ConstantInfo.defnInfo defVal) => do - mctx ← getMCtx; - val? ← mkDefaultValue? struct cinfo; + let mctx ← getMCtx + let val? ← mkDefaultValue? struct cinfo match val? with - | none => do setMCtx mctx; tryToSynthesizeDefaultAux (i+1) (dist+1) + | none => do setMCtx mctx; loop (i+1) (dist+1) | some val => do - val ← liftMetaM $ reduce allStructNames val; - match val.find? $ fun e => (defaultMissing? e).isSome with - | some _ => do setMCtx mctx; tryToSynthesizeDefaultAux (i+1) (dist+1) - | none => do - mvarDecl ← getMVarDecl mvarId; - val ← ensureHasType mvarDecl.type val; - assignExprMVar mvarId val; + let val ← liftMetaM $ reduce allStructNames val + match val.find? fun e => (defaultMissing? e).isSome with + | some _ => setMCtx mctx; loop (i+1) (dist+1) + | none => + let mvarDecl ← getMVarDecl mvarId + let val ← ensureHasType mvarDecl.type val + assignExprMVar mvarId val pure true - | _ => tryToSynthesizeDefaultAux (i+1) dist + | _ => loop (i+1) dist else pure false - -def tryToSynthesizeDefault (structs : Array Struct) (allStructNames : Array Name) - (maxDistance : Nat) (fieldName : Name) (mvarId : MVarId) : TermElabM Bool := -tryToSynthesizeDefaultAux structs allStructNames maxDistance fieldName mvarId 0 0 +loop 0 0 partial def step : Struct → M Unit -| struct => unlessM isRoundDone $ withReader (fun ctx => { ctx with structs := ctx.structs.push struct }) $ do - struct.fields.forM $ fun field => +| struct => unlessM isRoundDone $ withReader (fun ctx => { ctx with structs := ctx.structs.push struct }) do + struct.fields.forM fun field => do match field.val with | FieldVal.nested struct => step struct | _ => match field.expr? with | none => unreachable! | some expr => match defaultMissing? expr with | some (Expr.mvar mvarId _) => - unlessM (liftM $ isExprMVarAssigned mvarId) $ do - ctx ← read; - whenM (liftM $ withRef field.ref $ tryToSynthesizeDefault ctx.structs ctx.allStructNames ctx.maxDistance (getFieldName field) mvarId) $ do - modify $ fun s => { s with progress := true } + unless (← isExprMVarAssigned mvarId) do + let ctx ← read + if (← withRef field.ref $ tryToSynthesizeDefault ctx.structs ctx.allStructNames ctx.maxDistance (getFieldName field) mvarId) then + modify fun s => { s with progress := true } | _ => pure () partial def propagateLoop (hierarchyDepth : Nat) : Nat → Struct → M Unit | d, struct => do - mctx ← getMCtx; - match findDefaultMissing? mctx struct with + match findDefaultMissing? (← getMCtx) struct with | none => pure () -- Done | some field => if d > hierarchyDepth then - throwErrorAt field.ref ("field '" ++ getFieldName field ++ "' is missing") - else withReader (fun ctx => { ctx with maxDistance := d }) $ do - modify $ fun (s : State) => { s with progress := false }; - step struct; - s ← get; - if s.progress then do - propagateLoop 0 struct + throwErrorAt! field.ref "field '{getFieldName field}' is missing" + else withReader (fun ctx => { ctx with maxDistance := d }) do + modify fun s => { s with progress := false } + step struct + if (← get).progress then do + propagateLoop hierarchyDepth 0 struct else - propagateLoop (d+1) struct + propagateLoop hierarchyDepth (d+1) struct def propagate (struct : Struct) : TermElabM Unit := -let hierarchyDepth := getHierarchyDepth struct; -let structNames := collectStructNames struct #[]; +let hierarchyDepth := getHierarchyDepth struct +let structNames := collectStructNames struct #[] (propagateLoop hierarchyDepth 0 struct { allStructNames := structNames }).run' {} end DefaultFields private def elabStructInstAux (stx : Syntax) (expectedType? : Option Expr) (source : Source) : TermElabM Expr := do -structName ← getStructName stx expectedType? source; -env ← getEnv; -unless (isStructureLike env structName) $ - throwError ("invalid {...} notation, '" ++ structName ++ "' is not a structure"); +let structName ← getStructName stx expectedType? source +unless isStructureLike (← getEnv) structName do + throwError! "invalid \{...} notation, '{structName}' is not a structure" match mkStructView stx structName source with | Except.error ex => throwError ex -| Except.ok struct => do - struct ← expandStruct struct; - trace `Elab.struct fun _ => toString struct; - (r, struct) ← elabStruct struct expectedType?; - DefaultFields.propagate struct; +| Except.ok struct => + let struct ← expandStruct struct + trace[Elab.struct]! "{struct}" + let (r, struct) ← elabStruct struct expectedType? + DefaultFields.propagate struct pure r @[builtinTermElab structInst] def elabStructInst : TermElab := fun stx expectedType? => do - stxNew? ← expandNonAtomicExplicitSource stx; - match stxNew? with + match (← expandNonAtomicExplicitSource stx) with | some stxNew => withMacroExpansion stx stxNew $ elabTerm stxNew expectedType? - | none => do - sourceView ← getStructSource stx; - modifyOp? ← isModifyOp? stx; - match modifyOp?, sourceView with + | none => + let sourceView ← getStructSource stx + match (← isModifyOp? stx), sourceView with | some modifyOp, Source.explicit source _ => elabModifyOp stx modifyOp source expectedType? - | some _, _ => throwError ("invalid {...} notation, explicit source is required when using '[] := '") + | some _, _ => throwError "invalid {...} notation, explicit source is required when using '[] := '" | _, _ => elabStructInstAux stx expectedType? sourceView -@[init] private def regTraceClasses : IO Unit := do -registerTraceClass `Elab.struct; -pure () +initialize registerTraceClass `Elab.struct -end StructInst -end Term -end Elab -end Lean +end Lean.Elab.Term.StructInst diff --git a/stage0/src/Std/Data/HashMap.lean b/stage0/src/Std/Data/HashMap.lean index d32de5db72..151d09b56e 100644 --- a/stage0/src/Std/Data/HashMap.lean +++ b/stage0/src/Std/Data/HashMap.lean @@ -168,13 +168,13 @@ self.find? idx match m with | ⟨ m, _ ⟩ => m.contains a -@[inline] def foldM {δ : Type w} {m : Type w → Type w} [Monad m] (f : δ → α → β → m δ) (d : δ) (h : HashMap α β) : m δ := +@[inline] def foldM {δ : Type w} {m : Type w → Type w} [Monad m] (f : δ → α → β → m δ) (init : δ) (h : HashMap α β) : m δ := match h with -| ⟨ h, _ ⟩ => h.foldM f d +| ⟨ h, _ ⟩ => h.foldM f init -@[inline] def fold {δ : Type w} (f : δ → α → β → δ) (d : δ) (m : HashMap α β) : δ := +@[inline] def fold {δ : Type w} (f : δ → α → β → δ) (init : δ) (m : HashMap α β) : δ := match m with -| ⟨ m, _ ⟩ => m.fold f d +| ⟨ m, _ ⟩ => m.fold f init @[inline] def size (m : HashMap α β) : Nat := match m with diff --git a/stage0/stdlib/Lean/Elab/Declaration.c b/stage0/stdlib/Lean/Elab/Declaration.c index fe3889f9da..131c5e0f23 100644 --- a/stage0/stdlib/Lean/Elab/Declaration.c +++ b/stage0/stdlib/Lean/Elab/Declaration.c @@ -129,7 +129,6 @@ lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespa lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__2___closed__3; lean_object* lean_array_fget(lean_object*, lean_object*); -lean_object* l_Lean_Elab_applyVisibility___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__6; lean_object* l_Lean_Elab_Command_expandMutualPreamble_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -272,6 +271,7 @@ lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyn lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l_Lean_Syntax_getKind(lean_object*); lean_object* l_Lean_MacroScopesView_review(lean_object*); +lean_object* l_Lean_Elab_applyVisibility___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__7(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_applyAttributes(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__4; lean_object* l_Lean_Elab_Command_expandMutualPreamble___closed__5; @@ -2298,7 +2298,7 @@ lean_object* x_20; lean_object* x_21; x_20 = lean_ctor_get(x_5, 6); lean_dec(x_20); lean_ctor_set(x_5, 6, x_18); -x_21 = l_Lean_Elab_applyVisibility___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8(x_14, x_12, x_5, x_6, x_17); +x_21 = l_Lean_Elab_applyVisibility___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__7(x_14, x_12, x_5, x_6, x_17); if (lean_obj_tag(x_21) == 0) { uint8_t x_22; @@ -2463,7 +2463,7 @@ lean_ctor_set(x_66, 3, x_63); lean_ctor_set(x_66, 4, x_64); lean_ctor_set(x_66, 5, x_65); lean_ctor_set(x_66, 6, x_18); -x_67 = l_Lean_Elab_applyVisibility___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8(x_14, x_12, x_66, x_6, x_17); +x_67 = l_Lean_Elab_applyVisibility___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__7(x_14, x_12, x_66, x_6, x_17); if (lean_obj_tag(x_67) == 0) { lean_object* 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; diff --git a/stage0/stdlib/Lean/Elab/Inductive.c b/stage0/stdlib/Lean/Elab/Inductive.c index 983d474ef8..0a753ef2a1 100644 --- a/stage0/stdlib/Lean/Elab/Inductive.c +++ b/stage0/stdlib/Lean/Elab/Inductive.c @@ -13,454 +13,582 @@ #ifdef __cplusplus extern "C" { #endif +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getLevelNames(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_reverse___rarg(lean_object*); -lean_object* l_Lean_Meta_isTypeFormerType___at___private_Lean_Elab_Inductive_1__elabHeaderAux___main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_checkValidCtorModifier___lambda__3___closed__1; +extern lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__4___closed__4; +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_push(lean_object*, uint32_t); +lean_object* l_Lean_Meta_withLCtx___at_Lean_Elab_Term_elabBinders___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* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2___closed__1; lean_object* lean_expr_update_forall(lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l_IO_getStdout___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_checkValidCtorModifier___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_removeUnused(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__2___lambda__1___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__1; -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___closed__2; -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__8; -lean_object* l_IO_getStdout___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__3___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_22__collectUniverses___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2___closed__2; +size_t l_USize_add(size_t, size_t); lean_object* lean_mk_cases_on(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkCtor2InferMod___boxed(lean_object*); extern lean_object* l_Lean_Expr_eq_x3f___closed__2; +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkTypeFor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingType___spec__1(lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withUsed___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_elabLetDeclAux___spec__2___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_4__checkLevelNames___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___closed__1; -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___closed__6; -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__4; -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__4; +lean_object* l_Lean_stringToMessageData(lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5___closed__5; +lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__6(lean_object*, lean_object*); lean_object* l_Lean_mkSort(lean_object*); -lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___closed__5; -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Inductive_32__mkCtor2InferMod___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors_match__1(lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_checkValidCtorModifier___lambda__1___closed__1; +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParamAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkHeaders_match__1(lean_object*); lean_object* l_unreachable_x21___rarg(lean_object*); -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__2(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_checkValidCtorModifier___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Expr_3__getAppArgsAux___main(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_checkValidCtorModifier___closed__4; +lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingType___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isExprDefEq___at_Lean_Meta_isExprDefEqGuarded___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_liftTermElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_27__withUsed(lean_object*); -extern lean_object* l_Lean_MessageData_ofList___closed__3; +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_USize_decEq(size_t, size_t); -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__6; lean_object* lean_array_uget(lean_object*, size_t); -lean_object* l___private_Lean_Elab_Inductive_7__getResultingType___closed__1; lean_object* lean_io_error_to_string(lean_object*); -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__4(lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Inductive_32__mkCtor2InferMod___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_foldAux___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkIndFVar2Const___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_forM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MetavarContext_addLevelMVarDecl(lean_object*, lean_object*); lean_object* lean_expr_update_mdata(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_2__checkNumParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_InductiveView_inhabited; -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_16__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*); -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_3__checkUnsafe___spec__1___closed__3; +lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___lambda__1___closed__2; uint8_t lean_name_eq(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Attribute_inhabited; -lean_object* l___private_Lean_Elab_Inductive_35__mkInductiveDecl___lambda__3(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_14__withInductiveLocalDecls___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__4(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux_match__1(lean_object*); extern lean_object* l_Std_HashMap_inhabited___closed__1; -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__6; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_28__updateParams___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_addDecl___at_Lean_Elab_Command_elabEvalUnsafe___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___spec__1(lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniverses___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_InferType_22__isTypeFormerTypeImp___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_extract___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at_Lean_hasOutParams___spec__5(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg___closed__3; -lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main(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_Array_anyRangeMAux___main___at_Lean_Elab_Command_accLevelAtCtor___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__2(uint8_t, uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__2___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse_match__1(lean_object*); extern lean_object* l_Array_empty___closed__1; -lean_object* l___private_Lean_Elab_Inductive_16__elabCtors(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_4__checkLevelNames___spec__1___closed__3; +lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2(lean_object*, lean_object*); lean_object* l___private_Init_Util_1__mkPanicMessage(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_3__checkUnsafe___spec__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_14__withInductiveLocalDecls(lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateParams___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Level_hasMVar(lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1(lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); -lean_object* l_IO_println___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_8__eqvFirstTypeResult___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_27__withUsed___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_24__traceIndTypes(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__3; -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_1__elabHeaderAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_19__getResultingUniverse(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_checkValidCtorModifier___closed__10; +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParamAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkLevelNames___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_IO_println___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_insert___at___private_Lean_MetavarContext_2__visit___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ensureNoUnassignedMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_22__collectUniverses___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_17__levelMVarToParamAux___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_17__levelMVarToParamAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1___closed__1; +lean_object* l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_propagateExpectedType___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__2___closed__3; +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___lambda__1___closed__1; lean_object* lean_expr_instantiate1(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5(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*); extern lean_object* l_Lean_Prod_hasQuote___rarg___closed__2; -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__5; -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_4__checkLevelNames___spec__1___closed__2; +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_accLevelAtCtor___closed__1; lean_object* lean_string_append(lean_object*, lean_object*); -lean_object* l_List_forM___main___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__4___closed__1; -lean_object* l___private_Lean_Elab_Inductive_10__checkHeader___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_isTypeFormerType___at___private_Lean_Elab_Inductive_1__elabHeaderAux___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_applyAttributesAt(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_List_beq___main___at_Lean_OpenDecl_HasToString___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn___main(lean_object*); -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_2__checkNumParams___spec__1___closed__3; -lean_object* l___private_Lean_Elab_Inductive_26__removeUnused___closed__1; -lean_object* l_Lean_Elab_Command_accLevelAtCtor___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkFreshLevelMVar___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_ElabHeaderResult_inhabited; +lean_object* l_Lean_addMessageContextPartial___at_Lean_Elab_Command_Lean_AddMessageContext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_String_splitAux___main___closed__1; extern lean_object* l_Lean_Expr_getAppArgs___closed__1; +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_throwUnexpectedInductiveType___rarg___closed__2; +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkIndFVar2Const(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_InferType_4__getLevelImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Inductive_32__mkCtor2InferMod___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__2; -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_shouldInferResultUniverse(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_Inductive_5__mkTypeFor___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_checkValidCtorModifier___lambda__1___closed__2; +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParamAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkHeader___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_IO_getStdout___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_accLevelAtCtor(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_accLevelAtCtor___main___closed__1; +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_throwUnexpectedInductiveType___rarg___closed__1; +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_throwUnexpectedInductiveType___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_checkValidCtorModifier___lambda__3___closed__2; lean_object* l_Lean_Elab_Term_withLevelNames___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_checkValidCtorModifier___closed__9; -lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__4___closed__5; +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_USize_decLt(size_t, size_t); lean_object* l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_28__updateParams___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_checkValidCtorModifier___closed__8; -lean_object* l_Lean_Elab_Command_accLevelAtCtor___main___closed__2; -lean_object* l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg___closed__2; +lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Command_accLevelAtCtor___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkLevelNames(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_checkValidCtorModifier___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_15__isInductiveFamily(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__2___closed__4; +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5___closed__3; +lean_object* l_Lean_Meta_isTypeFormerType___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__5; lean_object* lean_mk_ibelow(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_35__mkInductiveDecl___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_29__collectLevelParamsInInductive(lean_object*); -lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_7__getResultingType___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParam(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkCtor2InferMod(lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe___spec__1(uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParam___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_contains___at_Lean_Elab_Command_accLevelAtCtor___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_CtorView_inhabited; -lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Inductive_35__mkInductiveDecl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_IO_println___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___closed__7; -lean_object* l___private_Lean_Elab_Inductive_14__withInductiveLocalDecls___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg___closed__1; -lean_object* l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___main___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l___private_Lean_Meta_Basic_6__liftMkBindingM___rarg___closed__3; -lean_object* l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__6; -lean_object* l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___closed__2; +lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__2(lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*); extern lean_object* l_Lean_LocalContext_Inhabited___closed__2; -lean_object* l___private_Lean_Elab_Inductive_17__levelMVarToParamAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_forM___main___at___private_Lean_Elab_Inductive_25__collectUsed___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_3__checkUnsafe___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_11__checkHeaders___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_35__mkInductiveDecl___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_14__withInductiveLocalDecls___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__6; -lean_object* l_List_forM___main___at___private_Lean_Elab_Inductive_25__collectUsed___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_22__collectUniverses___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_eqvFirstTypeResult___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_IO_getStdout___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___lambda__4(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls_loop___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Level_getLevelOffset___main(lean_object*); -lean_object* l___private_Lean_Elab_Inductive_8__eqvFirstTypeResult___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__9; -lean_object* l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___main(lean_object*); +lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_forM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); -lean_object* l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__5; -lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_Inhabited___closed__1; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_23__updateResultingUniverse(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Level_isParam(lean_object*); -lean_object* l___private_Lean_Elab_Inductive_16__elabCtors___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_below(lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_throwUnexpectedInductiveType___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls(lean_object*); lean_object* l_Lean_MetavarContext_instantiateLevelMVars___main(lean_object*, lean_object*); -lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Inductive_35__mkInductiveDecl___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instantiateLevelMVars___at_Lean_Elab_Command_shouldInferResultUniverse___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_iterateMAux___main___at_Lean_ppGoal___spec__6___closed__5; -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__5(lean_object*, size_t, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__5___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux(lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withUsed_match__1(lean_object*); +lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_tmpIndParam___closed__2; -lean_object* l___private_Lean_Elab_Inductive_11__checkHeaders(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__3(lean_object*, size_t, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams___spec__1___closed__3; extern lean_object* l_Lean_Expr_heq_x3f___closed__2; lean_object* l_List_map___main___at_Lean_Meta_addGlobalInstanceImp___spec__1(lean_object*); lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__2___lambda__1(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_2__checkNumParams___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_21__collectUniversesFromCtorType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_5__mkTypeFor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___lambda__2___closed__1; +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_InferType_21__isTypeImp___at_Lean_Meta_isType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_Inductive_5__mkTypeFor___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_checkValidCtorModifier___lambda__2___closed__2; lean_object* l_Lean_replaceRef(lean_object*, lean_object*); -lean_object* l_Array_contains___at_Lean_Elab_Command_accLevelAtCtor___main___spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_removeUnused_match__1(lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabInductiveViews(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_PersistentHashMap_find_x21___rarg___closed__2; -lean_object* l___private_Lean_Elab_Inductive_1__elabHeaderAux___main___lambda__1___closed__2; -lean_object* l___private_Lean_Elab_Inductive_11__checkHeaders___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_26__removeUnused___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_IO_getStdout___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_isInductiveFamily(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_forM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__4___closed__1; +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux___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_array_fset(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_21__collectUniversesFromCtorType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_34__mkAuxConstructions___spec__1(uint8_t, 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* l_Lean_Elab_Command_checkValidInductiveModifier___lambda__2___closed__2; +lean_object* l_Lean_Elab_Command_checkValidCtorModifier___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___lambda__2(lean_object*, lean_object*, lean_object*, 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* l_List_forM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_tmpIndParam___closed__1; -lean_object* l___private_Lean_Elab_Inductive_34__mkAuxConstructions(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_1__elabHeaderAux___main___lambda__1___closed__1; -lean_object* l___private_Lean_Elab_Inductive_35__mkInductiveDecl___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_30__mkIndFVar2Const(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectLevelParamsInInductive___closed__1; +lean_object* l_Lean_Elab_Command_checkValidCtorModifier___lambda__2___closed__1; +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withUsed(lean_object*); +lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___lambda__1___closed__1; lean_object* l_Lean_Elab_Term_assignLevelMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__3; -lean_object* l___private_Lean_Elab_Inductive_22__collectUniverses___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_ElabHeaderResult_inhabited___closed__1; -lean_object* l_Lean_Elab_Command_checkValidCtorModifier___closed__11; lean_object* lean_mk_brec_on(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_22__collectUniverses(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_1__elabHeaderAux___main___lambda__1___closed__3; +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_forM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUsed___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_removeUnused___closed__1; +lean_object* l_Lean_Elab_Command_checkValidCtorModifier___lambda__1___closed__3; +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_removeUnused___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___lambda__2___boxed(lean_object**); +lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniverses___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_23__updateResultingUniverse___closed__2; -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_2__checkNumParams___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_8__eqvFirstTypeResult(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls_loop___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___lambda__1___closed__2; lean_object* l_Lean_Meta_instantiateLevelMVars___at_Lean_Elab_Command_shouldInferResultUniverse___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___lambda__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_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_shouldInferResultUniverse___closed__3; lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___closed__3; +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___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_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___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_name_mk_string(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_24__traceIndTypes___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_32__mkCtor2InferMod___boxed(lean_object*); -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_34__mkAuxConstructions___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* l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType(lean_object*); -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___closed__3; -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_2__checkNumParams___spec__1___closed__1; -lean_object* l_Nat_foldAux___main___at___private_Lean_Elab_Inductive_30__mkIndFVar2Const___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_1__elabHeaderAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkLevelNames___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2___lambda__1(lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1(uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_checkValidCtorModifier___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls_loop_match__1(lean_object*); +lean_object* l_Lean_Elab_Command_accLevelAtCtor_match__1(lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingType___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__1; +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkHeaders___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUsed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Level_getOffsetAux___main(lean_object*, lean_object*); -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_34__mkAuxConstructions___spec__2(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_getLocalInstances___at___private_Lean_Elab_Inductive_1__elabHeaderAux___main___spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___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_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateParams___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkCtor2InferMod___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_dbg_to_string(lean_object*); -lean_object* l___private_Lean_Elab_Inductive_23__updateResultingUniverse___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_27__withUsed___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at___private_Lean_Elab_Inductive_29__collectLevelParamsInInductive___spec__2(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_23__updateResultingUniverse___closed__1; -lean_object* l_List_forM___main___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__1; +lean_object* l_Lean_Meta_getLocalInstances___at_Lean_Elab_Term_removeUnused___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse_match__2(lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_shouldInferResultUniverse___closed__2; lean_object* l_Lean_Elab_Command_accLevelAtCtor___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_getLocalInstances___at___private_Lean_Elab_Inductive_1__elabHeaderAux___main___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_checkValidCtorModifier___closed__6; -uint8_t l_Array_isEmpty___rarg(lean_object*); -lean_object* l___private_Lean_Elab_Inductive_17__levelMVarToParamAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__4; -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkHeader_match__1(lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux(lean_object*, 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_foldlM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniverses___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_eqvFirstTypeResult(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_no_confusion(lean_object*, lean_object*); -lean_object* l_Lean_Meta_getLocalInstances___at___private_Lean_Elab_Inductive_1__elabHeaderAux___main___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_shouldInferResultUniverse___closed__5; +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams___spec__1___closed__1; +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_throwUnexpectedInductiveType(lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_20__forallTelescopeReducingImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_Lean_Ref___closed__2; +lean_object* l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1(lean_object*, size_t, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkLevelNames___spec__1___closed__3; lean_object* l_Lean_Elab_sortDeclLevelParams(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_accLevelAtCtor___main(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_withLCtx___at_Lean_Elab_Term_elabSyntheticHole___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__5; +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__2; +lean_object* l_Lean_Elab_Command_checkValidCtorModifier___lambda__3___closed__3; lean_object* l_Lean_Elab_Term_collectUsedFVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_let(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__2; +lean_object* l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Elab_Term_monadLog___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_34__mkAuxConstructions___closed__2; +lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkFreshLevelMVar___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); -lean_object* l___private_Lean_Elab_Inductive_28__updateParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Inductive_7__getResultingType___spec__1(lean_object*); +lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniverses___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType_match__1(lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +size_t lean_usize_of_nat(lean_object*); extern lean_object* l_Lean_registerClassAttr___closed__2; -lean_object* l___private_Lean_Elab_Inductive_10__checkHeader(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_1__elabHeaderAux___main___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__4; +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_isTypeFormerType___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_NameSet_empty; -lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidCtorModifier___closed__2; +lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2___lambda__1___boxed(lean_object*, lean_object*); 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_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__6(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Basic_21__forallBoundedTelescopeImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_1__elabHeaderAux___main___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__1; -lean_object* l___private_Lean_Elab_Inductive_30__mkIndFVar2Const___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_isExprDefEq___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkLevelMVar(lean_object*); +lean_object* l_Lean_Elab_Command_checkValidCtorModifier___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___lambda__2___closed__3; +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkHeaders_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkCtor2InferMod___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_proj(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabBinders___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_foldAux___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkIndFVar2Const___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___closed__2; +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_HashSet_Inhabited___closed__1; -lean_object* l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__2; -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_35__mkInductiveDecl___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams___spec__1___closed__2; +lean_object* l_Lean_Elab_Command_accLevelAtCtor___closed__2; +lean_object* l_Lean_Meta_isType___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_binduction_on(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withUsed___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkHeaders(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_mod(size_t, size_t); -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_2__checkNumParams___spec__1___closed__2; -lean_object* l___private_Lean_Elab_Inductive_32__mkCtor2InferMod(lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__3; +lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_shouldInferResultUniverse_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectLevelParamsInInductive(lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__4___closed__2; lean_object* l_Lean_Elab_Term_levelMVarToParam_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2___closed__3; lean_object* l_Lean_Elab_Term_resetMessageLog(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_shouldInferResultUniverse___closed__1; -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_33__applyInferMod___spec__1___closed__1; +lean_object* l_Lean_Meta_inferType___at_Lean_Elab_Term_removeUnused___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___closed__1; lean_object* l_Lean_Elab_Command_checkValidCtorModifier___closed__1; -uint8_t l_Array_contains___at_Lean_Elab_Command_accLevelAtCtor___main___spec__1(lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_28__updateParams___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_isInductiveFamily___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_ptr_addr(lean_object*); -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_33__applyInferMod___spec__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_IO_print___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_IO_print___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe___spec__1___closed__2; +lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__5___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidCtorModifier___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_29__collectLevelParamsInInductive___closed__1; -lean_object* l___private_Lean_Elab_Inductive_4__checkLevelNames(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_IO_getStdout___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__3___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_forM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUsed___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNamesImp___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___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* l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__3; +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__6; +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___closed__2; +lean_object* l_IO_getStdout___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_MetavarContext_2__visit___spec__1(lean_object*, lean_object*); lean_object* l_Lean_mkLevelSucc(lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1___lambda__2(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_11__checkHeaders___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkIndFVar2Const___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_sort(lean_object*, lean_object*); uint8_t l_Lean_Level_occurs___main(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_18__levelMVarToParam___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux_match__2(lean_object*); +uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_shouldInferResultUniverse___closed__4; +lean_object* l_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_InductiveView_inhabited___closed__1; -lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Command_accLevelAtCtor___main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at___private_Lean_Elab_Inductive_29__collectLevelParamsInInductive___spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___closed__1; +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_Lean_AddErrorMessageContext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__1; lean_object* l_Lean_Syntax_getArgs(lean_object*); -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_33__applyInferMod___spec__2(lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeader(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts_match__1(lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_eqvFirstTypeResult___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_IO_println___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkFreshLevelMVar___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_tmpIndParam___closed__3; -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_4__checkLevelNames___spec__1___closed__1; extern uint8_t l_Bool_Inhabited; -lean_object* l___private_Lean_Elab_Inductive_25__collectUsed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_34__mkAuxConstructions___closed__1; +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe___spec__1___closed__1; lean_object* lean_get_stdout(lean_object*); -lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_34__mkAuxConstructions___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_35__mkInductiveDecl___lambda__1(lean_object*, lean_object*, 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* l_Lean_Meta_getLevel___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1___lambda__3(uint8_t, uint8_t, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabInductiveViews___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_isType___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withUsed_match__1___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_Expr_ReplaceLevelImpl_initCache; extern lean_object* l_Std_HashMap_find_x21___rarg___closed__1; -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_4__checkLevelNames___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_shouldInferResultUniverse___closed__6; -lean_object* l___private_Lean_Elab_Inductive_7__getResultingType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_forM___main___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_removeUnused(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniverses(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingType___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__4; +lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__1(lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_getRef(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabInductiveViews___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_33__applyInferMod___spec__1(lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getLevel___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isFVar(lean_object*); lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_7__getResultingType___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___closed__2; +lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_elabLetDeclAux___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_throwUnexpectedInductiveType___rarg___closed__3; lean_object* l___private_Lean_Elab_Command_4__getVarDecls(lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateParams___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkLevelNames___spec__1___closed__1; lean_object* lean_expr_update_lambda(lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___closed__8; -lean_object* l_Lean_Elab_Command_checkValidCtorModifier___closed__7; -lean_object* l_IO_getStdout___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_12__elabHeader(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_3__checkUnsafe___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___closed__9; -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_17__levelMVarToParamAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_3__checkUnsafe___spec__1___closed__1; +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__4___closed__1; +lean_object* l_List_forM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUsed___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectLevelParamsInInductive___spec__1(lean_object*, lean_object*); lean_object* lean_mk_rec_on(lean_object*, lean_object*); -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_3__checkUnsafe___spec__1___closed__2; -lean_object* l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__1(lean_object*, size_t, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_removeUnused_match__1___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__5(lean_object*, size_t, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux_match__1(lean_object*); lean_object* l_Array_toList___rarg(lean_object*); -lean_object* l_Lean_MetavarContext_MkBinding_mkBinding(uint8_t, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*); lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___closed__1; -lean_object* l___private_Lean_Elab_Inductive_33__applyInferMod___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwError___at___private_Lean_Elab_Command_3__elabCommandUsing___main___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkCtor2InferMod___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_Inhabited; +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_CtorView_inhabited___closed__1; -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_22__collectUniverses___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_IO_print___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkFreshLevelMVar___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_28__updateParams___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_Command_checkValidInductiveModifier___closed__4; -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_33__applyInferMod___spec__2___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParamAux___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateParams___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParamAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_forM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUsed___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_CtorView_inhabited___closed__2; -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_34__mkAuxConstructions___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Level_replace___main(lean_object*, lean_object*); -lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__2; -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__7; -lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__1(lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*); -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_2__checkNumParams___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__2___lambda__1(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidCtorModifier___closed__3; -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_25__collectUsed___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_checkValidCtorModifier___closed__5; -lean_object* l_Lean_Meta_mkFreshLevelMVar___at_Lean_Elab_Term_ensureType___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_33__applyInferMod(lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_foldAux___main___at___private_Lean_Elab_Inductive_30__mkIndFVar2Const___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Inductive_7__getResultingType___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl_match__1(lean_object*); +uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Command_accLevelAtCtor___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___lambda__1___closed__3; lean_object* l_Lean_Expr_inferImplicit___main(lean_object*, lean_object*, uint8_t); -lean_object* l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__3(lean_object*, size_t, lean_object*, lean_object*); -lean_object* l_List_forM___main___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Inductive_32__mkCtor2InferMod___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_26__removeUnused(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_accLevelAtCtor_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkHeader_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateParams___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidCtorModifier(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_System_FilePath_dirName___closed__1; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_18__levelMVarToParam(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniverses___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_forM___main___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_15__isInductiveFamily___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_4__checkLevelNames___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectLevelParamsInInductive___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); lean_object* l_Lean_Level_mkNaryMax___main(lean_object*); lean_object* l_Lean_mkLevelParam(lean_object*); +lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_app(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__2(lean_object*); -lean_object* l_Lean_Meta_getLocalInstances___at___private_Lean_Elab_Inductive_1__elabHeaderAux___main___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_35__mkInductiveDecl___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkCtor2InferMod___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_level_eq(lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___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*); +uint8_t l_Array_contains___at_Lean_Elab_Command_accLevelAtCtor___spec__1(lean_object*, lean_object*); lean_object* l_Lean_indentExpr(lean_object*); -lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_20__elabImplicitLambda___main___spec__1___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___rarg(lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_shouldInferResultUniverse_match__1(lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParamAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls_loop___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_35__mkInductiveDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingType___closed__1; +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___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* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5___closed__4; +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkHeader(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidInductiveModifier(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); +lean_object* l_Std_Range_forIn_loop___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*, lean_object*); +lean_object* l_List_forM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_tmpIndParam; -lean_object* l_List_forM___main___at___private_Lean_Elab_Inductive_25__collectUsed___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabInductiveViews___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_insert___at_Lean_ClassState_addEntry___spec__6(lean_object*, lean_object*, uint8_t); lean_object* l_Lean_CollectLevelParams_main___main(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_15__isInductiveFamily___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_17__levelMVarToParamAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_35__mkInductiveDecl___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_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_elabLetDeclAux___spec__3___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_isInductiveFamily___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls_loop(lean_object*); +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__2___closed__2; +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe___spec__1___closed__3; lean_object* lean_expr_update_const(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_checkValidCtorModifier___closed__12; -lean_object* l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__5; -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Inductive_14__withInductiveLocalDecls___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___main___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__2___closed__1; +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1___lambda__1(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_checkValidCtorModifier___lambda__2___closed__3; +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux_match__2(lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUsed___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkLevelNames___spec__1___closed__2; extern lean_object* l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__1; -lean_object* l_List_forM___main___at___private_Lean_Elab_Inductive_25__collectUsed___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__3; +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5___closed__1; +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls_loop_match__1___rarg(lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5___closed__2; +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType_match__2(lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_ReplaceImpl_initCache; -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_28__updateParams___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); +extern lean_object* l_List_forInAux___main___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars___spec__1___closed__2; +lean_object* l_IO_print___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___closed__1; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_3__checkUnsafe(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* _init_l_Lean_Elab_Command_checkValidInductiveModifier___closed__1() { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkLevelNames___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_5 = l_Lean_Elab_Command_getRef(x_2, x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = lean_ctor_get(x_2, 4); +lean_inc(x_8); +lean_inc(x_8); +x_9 = l_Lean_Elab_getBetterRef(x_6, x_8); +lean_dec(x_6); +x_10 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_Lean_AddMessageContext___spec__1(x_1, x_2, x_3, x_7); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_Lean_AddErrorMessageContext___spec__1(x_11, x_8, x_2, x_3, x_12); +lean_dec(x_2); +lean_dec(x_8); +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_13, 0); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_9); +lean_ctor_set(x_16, 1, x_15); +lean_ctor_set_tag(x_13, 1); +lean_ctor_set(x_13, 0, x_16); +return x_13; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_ctor_get(x_13, 0); +x_18 = lean_ctor_get(x_13, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_13); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_9); +lean_ctor_set(x_19, 1, x_17); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +return x_20; +} +} +} +lean_object* l_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1___rarg___boxed), 4, 0); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Command_checkValidInductiveModifier___lambda__1___closed__1() { _start: { lean_object* x_1; @@ -468,6 +596,164 @@ x_1 = lean_mk_string("invalid use of attributes in inductive declaration"); return x_1; } } +static lean_object* _init_l_Lean_Elab_Command_checkValidInductiveModifier___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Command_checkValidInductiveModifier___lambda__1___closed__1; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Command_checkValidInductiveModifier___lambda__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Command_checkValidInductiveModifier___lambda__1___closed__2; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___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_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_12 = lean_ctor_get(x_1, 1); +x_13 = lean_array_get_size(x_12); +x_14 = lean_unsigned_to_nat(0u); +x_15 = lean_nat_dec_eq(x_13, x_14); +if (x_15 == 0) +{ +lean_object* x_16; uint8_t x_17; +x_16 = lean_unsigned_to_nat(1u); +x_17 = lean_nat_dec_eq(x_13, x_16); +lean_dec(x_13); +if (x_17 == 0) +{ +x_6 = x_15; +goto block_11; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_18 = l_Lean_Elab_Attribute_inhabited; +x_19 = lean_array_get(x_18, x_12, x_14); +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +lean_dec(x_19); +x_21 = l_Lean_registerClassAttr___closed__2; +x_22 = lean_name_eq(x_20, x_21); +lean_dec(x_20); +x_6 = x_22; +goto block_11; +} +} +else +{ +uint8_t x_23; +lean_dec(x_13); +x_23 = 1; +x_6 = x_23; +goto block_11; +} +block_11: +{ +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; +x_7 = l_Lean_Elab_Command_checkValidInductiveModifier___lambda__1___closed__3; +x_8 = l_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1___rarg(x_7, x_3, x_4, x_5); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; +lean_dec(x_3); +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_5); +return x_10; +} +} +} +} +static lean_object* _init_l_Lean_Elab_Command_checkValidInductiveModifier___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("invalid use of 'partial' in inductive declaration"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_checkValidInductiveModifier___lambda__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Command_checkValidInductiveModifier___lambda__2___closed__1; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Command_checkValidInductiveModifier___lambda__2___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Command_checkValidInductiveModifier___lambda__2___closed__2; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___lambda__2(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_ctor_get_uint8(x_1, sizeof(void*)*2 + 2); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; +x_7 = lean_box(0); +x_8 = l_Lean_Elab_Command_checkValidInductiveModifier___lambda__1(x_1, x_7, x_3, x_4, x_5); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_9 = l_Lean_Elab_Command_checkValidInductiveModifier___lambda__2___closed__3; +x_10 = l_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1___rarg(x_9, x_3, x_4, x_5); +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(1, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +return x_14; +} +} +} +} +static lean_object* _init_l_Lean_Elab_Command_checkValidInductiveModifier___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("invalid use of 'noncomputable' in inductive declaration"); +return x_1; +} +} static lean_object* _init_l_Lean_Elab_Command_checkValidInductiveModifier___closed__2() { _start: { @@ -488,221 +774,73 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Command_checkValidInductiveModifier___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("invalid use of 'partial' in inductive declaration"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_checkValidInductiveModifier___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_checkValidInductiveModifier___closed__4; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Command_checkValidInductiveModifier___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_checkValidInductiveModifier___closed__5; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Command_checkValidInductiveModifier___closed__7() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("invalid use of 'noncomputable' in inductive declaration"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_checkValidInductiveModifier___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_checkValidInductiveModifier___closed__7; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Command_checkValidInductiveModifier___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_checkValidInductiveModifier___closed__8; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} lean_object* l_Lean_Elab_Command_checkValidInductiveModifier(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; uint8_t x_34; -x_34 = lean_ctor_get_uint8(x_1, sizeof(void*)*2 + 1); -if (x_34 == 0) +uint8_t x_5; +x_5 = lean_ctor_get_uint8(x_1, sizeof(void*)*2 + 1); +if (x_5 == 0) { -uint8_t x_35; -x_35 = lean_ctor_get_uint8(x_1, sizeof(void*)*2 + 2); -if (x_35 == 0) -{ -x_5 = x_4; -goto block_33; +lean_object* x_6; lean_object* x_7; +x_6 = lean_box(0); +x_7 = l_Lean_Elab_Command_checkValidInductiveModifier___lambda__2(x_1, x_6, x_2, x_3, x_4); +return x_7; } else { -lean_object* x_36; lean_object* x_37; uint8_t x_38; -x_36 = l_Lean_Elab_Command_checkValidInductiveModifier___closed__6; -x_37 = l_Lean_throwError___at___private_Lean_Elab_Command_3__elabCommandUsing___main___spec__1___rarg(x_36, x_2, x_3, x_4); -x_38 = !lean_is_exclusive(x_37); -if (x_38 == 0) +lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_8 = l_Lean_Elab_Command_checkValidInductiveModifier___closed__3; +x_9 = l_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1___rarg(x_8, x_2, x_3, x_4); +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) { -return x_37; +return x_9; } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_37, 0); -x_40 = lean_ctor_get(x_37, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_37); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -return x_41; -} -} -} -else -{ -lean_object* x_42; lean_object* x_43; uint8_t x_44; -x_42 = l_Lean_Elab_Command_checkValidInductiveModifier___closed__9; -x_43 = l_Lean_throwError___at___private_Lean_Elab_Command_3__elabCommandUsing___main___spec__1___rarg(x_42, x_2, x_3, x_4); -x_44 = !lean_is_exclusive(x_43); -if (x_44 == 0) -{ -return x_43; -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_43, 0); -x_46 = lean_ctor_get(x_43, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_43); -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; -} -} -block_33: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_6 = lean_ctor_get(x_1, 1); -x_7 = lean_array_get_size(x_6); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_nat_dec_eq(x_7, x_8); -if (x_9 == 0) -{ -lean_object* x_10; uint8_t x_11; -x_10 = lean_unsigned_to_nat(1u); -x_11 = lean_nat_dec_eq(x_7, x_10); -lean_dec(x_7); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_12 = l_Lean_Elab_Command_checkValidInductiveModifier___closed__3; -x_13 = l_Lean_throwError___at___private_Lean_Elab_Command_3__elabCommandUsing___main___spec__1___rarg(x_12, x_2, x_3, x_5); -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) -{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_9, 0); +x_12 = lean_ctor_get(x_9, 1); +lean_inc(x_12); +lean_inc(x_11); +lean_dec(x_9); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_12); return x_13; } -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_13, 0); -x_16 = lean_ctor_get(x_13, 1); -lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_13); -x_17 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_17, 0, x_15); -lean_ctor_set(x_17, 1, x_16); -return x_17; } } -else -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; -x_18 = l_Lean_Elab_Attribute_inhabited; -x_19 = lean_array_get(x_18, x_6, x_8); -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -lean_dec(x_19); -x_21 = l_Lean_registerClassAttr___closed__2; -x_22 = lean_name_eq(x_20, x_21); -lean_dec(x_20); -if (x_22 == 0) -{ -lean_object* x_23; lean_object* x_24; uint8_t x_25; -x_23 = l_Lean_Elab_Command_checkValidInductiveModifier___closed__3; -x_24 = l_Lean_throwError___at___private_Lean_Elab_Command_3__elabCommandUsing___main___spec__1___rarg(x_23, x_2, x_3, x_5); -x_25 = !lean_is_exclusive(x_24); -if (x_25 == 0) -{ -return x_24; } -else +lean_object* l_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: { -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_object* x_5; +x_5 = l_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1___rarg(x_1, x_2, x_3, x_4); +lean_dec(x_3); +return x_5; } } -else +lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___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_29; lean_object* x_30; +lean_object* x_6; +x_6 = l_Lean_Elab_Command_checkValidInductiveModifier___lambda__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); lean_dec(x_2); -x_29 = lean_box(0); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_5); -return x_30; +lean_dec(x_1); +return x_6; } } -} -else +lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: { -lean_object* x_31; lean_object* x_32; -lean_dec(x_7); +lean_object* x_6; +x_6 = l_Lean_Elab_Command_checkValidInductiveModifier___lambda__2(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); lean_dec(x_2); -x_31 = lean_box(0); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_5); -return x_32; -} -} +lean_dec(x_1); +return x_6; } } lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { @@ -715,7 +853,7 @@ lean_dec(x_1); return x_5; } } -static lean_object* _init_l_Lean_Elab_Command_checkValidCtorModifier___closed__1() { +static lean_object* _init_l_Lean_Elab_Command_checkValidCtorModifier___lambda__1___closed__1() { _start: { lean_object* x_1; @@ -723,6 +861,194 @@ x_1 = lean_mk_string("invalid use of attributes in constructor declaration"); return x_1; } } +static lean_object* _init_l_Lean_Elab_Command_checkValidCtorModifier___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Command_checkValidCtorModifier___lambda__1___closed__1; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Command_checkValidCtorModifier___lambda__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Command_checkValidCtorModifier___lambda__1___closed__2; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_checkValidCtorModifier___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_6 = lean_ctor_get(x_1, 1); +x_7 = lean_array_get_size(x_6); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_nat_dec_eq(x_7, x_8); +lean_dec(x_7); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = l_Lean_Elab_Command_checkValidCtorModifier___lambda__1___closed__3; +x_11 = l_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1___rarg(x_10, x_3, x_4, x_5); +return x_11; +} +else +{ +lean_object* x_12; lean_object* x_13; +lean_dec(x_3); +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_5); +return x_13; +} +} +} +static lean_object* _init_l_Lean_Elab_Command_checkValidCtorModifier___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("invalid use of 'unsafe' in constructor declaration"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_checkValidCtorModifier___lambda__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Command_checkValidCtorModifier___lambda__2___closed__1; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Command_checkValidCtorModifier___lambda__2___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Command_checkValidCtorModifier___lambda__2___closed__2; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_checkValidCtorModifier___lambda__2(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_ctor_get_uint8(x_1, sizeof(void*)*2 + 3); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; +x_7 = lean_box(0); +x_8 = l_Lean_Elab_Command_checkValidCtorModifier___lambda__1(x_1, x_7, x_3, x_4, x_5); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_9 = l_Lean_Elab_Command_checkValidCtorModifier___lambda__2___closed__3; +x_10 = l_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1___rarg(x_9, x_3, x_4, x_5); +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(1, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +return x_14; +} +} +} +} +static lean_object* _init_l_Lean_Elab_Command_checkValidCtorModifier___lambda__3___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("invalid use of 'partial' in constructor declaration"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_checkValidCtorModifier___lambda__3___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Command_checkValidCtorModifier___lambda__3___closed__1; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Command_checkValidCtorModifier___lambda__3___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Command_checkValidCtorModifier___lambda__3___closed__2; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_checkValidCtorModifier___lambda__3(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_ctor_get_uint8(x_1, sizeof(void*)*2 + 2); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; +x_7 = lean_box(0); +x_8 = l_Lean_Elab_Command_checkValidCtorModifier___lambda__2(x_1, x_7, x_3, x_4, x_5); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_9 = l_Lean_Elab_Command_checkValidCtorModifier___lambda__3___closed__3; +x_10 = l_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1___rarg(x_9, x_3, x_4, x_5); +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(1, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +return x_14; +} +} +} +} +static lean_object* _init_l_Lean_Elab_Command_checkValidCtorModifier___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("invalid use of 'noncomputable' in constructor declaration"); +return x_1; +} +} static lean_object* _init_l_Lean_Elab_Command_checkValidCtorModifier___closed__2() { _start: { @@ -743,225 +1069,75 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Command_checkValidCtorModifier___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("invalid use of 'unsafe' in constructor declaration"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_checkValidCtorModifier___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_checkValidCtorModifier___closed__4; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Command_checkValidCtorModifier___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_checkValidCtorModifier___closed__5; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Command_checkValidCtorModifier___closed__7() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("invalid use of 'partial' in constructor declaration"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_checkValidCtorModifier___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_checkValidCtorModifier___closed__7; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Command_checkValidCtorModifier___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_checkValidCtorModifier___closed__8; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Command_checkValidCtorModifier___closed__10() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("invalid use of 'noncomputable' in constructor declaration"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_checkValidCtorModifier___closed__11() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_checkValidCtorModifier___closed__10; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Command_checkValidCtorModifier___closed__12() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_checkValidCtorModifier___closed__11; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} lean_object* l_Lean_Elab_Command_checkValidCtorModifier(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; uint8_t x_26; -x_26 = lean_ctor_get_uint8(x_1, sizeof(void*)*2 + 1); -if (x_26 == 0) +uint8_t x_5; +x_5 = lean_ctor_get_uint8(x_1, sizeof(void*)*2 + 1); +if (x_5 == 0) { -uint8_t x_27; -x_27 = lean_ctor_get_uint8(x_1, sizeof(void*)*2 + 2); -if (x_27 == 0) -{ -x_5 = x_4; -goto block_25; +lean_object* x_6; lean_object* x_7; +x_6 = lean_box(0); +x_7 = l_Lean_Elab_Command_checkValidCtorModifier___lambda__3(x_1, x_6, x_2, x_3, x_4); +return x_7; } else { -lean_object* x_28; lean_object* x_29; uint8_t x_30; -x_28 = l_Lean_Elab_Command_checkValidCtorModifier___closed__9; -x_29 = l_Lean_throwError___at___private_Lean_Elab_Command_3__elabCommandUsing___main___spec__1___rarg(x_28, x_2, x_3, x_4); -x_30 = !lean_is_exclusive(x_29); -if (x_30 == 0) -{ -return x_29; -} -else -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_29, 0); -x_32 = lean_ctor_get(x_29, 1); -lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_29); -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; -} -} -} -else -{ -lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_34 = l_Lean_Elab_Command_checkValidCtorModifier___closed__12; -x_35 = l_Lean_throwError___at___private_Lean_Elab_Command_3__elabCommandUsing___main___spec__1___rarg(x_34, x_2, x_3, x_4); -x_36 = !lean_is_exclusive(x_35); -if (x_36 == 0) -{ -return x_35; -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_35, 0); -x_38 = lean_ctor_get(x_35, 1); -lean_inc(x_38); -lean_inc(x_37); -lean_dec(x_35); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set(x_39, 1, x_38); -return x_39; -} -} -block_25: -{ -uint8_t x_6; -x_6 = lean_ctor_get_uint8(x_1, sizeof(void*)*2 + 3); -if (x_6 == 0) -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; -x_7 = lean_ctor_get(x_1, 1); -x_8 = lean_array_get_size(x_7); -x_9 = lean_unsigned_to_nat(0u); -x_10 = lean_nat_dec_eq(x_8, x_9); -lean_dec(x_8); +lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_8 = l_Lean_Elab_Command_checkValidCtorModifier___closed__3; +x_9 = l_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1___rarg(x_8, x_2, x_3, x_4); +x_10 = !lean_is_exclusive(x_9); if (x_10 == 0) { -lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_11 = l_Lean_Elab_Command_checkValidCtorModifier___closed__3; -x_12 = l_Lean_throwError___at___private_Lean_Elab_Command_3__elabCommandUsing___main___spec__1___rarg(x_11, x_2, x_3, x_5); -x_13 = !lean_is_exclusive(x_12); -if (x_13 == 0) -{ -return x_12; +return x_9; } 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); -lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_12); -x_16 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_14); -lean_ctor_set(x_16, 1, x_15); -return x_16; +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_9, 0); +x_12 = lean_ctor_get(x_9, 1); +lean_inc(x_12); +lean_inc(x_11); +lean_dec(x_9); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_12); +return x_13; } } -else +} +} +lean_object* l_Lean_Elab_Command_checkValidCtorModifier___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_17; lean_object* x_18; +lean_object* x_6; +x_6 = l_Lean_Elab_Command_checkValidCtorModifier___lambda__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); lean_dec(x_2); -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_5); -return x_18; +lean_dec(x_1); +return x_6; } } -else +lean_object* l_Lean_Elab_Command_checkValidCtorModifier___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: { -lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_19 = l_Lean_Elab_Command_checkValidCtorModifier___closed__6; -x_20 = l_Lean_throwError___at___private_Lean_Elab_Command_3__elabCommandUsing___main___spec__1___rarg(x_19, x_2, x_3, x_5); -x_21 = !lean_is_exclusive(x_20); -if (x_21 == 0) +lean_object* x_6; +x_6 = l_Lean_Elab_Command_checkValidCtorModifier___lambda__2(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_6; +} +} +lean_object* l_Lean_Elab_Command_checkValidCtorModifier___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: { -return x_20; -} -else -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_20, 0); -x_23 = lean_ctor_get(x_20, 1); -lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_20); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -return x_24; -} -} -} +lean_object* x_6; +x_6 = l_Lean_Elab_Command_checkValidCtorModifier___lambda__3(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_6; } } lean_object* l_Lean_Elab_Command_checkValidCtorModifier___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { @@ -1074,27 +1250,149 @@ x_1 = l_Lean_Elab_Command_ElabHeaderResult_inhabited___closed__1; return x_1; } } -lean_object* l_Lean_Meta_getLocalInstances___at___private_Lean_Elab_Inductive_1__elabHeaderAux___main___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* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ lean_object* x_6; lean_object* x_7; -x_6 = lean_ctor_get(x_1, 2); +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); lean_inc(x_6); -x_7 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_7, 0, x_6); -lean_ctor_set(x_7, 1, x_5); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); return x_7; } } -lean_object* l_Lean_Meta_getLocalInstances___at___private_Lean_Elab_Inductive_1__elabHeaderAux___main___spec__1(lean_object* x_1, lean_object* x_2) { +} +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux_match__1(lean_object* x_1) { _start: { -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Lean_Meta_getLocalInstances___at___private_Lean_Elab_Inductive_1__elabHeaderAux___main___spec__1___rarg___boxed), 5, 0); -return x_3; +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux_match__1___rarg), 3, 0); +return x_2; } } -lean_object* l_Lean_Meta_isTypeFormerType___at___private_Lean_Elab_Inductive_1__elabHeaderAux___main___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* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_apply_2(x_3, x_1, x_2); +return x_4; +} +} +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_mkFreshLevelMVar___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_5 = l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___rarg(x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = lean_st_ref_take(x_1, x_7); +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +lean_dec(x_8); +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_12 = lean_ctor_get(x_9, 0); +lean_inc(x_6); +x_13 = l_Lean_MetavarContext_addLevelMVarDecl(x_12, x_6); +lean_ctor_set(x_9, 0, x_13); +x_14 = lean_st_ref_set(x_1, x_9, x_10); +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_14, 0); +lean_dec(x_16); +x_17 = l_Lean_mkLevelMVar(x_6); +lean_ctor_set(x_14, 0, x_17); +return x_14; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_14, 1); +lean_inc(x_18); +lean_dec(x_14); +x_19 = l_Lean_mkLevelMVar(x_6); +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; +} +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_21 = lean_ctor_get(x_9, 0); +x_22 = lean_ctor_get(x_9, 1); +x_23 = lean_ctor_get(x_9, 2); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_9); +lean_inc(x_6); +x_24 = l_Lean_MetavarContext_addLevelMVarDecl(x_21, x_6); +x_25 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_22); +lean_ctor_set(x_25, 2, x_23); +x_26 = lean_st_ref_set(x_1, x_25, x_10); +x_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +if (lean_is_exclusive(x_26)) { + lean_ctor_release(x_26, 0); + lean_ctor_release(x_26, 1); + x_28 = x_26; +} else { + lean_dec_ref(x_26); + x_28 = lean_box(0); +} +x_29 = l_Lean_mkLevelMVar(x_6); +if (lean_is_scalar(x_28)) { + x_30 = lean_alloc_ctor(0, 2, 0); +} else { + x_30 = x_28; +} +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_27); +return x_30; +} +} +} +lean_object* l_Lean_Meta_mkFreshLevelMVar___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_alloc_closure((void*)(l_Lean_Meta_mkFreshLevelMVar___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__1___rarg___boxed), 4, 0); +return x_4; +} +} +lean_object* l_Lean_Meta_isTypeFormerType___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___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; @@ -1102,7 +1400,24 @@ x_9 = l___private_Lean_Meta_InferType_22__isTypeFormerTypeImp___main(x_1, x_4, x return x_9; } } -static lean_object* _init_l___private_Lean_Elab_Inductive_1__elabHeaderAux___main___lambda__1___closed__1() { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +_start: +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_17 = lean_unsigned_to_nat(1u); +x_18 = lean_nat_add(x_1, x_17); +x_19 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_19, 0, x_2); +lean_ctor_set(x_19, 1, x_3); +lean_ctor_set(x_19, 2, x_4); +lean_ctor_set(x_19, 3, x_5); +lean_ctor_set(x_19, 4, x_6); +x_20 = lean_array_push(x_7, x_19); +x_21 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux(x_8, x_18, x_20, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +return x_21; +} +} +static lean_object* _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -1110,33 +1425,33 @@ x_1 = lean_mk_string("invalid inductive type, resultant type is not a sort"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Inductive_1__elabHeaderAux___main___lambda__1___closed__2() { +static lean_object* _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Inductive_1__elabHeaderAux___main___lambda__1___closed__1; +x_1 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Inductive_1__elabHeaderAux___main___lambda__1___closed__3() { +static lean_object* _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Inductive_1__elabHeaderAux___main___lambda__1___closed__2; +x_1 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Inductive_1__elabHeaderAux___main___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; lean_object* x_14; lean_object* x_15; x_13 = lean_ctor_get(x_8, 1); lean_inc(x_13); -x_14 = l_Lean_Meta_getLocalInstances___at___private_Lean_Elab_Inductive_1__elabHeaderAux___main___spec__1___rarg(x_8, x_9, x_10, x_11, x_12); +x_14 = l_Lean_Meta_getLocalInstances___at_Lean_Elab_Term_removeUnused___spec__1___rarg(x_8, x_9, x_10, x_11, x_12); x_15 = lean_ctor_get(x_1, 6); lean_inc(x_15); if (lean_obj_tag(x_15) == 0) @@ -1147,7 +1462,7 @@ lean_inc(x_16); x_17 = lean_ctor_get(x_14, 1); lean_inc(x_17); lean_dec(x_14); -x_18 = l_Lean_Meta_mkFreshLevelMVar___at_Lean_Elab_Term_ensureType___spec__2___rarg(x_9, x_10, x_11, x_17); +x_18 = l_Lean_Meta_mkFreshLevelMVar___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__1___rarg(x_9, x_10, x_11, x_17); x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); x_20 = lean_ctor_get(x_18, 1); @@ -1164,7 +1479,7 @@ lean_ctor_set(x_25, 2, x_16); lean_ctor_set(x_25, 3, x_5); lean_ctor_set(x_25, 4, x_22); x_26 = lean_array_push(x_3, x_25); -x_27 = l___private_Lean_Elab_Inductive_1__elabHeaderAux___main(x_4, x_24, x_26, x_6, x_7, x_8, x_9, x_10, x_11, x_20); +x_27 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux(x_4, x_24, x_26, x_6, x_7, x_8, x_9, x_10, x_11, x_20); return x_27; } else @@ -1222,8 +1537,8 @@ lean_dec(x_1); x_39 = lean_ctor_get(x_36, 1); lean_inc(x_39); lean_dec(x_36); -x_40 = l___private_Lean_Elab_Inductive_1__elabHeaderAux___main___lambda__1___closed__3; -x_41 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_30, x_40, x_6, x_7, x_8, x_9, x_10, x_11, x_39); +x_40 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2___closed__3; +x_41 = l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2___rarg(x_30, x_40, x_6, x_7, x_8, x_9, x_10, x_11, x_39); lean_dec(x_11); lean_dec(x_9); lean_dec(x_8); @@ -1250,27 +1565,19 @@ return x_45; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_dec(x_30); x_46 = lean_ctor_get(x_36, 1); lean_inc(x_46); lean_dec(x_36); -x_47 = lean_unsigned_to_nat(1u); -x_48 = lean_nat_add(x_2, x_47); -x_49 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_49, 0, x_1); -lean_ctor_set(x_49, 1, x_13); -lean_ctor_set(x_49, 2, x_28); -lean_ctor_set(x_49, 3, x_5); -lean_ctor_set(x_49, 4, x_34); -x_50 = lean_array_push(x_3, x_49); -x_51 = l___private_Lean_Elab_Inductive_1__elabHeaderAux___main(x_4, x_48, x_50, x_6, x_7, x_8, x_9, x_10, x_11, x_46); -return x_51; +x_47 = lean_box(0); +x_48 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1(x_2, x_1, x_13, x_28, x_5, x_34, x_3, x_4, x_47, x_6, x_7, x_8, x_9, x_10, x_11, x_46); +return x_48; } } else { -uint8_t x_52; +uint8_t x_49; lean_dec(x_34); lean_dec(x_30); lean_dec(x_28); @@ -1285,29 +1592,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_52 = !lean_is_exclusive(x_36); -if (x_52 == 0) +x_49 = !lean_is_exclusive(x_36); +if (x_49 == 0) { return x_36; } else { -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_36, 0); -x_54 = lean_ctor_get(x_36, 1); -lean_inc(x_54); -lean_inc(x_53); +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_36, 0); +x_51 = lean_ctor_get(x_36, 1); +lean_inc(x_51); +lean_inc(x_50); lean_dec(x_36); -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; +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +return x_52; } } } else { -uint8_t x_56; +uint8_t x_53; lean_dec(x_30); lean_dec(x_28); lean_dec(x_13); @@ -1321,29 +1628,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_56 = !lean_is_exclusive(x_33); -if (x_56 == 0) +x_53 = !lean_is_exclusive(x_33); +if (x_53 == 0) { return x_33; } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_33, 0); -x_58 = lean_ctor_get(x_33, 1); -lean_inc(x_58); -lean_inc(x_57); +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_33, 0); +x_55 = lean_ctor_get(x_33, 1); +lean_inc(x_55); +lean_inc(x_54); lean_dec(x_33); -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; +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; } } } } } -lean_object* l___private_Lean_Elab_Inductive_1__elabHeaderAux___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, lean_object* x_10) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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; uint8_t x_12; @@ -1374,7 +1681,7 @@ x_15 = lean_ctor_get(x_14, 5); lean_inc(x_15); x_16 = l_Lean_Syntax_getArgs(x_15); lean_dec(x_15); -x_17 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_1__elabHeaderAux___main___lambda__1___boxed), 12, 4); +x_17 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2___boxed), 12, 4); lean_closure_set(x_17, 0, x_14); lean_closure_set(x_17, 1, x_2); lean_closure_set(x_17, 2, x_3); @@ -1385,56 +1692,58 @@ return x_18; } } } -lean_object* l_Lean_Meta_getLocalInstances___at___private_Lean_Elab_Inductive_1__elabHeaderAux___main___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* l_Lean_Meta_mkFreshLevelMVar___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; -x_6 = l_Lean_Meta_getLocalInstances___at___private_Lean_Elab_Inductive_1__elabHeaderAux___main___spec__1___rarg(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); +lean_object* x_5; +x_5 = l_Lean_Meta_mkFreshLevelMVar___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__1___rarg(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -return x_6; +return x_5; } } -lean_object* l_Lean_Meta_getLocalInstances___at___private_Lean_Elab_Inductive_1__elabHeaderAux___main___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Meta_mkFreshLevelMVar___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_3; -x_3 = l_Lean_Meta_getLocalInstances___at___private_Lean_Elab_Inductive_1__elabHeaderAux___main___spec__1(x_1, x_2); +lean_object* x_4; +x_4 = l_Lean_Meta_mkFreshLevelMVar___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__1(x_1, x_2, x_3); +lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -return x_3; +return x_4; } } -lean_object* l_Lean_Meta_isTypeFormerType___at___private_Lean_Elab_Inductive_1__elabHeaderAux___main___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* l_Lean_Meta_isTypeFormerType___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l_Lean_Meta_isTypeFormerType___at___private_Lean_Elab_Inductive_1__elabHeaderAux___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_Meta_isTypeFormerType___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_3); lean_dec(x_2); return x_9; } } -lean_object* l___private_Lean_Elab_Inductive_1__elabHeaderAux___main___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +_start: +{ +lean_object* x_17; +x_17 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +lean_dec(x_9); +lean_dec(x_1); +return x_17; +} +} +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; -x_13 = l___private_Lean_Elab_Inductive_1__elabHeaderAux___main___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_13 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_2); return x_13; } } -lean_object* l___private_Lean_Elab_Inductive_1__elabHeaderAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l___private_Lean_Elab_Inductive_1__elabHeaderAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_11; -} -} -static lean_object* _init_l_Array_forMAux___main___at___private_Lean_Elab_Inductive_2__checkNumParams___spec__1___closed__1() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams___spec__1___closed__1() { _start: { lean_object* x_1; @@ -1442,49 +1751,46 @@ x_1 = lean_mk_string("invalid inductive type, number of parameters mismatch in m return x_1; } } -static lean_object* _init_l_Array_forMAux___main___at___private_Lean_Elab_Inductive_2__checkNumParams___spec__1___closed__2() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams___spec__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forMAux___main___at___private_Lean_Elab_Inductive_2__checkNumParams___spec__1___closed__1; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams___spec__1___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Array_forMAux___main___at___private_Lean_Elab_Inductive_2__checkNumParams___spec__1___closed__3() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams___spec__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forMAux___main___at___private_Lean_Elab_Inductive_2__checkNumParams___spec__1___closed__2; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams___spec__1___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_2__checkNumParams___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* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams___spec__1(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { -lean_object* x_11; uint8_t x_12; -x_11 = lean_array_get_size(x_2); -x_12 = lean_nat_dec_lt(x_3, x_11); -lean_dec(x_11); -if (x_12 == 0) +uint8_t x_13; +x_13 = x_4 < x_3; +if (x_13 == 0) { -lean_object* x_13; lean_object* x_14; -lean_dec(x_8); -lean_dec(x_4); -lean_dec(x_3); -x_13 = lean_box(0); +lean_object* x_14; +lean_dec(x_10); +lean_dec(x_6); x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_13); -lean_ctor_set(x_14, 1, x_10); +lean_ctor_set(x_14, 0, x_5); +lean_ctor_set(x_14, 1, x_12); return x_14; } else { lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_15 = lean_array_fget(x_2, x_3); +lean_dec(x_5); +x_15 = lean_array_uget(x_2, x_4); x_16 = lean_ctor_get(x_15, 3); lean_inc(x_16); x_17 = lean_array_get_size(x_16); @@ -1494,15 +1800,14 @@ lean_dec(x_17); if (x_18 == 0) { lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; -lean_dec(x_3); x_19 = lean_ctor_get(x_15, 0); lean_inc(x_19); lean_dec(x_15); x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); lean_dec(x_19); -x_21 = l_Array_forMAux___main___at___private_Lean_Elab_Inductive_2__checkNumParams___spec__1___closed__3; -x_22 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_20, x_21, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_21 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams___spec__1___closed__3; +x_22 = l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2___rarg(x_20, x_21, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_20); x_23 = !lean_is_exclusive(x_22); if (x_23 == 0) @@ -1525,21 +1830,22 @@ return x_26; } else { -lean_object* x_27; lean_object* x_28; +size_t x_27; size_t x_28; lean_object* x_29; lean_dec(x_15); -x_27 = lean_unsigned_to_nat(1u); -x_28 = lean_nat_add(x_3, x_27); -lean_dec(x_3); -x_3 = x_28; +x_27 = 1; +x_28 = x_4 + x_27; +x_29 = lean_box(0); +x_4 = x_28; +x_5 = x_29; goto _start; } } } } -lean_object* l___private_Lean_Elab_Inductive_2__checkNumParams(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams(lean_object* x_1, lean_object* x_2, 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_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; size_t x_15; size_t x_16; lean_object* x_17; lean_object* x_18; x_9 = l_Lean_Elab_Command_ElabHeaderResult_inhabited; x_10 = lean_unsigned_to_nat(0u); x_11 = lean_array_get(x_9, x_1, x_10); @@ -1548,75 +1854,84 @@ lean_inc(x_12); lean_dec(x_11); x_13 = lean_array_get_size(x_12); lean_dec(x_12); -x_14 = l_Array_forMAux___main___at___private_Lean_Elab_Inductive_2__checkNumParams___spec__1(x_13, x_1, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_14) == 0) -{ -uint8_t x_15; -x_15 = !lean_is_exclusive(x_14); -if (x_15 == 0) -{ -lean_object* x_16; -x_16 = lean_ctor_get(x_14, 0); -lean_dec(x_16); -lean_ctor_set(x_14, 0, x_13); -return x_14; -} -else -{ -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_14, 1); -lean_inc(x_17); +x_14 = lean_array_get_size(x_1); +x_15 = lean_usize_of_nat(x_14); lean_dec(x_14); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_13); -lean_ctor_set(x_18, 1, x_17); -return x_18; -} -} -else +x_16 = 0; +x_17 = lean_box(0); +x_18 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams___spec__1(x_13, x_1, x_15, x_16, x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_18) == 0) { uint8_t x_19; -lean_dec(x_13); -x_19 = !lean_is_exclusive(x_14); +x_19 = !lean_is_exclusive(x_18); if (x_19 == 0) { -return x_14; +lean_object* x_20; +x_20 = lean_ctor_get(x_18, 0); +lean_dec(x_20); +lean_ctor_set(x_18, 0, x_13); +return x_18; } 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_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_18, 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_dec(x_18); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_13); lean_ctor_set(x_22, 1, x_21); return x_22; } } +else +{ +uint8_t x_23; +lean_dec(x_13); +x_23 = !lean_is_exclusive(x_18); +if (x_23 == 0) +{ +return x_18; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_18, 0); +x_25 = lean_ctor_get(x_18, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_18); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; } } -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_2__checkNumParams___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* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams___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_11; -x_11 = l_Array_forMAux___main___at___private_Lean_Elab_Inductive_2__checkNumParams___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +size_t x_13; size_t x_14; lean_object* x_15; +x_13 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_14 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_15 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams___spec__1(x_1, x_2, x_13, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, 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_5); lean_dec(x_2); lean_dec(x_1); -return x_11; +return x_15; } } -lean_object* l___private_Lean_Elab_Inductive_2__checkNumParams___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l___private_Lean_Elab_Inductive_2__checkNumParams(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); @@ -1625,7 +1940,7 @@ lean_dec(x_1); return x_9; } } -static lean_object* _init_l_Array_forMAux___main___at___private_Lean_Elab_Inductive_3__checkUnsafe___spec__1___closed__1() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe___spec__1___closed__1() { _start: { lean_object* x_1; @@ -1633,49 +1948,46 @@ x_1 = lean_mk_string("invalid inductive type, cannot mix unsafe and safe declara return x_1; } } -static lean_object* _init_l_Array_forMAux___main___at___private_Lean_Elab_Inductive_3__checkUnsafe___spec__1___closed__2() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe___spec__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forMAux___main___at___private_Lean_Elab_Inductive_3__checkUnsafe___spec__1___closed__1; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe___spec__1___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Array_forMAux___main___at___private_Lean_Elab_Inductive_3__checkUnsafe___spec__1___closed__3() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe___spec__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forMAux___main___at___private_Lean_Elab_Inductive_3__checkUnsafe___spec__1___closed__2; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe___spec__1___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_3__checkUnsafe___spec__1(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe___spec__1(uint8_t x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { -lean_object* x_11; uint8_t x_12; -x_11 = lean_array_get_size(x_2); -x_12 = lean_nat_dec_lt(x_3, x_11); -lean_dec(x_11); -if (x_12 == 0) +uint8_t x_13; +x_13 = x_4 < x_3; +if (x_13 == 0) { -lean_object* x_13; lean_object* x_14; -lean_dec(x_8); -lean_dec(x_4); -lean_dec(x_3); -x_13 = lean_box(0); +lean_object* x_14; +lean_dec(x_10); +lean_dec(x_6); x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_13); -lean_ctor_set(x_14, 1, x_10); +lean_ctor_set(x_14, 0, x_5); +lean_ctor_set(x_14, 1, x_12); return x_14; } else { lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; uint8_t x_19; -x_15 = lean_array_fget(x_2, x_3); +lean_dec(x_5); +x_15 = lean_array_uget(x_2, x_4); x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); lean_dec(x_15); @@ -1687,47 +1999,46 @@ if (x_18 == 0) { if (x_1 == 0) { -uint8_t x_31; -x_31 = 1; -x_19 = x_31; -goto block_30; +uint8_t x_32; +x_32 = 1; +x_19 = x_32; +goto block_31; } else { -uint8_t x_32; -x_32 = 0; -x_19 = x_32; -goto block_30; +uint8_t x_33; +x_33 = 0; +x_19 = x_33; +goto block_31; } } else { if (x_1 == 0) { -uint8_t x_33; -x_33 = 0; -x_19 = x_33; -goto block_30; +uint8_t x_34; +x_34 = 0; +x_19 = x_34; +goto block_31; } else { -uint8_t x_34; -x_34 = 1; -x_19 = x_34; -goto block_30; +uint8_t x_35; +x_35 = 1; +x_19 = x_35; +goto block_31; } } -block_30: +block_31: { if (x_19 == 0) { lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; -lean_dec(x_3); x_20 = lean_ctor_get(x_16, 0); lean_inc(x_20); lean_dec(x_16); -x_21 = l_Array_forMAux___main___at___private_Lean_Elab_Inductive_3__checkUnsafe___spec__1___closed__3; -x_22 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_20, x_21, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_21 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe___spec__1___closed__3; +x_22 = l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2___rarg(x_20, x_21, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_20); x_23 = !lean_is_exclusive(x_22); if (x_23 == 0) @@ -1750,22 +2061,23 @@ return x_26; } else { -lean_object* x_27; lean_object* x_28; +size_t x_27; size_t x_28; lean_object* x_29; lean_dec(x_16); -x_27 = lean_unsigned_to_nat(1u); -x_28 = lean_nat_add(x_3, x_27); -lean_dec(x_3); -x_3 = x_28; +x_27 = 1; +x_28 = x_4 + x_27; +x_29 = lean_box(0); +x_4 = x_28; +x_5 = x_29; goto _start; } } } } } -lean_object* l___private_Lean_Elab_Inductive_3__checkUnsafe(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe(lean_object* x_1, lean_object* x_2, 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; uint8_t x_14; lean_object* x_15; +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; x_9 = l_Lean_Elab_Command_ElabHeaderResult_inhabited; x_10 = lean_unsigned_to_nat(0u); x_11 = lean_array_get(x_9, x_1, x_10); @@ -1777,30 +2089,82 @@ lean_inc(x_13); lean_dec(x_12); x_14 = lean_ctor_get_uint8(x_13, sizeof(void*)*2 + 3); lean_dec(x_13); -x_15 = l_Array_forMAux___main___at___private_Lean_Elab_Inductive_3__checkUnsafe___spec__1(x_14, x_1, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -return x_15; +x_15 = lean_array_get_size(x_1); +x_16 = lean_usize_of_nat(x_15); +lean_dec(x_15); +x_17 = 0; +x_18 = lean_box(0); +x_19 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe___spec__1(x_14, x_1, x_16, x_17, x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_19) == 0) +{ +uint8_t x_20; +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) +{ +return x_19; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_19, 0); +x_22 = lean_ctor_get(x_19, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_19); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +return x_23; } } -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_3__checkUnsafe___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) { +else +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_19); +if (x_24 == 0) +{ +return x_19; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_19, 0); +x_26 = lean_ctor_get(x_19, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_19); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +return x_27; +} +} +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe___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: { -uint8_t x_11; lean_object* x_12; -x_11 = lean_unbox(x_1); +uint8_t x_13; size_t x_14; size_t x_15; lean_object* x_16; +x_13 = lean_unbox(x_1); lean_dec(x_1); -x_12 = l_Array_forMAux___main___at___private_Lean_Elab_Inductive_3__checkUnsafe___spec__1(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_14 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_15 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_16 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe___spec__1(x_13, x_2, x_14, x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11, 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_5); lean_dec(x_2); -return x_12; +return x_16; } } -lean_object* l___private_Lean_Elab_Inductive_3__checkUnsafe___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l___private_Lean_Elab_Inductive_3__checkUnsafe(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); @@ -1809,7 +2173,7 @@ lean_dec(x_1); return x_9; } } -static lean_object* _init_l_Array_forMAux___main___at___private_Lean_Elab_Inductive_4__checkLevelNames___spec__1___closed__1() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkLevelNames___spec__1___closed__1() { _start: { lean_object* x_1; @@ -1817,49 +2181,46 @@ x_1 = lean_mk_string("invalid inductive type, universe parameters mismatch in mu return x_1; } } -static lean_object* _init_l_Array_forMAux___main___at___private_Lean_Elab_Inductive_4__checkLevelNames___spec__1___closed__2() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkLevelNames___spec__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forMAux___main___at___private_Lean_Elab_Inductive_4__checkLevelNames___spec__1___closed__1; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkLevelNames___spec__1___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Array_forMAux___main___at___private_Lean_Elab_Inductive_4__checkLevelNames___spec__1___closed__3() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkLevelNames___spec__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forMAux___main___at___private_Lean_Elab_Inductive_4__checkLevelNames___spec__1___closed__2; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkLevelNames___spec__1___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_4__checkLevelNames___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* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkLevelNames___spec__1(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { -lean_object* x_11; uint8_t x_12; -x_11 = lean_array_get_size(x_2); -x_12 = lean_nat_dec_lt(x_3, x_11); -lean_dec(x_11); -if (x_12 == 0) +uint8_t x_13; +x_13 = x_4 < x_3; +if (x_13 == 0) { -lean_object* x_13; lean_object* x_14; -lean_dec(x_8); -lean_dec(x_4); -lean_dec(x_3); -x_13 = lean_box(0); +lean_object* x_14; +lean_dec(x_10); +lean_dec(x_6); x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_13); -lean_ctor_set(x_14, 1, x_10); +lean_ctor_set(x_14, 0, x_5); +lean_ctor_set(x_14, 1, x_12); return x_14; } else { lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_15 = lean_array_fget(x_2, x_3); +lean_dec(x_5); +x_15 = lean_array_uget(x_2, x_4); x_16 = lean_ctor_get(x_15, 4); lean_inc(x_16); x_17 = l_List_beq___main___at_Lean_OpenDecl_HasToString___spec__1(x_16, x_1); @@ -1867,12 +2228,11 @@ lean_dec(x_16); if (x_17 == 0) { lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; -lean_dec(x_3); x_18 = lean_ctor_get(x_15, 0); lean_inc(x_18); lean_dec(x_15); -x_19 = l_Array_forMAux___main___at___private_Lean_Elab_Inductive_4__checkLevelNames___spec__1___closed__3; -x_20 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_18, x_19, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_19 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkLevelNames___spec__1___closed__3; +x_20 = l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2___rarg(x_18, x_19, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_18); x_21 = !lean_is_exclusive(x_20); if (x_21 == 0) @@ -1895,28 +2255,29 @@ return x_24; } else { -lean_object* x_25; lean_object* x_26; +size_t x_25; size_t x_26; lean_object* x_27; lean_dec(x_15); -x_25 = lean_unsigned_to_nat(1u); -x_26 = lean_nat_add(x_3, x_25); -lean_dec(x_3); -x_3 = x_26; +x_25 = 1; +x_26 = x_4 + x_25; +x_27 = lean_box(0); +x_4 = x_26; +x_5 = x_27; goto _start; } } } } -lean_object* l___private_Lean_Elab_Inductive_4__checkLevelNames(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkLevelNames(lean_object* x_1, lean_object* x_2, 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; uint8_t x_11; x_9 = lean_array_get_size(x_1); x_10 = lean_unsigned_to_nat(1u); x_11 = lean_nat_dec_lt(x_10, x_9); -lean_dec(x_9); if (x_11 == 0) { lean_object* x_12; lean_object* x_13; +lean_dec(x_9); lean_dec(x_6); lean_dec(x_2); x_12 = lean_box(0); @@ -1927,38 +2288,89 @@ return x_13; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; size_t x_18; size_t x_19; lean_object* x_20; lean_object* x_21; x_14 = l_Lean_Elab_Command_InductiveView_inhabited; x_15 = lean_unsigned_to_nat(0u); x_16 = lean_array_get(x_14, x_1, x_15); x_17 = lean_ctor_get(x_16, 4); lean_inc(x_17); lean_dec(x_16); -x_18 = l_Array_forMAux___main___at___private_Lean_Elab_Inductive_4__checkLevelNames___spec__1(x_17, x_1, x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_18 = lean_usize_of_nat(x_9); +lean_dec(x_9); +x_19 = 0; +x_20 = lean_box(0); +x_21 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkLevelNames___spec__1(x_17, x_1, x_18, x_19, x_20, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_17); -return x_18; +if (lean_obj_tag(x_21) == 0) +{ +uint8_t x_22; +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) +{ +return x_21; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_21, 0); +x_24 = lean_ctor_get(x_21, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_21); +x_25 = lean_alloc_ctor(0, 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 = !lean_is_exclusive(x_21); +if (x_26 == 0) +{ +return x_21; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_21, 0); +x_28 = lean_ctor_get(x_21, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_21); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +return x_29; } } } -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_4__checkLevelNames___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* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkLevelNames___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_11; -x_11 = l_Array_forMAux___main___at___private_Lean_Elab_Inductive_4__checkLevelNames___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +size_t x_13; size_t x_14; lean_object* x_15; +x_13 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_14 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_15 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkLevelNames___spec__1(x_1, x_2, x_13, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, 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_5); lean_dec(x_2); lean_dec(x_1); -return x_11; +return x_15; } } -lean_object* l___private_Lean_Elab_Inductive_4__checkLevelNames___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkLevelNames___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l___private_Lean_Elab_Inductive_4__checkLevelNames(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkLevelNames(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); @@ -1967,217 +2379,7 @@ lean_dec(x_1); return x_9; } } -lean_object* l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_Inductive_5__mkTypeFor___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: -{ -uint8_t x_10; -x_10 = l_Array_isEmpty___rarg(x_1); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; -x_11 = lean_st_ref_get(x_6, x_9); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 1); -lean_inc(x_13); -lean_dec(x_11); -x_14 = lean_ctor_get(x_12, 0); -lean_inc(x_14); -lean_dec(x_12); -x_15 = lean_st_ref_get(x_8, x_13); -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); -lean_inc(x_17); -lean_dec(x_15); -x_18 = lean_ctor_get(x_16, 2); -lean_inc(x_18); -lean_dec(x_16); -x_19 = lean_ctor_get(x_5, 1); -lean_inc(x_19); -x_20 = l_Std_HashMap_inhabited___closed__1; -x_21 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_21, 0, x_14); -lean_ctor_set(x_21, 1, x_18); -lean_ctor_set(x_21, 2, x_20); -x_22 = 0; -x_23 = l_Lean_MetavarContext_MkBinding_mkBinding(x_22, x_19, x_1, x_2, x_22, x_22, x_21); -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; uint8_t x_31; -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -x_25 = lean_ctor_get(x_23, 1); -lean_inc(x_25); -lean_dec(x_23); -x_26 = lean_ctor_get(x_24, 0); -lean_inc(x_26); -lean_dec(x_24); -x_27 = lean_ctor_get(x_25, 1); -lean_inc(x_27); -x_28 = lean_st_ref_take(x_8, x_17); -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(x_28); -x_31 = !lean_is_exclusive(x_29); -if (x_31 == 0) -{ -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_32 = lean_ctor_get(x_29, 2); -lean_dec(x_32); -lean_ctor_set(x_29, 2, x_27); -x_33 = lean_st_ref_set(x_8, x_29, x_30); -x_34 = lean_ctor_get(x_33, 1); -lean_inc(x_34); -lean_dec(x_33); -x_35 = lean_ctor_get(x_25, 0); -lean_inc(x_35); -lean_dec(x_25); -x_36 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_35, x_5, x_6, x_7, x_8, x_34); -lean_dec(x_5); -x_37 = !lean_is_exclusive(x_36); -if (x_37 == 0) -{ -lean_object* x_38; -x_38 = lean_ctor_get(x_36, 0); -lean_dec(x_38); -lean_ctor_set(x_36, 0, x_26); -return x_36; -} -else -{ -lean_object* x_39; lean_object* x_40; -x_39 = lean_ctor_get(x_36, 1); -lean_inc(x_39); -lean_dec(x_36); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_26); -lean_ctor_set(x_40, 1, x_39); -return x_40; -} -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; 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_41 = lean_ctor_get(x_29, 0); -x_42 = lean_ctor_get(x_29, 1); -x_43 = lean_ctor_get(x_29, 3); -lean_inc(x_43); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_29); -x_44 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_44, 0, x_41); -lean_ctor_set(x_44, 1, x_42); -lean_ctor_set(x_44, 2, x_27); -lean_ctor_set(x_44, 3, x_43); -x_45 = lean_st_ref_set(x_8, x_44, x_30); -x_46 = lean_ctor_get(x_45, 1); -lean_inc(x_46); -lean_dec(x_45); -x_47 = lean_ctor_get(x_25, 0); -lean_inc(x_47); -lean_dec(x_25); -x_48 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_47, x_5, x_6, x_7, x_8, x_46); -lean_dec(x_5); -x_49 = lean_ctor_get(x_48, 1); -lean_inc(x_49); -if (lean_is_exclusive(x_48)) { - lean_ctor_release(x_48, 0); - lean_ctor_release(x_48, 1); - x_50 = x_48; -} else { - lean_dec_ref(x_48); - x_50 = lean_box(0); -} -if (lean_is_scalar(x_50)) { - x_51 = lean_alloc_ctor(0, 2, 0); -} else { - x_51 = x_50; -} -lean_ctor_set(x_51, 0, x_26); -lean_ctor_set(x_51, 1, x_49); -return x_51; -} -} -else -{ -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; uint8_t x_60; -x_52 = lean_ctor_get(x_23, 1); -lean_inc(x_52); -lean_dec(x_23); -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_53, x_5, x_6, x_7, x_8, x_17); -x_55 = lean_ctor_get(x_54, 1); -lean_inc(x_55); -lean_dec(x_54); -x_56 = lean_ctor_get(x_52, 1); -lean_inc(x_56); -lean_dec(x_52); -x_57 = lean_st_ref_take(x_8, x_55); -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_57, 1); -lean_inc(x_59); -lean_dec(x_57); -x_60 = !lean_is_exclusive(x_58); -if (x_60 == 0) -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_61 = lean_ctor_get(x_58, 2); -lean_dec(x_61); -lean_ctor_set(x_58, 2, x_56); -x_62 = lean_st_ref_set(x_8, x_58, x_59); -x_63 = lean_ctor_get(x_62, 1); -lean_inc(x_63); -lean_dec(x_62); -x_64 = l___private_Lean_Meta_Basic_6__liftMkBindingM___rarg___closed__3; -x_65 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_64, x_5, x_6, x_7, x_8, x_63); -lean_dec(x_5); -return x_65; -} -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; -x_66 = lean_ctor_get(x_58, 0); -x_67 = lean_ctor_get(x_58, 1); -x_68 = lean_ctor_get(x_58, 3); -lean_inc(x_68); -lean_inc(x_67); -lean_inc(x_66); -lean_dec(x_58); -x_69 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_69, 0, x_66); -lean_ctor_set(x_69, 1, x_67); -lean_ctor_set(x_69, 2, x_56); -lean_ctor_set(x_69, 3, x_68); -x_70 = lean_st_ref_set(x_8, x_69, x_59); -x_71 = lean_ctor_get(x_70, 1); -lean_inc(x_71); -lean_dec(x_70); -x_72 = l___private_Lean_Meta_Basic_6__liftMkBindingM___rarg___closed__3; -x_73 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_72, x_5, x_6, x_7, x_8, x_71); -lean_dec(x_5); -return x_73; -} -} -} -else -{ -lean_object* x_74; -lean_dec(x_5); -lean_dec(x_1); -x_74 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_74, 0, x_2); -lean_ctor_set(x_74, 1, x_9); -return x_74; -} -} -} -lean_object* l___private_Lean_Elab_Inductive_5__mkTypeFor(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkTypeFor(lean_object* x_1, lean_object* x_2, 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; @@ -2190,27 +2392,14 @@ lean_inc(x_11); x_12 = lean_ctor_get(x_1, 4); lean_inc(x_12); lean_dec(x_1); -x_13 = lean_alloc_closure((void*)(l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_Inductive_5__mkTypeFor___spec__1___boxed), 9, 2); +x_13 = lean_alloc_closure((void*)(l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2___boxed), 9, 2); lean_closure_set(x_13, 0, x_11); lean_closure_set(x_13, 1, x_12); -x_14 = l_Lean_Meta_withLCtx___at_Lean_Elab_Term_elabSyntheticHole___spec__1___rarg(x_9, x_10, x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_14 = l_Lean_Meta_withLCtx___at_Lean_Elab_Term_elabBinders___spec__2___rarg(x_9, x_10, x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8); return x_14; } } -lean_object* l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_Inductive_5__mkTypeFor___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_Meta_mkForallFVars___at___private_Lean_Elab_Inductive_5__mkTypeFor___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_4); -lean_dec(x_3); -return x_10; -} -} -static lean_object* _init_l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg___closed__1() { +static lean_object* _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_throwUnexpectedInductiveType___rarg___closed__1() { _start: { lean_object* x_1; @@ -2218,48 +2407,48 @@ x_1 = lean_mk_string("unexpected inductive resulting type"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg___closed__2() { +static lean_object* _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_throwUnexpectedInductiveType___rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg___closed__1; +x_1 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_throwUnexpectedInductiveType___rarg___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg___closed__3() { +static lean_object* _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_throwUnexpectedInductiveType___rarg___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg___closed__2; +x_1 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_throwUnexpectedInductiveType___rarg___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___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* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_throwUnexpectedInductiveType___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; lean_object* x_9; -x_8 = l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg___closed__3; +x_8 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_throwUnexpectedInductiveType___rarg___closed__3; x_9 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_8, x_1, x_2, x_3, x_4, x_5, x_6, x_7); return x_9; } } -lean_object* l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_throwUnexpectedInductiveType(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg___boxed), 7, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_throwUnexpectedInductiveType___rarg___boxed), 7, 0); return x_2; } } -lean_object* l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___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* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_throwUnexpectedInductiveType___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) { _start: { lean_object* x_8; -x_8 = l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_throwUnexpectedInductiveType___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -2268,7 +2457,7 @@ lean_dec(x_2); return x_8; } } -lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Inductive_7__getResultingType___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingType___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; lean_object* x_11; @@ -2323,15 +2512,15 @@ return x_19; } } } -lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Inductive_7__getResultingType___spec__1(lean_object* x_1) { +lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingType___spec__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Inductive_7__getResultingType___spec__1___rarg), 9, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingType___spec__1___rarg), 9, 0); return x_2; } } -lean_object* l___private_Lean_Elab_Inductive_7__getResultingType___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* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingType___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; @@ -2341,28 +2530,28 @@ lean_ctor_set(x_10, 1, x_9); return x_10; } } -static lean_object* _init_l___private_Lean_Elab_Inductive_7__getResultingType___closed__1() { +static lean_object* _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingType___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_7__getResultingType___lambda__1___boxed), 9, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingType___lambda__1___boxed), 9, 0); return x_1; } } -lean_object* l___private_Lean_Elab_Inductive_7__getResultingType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; -x_9 = l___private_Lean_Elab_Inductive_7__getResultingType___closed__1; -x_10 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Inductive_7__getResultingType___spec__1___rarg(x_1, x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingType___closed__1; +x_10 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingType___spec__1___rarg(x_1, x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); return x_10; } } -lean_object* l___private_Lean_Elab_Inductive_7__getResultingType___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* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingType___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l___private_Lean_Elab_Inductive_7__getResultingType___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingType___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); @@ -2373,7 +2562,7 @@ lean_dec(x_1); return x_10; } } -lean_object* l___private_Lean_Elab_Inductive_8__eqvFirstTypeResult___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* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_eqvFirstTypeResult___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; @@ -2381,82 +2570,170 @@ x_9 = l_Lean_Meta_isExprDefEq___at_Lean_Meta_isExprDefEqGuarded___spec__1(x_3, x return x_9; } } -lean_object* l___private_Lean_Elab_Inductive_8__eqvFirstTypeResult(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_eqvFirstTypeResult(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; lean_object* x_9; -x_8 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_8__eqvFirstTypeResult___lambda__1___boxed), 8, 1); +x_8 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_eqvFirstTypeResult___lambda__1___boxed), 8, 1); lean_closure_set(x_8, 0, x_2); x_9 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNamesImp___spec__3___rarg(x_1, x_8, x_3, x_4, x_5, x_6, x_7); return x_9; } } -lean_object* l___private_Lean_Elab_Inductive_8__eqvFirstTypeResult___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* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_eqvFirstTypeResult___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l___private_Lean_Elab_Inductive_8__eqvFirstTypeResult___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_eqvFirstTypeResult___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_2); return x_9; } } -static lean_object* _init_l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__1() { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 3) +{ +lean_object* x_4; uint64_t x_5; lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); +lean_dec(x_1); +x_6 = lean_box_uint64(x_5); +x_7 = lean_apply_2(x_2, x_4, x_6); +return x_7; +} +else +{ +lean_object* x_8; +lean_dec(x_2); +x_8 = lean_apply_1(x_3, x_1); +return x_8; +} +} +} +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_2(x_2, x_4, x_5); +return x_6; +} +else +{ +lean_object* x_7; +lean_dec(x_2); +x_7 = lean_apply_1(x_3, x_1); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_alloc_closure((void*)(l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_elabLetDeclAux___spec__2___rarg___lambda__1), 10, 3); +lean_closure_set(x_10, 0, x_2); +lean_closure_set(x_10, 1, x_3); +lean_closure_set(x_10, 2, x_4); +x_11 = l___private_Lean_Meta_Basic_20__forallTelescopeReducingImp___rarg(x_1, x_10, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_11) == 0) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +return x_11; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_11, 0); +x_14 = lean_ctor_get(x_11, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_11); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_13); +lean_ctor_set(x_15, 1, x_14); +return x_15; +} +} +else +{ +uint8_t x_16; +x_16 = !lean_is_exclusive(x_11); +if (x_16 == 0) +{ +return x_11; +} +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* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___spec__1___rarg), 9, 0); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___lambda__1___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string("resulting universe mismatch, given "); +x_1 = lean_mk_string("resulting universe mismatch, given"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__2() { +static lean_object* _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___lambda__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___lambda__1___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("expected type"); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__4; -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_Inductive_9__checkParamsAndResultType___lambda__1___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__5; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___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: { if (lean_obj_tag(x_1) == 3) @@ -2468,7 +2745,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_1); lean_inc(x_3); -x_11 = l_Lean_Meta_isExprDefEq___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_3, x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_propagateExpectedType___spec__3(x_3, x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10); if (lean_obj_tag(x_11) == 0) { lean_object* x_12; uint8_t x_13; @@ -2483,23 +2760,23 @@ x_14 = lean_ctor_get(x_11, 1); lean_inc(x_14); lean_dec(x_11); x_15 = l_Lean_indentExpr(x_1); -x_16 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__3; +x_16 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___lambda__1___closed__2; x_17 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_17, 0, x_16); lean_ctor_set(x_17, 1, x_15); -x_18 = l_Lean_MessageData_ofList___closed__3; +x_18 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__4___closed__4; x_19 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_19, 0, x_17); lean_ctor_set(x_19, 1, x_18); -x_20 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__6; +x_20 = l_Lean_indentExpr(x_3); 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 = l_Lean_indentExpr(x_3); +x_22 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__4___closed__5; x_23 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_23, 0, x_21); lean_ctor_set(x_23, 1, x_22); -x_24 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_23, x_4, x_5, x_6, x_7, x_8, x_9, x_14); +x_24 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(x_23, x_4, x_5, x_6, x_7, x_8, x_9, x_14); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -2575,8 +2852,8 @@ else lean_object* x_35; lean_object* x_36; lean_dec(x_3); lean_dec(x_1); -x_35 = l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg___closed__3; -x_36 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_35, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_35 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_throwUnexpectedInductiveType___rarg___closed__3; +x_36 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(x_35, 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); @@ -2585,27 +2862,27 @@ return x_36; } } } -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___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* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___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; -x_11 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___boxed), 10, 1); +x_11 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___lambda__1___boxed), 10, 1); lean_closure_set(x_11, 0, x_3); -x_12 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Inductive_7__getResultingType___spec__1___rarg(x_1, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_12 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___spec__1___rarg(x_1, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); return x_12; } } -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; lean_object* x_12; -x_11 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__2___boxed), 10, 1); +x_11 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___lambda__2___boxed), 10, 1); lean_closure_set(x_11, 0, x_5); -x_12 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Inductive_7__getResultingType___spec__1___rarg(x_4, x_11, x_1, x_2, x_6, x_7, x_8, x_9, x_10); +x_12 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___spec__1___rarg(x_4, x_11, x_1, x_2, x_6, x_7, x_8, x_9, x_10); return x_12; } } -static lean_object* _init_l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___closed__1() { +static lean_object* _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___closed__1() { _start: { lean_object* x_1; @@ -2613,31 +2890,20 @@ x_1 = lean_mk_string("invalid mutually inductive types, "); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___closed__2() { +static lean_object* _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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; -x_11 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__3___boxed), 10, 2); +x_11 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___lambda__3___boxed), 10, 2); lean_closure_set(x_11, 0, x_4); lean_closure_set(x_11, 1, x_5); x_12 = l_Array_empty___closed__1; @@ -2681,133 +2947,176 @@ lean_dec(x_20); x_21 = !lean_is_exclusive(x_18); if (x_21 == 0) { -lean_object* x_22; lean_object* x_23; lean_object* x_24; +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; x_22 = lean_ctor_get(x_18, 1); -x_23 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___closed__3; +x_23 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___closed__2; x_24 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_24, 0, x_23); lean_ctor_set(x_24, 1, x_22); -lean_ctor_set(x_18, 1, x_24); +x_25 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__4___closed__5; +x_26 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +lean_ctor_set(x_18, 1, x_26); return x_13; } else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_25 = lean_ctor_get(x_18, 0); -x_26 = lean_ctor_get(x_18, 1); -lean_inc(x_26); -lean_inc(x_25); +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_27 = lean_ctor_get(x_18, 0); +x_28 = lean_ctor_get(x_18, 1); +lean_inc(x_28); +lean_inc(x_27); lean_dec(x_18); -x_27 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___closed__3; -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 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_25); -lean_ctor_set(x_29, 1, x_28); -lean_ctor_set(x_13, 0, x_29); +x_29 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___closed__2; +x_30 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_28); +x_31 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__4___closed__5; +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(0, 2, 0); +lean_ctor_set(x_33, 0, x_27); +lean_ctor_set(x_33, 1, x_32); +lean_ctor_set(x_13, 0, x_33); return x_13; } } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_30 = lean_ctor_get(x_13, 1); -lean_inc(x_30); +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_34 = lean_ctor_get(x_13, 1); +lean_inc(x_34); lean_dec(x_13); -x_31 = lean_ctor_get(x_18, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_18, 1); -lean_inc(x_32); +x_35 = lean_ctor_get(x_18, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_18, 1); +lean_inc(x_36); if (lean_is_exclusive(x_18)) { lean_ctor_release(x_18, 0); lean_ctor_release(x_18, 1); - x_33 = x_18; + x_37 = x_18; } else { lean_dec_ref(x_18); - x_33 = lean_box(0); + x_37 = lean_box(0); } -x_34 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___closed__3; -x_35 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_32); -if (lean_is_scalar(x_33)) { - x_36 = lean_alloc_ctor(0, 2, 0); +x_38 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___closed__2; +x_39 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_36); +x_40 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__4___closed__5; +x_41 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +if (lean_is_scalar(x_37)) { + x_42 = lean_alloc_ctor(0, 2, 0); } else { - x_36 = x_33; + x_42 = x_37; } -lean_ctor_set(x_36, 0, x_31); -lean_ctor_set(x_36, 1, x_35); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_30); -return x_37; +lean_ctor_set(x_42, 0, x_35); +lean_ctor_set(x_42, 1, x_41); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_34); +return x_43; } } else { -uint8_t x_38; -x_38 = !lean_is_exclusive(x_13); -if (x_38 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_13); +if (x_44 == 0) { -lean_object* x_39; -x_39 = lean_ctor_get(x_13, 0); -lean_dec(x_39); +lean_object* x_45; +x_45 = lean_ctor_get(x_13, 0); +lean_dec(x_45); return x_13; } else { -lean_object* x_40; lean_object* x_41; -x_40 = lean_ctor_get(x_13, 1); -lean_inc(x_40); +lean_object* x_46; lean_object* x_47; +x_46 = lean_ctor_get(x_13, 1); +lean_inc(x_46); lean_dec(x_13); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_18); -lean_ctor_set(x_41, 1, x_40); -return x_41; +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_18); +lean_ctor_set(x_47, 1, x_46); +return x_47; } } } } } -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___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* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___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_Inductive_9__checkParamsAndResultType___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___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_5); lean_dec(x_2); return x_11; } } -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___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* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_2); return x_11; } } -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___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* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___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) { _start: { lean_object* x_11; -x_11 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_3); return x_11; } } -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_3); return x_11; } } -lean_object* l___private_Lean_Elab_Inductive_10__checkHeader(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkHeader_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkHeader_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkHeader_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkHeader(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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; @@ -2818,7 +3127,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_1); -x_11 = l___private_Lean_Elab_Inductive_5__mkTypeFor(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkTypeFor(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10); if (lean_obj_tag(x_11) == 0) { if (lean_obj_tag(x_3) == 0) @@ -2881,7 +3190,7 @@ lean_dec(x_22); lean_dec(x_24); lean_ctor_set(x_8, 3, x_25); lean_inc(x_18); -x_26 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType(x_16, x_18, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_17); +x_26 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType(x_16, x_18, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_17); if (lean_obj_tag(x_26) == 0) { uint8_t x_27; @@ -2955,7 +3264,7 @@ lean_ctor_set(x_42, 1, x_36); lean_ctor_set(x_42, 2, x_37); lean_ctor_set(x_42, 3, x_41); lean_inc(x_18); -x_43 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType(x_16, x_18, x_2, x_4, x_5, x_6, x_7, x_42, x_9, x_17); +x_43 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType(x_16, x_18, x_2, x_4, x_5, x_6, x_7, x_42, x_9, x_17); if (lean_obj_tag(x_43) == 0) { lean_object* x_44; lean_object* x_45; lean_object* x_46; @@ -3038,16 +3347,32 @@ return x_54; } } } -lean_object* l___private_Lean_Elab_Inductive_10__checkHeader___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkHeader___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l___private_Lean_Elab_Inductive_10__checkHeader(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkHeader(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_2); return x_11; } } -lean_object* l___private_Lean_Elab_Inductive_11__checkHeaders___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, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkHeaders_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_apply_2(x_3, x_1, x_2); +return x_4; +} +} +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkHeaders_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkHeaders_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkHeaders(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; uint8_t x_13; @@ -3082,7 +3407,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_18 = l___private_Lean_Elab_Inductive_10__checkHeader(x_17, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_18 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkHeader(x_17, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_18) == 0) { lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; @@ -3133,35 +3458,17 @@ return x_28; } } } -lean_object* l___private_Lean_Elab_Inductive_11__checkHeaders___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkHeaders___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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_Inductive_11__checkHeaders___main(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___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkHeaders(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_2); lean_dec(x_1); return x_12; } } -lean_object* l___private_Lean_Elab_Inductive_11__checkHeaders(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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_Inductive_11__checkHeaders___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_12; -} -} -lean_object* l___private_Lean_Elab_Inductive_11__checkHeaders___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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_Inductive_11__checkHeaders(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_2); -lean_dec(x_1); -return x_12; -} -} -lean_object* l___private_Lean_Elab_Inductive_12__elabHeader(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeader(lean_object* x_1, lean_object* x_2, 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; @@ -3173,7 +3480,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_11 = l___private_Lean_Elab_Inductive_1__elabHeaderAux___main(x_1, x_9, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_11 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux(x_1, x_9, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8); if (lean_obj_tag(x_11) == 0) { uint8_t x_12; @@ -3203,7 +3510,7 @@ lean_object* x_18; lean_free_object(x_11); lean_inc(x_6); lean_inc(x_2); -x_18 = l___private_Lean_Elab_Inductive_3__checkUnsafe(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_14); +x_18 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_14); if (lean_obj_tag(x_18) == 0) { lean_object* x_19; lean_object* x_20; @@ -3212,7 +3519,7 @@ lean_inc(x_19); lean_dec(x_18); lean_inc(x_6); lean_inc(x_2); -x_20 = l___private_Lean_Elab_Inductive_2__checkNumParams(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_19); +x_20 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_19); if (lean_obj_tag(x_20) == 0) { lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; @@ -3222,7 +3529,7 @@ x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); lean_dec(x_20); x_23 = lean_box(0); -x_24 = l___private_Lean_Elab_Inductive_11__checkHeaders___main(x_13, x_21, x_9, x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_22); +x_24 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkHeaders(x_13, x_21, x_9, x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_22); lean_dec(x_21); if (lean_obj_tag(x_24) == 0) { @@ -3364,7 +3671,7 @@ else lean_object* x_47; lean_inc(x_6); lean_inc(x_2); -x_47 = l___private_Lean_Elab_Inductive_3__checkUnsafe(x_41, x_2, x_3, x_4, x_5, x_6, x_7, x_42); +x_47 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe(x_41, x_2, x_3, x_4, x_5, x_6, x_7, x_42); if (lean_obj_tag(x_47) == 0) { lean_object* x_48; lean_object* x_49; @@ -3373,7 +3680,7 @@ lean_inc(x_48); lean_dec(x_47); lean_inc(x_6); lean_inc(x_2); -x_49 = l___private_Lean_Elab_Inductive_2__checkNumParams(x_41, x_2, x_3, x_4, x_5, x_6, x_7, x_48); +x_49 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams(x_41, x_2, x_3, x_4, x_5, x_6, x_7, x_48); if (lean_obj_tag(x_49) == 0) { lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; @@ -3383,7 +3690,7 @@ x_51 = lean_ctor_get(x_49, 1); lean_inc(x_51); lean_dec(x_49); x_52 = lean_box(0); -x_53 = l___private_Lean_Elab_Inductive_11__checkHeaders___main(x_41, x_50, x_9, x_52, x_2, x_3, x_4, x_5, x_6, x_7, x_51); +x_53 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkHeaders(x_41, x_50, x_9, x_52, x_2, x_3, x_4, x_5, x_6, x_7, x_51); lean_dec(x_50); if (lean_obj_tag(x_53) == 0) { @@ -3529,87 +3836,92 @@ return x_72; } } } -lean_object* l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___main___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls_loop_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls_loop_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls_loop_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls_loop___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; x_14 = lean_unsigned_to_nat(1u); x_15 = lean_nat_add(x_1, x_14); x_16 = lean_array_push(x_2, x_6); -x_17 = l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___main___rarg(x_3, x_4, x_5, x_15, x_16, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_17 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls_loop___rarg(x_3, x_4, x_5, x_15, x_16, x_7, x_8, x_9, x_10, x_11, x_12, x_13); return x_17; } } -lean_object* l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls_loop___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; uint8_t x_14; -x_13 = lean_array_get_size(x_1); +x_13 = lean_array_get_size(x_2); x_14 = lean_nat_dec_lt(x_4, x_13); lean_dec(x_13); if (x_14 == 0) { lean_object* x_15; lean_dec(x_4); -lean_dec(x_1); -x_15 = lean_apply_9(x_3, x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_2); +x_15 = lean_apply_9(x_1, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); return x_15; } else { lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; -x_16 = lean_array_fget(x_1, x_4); +x_16 = lean_array_fget(x_2, x_4); 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_closure((void*)(l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___main___rarg___lambda__1___boxed), 13, 5); +x_19 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls_loop___rarg___lambda__1___boxed), 13, 5); lean_closure_set(x_19, 0, x_4); lean_closure_set(x_19, 1, x_5); lean_closure_set(x_19, 2, x_1); lean_closure_set(x_19, 3, x_2); lean_closure_set(x_19, 4, x_3); x_20 = 0; -x_21 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_20__elabImplicitLambda___main___spec__1___rarg(x_17, x_20, x_18, x_19, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_21 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_elabLetDeclAux___spec__3___rarg(x_17, x_20, x_18, x_19, x_6, x_7, x_8, x_9, x_10, x_11, x_12); return x_21; } } } -lean_object* l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___main(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls_loop(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___main___rarg), 12, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls_loop___rarg), 12, 0); return x_2; } } -lean_object* l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___main___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls_loop___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { lean_object* x_14; -x_14 = l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___main___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_14 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls_loop___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_1); return x_14; } } -lean_object* l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ -lean_object* x_13; -x_13 = l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___main___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -return x_13; -} -} -lean_object* l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___rarg), 12, 0); -return x_2; -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Inductive_14__withInductiveLocalDecls___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* l_Array_umapMAux___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls___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; @@ -3646,7 +3958,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_17); -x_18 = l___private_Lean_Elab_Inductive_5__mkTypeFor(x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_18 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkTypeFor(x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_18) == 0) { lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; @@ -3708,7 +4020,7 @@ return x_32; } } } -lean_object* l___private_Lean_Elab_Inductive_14__withInductiveLocalDecls___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { lean_object* x_14; uint8_t x_15; @@ -3725,7 +4037,7 @@ lean_dec(x_16); lean_dec(x_17); lean_ctor_set(x_11, 3, x_18); x_19 = lean_unsigned_to_nat(0u); -x_20 = l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___main___rarg(x_2, x_3, x_4, x_19, x_5, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_20 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls_loop___rarg(x_2, x_3, x_4, x_19, x_5, x_7, x_8, x_9, x_10, x_11, x_12, x_13); return x_20; } else @@ -3751,19 +4063,19 @@ lean_ctor_set(x_27, 1, x_22); lean_ctor_set(x_27, 2, x_23); lean_ctor_set(x_27, 3, x_26); x_28 = lean_unsigned_to_nat(0u); -x_29 = l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___main___rarg(x_2, x_3, x_4, x_28, x_5, x_7, x_8, x_9, x_10, x_27, x_12, x_13); +x_29 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls_loop___rarg(x_2, x_3, x_4, x_28, x_5, x_7, x_8, x_9, x_10, x_27, x_12, x_13); return x_29; } } } -lean_object* l___private_Lean_Elab_Inductive_14__withInductiveLocalDecls___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_inc(x_1); x_10 = x_1; x_11 = lean_unsigned_to_nat(0u); -x_12 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Inductive_14__withInductiveLocalDecls___spec__1), 9, 2); +x_12 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls___spec__1), 9, 2); lean_closure_set(x_12, 0, x_11); lean_closure_set(x_12, 1, x_10); x_13 = x_12; @@ -3798,17 +4110,17 @@ x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); lean_dec(x_22); x_24 = l_Array_empty___closed__1; -x_25 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_14__withInductiveLocalDecls___rarg___lambda__1___boxed), 13, 5); +x_25 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls___rarg___lambda__1___boxed), 13, 5); lean_closure_set(x_25, 0, x_23); -lean_closure_set(x_25, 1, x_15); -lean_closure_set(x_25, 2, x_19); -lean_closure_set(x_25, 3, x_2); +lean_closure_set(x_25, 1, x_2); +lean_closure_set(x_25, 2, x_15); +lean_closure_set(x_25, 3, x_19); lean_closure_set(x_25, 4, x_24); x_26 = l_Lean_Elab_Term_Lean_Ref___closed__2; x_27 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Term_monadLog___spec__2___rarg), 9, 2); lean_closure_set(x_27, 0, x_26); lean_closure_set(x_27, 1, x_25); -x_28 = l_Lean_Meta_withLCtx___at_Lean_Elab_Term_elabSyntheticHole___spec__1___rarg(x_20, x_21, x_27, x_3, x_4, x_5, x_6, x_7, x_8, x_16); +x_28 = l_Lean_Meta_withLCtx___at_Lean_Elab_Term_elabBinders___spec__2___rarg(x_20, x_21, x_27, x_3, x_4, x_5, x_6, x_7, x_8, x_16); return x_28; } else @@ -3843,25 +4155,25 @@ return x_32; } } } -lean_object* l___private_Lean_Elab_Inductive_14__withInductiveLocalDecls(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_14__withInductiveLocalDecls___rarg), 9, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls___rarg), 9, 0); return x_2; } } -lean_object* l___private_Lean_Elab_Inductive_14__withInductiveLocalDecls___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { lean_object* x_14; -x_14 = l___private_Lean_Elab_Inductive_14__withInductiveLocalDecls___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_14 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_6); lean_dec(x_1); return x_14; } } -lean_object* l___private_Lean_Elab_Inductive_15__isInductiveFamily___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_isInductiveFamily___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; uint8_t x_12; lean_object* x_13; lean_object* x_14; @@ -3875,7 +4187,7 @@ lean_ctor_set(x_14, 1, x_10); return x_14; } } -lean_object* l___private_Lean_Elab_Inductive_15__isInductiveFamily(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_isInductiveFamily(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; @@ -3883,7 +4195,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_10 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_Meta_inferType___at_Lean_Elab_Term_removeUnused___spec__2(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; lean_object* x_13; lean_object* x_14; @@ -3892,9 +4204,9 @@ lean_inc(x_11); x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); lean_dec(x_10); -x_13 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_15__isInductiveFamily___lambda__1___boxed), 10, 1); +x_13 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_isInductiveFamily___lambda__1___boxed), 10, 1); lean_closure_set(x_13, 0, x_1); -x_14 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Inductive_7__getResultingType___spec__1___rarg(x_11, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +x_14 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___spec__1___rarg(x_11, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_12); return x_14; } else @@ -3928,11 +4240,11 @@ return x_18; } } } -lean_object* l___private_Lean_Elab_Inductive_15__isInductiveFamily___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* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_isInductiveFamily___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_Inductive_15__isInductiveFamily___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___private_Lean_Elab_Inductive_0__Lean_Elab_Command_isInductiveFamily___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); @@ -3945,7 +4257,46 @@ lean_dec(x_1); return x_11; } } -static lean_object* _init_l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__1() { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_isType___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l___private_Lean_Meta_InferType_21__isTypeImp___at_Lean_Meta_isType___spec__1(x_1, x_4, x_5, x_6, x_7, x_8); +return x_9; +} +} +static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__2___closed__1() { _start: { lean_object* x_1; @@ -3953,253 +4304,378 @@ x_1 = lean_mk_string("inductive datatype parameter mismatch"); return x_1; } } -static lean_object* _init_l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__2() { +static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__2___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__4() { +static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__2___closed__3() { _start: { lean_object* x_1; -x_1 = lean_mk_string("expected"); +x_1 = lean_mk_string("\nexpected"); return x_1; } } -static lean_object* _init_l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__5() { +static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__2___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__4; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__2___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__6() { +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___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, lean_object* x_12, lean_object* x_13) { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__5; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___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_14; uint8_t x_15; +x_14 = lean_ctor_get(x_3, 1); +x_15 = lean_nat_dec_le(x_14, x_5); +if (x_15 == 0) { -lean_object* x_12; uint8_t x_13; -x_12 = lean_unsigned_to_nat(0u); -x_13 = lean_nat_dec_eq(x_4, x_12); -if (x_13 == 0) +lean_object* x_16; uint8_t x_17; +x_16 = lean_unsigned_to_nat(0u); +x_17 = lean_nat_dec_eq(x_4, x_16); +if (x_17 == 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_unsigned_to_nat(1u); -x_15 = lean_nat_sub(x_4, x_14); +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_dec(x_6); +x_18 = lean_unsigned_to_nat(1u); +x_19 = lean_nat_sub(x_4, x_18); lean_dec(x_4); -x_16 = lean_nat_sub(x_3, x_15); -x_17 = lean_nat_sub(x_16, x_14); -lean_dec(x_16); -x_18 = l_Lean_Expr_Inhabited; -x_19 = lean_array_get(x_18, x_1, x_17); -x_20 = lean_array_get(x_18, x_2, x_17); -lean_dec(x_17); +x_20 = l_Lean_Expr_Inhabited; +x_21 = lean_array_get(x_20, x_1, x_5); +x_22 = lean_array_get(x_20, x_2, x_5); +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_inc(x_20); -lean_inc(x_19); -x_21 = l_Lean_Meta_isExprDefEq___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_19, x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_21) == 0) -{ -lean_object* x_22; uint8_t x_23; -x_22 = lean_ctor_get(x_21, 0); lean_inc(x_22); -x_23 = lean_unbox(x_22); -lean_dec(x_22); -if (x_23 == 0) +lean_inc(x_21); +x_23 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_propagateExpectedType___spec__3(x_21, x_22, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +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; uint8_t x_35; -lean_dec(x_15); -x_24 = lean_ctor_get(x_21, 1); +lean_object* x_24; uint8_t x_25; +x_24 = lean_ctor_get(x_23, 0); lean_inc(x_24); -lean_dec(x_21); -x_25 = l_Lean_indentExpr(x_20); -x_26 = l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__3; -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_MessageData_ofList___closed__3; +x_25 = lean_unbox(x_24); +lean_dec(x_24); +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; lean_object* x_36; uint8_t x_37; +lean_dec(x_19); +lean_dec(x_5); +x_26 = lean_ctor_get(x_23, 1); +lean_inc(x_26); +lean_dec(x_23); +x_27 = l_Lean_indentExpr(x_22); +x_28 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__2___closed__2; 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_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__6; +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +x_30 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__2___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 = l_Lean_indentExpr(x_19); +x_32 = l_Lean_indentExpr(x_21); x_33 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_33, 0, x_31); lean_ctor_set(x_33, 1, x_32); -x_34 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_33, x_5, x_6, x_7, x_8, x_9, x_10, x_24); +x_34 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__4___closed__5; +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_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(x_35, x_7, x_8, x_9, x_10, x_11, x_12, x_26); +lean_dec(x_12); +lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -x_35 = !lean_is_exclusive(x_34); -if (x_35 == 0) +x_37 = !lean_is_exclusive(x_36); +if (x_37 == 0) { -return x_34; +return x_36; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_34, 0); -x_37 = lean_ctor_get(x_34, 1); -lean_inc(x_37); -lean_inc(x_36); -lean_dec(x_34); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set(x_38, 1, x_37); -return x_38; -} -} -else -{ -lean_object* x_39; -lean_dec(x_20); -lean_dec(x_19); -x_39 = lean_ctor_get(x_21, 1); +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_36, 0); +x_39 = lean_ctor_get(x_36, 1); lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_36); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; +} +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +lean_dec(x_22); lean_dec(x_21); -x_4 = x_15; -x_11 = x_39; +x_41 = lean_ctor_get(x_23, 1); +lean_inc(x_41); +lean_dec(x_23); +x_42 = lean_ctor_get(x_3, 2); +x_43 = lean_nat_add(x_5, x_42); +lean_dec(x_5); +x_44 = lean_box(0); +x_4 = x_19; +x_5 = x_43; +x_6 = x_44; +x_13 = x_41; goto _start; } } else { -uint8_t x_41; -lean_dec(x_20); +uint8_t x_46; +lean_dec(x_22); +lean_dec(x_21); lean_dec(x_19); -lean_dec(x_15); +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); -x_41 = !lean_is_exclusive(x_21); -if (x_41 == 0) +x_46 = !lean_is_exclusive(x_23); +if (x_46 == 0) { -return x_21; +return x_23; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_21, 0); -x_43 = lean_ctor_get(x_21, 1); -lean_inc(x_43); -lean_inc(x_42); +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_23, 0); +x_48 = lean_ctor_get(x_23, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_23); +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_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_6); +lean_ctor_set(x_50, 1, x_13); +return x_50; +} +} +else +{ +lean_object* x_51; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_6); +lean_ctor_set(x_51, 1, x_13); +return x_51; +} +} +} +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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_inc(x_7); +x_12 = l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(x_2, x_13, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +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_3, 2); +lean_inc(x_18); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_17); +lean_ctor_set(x_15, 0, x_19); +return x_15; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +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_ctor_get(x_3, 2); +lean_inc(x_22); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_20); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_21); +return x_24; +} +} +else +{ +uint8_t x_25; +x_25 = !lean_is_exclusive(x_15); +if (x_25 == 0) +{ +return x_15; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_15, 0); +x_27 = lean_ctor_get(x_15, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_15); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +} +else +{ +uint8_t x_29; +lean_dec(x_7); +lean_dec(x_2); +x_29 = !lean_is_exclusive(x_12); +if (x_29 == 0) +{ +return x_12; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_12, 0); +x_31 = lean_ctor_get(x_12, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_12); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +return x_32; +} +} +} +} +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_unsigned_to_nat(0u); +x_13 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_1, x_1, x_12, x_2); +x_14 = lean_apply_8(x_3, x_13, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_14; +} +} +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___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; +x_14 = lean_unsigned_to_nat(0u); +x_15 = l_Lean_Expr_getAppNumArgsAux___main(x_1, x_14); +x_16 = l_Lean_Expr_getAppArgs___closed__1; +lean_inc(x_15); +x_17 = lean_mk_array(x_15, x_16); +x_18 = lean_unsigned_to_nat(1u); +x_19 = lean_nat_sub(x_15, x_18); +lean_dec(x_15); +x_20 = l___private_Lean_Expr_3__getAppArgsAux___main(x_1, x_17, x_19); +lean_inc(x_2); +x_21 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_21, 0, x_14); +lean_ctor_set(x_21, 1, x_2); +lean_ctor_set(x_21, 2, x_18); +x_22 = lean_box(0); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_7); +x_23 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__2(x_3, x_20, x_21, x_2, x_14, x_22, x_7, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_21); -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; -} -} +lean_dec(x_20); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +lean_dec(x_23); +x_25 = lean_apply_8(x_4, x_5, x_7, x_8, x_9, x_10, x_11, x_12, x_24); +return x_25; } else { -lean_object* x_45; lean_object* x_46; +uint8_t x_26; +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); -x_45 = lean_box(0); -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_11); -return x_46; -} -} -} -static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__1() { -_start: +x_26 = !lean_is_exclusive(x_23); +if (x_26 == 0) { -lean_object* x_1; -x_1 = lean_mk_string("constructor resulting type must be specified in inductive family declaration"); -return x_1; +return x_23; } -} -static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__2() { -_start: +else { -lean_object* x_1; lean_object* x_2; -x_1 = l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_23, 0); +x_28 = lean_ctor_get(x_23, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_23); +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; } } -static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; } } -static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("unexpected constructor resulting type"); -return x_1; -} -} -static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__4; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__5; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__7() { +static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__4___closed__1() { _start: { lean_object* x_1; @@ -4207,1037 +4683,640 @@ x_1 = lean_mk_string("unexpected constructor resulting type, type expected"); return x_1; } } -static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__8() { +static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__4___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__7; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__4___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__9() { +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__8; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { -_start: +lean_object* x_14; +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_1); +x_14 = l___private_Lean_Meta_InferType_21__isTypeImp___at_Lean_Meta_isType___spec__1(x_1, 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; -x_14 = lean_ctor_get(x_1, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_1, 4); +lean_object* x_15; uint8_t x_16; +x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); -x_16 = !lean_is_exclusive(x_11); +x_16 = lean_unbox(x_15); +lean_dec(x_15); if (x_16 == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_17 = lean_ctor_get(x_11, 3); -x_18 = l_Lean_replaceRef(x_14, x_17); +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; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_17 = lean_ctor_get(x_14, 1); +lean_inc(x_17); lean_dec(x_14); -x_19 = l_Lean_replaceRef(x_18, x_17); -lean_dec(x_18); -x_20 = l_Lean_replaceRef(x_19, x_17); -lean_dec(x_17); -lean_dec(x_19); -lean_ctor_set(x_11, 3, x_20); -if (lean_obj_tag(x_15) == 0) -{ -lean_dec(x_5); -if (x_3 == 0) -{ -lean_object* x_45; lean_object* x_46; -x_45 = lean_unsigned_to_nat(0u); -x_46 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_2, x_2, x_45, x_4); -x_21 = x_46; -x_22 = x_13; -goto block_44; -} -else -{ -lean_object* x_47; lean_object* x_48; uint8_t x_49; -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_47 = l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__3; -x_48 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_47, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_18 = l_Lean_indentExpr(x_1); +x_19 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__4___closed__2; +x_20 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +x_21 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__4___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); +x_23 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(x_22, x_7, x_8, x_9, x_10, x_11, x_12, x_17); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -x_49 = !lean_is_exclusive(x_48); -if (x_49 == 0) -{ -return x_48; -} -else -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_48, 0); -x_51 = lean_ctor_get(x_48, 1); -lean_inc(x_51); -lean_inc(x_50); -lean_dec(x_48); -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_object* x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; -x_53 = lean_ctor_get(x_15, 0); -lean_inc(x_53); -lean_dec(x_15); -x_54 = lean_box(0); -x_55 = 1; -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_56 = l_Lean_Elab_Term_elabTerm(x_53, x_54, x_55, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -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); -lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 1); -lean_inc(x_58); -lean_dec(x_56); -x_59 = l___private_Lean_Elab_Inductive_7__getResultingType___closed__1; -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_inc(x_57); -x_60 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Inductive_7__getResultingType___spec__1___rarg(x_57, x_59, x_7, x_8, x_9, x_10, x_11, x_12, x_58); -if (lean_obj_tag(x_60) == 0) -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_78; uint8_t x_79; -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_78 = l_Lean_Expr_getAppFn___main(x_61); -x_79 = lean_expr_eqv(x_78, x_4); -lean_dec(x_4); -lean_dec(x_78); -if (x_79 == 0) -{ -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; -lean_dec(x_57); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -x_80 = l_Lean_indentExpr(x_61); -x_81 = l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__6; -x_82 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_82, 0, x_81); -lean_ctor_set(x_82, 1, x_80); -x_83 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_82, x_7, x_8, x_9, x_10, x_11, x_12, x_62); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_84 = !lean_is_exclusive(x_83); -if (x_84 == 0) -{ -return x_83; -} -else -{ -lean_object* x_85; lean_object* x_86; lean_object* x_87; -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_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 -{ -lean_object* x_88; -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_61); -x_88 = l___private_Lean_Meta_InferType_21__isTypeImp___at_Lean_Meta_isType___spec__1(x_61, x_9, x_10, x_11, x_12, x_62); -if (lean_obj_tag(x_88) == 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_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; -lean_dec(x_57); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -x_91 = lean_ctor_get(x_88, 1); -lean_inc(x_91); -lean_dec(x_88); -x_92 = l_Lean_indentExpr(x_61); -x_93 = l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__9; -x_94 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_94, 0, x_93); -lean_ctor_set(x_94, 1, x_92); -x_95 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_94, x_7, x_8, x_9, x_10, x_11, x_12, x_91); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_96 = !lean_is_exclusive(x_95); -if (x_96 == 0) -{ -return x_95; -} -else -{ -lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_97 = lean_ctor_get(x_95, 0); -x_98 = lean_ctor_get(x_95, 1); -lean_inc(x_98); -lean_inc(x_97); -lean_dec(x_95); -x_99 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_99, 0, x_97); -lean_ctor_set(x_99, 1, x_98); -return x_99; -} -} -else -{ -lean_object* x_100; -x_100 = lean_ctor_get(x_88, 1); -lean_inc(x_100); -lean_dec(x_88); -x_63 = x_100; -goto block_77; -} -} -else -{ -uint8_t x_101; -lean_dec(x_61); -lean_dec(x_57); -lean_dec(x_11); -lean_dec(x_12); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -x_101 = !lean_is_exclusive(x_88); -if (x_101 == 0) -{ -return x_88; -} -else -{ -lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_102 = lean_ctor_get(x_88, 0); -x_103 = lean_ctor_get(x_88, 1); -lean_inc(x_103); -lean_inc(x_102); -lean_dec(x_88); -x_104 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_104, 0, x_102); -lean_ctor_set(x_104, 1, x_103); -return x_104; -} -} -} -block_77: -{ -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; -x_64 = lean_unsigned_to_nat(0u); -x_65 = l_Lean_Expr_getAppNumArgsAux___main(x_61, x_64); -x_66 = l_Lean_Expr_getAppArgs___closed__1; -lean_inc(x_65); -x_67 = lean_mk_array(x_65, x_66); -x_68 = lean_unsigned_to_nat(1u); -x_69 = lean_nat_sub(x_65, x_68); -lean_dec(x_65); -x_70 = l___private_Lean_Expr_3__getAppArgsAux___main(x_61, x_67, x_69); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_7); -lean_inc(x_5); -x_71 = l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1(x_2, x_70, x_5, x_5, x_7, x_8, x_9, x_10, x_11, x_12, x_63); -lean_dec(x_5); -lean_dec(x_70); -if (lean_obj_tag(x_71) == 0) -{ -lean_object* x_72; -x_72 = lean_ctor_get(x_71, 1); -lean_inc(x_72); -lean_dec(x_71); -x_21 = x_57; -x_22 = x_72; -goto block_44; -} -else -{ -uint8_t x_73; -lean_dec(x_57); -lean_dec(x_11); -lean_dec(x_12); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -lean_dec(x_1); -x_73 = !lean_is_exclusive(x_71); -if (x_73 == 0) -{ -return x_71; -} -else -{ -lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_74 = lean_ctor_get(x_71, 0); -x_75 = lean_ctor_get(x_71, 1); -lean_inc(x_75); -lean_inc(x_74); -lean_dec(x_71); -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_105; -lean_dec(x_57); -lean_dec(x_11); -lean_dec(x_12); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_105 = !lean_is_exclusive(x_60); -if (x_105 == 0) -{ -return x_60; -} -else -{ -lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_106 = lean_ctor_get(x_60, 0); -x_107 = lean_ctor_get(x_60, 1); -lean_inc(x_107); -lean_inc(x_106); -lean_dec(x_60); -x_108 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_108, 0, x_106); -lean_ctor_set(x_108, 1, x_107); -return x_108; -} -} -} -else -{ -uint8_t x_109; -lean_dec(x_11); -lean_dec(x_12); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_109 = !lean_is_exclusive(x_56); -if (x_109 == 0) -{ -return x_56; -} -else -{ -lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_110 = lean_ctor_get(x_56, 0); -x_111 = lean_ctor_get(x_56, 1); -lean_inc(x_111); -lean_inc(x_110); -lean_dec(x_56); -x_112 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_112, 0, x_110); -lean_ctor_set(x_112, 1, x_111); -return x_112; -} -} -} -block_44: -{ -lean_object* x_23; -lean_inc(x_9); -x_23 = l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_Inductive_5__mkTypeFor___spec__1(x_6, x_21, x_7, x_8, x_9, x_10, x_11, x_12, x_22); -if (lean_obj_tag(x_23) == 0) -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -x_25 = lean_ctor_get(x_23, 1); -lean_inc(x_25); -lean_dec(x_23); -x_26 = l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_Inductive_5__mkTypeFor___spec__1(x_2, x_24, x_7, x_8, x_9, x_10, x_11, x_12, x_25); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -if (lean_obj_tag(x_26) == 0) -{ -uint8_t x_27; -x_27 = !lean_is_exclusive(x_26); -if (x_27 == 0) -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_26, 0); -x_29 = lean_ctor_get(x_1, 2); -lean_inc(x_29); -lean_dec(x_1); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_28); -lean_ctor_set(x_26, 0, x_30); -return x_26; -} -else -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_31 = lean_ctor_get(x_26, 0); -x_32 = lean_ctor_get(x_26, 1); -lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_26); -x_33 = lean_ctor_get(x_1, 2); -lean_inc(x_33); -lean_dec(x_1); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_31); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_32); -return x_35; -} -} -else -{ -uint8_t x_36; -lean_dec(x_1); -x_36 = !lean_is_exclusive(x_26); -if (x_36 == 0) -{ -return x_26; -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_26, 0); -x_38 = lean_ctor_get(x_26, 1); -lean_inc(x_38); -lean_inc(x_37); -lean_dec(x_26); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set(x_39, 1, x_38); -return x_39; -} -} -} -else -{ -uint8_t x_40; -lean_dec(x_11); -lean_dec(x_12); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_2); -lean_dec(x_1); -x_40 = !lean_is_exclusive(x_23); -if (x_40 == 0) +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) { return x_23; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_23, 0); -x_42 = lean_ctor_get(x_23, 1); -lean_inc(x_42); -lean_inc(x_41); +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_23, 0); +x_26 = lean_ctor_get(x_23, 1); +lean_inc(x_26); +lean_inc(x_25); lean_dec(x_23); -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_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +return x_27; } } else { -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; -x_113 = lean_ctor_get(x_11, 0); -x_114 = lean_ctor_get(x_11, 1); -x_115 = lean_ctor_get(x_11, 2); -x_116 = lean_ctor_get(x_11, 3); -lean_inc(x_116); -lean_inc(x_115); -lean_inc(x_114); -lean_inc(x_113); -lean_dec(x_11); -x_117 = l_Lean_replaceRef(x_14, x_116); +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_14, 1); +lean_inc(x_28); lean_dec(x_14); -x_118 = l_Lean_replaceRef(x_117, x_116); -lean_dec(x_117); -x_119 = l_Lean_replaceRef(x_118, x_116); -lean_dec(x_116); -lean_dec(x_118); -x_120 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_120, 0, x_113); -lean_ctor_set(x_120, 1, x_114); -lean_ctor_set(x_120, 2, x_115); -lean_ctor_set(x_120, 3, x_119); -if (lean_obj_tag(x_15) == 0) -{ -lean_dec(x_5); -if (x_3 == 0) -{ -lean_object* x_142; lean_object* x_143; -x_142 = lean_unsigned_to_nat(0u); -x_143 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_2, x_2, x_142, x_4); -x_121 = x_143; -x_122 = x_13; -goto block_141; +x_29 = lean_box(0); +x_30 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__3(x_1, x_2, x_3, x_4, x_5, x_29, x_7, x_8, x_9, x_10, x_11, x_12, x_28); +return x_30; +} } else { -lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_144 = l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__3; -x_145 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_144, x_7, x_8, x_9, x_10, x_120, x_12, x_13); +uint8_t x_31; lean_dec(x_12); -lean_dec(x_120); +lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -x_146 = lean_ctor_get(x_145, 0); -lean_inc(x_146); -x_147 = lean_ctor_get(x_145, 1); -lean_inc(x_147); -if (lean_is_exclusive(x_145)) { - lean_ctor_release(x_145, 0); - lean_ctor_release(x_145, 1); - x_148 = x_145; -} else { - lean_dec_ref(x_145); - x_148 = lean_box(0); -} -if (lean_is_scalar(x_148)) { - x_149 = lean_alloc_ctor(1, 2, 0); -} else { - x_149 = x_148; -} -lean_ctor_set(x_149, 0, x_146); -lean_ctor_set(x_149, 1, x_147); -return x_149; -} +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_31 = !lean_is_exclusive(x_14); +if (x_31 == 0) +{ +return x_14; } else { -lean_object* x_150; lean_object* x_151; uint8_t x_152; lean_object* x_153; -x_150 = lean_ctor_get(x_15, 0); -lean_inc(x_150); +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_14, 0); +x_33 = lean_ctor_get(x_14, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_14); +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; +} +} +} +} +static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("constructor resulting type must be specified in inductive family declaration"); +return x_1; +} +} +static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5___closed__1; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5___closed__2; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("unexpected constructor resulting type"); +return x_1; +} +} +static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5___closed__4; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_14 = lean_ctor_get(x_1, 0); +lean_inc(x_14); +lean_inc(x_1); +lean_inc(x_2); +x_15 = lean_alloc_closure((void*)(l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__1___boxed), 11, 3); +lean_closure_set(x_15, 0, x_6); +lean_closure_set(x_15, 1, x_2); +lean_closure_set(x_15, 2, x_1); +x_16 = lean_ctor_get(x_1, 4); +lean_inc(x_16); +lean_dec(x_1); +x_17 = !lean_is_exclusive(x_11); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_11, 3); +x_19 = l_Lean_replaceRef(x_14, x_18); +lean_dec(x_14); +x_20 = l_Lean_replaceRef(x_19, x_18); +lean_dec(x_19); +x_21 = l_Lean_replaceRef(x_20, x_18); +lean_dec(x_18); +lean_dec(x_20); +lean_ctor_set(x_11, 3, x_21); +if (lean_obj_tag(x_16) == 0) +{ +lean_dec(x_5); +if (x_4 == 0) +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_box(0); +x_23 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__2(x_2, x_3, x_15, x_22, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_2); +return x_23; +} +else +{ +lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_dec(x_15); -x_151 = lean_box(0); -x_152 = 1; +lean_dec(x_3); +lean_dec(x_2); +x_24 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5___closed__3; +x_25 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(x_24, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) +{ +return x_25; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_25, 0); +x_28 = lean_ctor_get(x_25, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_25); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +return x_29; +} +} +} +else +{ +lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; +x_30 = lean_ctor_get(x_16, 0); +lean_inc(x_30); +lean_dec(x_16); +x_31 = lean_box(0); +x_32 = 1; lean_inc(x_12); -lean_inc(x_120); +lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_153 = l_Lean_Elab_Term_elabTerm(x_150, x_151, x_152, x_7, x_8, x_9, x_10, x_120, x_12, x_13); -if (lean_obj_tag(x_153) == 0) +x_33 = l_Lean_Elab_Term_elabTerm(x_30, x_31, x_32, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_33) == 0) { -lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; -x_154 = lean_ctor_get(x_153, 0); -lean_inc(x_154); -x_155 = lean_ctor_get(x_153, 1); -lean_inc(x_155); -lean_dec(x_153); -x_156 = l___private_Lean_Elab_Inductive_7__getResultingType___closed__1; +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec(x_33); +x_36 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingType___closed__1; lean_inc(x_12); -lean_inc(x_120); +lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -lean_inc(x_154); -x_157 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Inductive_7__getResultingType___spec__1___rarg(x_154, x_156, x_7, x_8, x_9, x_10, x_120, x_12, x_155); -if (lean_obj_tag(x_157) == 0) +lean_inc(x_34); +x_37 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingType___spec__1___rarg(x_34, x_36, x_7, x_8, x_9, x_10, x_11, x_12, x_35); +if (lean_obj_tag(x_37) == 0) { -lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_175; uint8_t x_176; -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_175 = l_Lean_Expr_getAppFn___main(x_158); -x_176 = lean_expr_eqv(x_175, x_4); -lean_dec(x_4); -lean_dec(x_175); -if (x_176 == 0) +lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +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 = l_Lean_Expr_getAppFn___main(x_38); +x_41 = lean_expr_eqv(x_40, x_3); +lean_dec(x_3); +lean_dec(x_40); +if (x_41 == 0) { -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_dec(x_154); -lean_dec(x_6); +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; +lean_dec(x_34); +lean_dec(x_15); lean_dec(x_5); lean_dec(x_2); -lean_dec(x_1); -x_177 = l_Lean_indentExpr(x_158); -x_178 = l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__6; -x_179 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_179, 0, x_178); -lean_ctor_set(x_179, 1, x_177); -x_180 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_179, x_7, x_8, x_9, x_10, x_120, x_12, x_159); +x_42 = l_Lean_indentExpr(x_38); +x_43 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5___closed__5; +x_44 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_42); +x_45 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__4___closed__5; +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_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(x_46, x_7, x_8, x_9, x_10, x_11, x_12, x_39); lean_dec(x_12); -lean_dec(x_120); +lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -x_181 = lean_ctor_get(x_180, 0); -lean_inc(x_181); -x_182 = lean_ctor_get(x_180, 1); -lean_inc(x_182); -if (lean_is_exclusive(x_180)) { - lean_ctor_release(x_180, 0); - lean_ctor_release(x_180, 1); - x_183 = x_180; -} else { - lean_dec_ref(x_180); - x_183 = lean_box(0); -} -if (lean_is_scalar(x_183)) { - x_184 = lean_alloc_ctor(1, 2, 0); -} else { - x_184 = x_183; -} -lean_ctor_set(x_184, 0, x_181); -lean_ctor_set(x_184, 1, x_182); -return x_184; +x_48 = !lean_is_exclusive(x_47); +if (x_48 == 0) +{ +return x_47; } else { -lean_object* x_185; -lean_inc(x_12); -lean_inc(x_120); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_158); -x_185 = l___private_Lean_Meta_InferType_21__isTypeImp___at_Lean_Meta_isType___spec__1(x_158, x_9, x_10, x_120, x_12, x_159); -if (lean_obj_tag(x_185) == 0) +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_47, 0); +x_50 = lean_ctor_get(x_47, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_47); +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_186; uint8_t x_187; -x_186 = lean_ctor_get(x_185, 0); -lean_inc(x_186); -x_187 = lean_unbox(x_186); -lean_dec(x_186); -if (x_187 == 0) -{ -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_dec(x_154); -lean_dec(x_6); -lean_dec(x_5); +lean_object* x_52; lean_object* x_53; +x_52 = lean_box(0); +x_53 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__4(x_38, x_5, x_2, x_15, x_34, x_52, x_7, x_8, x_9, x_10, x_11, x_12, x_39); lean_dec(x_2); -lean_dec(x_1); -x_188 = lean_ctor_get(x_185, 1); -lean_inc(x_188); -lean_dec(x_185); -x_189 = l_Lean_indentExpr(x_158); -x_190 = l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__9; -x_191 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_191, 0, x_190); -lean_ctor_set(x_191, 1, x_189); -x_192 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_191, x_7, x_8, x_9, x_10, x_120, x_12, x_188); -lean_dec(x_12); -lean_dec(x_120); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_193 = lean_ctor_get(x_192, 0); -lean_inc(x_193); -x_194 = lean_ctor_get(x_192, 1); -lean_inc(x_194); -if (lean_is_exclusive(x_192)) { - lean_ctor_release(x_192, 0); - lean_ctor_release(x_192, 1); - x_195 = x_192; -} else { - lean_dec_ref(x_192); - x_195 = lean_box(0); -} -if (lean_is_scalar(x_195)) { - x_196 = lean_alloc_ctor(1, 2, 0); -} else { - x_196 = x_195; -} -lean_ctor_set(x_196, 0, x_193); -lean_ctor_set(x_196, 1, x_194); -return x_196; -} -else -{ -lean_object* x_197; -x_197 = lean_ctor_get(x_185, 1); -lean_inc(x_197); -lean_dec(x_185); -x_160 = x_197; -goto block_174; +return x_53; } } else { -lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; -lean_dec(x_158); -lean_dec(x_154); -lean_dec(x_120); +uint8_t x_54; +lean_dec(x_34); +lean_dec(x_11); +lean_dec(x_15); lean_dec(x_12); 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_198 = lean_ctor_get(x_185, 0); -lean_inc(x_198); -x_199 = lean_ctor_get(x_185, 1); -lean_inc(x_199); -if (lean_is_exclusive(x_185)) { - lean_ctor_release(x_185, 0); - lean_ctor_release(x_185, 1); - x_200 = x_185; -} else { - lean_dec_ref(x_185); - x_200 = lean_box(0); -} -if (lean_is_scalar(x_200)) { - x_201 = lean_alloc_ctor(1, 2, 0); -} else { - x_201 = x_200; -} -lean_ctor_set(x_201, 0, x_198); -lean_ctor_set(x_201, 1, x_199); -return x_201; -} -} -block_174: +x_54 = !lean_is_exclusive(x_37); +if (x_54 == 0) { -lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; -x_161 = lean_unsigned_to_nat(0u); -x_162 = l_Lean_Expr_getAppNumArgsAux___main(x_158, x_161); -x_163 = l_Lean_Expr_getAppArgs___closed__1; -lean_inc(x_162); -x_164 = lean_mk_array(x_162, x_163); -x_165 = lean_unsigned_to_nat(1u); -x_166 = lean_nat_sub(x_162, x_165); -lean_dec(x_162); -x_167 = l___private_Lean_Expr_3__getAppArgsAux___main(x_158, x_164, x_166); +return x_37; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_37, 0); +x_56 = lean_ctor_get(x_37, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_37); +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +return x_57; +} +} +} +else +{ +uint8_t x_58; +lean_dec(x_11); +lean_dec(x_15); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_58 = !lean_is_exclusive(x_33); +if (x_58 == 0) +{ +return x_33; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_33, 0); +x_60 = lean_ctor_get(x_33, 1); +lean_inc(x_60); +lean_inc(x_59); +lean_dec(x_33); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +return x_61; +} +} +} +} +else +{ +lean_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; +x_62 = lean_ctor_get(x_11, 0); +x_63 = lean_ctor_get(x_11, 1); +x_64 = lean_ctor_get(x_11, 2); +x_65 = lean_ctor_get(x_11, 3); +lean_inc(x_65); +lean_inc(x_64); +lean_inc(x_63); +lean_inc(x_62); +lean_dec(x_11); +x_66 = l_Lean_replaceRef(x_14, x_65); +lean_dec(x_14); +x_67 = l_Lean_replaceRef(x_66, x_65); +lean_dec(x_66); +x_68 = l_Lean_replaceRef(x_67, x_65); +lean_dec(x_65); +lean_dec(x_67); +x_69 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_69, 0, x_62); +lean_ctor_set(x_69, 1, x_63); +lean_ctor_set(x_69, 2, x_64); +lean_ctor_set(x_69, 3, x_68); +if (lean_obj_tag(x_16) == 0) +{ +lean_dec(x_5); +if (x_4 == 0) +{ +lean_object* x_70; lean_object* x_71; +x_70 = lean_box(0); +x_71 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__2(x_2, x_3, x_15, x_70, x_7, x_8, x_9, x_10, x_69, x_12, x_13); +lean_dec(x_2); +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; +lean_dec(x_15); +lean_dec(x_3); +lean_dec(x_2); +x_72 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5___closed__3; +x_73 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(x_72, x_7, x_8, x_9, x_10, x_69, x_12, x_13); +lean_dec(x_12); +lean_dec(x_69); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_74 = lean_ctor_get(x_73, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_73, 1); +lean_inc(x_75); +if (lean_is_exclusive(x_73)) { + lean_ctor_release(x_73, 0); + lean_ctor_release(x_73, 1); + x_76 = x_73; +} else { + lean_dec_ref(x_73); + x_76 = lean_box(0); +} +if (lean_is_scalar(x_76)) { + x_77 = lean_alloc_ctor(1, 2, 0); +} else { + x_77 = x_76; +} +lean_ctor_set(x_77, 0, x_74); +lean_ctor_set(x_77, 1, x_75); +return x_77; +} +} +else +{ +lean_object* x_78; lean_object* x_79; uint8_t x_80; lean_object* x_81; +x_78 = lean_ctor_get(x_16, 0); +lean_inc(x_78); +lean_dec(x_16); +x_79 = lean_box(0); +x_80 = 1; lean_inc(x_12); -lean_inc(x_120); +lean_inc(x_69); lean_inc(x_10); lean_inc(x_9); +lean_inc(x_8); lean_inc(x_7); -lean_inc(x_5); -x_168 = l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1(x_2, x_167, x_5, x_5, x_7, x_8, x_9, x_10, x_120, x_12, x_160); -lean_dec(x_5); -lean_dec(x_167); -if (lean_obj_tag(x_168) == 0) +x_81 = l_Lean_Elab_Term_elabTerm(x_78, x_79, x_80, x_7, x_8, x_9, x_10, x_69, x_12, x_13); +if (lean_obj_tag(x_81) == 0) { -lean_object* x_169; -x_169 = lean_ctor_get(x_168, 1); -lean_inc(x_169); -lean_dec(x_168); -x_121 = x_154; -x_122 = x_169; -goto block_141; -} -else -{ -lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; -lean_dec(x_154); -lean_dec(x_120); -lean_dec(x_12); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -lean_dec(x_1); -x_170 = lean_ctor_get(x_168, 0); -lean_inc(x_170); -x_171 = lean_ctor_get(x_168, 1); -lean_inc(x_171); -if (lean_is_exclusive(x_168)) { - lean_ctor_release(x_168, 0); - lean_ctor_release(x_168, 1); - x_172 = x_168; -} else { - lean_dec_ref(x_168); - x_172 = lean_box(0); -} -if (lean_is_scalar(x_172)) { - x_173 = lean_alloc_ctor(1, 2, 0); -} else { - x_173 = x_172; -} -lean_ctor_set(x_173, 0, x_170); -lean_ctor_set(x_173, 1, x_171); -return x_173; -} -} -} -else -{ -lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; -lean_dec(x_154); -lean_dec(x_120); -lean_dec(x_12); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_202 = lean_ctor_get(x_157, 0); -lean_inc(x_202); -x_203 = lean_ctor_get(x_157, 1); -lean_inc(x_203); -if (lean_is_exclusive(x_157)) { - lean_ctor_release(x_157, 0); - lean_ctor_release(x_157, 1); - x_204 = x_157; -} else { - lean_dec_ref(x_157); - x_204 = lean_box(0); -} -if (lean_is_scalar(x_204)) { - x_205 = lean_alloc_ctor(1, 2, 0); -} else { - x_205 = x_204; -} -lean_ctor_set(x_205, 0, x_202); -lean_ctor_set(x_205, 1, x_203); -return x_205; -} -} -else -{ -lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; -lean_dec(x_120); -lean_dec(x_12); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_206 = lean_ctor_get(x_153, 0); -lean_inc(x_206); -x_207 = lean_ctor_get(x_153, 1); -lean_inc(x_207); -if (lean_is_exclusive(x_153)) { - lean_ctor_release(x_153, 0); - lean_ctor_release(x_153, 1); - x_208 = x_153; -} else { - lean_dec_ref(x_153); - x_208 = lean_box(0); -} -if (lean_is_scalar(x_208)) { - x_209 = lean_alloc_ctor(1, 2, 0); -} else { - x_209 = x_208; -} -lean_ctor_set(x_209, 0, x_206); -lean_ctor_set(x_209, 1, x_207); -return x_209; -} -} -block_141: -{ -lean_object* x_123; +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_81, 1); +lean_inc(x_83); +lean_dec(x_81); +x_84 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingType___closed__1; +lean_inc(x_12); +lean_inc(x_69); +lean_inc(x_10); lean_inc(x_9); -x_123 = l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_Inductive_5__mkTypeFor___spec__1(x_6, x_121, x_7, x_8, x_9, x_10, x_120, x_12, x_122); -if (lean_obj_tag(x_123) == 0) +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_82); +x_85 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingType___spec__1___rarg(x_82, x_84, x_7, x_8, x_9, x_10, x_69, x_12, x_83); +if (lean_obj_tag(x_85) == 0) { -lean_object* x_124; lean_object* x_125; lean_object* 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_Meta_mkForallFVars___at___private_Lean_Elab_Inductive_5__mkTypeFor___spec__1(x_2, x_124, x_7, x_8, x_9, x_10, x_120, x_12, x_125); +lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; +x_86 = lean_ctor_get(x_85, 0); +lean_inc(x_86); +x_87 = lean_ctor_get(x_85, 1); +lean_inc(x_87); +lean_dec(x_85); +x_88 = l_Lean_Expr_getAppFn___main(x_86); +x_89 = lean_expr_eqv(x_88, x_3); +lean_dec(x_3); +lean_dec(x_88); +if (x_89 == 0) +{ +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_dec(x_82); +lean_dec(x_15); +lean_dec(x_5); +lean_dec(x_2); +x_90 = l_Lean_indentExpr(x_86); +x_91 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5___closed__5; +x_92 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_90); +x_93 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__4___closed__5; +x_94 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_94, 0, x_92); +lean_ctor_set(x_94, 1, x_93); +x_95 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(x_94, x_7, x_8, x_9, x_10, x_69, x_12, x_87); lean_dec(x_12); -lean_dec(x_120); +lean_dec(x_69); lean_dec(x_10); +lean_dec(x_9); lean_dec(x_8); -lean_dec(x_7); -if (lean_obj_tag(x_126) == 0) -{ -lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_127 = lean_ctor_get(x_126, 0); -lean_inc(x_127); -x_128 = lean_ctor_get(x_126, 1); -lean_inc(x_128); -if (lean_is_exclusive(x_126)) { - lean_ctor_release(x_126, 0); - lean_ctor_release(x_126, 1); - x_129 = x_126; +x_96 = lean_ctor_get(x_95, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_95, 1); +lean_inc(x_97); +if (lean_is_exclusive(x_95)) { + lean_ctor_release(x_95, 0); + lean_ctor_release(x_95, 1); + x_98 = x_95; } else { - lean_dec_ref(x_126); - x_129 = lean_box(0); + lean_dec_ref(x_95); + x_98 = lean_box(0); } -x_130 = lean_ctor_get(x_1, 2); -lean_inc(x_130); -lean_dec(x_1); -x_131 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_131, 0, x_130); -lean_ctor_set(x_131, 1, x_127); -if (lean_is_scalar(x_129)) { - x_132 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_98)) { + x_99 = lean_alloc_ctor(1, 2, 0); } else { - x_132 = x_129; + x_99 = x_98; } -lean_ctor_set(x_132, 0, x_131); -lean_ctor_set(x_132, 1, x_128); -return x_132; +lean_ctor_set(x_99, 0, x_96); +lean_ctor_set(x_99, 1, x_97); +return x_99; } else { -lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; -lean_dec(x_1); -x_133 = lean_ctor_get(x_126, 0); -lean_inc(x_133); -x_134 = lean_ctor_get(x_126, 1); -lean_inc(x_134); -if (lean_is_exclusive(x_126)) { - lean_ctor_release(x_126, 0); - lean_ctor_release(x_126, 1); - x_135 = x_126; -} else { - lean_dec_ref(x_126); - x_135 = lean_box(0); -} -if (lean_is_scalar(x_135)) { - x_136 = lean_alloc_ctor(1, 2, 0); -} else { - x_136 = x_135; -} -lean_ctor_set(x_136, 0, x_133); -lean_ctor_set(x_136, 1, x_134); -return x_136; +lean_object* x_100; lean_object* x_101; +x_100 = lean_box(0); +x_101 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__4(x_86, x_5, x_2, x_15, x_82, x_100, x_7, x_8, x_9, x_10, x_69, x_12, x_87); +lean_dec(x_2); +return x_101; } } else { -lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; -lean_dec(x_120); +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +lean_dec(x_82); +lean_dec(x_69); +lean_dec(x_15); lean_dec(x_12); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); -x_137 = lean_ctor_get(x_123, 0); -lean_inc(x_137); -x_138 = lean_ctor_get(x_123, 1); -lean_inc(x_138); -if (lean_is_exclusive(x_123)) { - lean_ctor_release(x_123, 0); - lean_ctor_release(x_123, 1); - x_139 = x_123; +x_102 = lean_ctor_get(x_85, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_85, 1); +lean_inc(x_103); +if (lean_is_exclusive(x_85)) { + lean_ctor_release(x_85, 0); + lean_ctor_release(x_85, 1); + x_104 = x_85; } else { - lean_dec_ref(x_123); - x_139 = lean_box(0); + lean_dec_ref(x_85); + x_104 = lean_box(0); } -if (lean_is_scalar(x_139)) { - x_140 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_104)) { + x_105 = lean_alloc_ctor(1, 2, 0); } else { - x_140 = x_139; + x_105 = x_104; } -lean_ctor_set(x_140, 0, x_137); -lean_ctor_set(x_140, 1, x_138); -return x_140; +lean_ctor_set(x_105, 0, x_102); +lean_ctor_set(x_105, 1, x_103); +return x_105; +} +} +else +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; +lean_dec(x_69); +lean_dec(x_15); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_106 = lean_ctor_get(x_81, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_81, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_81)) { + lean_ctor_release(x_81, 0); + lean_ctor_release(x_81, 1); + x_108 = x_81; +} else { + lean_dec_ref(x_81); + x_108 = lean_box(0); +} +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(1, 2, 0); +} else { + x_109 = x_108; +} +lean_ctor_set(x_109, 0, x_106); +lean_ctor_set(x_109, 1, x_107); +return x_109; } } } } } -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { if (lean_obj_tag(x_5) == 0) @@ -5275,11 +5354,11 @@ x_20 = lean_box(x_4); lean_inc(x_3); lean_inc(x_1); lean_inc(x_2); -x_21 = lean_alloc_closure((void*)(l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___boxed), 13, 5); +x_21 = lean_alloc_closure((void*)(l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5___boxed), 13, 5); lean_closure_set(x_21, 0, x_16); lean_closure_set(x_21, 1, x_2); -lean_closure_set(x_21, 2, x_20); -lean_closure_set(x_21, 3, x_1); +lean_closure_set(x_21, 2, x_1); +lean_closure_set(x_21, 3, x_20); lean_closure_set(x_21, 4, x_3); lean_inc(x_11); lean_inc(x_10); @@ -5297,7 +5376,7 @@ lean_inc(x_23); x_24 = lean_ctor_get(x_22, 1); lean_inc(x_24); lean_dec(x_22); -x_25 = l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2(x_1, x_2, x_3, x_4, x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_24); +x_25 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3(x_1, x_2, x_3, x_4, x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_24); if (lean_obj_tag(x_25) == 0) { uint8_t x_26; @@ -5402,11 +5481,11 @@ x_43 = lean_box(x_4); lean_inc(x_3); lean_inc(x_1); lean_inc(x_2); -x_44 = lean_alloc_closure((void*)(l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___boxed), 13, 5); +x_44 = lean_alloc_closure((void*)(l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5___boxed), 13, 5); lean_closure_set(x_44, 0, x_39); lean_closure_set(x_44, 1, x_2); -lean_closure_set(x_44, 2, x_43); -lean_closure_set(x_44, 3, x_1); +lean_closure_set(x_44, 2, x_1); +lean_closure_set(x_44, 3, x_43); lean_closure_set(x_44, 4, x_3); lean_inc(x_11); lean_inc(x_10); @@ -5424,7 +5503,7 @@ lean_inc(x_46); x_47 = lean_ctor_get(x_45, 1); lean_inc(x_47); lean_dec(x_45); -x_48 = l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2(x_1, x_2, x_3, x_4, x_40, x_6, x_7, x_8, x_9, x_10, x_11, x_47); +x_48 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3(x_1, x_2, x_3, x_4, x_40, x_6, x_7, x_8, x_9, x_10, x_11, x_47); if (lean_obj_tag(x_48) == 0) { lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; @@ -5516,7 +5595,7 @@ return x_61; } } } -lean_object* l___private_Lean_Elab_Inductive_16__elabCtors(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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; @@ -5543,7 +5622,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_1); lean_inc(x_13); -x_19 = l___private_Lean_Elab_Inductive_15__isInductiveFamily(x_13, x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_19 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_isInductiveFamily(x_13, x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10); if (lean_obj_tag(x_19) == 0) { lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; @@ -5556,7 +5635,7 @@ x_22 = lean_ctor_get(x_11, 7); x_23 = l_Array_toList___rarg(x_22); x_24 = lean_unbox(x_20); lean_dec(x_20); -x_25 = l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2(x_1, x_2, x_13, x_24, x_23, x_4, x_5, x_6, x_7, x_8, x_9, x_21); +x_25 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3(x_1, x_2, x_13, x_24, x_23, x_4, x_5, x_6, x_7, x_8, x_9, x_21); return x_25; } else @@ -5622,7 +5701,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_1); lean_inc(x_13); -x_38 = l___private_Lean_Elab_Inductive_15__isInductiveFamily(x_13, x_1, x_4, x_5, x_6, x_7, x_37, x_9, x_10); +x_38 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_isInductiveFamily(x_13, x_1, x_4, x_5, x_6, x_7, x_37, x_9, x_10); if (lean_obj_tag(x_38) == 0) { lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; lean_object* x_44; @@ -5635,7 +5714,7 @@ x_41 = lean_ctor_get(x_11, 7); x_42 = l_Array_toList___rarg(x_41); x_43 = lean_unbox(x_39); lean_dec(x_39); -x_44 = l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2(x_1, x_2, x_13, x_43, x_42, x_4, x_5, x_6, x_7, x_37, x_9, x_40); +x_44 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3(x_1, x_2, x_13, x_43, x_42, x_4, x_5, x_6, x_7, x_37, x_9, x_40); return x_44; } else @@ -5674,48 +5753,102 @@ return x_48; } } } -lean_object* l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Lean_Meta_isType___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Meta_isType___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_3); +lean_dec(x_2); +return x_9; +} +} +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_14; +} +} +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___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 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___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_10); +lean_dec(x_9); +lean_dec(x_8); lean_dec(x_6); +lean_dec(x_5); lean_dec(x_3); -lean_dec(x_2); +return x_12; +} +} +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_4); lean_dec(x_1); return x_12; } } -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_6); +lean_dec(x_3); +return x_14; +} +} +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_6); +lean_dec(x_3); +return x_14; +} +} +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { uint8_t x_14; lean_object* x_15; -x_14 = lean_unbox(x_3); -lean_dec(x_3); -x_15 = l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1(x_1, x_2, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_14 = lean_unbox(x_4); +lean_dec(x_4); +x_15 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5(x_1, x_2, x_3, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); return x_15; } } -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { uint8_t x_13; lean_object* x_14; x_13 = lean_unbox(x_4); lean_dec(x_4); -x_14 = l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2(x_1, x_2, x_3, x_13, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_14 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3(x_1, x_2, x_3, x_13, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); return x_14; } } -lean_object* l___private_Lean_Elab_Inductive_16__elabCtors___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l___private_Lean_Elab_Inductive_16__elabCtors(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_3); return x_11; } } -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_17__levelMVarToParamAux___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* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParamAux___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: { if (lean_obj_tag(x_1) == 0) @@ -5750,7 +5883,7 @@ x_19 = lean_ctor_get(x_17, 1); lean_inc(x_19); lean_dec(x_17); lean_ctor_set(x_13, 1, x_18); -x_20 = l_List_mapM___main___at___private_Lean_Elab_Inductive_17__levelMVarToParamAux___spec__1(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_19); +x_20 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParamAux___spec__1(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_19); x_21 = !lean_is_exclusive(x_20); if (x_21 == 0) { @@ -5794,7 +5927,7 @@ lean_dec(x_29); x_32 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_32, 0, x_27); lean_ctor_set(x_32, 1, x_30); -x_33 = l_List_mapM___main___at___private_Lean_Elab_Inductive_17__levelMVarToParamAux___spec__1(x_26, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_31); +x_33 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParamAux___spec__1(x_26, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_31); x_34 = lean_ctor_get(x_33, 0); lean_inc(x_34); x_35 = lean_ctor_get(x_33, 1); @@ -5853,7 +5986,7 @@ if (lean_is_scalar(x_42)) { } lean_ctor_set(x_46, 0, x_40); lean_ctor_set(x_46, 1, x_44); -x_47 = l_List_mapM___main___at___private_Lean_Elab_Inductive_17__levelMVarToParamAux___spec__1(x_39, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_45); +x_47 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParamAux___spec__1(x_39, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_45); x_48 = lean_ctor_get(x_47, 0); lean_inc(x_48); x_49 = lean_ctor_get(x_47, 1); @@ -5881,7 +6014,7 @@ return x_52; } } } -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_17__levelMVarToParamAux___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* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParamAux___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: { if (lean_obj_tag(x_1) == 0) @@ -5917,7 +6050,7 @@ x_20 = lean_ctor_get(x_18, 1); lean_inc(x_20); lean_dec(x_18); lean_inc(x_3); -x_21 = l_List_mapM___main___at___private_Lean_Elab_Inductive_17__levelMVarToParamAux___spec__1(x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_20); +x_21 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParamAux___spec__1(x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_20); x_22 = lean_ctor_get(x_21, 0); lean_inc(x_22); x_23 = lean_ctor_get(x_21, 1); @@ -5925,7 +6058,7 @@ lean_inc(x_23); lean_dec(x_21); lean_ctor_set(x_13, 2, x_22); lean_ctor_set(x_13, 1, x_19); -x_24 = l_List_mapM___main___at___private_Lean_Elab_Inductive_17__levelMVarToParamAux___spec__2(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_23); +x_24 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParamAux___spec__2(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_23); x_25 = !lean_is_exclusive(x_24); if (x_25 == 0) { @@ -5969,7 +6102,7 @@ x_36 = lean_ctor_get(x_34, 1); lean_inc(x_36); lean_dec(x_34); lean_inc(x_3); -x_37 = l_List_mapM___main___at___private_Lean_Elab_Inductive_17__levelMVarToParamAux___spec__1(x_33, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_36); +x_37 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParamAux___spec__1(x_33, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_36); x_38 = lean_ctor_get(x_37, 0); lean_inc(x_38); x_39 = lean_ctor_get(x_37, 1); @@ -5979,7 +6112,7 @@ x_40 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_40, 0, x_31); lean_ctor_set(x_40, 1, x_35); lean_ctor_set(x_40, 2, x_38); -x_41 = l_List_mapM___main___at___private_Lean_Elab_Inductive_17__levelMVarToParamAux___spec__2(x_30, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_39); +x_41 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParamAux___spec__2(x_30, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_39); x_42 = lean_ctor_get(x_41, 0); lean_inc(x_42); x_43 = lean_ctor_get(x_41, 1); @@ -6035,7 +6168,7 @@ x_54 = lean_ctor_get(x_52, 1); lean_inc(x_54); lean_dec(x_52); lean_inc(x_3); -x_55 = l_List_mapM___main___at___private_Lean_Elab_Inductive_17__levelMVarToParamAux___spec__1(x_50, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_54); +x_55 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParamAux___spec__1(x_50, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_54); x_56 = lean_ctor_get(x_55, 0); lean_inc(x_56); x_57 = lean_ctor_get(x_55, 1); @@ -6049,7 +6182,7 @@ if (lean_is_scalar(x_51)) { lean_ctor_set(x_58, 0, x_48); lean_ctor_set(x_58, 1, x_53); lean_ctor_set(x_58, 2, x_56); -x_59 = l_List_mapM___main___at___private_Lean_Elab_Inductive_17__levelMVarToParamAux___spec__2(x_47, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_57); +x_59 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParamAux___spec__2(x_47, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_57); x_60 = lean_ctor_get(x_59, 0); lean_inc(x_60); x_61 = lean_ctor_get(x_59, 1); @@ -6077,19 +6210,19 @@ return x_64; } } } -lean_object* l___private_Lean_Elab_Inductive_17__levelMVarToParamAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParamAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_List_mapM___main___at___private_Lean_Elab_Inductive_17__levelMVarToParamAux___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParamAux___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_10; } } -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_17__levelMVarToParamAux___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* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParamAux___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_List_mapM___main___at___private_Lean_Elab_Inductive_17__levelMVarToParamAux___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParamAux___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); @@ -6099,11 +6232,11 @@ lean_dec(x_2); return x_10; } } -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_17__levelMVarToParamAux___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* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParamAux___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_List_mapM___main___at___private_Lean_Elab_Inductive_17__levelMVarToParamAux___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParamAux___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); @@ -6113,11 +6246,11 @@ lean_dec(x_2); return x_10; } } -lean_object* l___private_Lean_Elab_Inductive_17__levelMVarToParamAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParamAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_Inductive_17__levelMVarToParamAux(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParamAux(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); @@ -6127,7 +6260,7 @@ lean_dec(x_2); return x_10; } } -lean_object* l___private_Lean_Elab_Inductive_18__levelMVarToParam(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParam(lean_object* x_1, lean_object* x_2, 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; uint8_t x_17; @@ -6138,7 +6271,7 @@ lean_inc(x_11); x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); lean_dec(x_10); -x_13 = l_List_mapM___main___at___private_Lean_Elab_Inductive_17__levelMVarToParamAux___spec__2(x_1, x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_12); +x_13 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParamAux___spec__2(x_1, x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_12); x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); x_15 = lean_ctor_get(x_13, 1); @@ -6168,11 +6301,11 @@ return x_20; } } } -lean_object* l___private_Lean_Elab_Inductive_18__levelMVarToParam___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParam___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l___private_Lean_Elab_Inductive_18__levelMVarToParam(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParam(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); @@ -6181,7 +6314,72 @@ lean_dec(x_3); return x_9; } } -static lean_object* _init_l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__1() { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 3) +{ +lean_object* x_4; uint64_t x_5; lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); +lean_dec(x_1); +x_6 = lean_box_uint64(x_5); +x_7 = lean_apply_2(x_2, x_4, x_6); +return x_7; +} +else +{ +lean_object* x_8; +lean_dec(x_2); +x_8 = lean_apply_1(x_3, x_1); +return x_8; +} +} +} +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_1, 1); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_apply_2(x_3, x_6, x_7); +return x_8; +} +} +} +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse_match__2___rarg), 3, 0); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__1() { _start: { lean_object* x_1; @@ -6189,27 +6387,27 @@ x_1 = lean_mk_string("unexpected empty inductive declaration"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__2() { +static lean_object* _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__1; +x_1 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__3() { +static lean_object* _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__2; +x_1 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__4() { +static lean_object* _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__4() { _start: { lean_object* x_1; @@ -6217,33 +6415,33 @@ x_1 = lean_mk_string("unexpected inductive type resulting type"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__5() { +static lean_object* _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__4; +x_1 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__4; 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_Inductive_19__getResultingUniverse___closed__6() { +static lean_object* _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__5; +x_1 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__5; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Inductive_19__getResultingUniverse(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { if (lean_obj_tag(x_1) == 0) { lean_object* x_9; lean_object* x_10; -x_9 = l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__3; +x_9 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__3; x_10 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); @@ -6261,14 +6459,14 @@ lean_dec(x_1); x_12 = lean_ctor_get(x_11, 1); lean_inc(x_12); lean_dec(x_11); -x_13 = l___private_Lean_Elab_Inductive_7__getResultingType___closed__1; +x_13 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingType___closed__1; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_14 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Inductive_7__getResultingType___spec__1___rarg(x_12, x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_14 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingType___spec__1___rarg(x_12, x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8); if (lean_obj_tag(x_14) == 0) { lean_object* x_15; @@ -6317,8 +6515,8 @@ lean_dec(x_15); x_22 = lean_ctor_get(x_14, 1); lean_inc(x_22); lean_dec(x_14); -x_23 = l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__6; -x_24 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_22); +x_23 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__6; +x_24 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_22); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -6393,6 +6591,38 @@ x_1 = l_Lean_Elab_Command_tmpIndParam___closed__3; return x_1; } } +lean_object* l_Lean_Elab_Command_shouldInferResultUniverse_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 5) +{ +lean_object* x_4; uint64_t x_5; lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); +lean_dec(x_1); +x_6 = lean_box_uint64(x_5); +x_7 = lean_apply_2(x_2, x_4, x_6); +return x_7; +} +else +{ +lean_object* x_8; +lean_dec(x_2); +x_8 = lean_apply_1(x_3, x_1); +return x_8; +} +} +} +lean_object* l_Lean_Elab_Command_shouldInferResultUniverse_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_shouldInferResultUniverse_match__1___rarg), 3, 0); +return x_2; +} +} lean_object* l_Lean_Meta_instantiateLevelMVars___at_Lean_Elab_Command_shouldInferResultUniverse___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { @@ -6448,46 +6678,24 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = l_Lean_Elab_Command_shouldInferResultUniverse___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } static lean_object* _init_l_Lean_Elab_Command_shouldInferResultUniverse___closed__3() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_shouldInferResultUniverse___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Command_shouldInferResultUniverse___closed__4() { -_start: -{ lean_object* x_1; x_1 = lean_mk_string(", provide universe explicitly"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_shouldInferResultUniverse___closed__5() { +static lean_object* _init_l_Lean_Elab_Command_shouldInferResultUniverse___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_shouldInferResultUniverse___closed__4; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Command_shouldInferResultUniverse___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_shouldInferResultUniverse___closed__5; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Lean_Elab_Command_shouldInferResultUniverse___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } @@ -6560,15 +6768,15 @@ lean_dec(x_16); x_28 = l_Lean_mkSort(x_11); x_29 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_29, 0, x_28); -x_30 = l_Lean_Elab_Command_shouldInferResultUniverse___closed__3; +x_30 = l_Lean_Elab_Command_shouldInferResultUniverse___closed__2; x_31 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_31, 0, x_30); lean_ctor_set(x_31, 1, x_29); -x_32 = l_Lean_Elab_Command_shouldInferResultUniverse___closed__6; +x_32 = l_Lean_Elab_Command_shouldInferResultUniverse___closed__4; x_33 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_33, 0, x_31); lean_ctor_set(x_33, 1, x_32); -x_34 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_33, x_2, x_3, x_4, x_5, x_6, x_7, x_12); +x_34 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(x_33, x_2, x_3, x_4, x_5, x_6, x_7, x_12); return x_34; } } @@ -6636,15 +6844,15 @@ lean_dec(x_41); x_50 = l_Lean_mkSort(x_35); x_51 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_51, 0, x_50); -x_52 = l_Lean_Elab_Command_shouldInferResultUniverse___closed__3; +x_52 = l_Lean_Elab_Command_shouldInferResultUniverse___closed__2; x_53 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_53, 0, x_52); lean_ctor_set(x_53, 1, x_51); -x_54 = l_Lean_Elab_Command_shouldInferResultUniverse___closed__6; +x_54 = l_Lean_Elab_Command_shouldInferResultUniverse___closed__4; 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_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_55, x_2, x_3, x_4, x_5, x_6, x_7, x_36); +x_56 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(x_55, x_2, x_3, x_4, x_5, x_6, x_7, x_36); return x_56; } } @@ -6678,7 +6886,91 @@ lean_dec(x_3); return x_9; } } -uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Command_accLevelAtCtor___main___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Elab_Command_accLevelAtCtor_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 0: +{ +uint64_t x_9; lean_object* x_10; lean_object* x_11; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +x_9 = lean_ctor_get_uint64(x_1, 0); +lean_dec(x_1); +x_10 = lean_box_uint64(x_9); +x_11 = lean_apply_4(x_6, x_10, x_2, x_3, x_4); +return x_11; +} +case 1: +{ +lean_object* x_12; uint64_t x_13; lean_object* x_14; uint8_t x_15; +lean_dec(x_6); +lean_dec(x_5); +x_12 = lean_ctor_get(x_1, 0); +lean_inc(x_12); +x_13 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); +x_14 = lean_unsigned_to_nat(0u); +x_15 = lean_nat_dec_eq(x_3, x_14); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +lean_dec(x_8); +lean_dec(x_1); +x_16 = lean_unsigned_to_nat(1u); +x_17 = lean_nat_sub(x_3, x_16); +lean_dec(x_3); +x_18 = lean_box_uint64(x_13); +x_19 = lean_apply_5(x_7, x_12, x_18, x_2, x_17, x_4); +return x_19; +} +else +{ +lean_object* x_20; +lean_dec(x_12); +lean_dec(x_7); +lean_dec(x_3); +x_20 = lean_apply_4(x_8, x_1, x_2, x_14, x_4); +return x_20; +} +} +case 2: +{ +lean_object* x_21; lean_object* x_22; uint64_t x_23; lean_object* x_24; lean_object* x_25; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_21 = lean_ctor_get(x_1, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_1, 1); +lean_inc(x_22); +x_23 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +lean_dec(x_1); +x_24 = lean_box_uint64(x_23); +x_25 = lean_apply_6(x_5, x_21, x_22, x_24, x_2, x_3, x_4); +return x_25; +} +default: +{ +lean_object* x_26; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_26 = lean_apply_4(x_8, x_1, x_2, x_3, x_4); +return x_26; +} +} +} +} +lean_object* l_Lean_Elab_Command_accLevelAtCtor_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_accLevelAtCtor_match__1___rarg), 8, 0); +return x_2; +} +} +uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Command_accLevelAtCtor___spec__2(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; @@ -6713,18 +7005,18 @@ return x_9; } } } -uint8_t l_Array_contains___at_Lean_Elab_Command_accLevelAtCtor___main___spec__1(lean_object* x_1, lean_object* x_2) { +uint8_t l_Array_contains___at_Lean_Elab_Command_accLevelAtCtor___spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; uint8_t x_5; x_3 = lean_array_get_size(x_1); x_4 = lean_unsigned_to_nat(0u); -x_5 = l_Array_anyRangeMAux___main___at_Lean_Elab_Command_accLevelAtCtor___main___spec__2(x_1, x_2, x_1, x_3, x_4); +x_5 = l_Array_anyRangeMAux___main___at_Lean_Elab_Command_accLevelAtCtor___spec__2(x_1, x_2, x_1, x_3, x_4); lean_dec(x_3); return x_5; } } -static lean_object* _init_l_Lean_Elab_Command_accLevelAtCtor___main___closed__1() { +static lean_object* _init_l_Lean_Elab_Command_accLevelAtCtor___closed__1() { _start: { lean_object* x_1; @@ -6732,17 +7024,17 @@ x_1 = lean_mk_string("failed to compute resulting universe level of inductive da return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_accLevelAtCtor___main___closed__2() { +static lean_object* _init_l_Lean_Elab_Command_accLevelAtCtor___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_accLevelAtCtor___main___closed__1; +x_1 = l_Lean_Elab_Command_accLevelAtCtor___closed__1; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Lean_Elab_Command_accLevelAtCtor___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Command_accLevelAtCtor(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { switch (lean_obj_tag(x_1)) { @@ -6786,7 +7078,7 @@ x_13 = l_Lean_Level_occurs___main(x_2, x_1); if (x_13 == 0) { uint8_t x_14; -x_14 = l_Array_contains___at_Lean_Elab_Command_accLevelAtCtor___main___spec__1(x_4, x_1); +x_14 = l_Array_contains___at_Lean_Elab_Command_accLevelAtCtor___spec__1(x_4, x_1); if (x_14 == 0) { lean_object* x_15; lean_object* x_16; @@ -6809,7 +7101,7 @@ else lean_object* x_18; lean_dec(x_4); lean_dec(x_1); -x_18 = l_Lean_Elab_Command_accLevelAtCtor___main___closed__2; +x_18 = l_Lean_Elab_Command_accLevelAtCtor___closed__2; return x_18; } } @@ -6832,7 +7124,7 @@ x_21 = lean_ctor_get(x_1, 1); lean_inc(x_21); lean_dec(x_1); lean_inc(x_3); -x_22 = l_Lean_Elab_Command_accLevelAtCtor___main(x_20, x_2, x_3, x_4); +x_22 = l_Lean_Elab_Command_accLevelAtCtor(x_20, x_2, x_3, x_4); if (lean_obj_tag(x_22) == 0) { uint8_t x_23; @@ -6878,7 +7170,7 @@ x_30 = l_Lean_Level_occurs___main(x_2, x_1); if (x_30 == 0) { uint8_t x_31; -x_31 = l_Array_contains___at_Lean_Elab_Command_accLevelAtCtor___main___spec__1(x_4, x_1); +x_31 = l_Array_contains___at_Lean_Elab_Command_accLevelAtCtor___spec__1(x_4, x_1); if (x_31 == 0) { lean_object* x_32; lean_object* x_33; @@ -6901,7 +7193,7 @@ else lean_object* x_35; lean_dec(x_4); lean_dec(x_1); -x_35 = l_Lean_Elab_Command_accLevelAtCtor___main___closed__2; +x_35 = l_Lean_Elab_Command_accLevelAtCtor___closed__2; return x_35; } } @@ -6916,7 +7208,7 @@ x_37 = l_Lean_Level_occurs___main(x_2, x_1); if (x_37 == 0) { uint8_t x_38; -x_38 = l_Array_contains___at_Lean_Elab_Command_accLevelAtCtor___main___spec__1(x_4, x_1); +x_38 = l_Array_contains___at_Lean_Elab_Command_accLevelAtCtor___spec__1(x_4, x_1); if (x_38 == 0) { lean_object* x_39; lean_object* x_40; @@ -6939,7 +7231,7 @@ else lean_object* x_42; lean_dec(x_4); lean_dec(x_1); -x_42 = l_Lean_Elab_Command_accLevelAtCtor___main___closed__2; +x_42 = l_Lean_Elab_Command_accLevelAtCtor___closed__2; return x_42; } } @@ -6956,11 +7248,11 @@ return x_43; } } } -lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Command_accLevelAtCtor___main___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* l_Array_anyRangeMAux___main___at_Lean_Elab_Command_accLevelAtCtor___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { uint8_t x_6; lean_object* x_7; -x_6 = l_Array_anyRangeMAux___main___at_Lean_Elab_Command_accLevelAtCtor___main___spec__2(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Array_anyRangeMAux___main___at_Lean_Elab_Command_accLevelAtCtor___spec__2(x_1, x_2, x_3, x_4, x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -6969,34 +7261,17 @@ x_7 = lean_box(x_6); return x_7; } } -lean_object* l_Array_contains___at_Lean_Elab_Command_accLevelAtCtor___main___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Array_contains___at_Lean_Elab_Command_accLevelAtCtor___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_Array_contains___at_Lean_Elab_Command_accLevelAtCtor___main___spec__1(x_1, x_2); +x_3 = l_Array_contains___at_Lean_Elab_Command_accLevelAtCtor___spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } -lean_object* l_Lean_Elab_Command_accLevelAtCtor___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Elab_Command_accLevelAtCtor___main(x_1, x_2, x_3, x_4); -lean_dec(x_2); -return x_5; -} -} -lean_object* l_Lean_Elab_Command_accLevelAtCtor(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Elab_Command_accLevelAtCtor___main(x_1, x_2, x_3, x_4); -return x_5; -} -} lean_object* l_Lean_Elab_Command_accLevelAtCtor___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -7006,26 +7281,141 @@ lean_dec(x_2); return x_5; } } -lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux_match__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) { +_start: +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_nat_dec_eq(x_1, x_7); +if (x_8 == 0) +{ +lean_dec(x_4); +if (lean_obj_tag(x_2) == 7) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; uint64_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +lean_dec(x_6); +x_9 = lean_ctor_get(x_2, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_2, 1); +lean_inc(x_10); +x_11 = lean_ctor_get(x_2, 2); +lean_inc(x_11); +x_12 = lean_ctor_get_uint64(x_2, sizeof(void*)*3); +lean_dec(x_2); +x_13 = lean_unsigned_to_nat(1u); +x_14 = lean_nat_sub(x_1, x_13); +lean_dec(x_1); +x_15 = lean_box_uint64(x_12); +x_16 = lean_apply_6(x_5, x_14, x_9, x_10, x_11, x_15, x_3); +return x_16; +} +else +{ +lean_object* x_17; +lean_dec(x_5); +x_17 = lean_apply_3(x_6, x_1, x_2, x_3); +return x_17; +} +} +else +{ +lean_dec(x_5); +lean_dec(x_1); +if (lean_obj_tag(x_2) == 7) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; uint64_t x_21; lean_object* x_22; lean_object* x_23; +lean_dec(x_6); +x_18 = lean_ctor_get(x_2, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_2, 1); +lean_inc(x_19); +x_20 = lean_ctor_get(x_2, 2); +lean_inc(x_20); +x_21 = lean_ctor_get_uint64(x_2, sizeof(void*)*3); +lean_dec(x_2); +x_22 = lean_box_uint64(x_21); +x_23 = lean_apply_5(x_4, x_18, x_19, x_20, x_22, x_3); +return x_23; +} +else +{ +lean_object* x_24; +lean_dec(x_4); +x_24 = lean_apply_3(x_6, x_7, x_2, x_3); +return x_24; +} +} +} +} +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux_match__2___rarg), 6, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_getLevel___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l___private_Lean_Meta_InferType_4__getLevelImp(x_1, x_4, x_5, x_6, x_7, x_8); +return x_9; +} +} +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux___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; lean_object* x_15; x_14 = lean_expr_instantiate1(x_1, x_6); -x_15 = l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main(x_2, x_3, x_4, x_14, x_5, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_15 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux(x_2, x_3, x_4, x_14, x_5, x_7, x_8, x_9, x_10, x_11, x_12, x_13); return x_15; } } -lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux___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_13; lean_object* x_14; lean_object* x_15; x_13 = lean_expr_instantiate1(x_1, x_5); x_14 = lean_unsigned_to_nat(0u); -x_15 = l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main(x_2, x_3, x_14, x_13, x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_15 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux(x_2, x_3, x_14, x_13, x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_12); return x_15; } } -lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___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, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; uint8_t x_14; @@ -7047,13 +7437,13 @@ lean_dec(x_4); x_19 = lean_unsigned_to_nat(1u); x_20 = lean_nat_sub(x_3, x_19); x_21 = (uint8_t)((x_18 << 24) >> 61); -x_22 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___lambda__1___boxed), 13, 5); +x_22 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux___lambda__1___boxed), 13, 5); lean_closure_set(x_22, 0, x_17); lean_closure_set(x_22, 1, x_1); lean_closure_set(x_22, 2, x_2); lean_closure_set(x_22, 3, x_20); lean_closure_set(x_22, 4, x_5); -x_23 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_20__elabImplicitLambda___main___spec__1___rarg(x_15, x_21, x_16, x_22, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_23 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_elabLetDeclAux___spec__3___rarg(x_15, x_21, x_16, x_22, x_6, x_7, x_8, x_9, x_10, x_11, x_12); return x_23; } else @@ -7108,7 +7498,7 @@ x_34 = lean_ctor_get(x_32, 1); lean_inc(x_34); lean_dec(x_32); lean_inc(x_2); -x_35 = l_Lean_Elab_Command_accLevelAtCtor___main(x_33, x_1, x_2, x_5); +x_35 = l_Lean_Elab_Command_accLevelAtCtor(x_33, x_1, x_2, x_5); if (lean_obj_tag(x_35) == 0) { lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; @@ -7124,7 +7514,7 @@ x_37 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_37, 0, x_36); x_38 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_38, 0, x_37); -x_39 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_38, x_6, x_7, x_8, x_9, x_10, x_11, x_34); +x_39 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(x_38, x_6, x_7, x_8, x_9, x_10, x_11, x_34); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -7139,12 +7529,12 @@ x_40 = lean_ctor_get(x_35, 0); lean_inc(x_40); lean_dec(x_35); x_41 = (uint8_t)((x_28 << 24) >> 61); -x_42 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___lambda__2___boxed), 12, 4); +x_42 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux___lambda__2___boxed), 12, 4); lean_closure_set(x_42, 0, x_27); lean_closure_set(x_42, 1, x_1); lean_closure_set(x_42, 2, x_2); lean_closure_set(x_42, 3, x_40); -x_43 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_20__elabImplicitLambda___main___spec__1___rarg(x_25, x_41, x_26, x_42, x_6, x_7, x_8, x_9, x_10, x_11, x_34); +x_43 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_elabLetDeclAux___spec__3___rarg(x_25, x_41, x_26, x_42, x_6, x_7, x_8, x_9, x_10, x_11, x_34); return x_43; } } @@ -7203,71 +7593,64 @@ return x_48; } } } -lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___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* l_Lean_Meta_getLevel___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Meta_getLevel___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_3); +lean_dec(x_2); +return x_9; +} +} +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { lean_object* x_14; -x_14 = l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_14 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux___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); lean_dec(x_4); lean_dec(x_1); return x_14; } } -lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___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* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; -x_13 = l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___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 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux___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_5); lean_dec(x_1); return x_13; } } -lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; -x_13 = l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_13 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_3); return x_13; } } -lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; -x_13 = l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_13 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux(x_1, x_2, x_4, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); return x_13; } } -lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; -x_13 = l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_3); -return x_13; -} -} -lean_object* l___private_Lean_Elab_Inductive_21__collectUniversesFromCtorType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ -lean_object* x_13; -x_13 = l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main(x_1, x_2, x_4, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -return x_13; -} -} -lean_object* l___private_Lean_Elab_Inductive_21__collectUniversesFromCtorType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ -lean_object* x_13; -x_13 = l___private_Lean_Elab_Inductive_21__collectUniversesFromCtorType(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_13 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorType(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_4); return x_13; } } -lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_22__collectUniverses___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) { +lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniverses___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_5) == 0) @@ -7305,7 +7688,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_2); lean_inc(x_1); -x_17 = l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main(x_1, x_2, x_3, x_16, x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_17 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux(x_1, x_2, x_3, x_16, x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_12); if (lean_obj_tag(x_17) == 0) { lean_object* x_18; lean_object* x_19; @@ -7353,7 +7736,7 @@ return x_24; } } } -lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_22__collectUniverses___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, lean_object* x_12) { +lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniverses___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, lean_object* x_12) { _start: { if (lean_obj_tag(x_5) == 0) @@ -7391,7 +7774,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_2); lean_inc(x_1); -x_17 = l_List_foldlM___main___at___private_Lean_Elab_Inductive_22__collectUniverses___spec__1(x_1, x_2, x_3, x_4, x_16, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_17 = l_List_foldlM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniverses___spec__1(x_1, x_2, x_3, x_4, x_16, x_6, x_7, x_8, x_9, x_10, x_11, x_12); if (lean_obj_tag(x_17) == 0) { lean_object* x_18; lean_object* x_19; @@ -7439,43 +7822,43 @@ return x_24; } } } -lean_object* l___private_Lean_Elab_Inductive_22__collectUniverses(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniverses(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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 = l_Array_empty___closed__1; -x_13 = l_List_foldlM___main___at___private_Lean_Elab_Inductive_22__collectUniverses___spec__2(x_1, x_2, x_3, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_13 = l_List_foldlM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniverses___spec__2(x_1, x_2, x_3, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); return x_13; } } -lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_22__collectUniverses___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* l_List_foldlM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniverses___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_foldlM___main___at___private_Lean_Elab_Inductive_22__collectUniverses___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); +x_13 = l_List_foldlM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniverses___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_3); return x_13; } } -lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_22__collectUniverses___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniverses___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; -x_13 = l_List_foldlM___main___at___private_Lean_Elab_Inductive_22__collectUniverses___spec__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 = l_List_foldlM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniverses___spec__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); return x_13; } } -lean_object* l___private_Lean_Elab_Inductive_22__collectUniverses___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniverses___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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_Inductive_22__collectUniverses(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___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniverses(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_3); return x_12; } } -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__2___lambda__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2___lambda__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; @@ -7497,7 +7880,7 @@ return x_6; } } } -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -7517,10 +7900,10 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_obj x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); lean_inc(x_1); -x_7 = lean_alloc_closure((void*)(l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__2___lambda__1___boxed), 2, 1); +x_7 = lean_alloc_closure((void*)(l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2___lambda__1___boxed), 2, 1); lean_closure_set(x_7, 0, x_1); x_8 = l_Lean_Level_replace___main(x_7, x_5); -x_9 = l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__2(x_1, x_6); +x_9 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2(x_1, x_6); lean_ctor_set(x_2, 1, x_9); lean_ctor_set(x_2, 0, x_8); return x_2; @@ -7534,10 +7917,10 @@ lean_inc(x_11); lean_inc(x_10); lean_dec(x_2); lean_inc(x_1); -x_12 = lean_alloc_closure((void*)(l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__2___lambda__1___boxed), 2, 1); +x_12 = lean_alloc_closure((void*)(l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2___lambda__1___boxed), 2, 1); lean_closure_set(x_12, 0, x_1); x_13 = l_Lean_Level_replace___main(x_12, x_10); -x_14 = l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__2(x_1, x_11); +x_14 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2(x_1, x_11); x_15 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_15, 0, x_13); lean_ctor_set(x_15, 1, x_14); @@ -7546,12 +7929,12 @@ return x_15; } } } -lean_object* l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__1(lean_object* x_1, size_t x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1(lean_object* x_1, size_t x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; size_t x_10; uint8_t x_11; lean_inc(x_1); -x_5 = lean_alloc_closure((void*)(l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__2___lambda__1___boxed), 2, 1); +x_5 = lean_alloc_closure((void*)(l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2___lambda__1___boxed), 2, 1); lean_closure_set(x_5, 0, x_1); x_6 = lean_ptr_addr(x_3); x_7 = x_2 == 0 ? 0 : x_6 % x_2; @@ -7593,7 +7976,7 @@ lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean lean_dec(x_5); x_20 = lean_ctor_get(x_3, 1); lean_inc(x_20); -x_21 = l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__2(x_1, x_20); +x_21 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2(x_1, x_20); lean_inc(x_3); x_22 = lean_expr_update_const(x_3, x_21); x_23 = lean_array_uset(x_8, x_7, x_3); @@ -7620,13 +8003,13 @@ lean_inc(x_28); x_29 = lean_ctor_get(x_3, 1); lean_inc(x_29); lean_inc(x_1); -x_30 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__1(x_1, x_2, x_28, x_4); +x_30 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1(x_1, x_2, x_28, x_4); x_31 = lean_ctor_get(x_30, 0); lean_inc(x_31); x_32 = lean_ctor_get(x_30, 1); lean_inc(x_32); lean_dec(x_30); -x_33 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__1(x_1, x_2, x_29, x_32); +x_33 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1(x_1, x_2, x_29, x_32); x_34 = !lean_is_exclusive(x_33); if (x_34 == 0) { @@ -7688,13 +8071,13 @@ x_53 = lean_ctor_get(x_3, 2); lean_inc(x_53); x_54 = lean_ctor_get_uint64(x_3, sizeof(void*)*3); lean_inc(x_1); -x_55 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__1(x_1, x_2, x_52, x_4); +x_55 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1(x_1, x_2, x_52, x_4); x_56 = lean_ctor_get(x_55, 0); lean_inc(x_56); x_57 = lean_ctor_get(x_55, 1); lean_inc(x_57); lean_dec(x_55); -x_58 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__1(x_1, x_2, x_53, x_57); +x_58 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1(x_1, x_2, x_53, x_57); x_59 = !lean_is_exclusive(x_58); if (x_59 == 0) { @@ -7758,13 +8141,13 @@ x_80 = lean_ctor_get(x_3, 2); lean_inc(x_80); x_81 = lean_ctor_get_uint64(x_3, sizeof(void*)*3); lean_inc(x_1); -x_82 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__1(x_1, x_2, x_79, x_4); +x_82 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1(x_1, x_2, x_79, x_4); x_83 = lean_ctor_get(x_82, 0); lean_inc(x_83); x_84 = lean_ctor_get(x_82, 1); lean_inc(x_84); lean_dec(x_82); -x_85 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__1(x_1, x_2, x_80, x_84); +x_85 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1(x_1, x_2, x_80, x_84); x_86 = !lean_is_exclusive(x_85); if (x_86 == 0) { @@ -7829,20 +8212,20 @@ lean_inc(x_107); x_108 = lean_ctor_get(x_3, 3); lean_inc(x_108); lean_inc(x_1); -x_109 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__1(x_1, x_2, x_106, x_4); +x_109 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1(x_1, x_2, x_106, x_4); 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); lean_inc(x_1); -x_112 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__1(x_1, x_2, x_107, x_111); +x_112 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1(x_1, x_2, x_107, x_111); x_113 = lean_ctor_get(x_112, 0); lean_inc(x_113); x_114 = lean_ctor_get(x_112, 1); lean_inc(x_114); lean_dec(x_112); -x_115 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__1(x_1, x_2, x_108, x_114); +x_115 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1(x_1, x_2, x_108, x_114); x_116 = !lean_is_exclusive(x_115); if (x_116 == 0) { @@ -7900,7 +8283,7 @@ lean_dec(x_8); lean_dec(x_5); x_134 = lean_ctor_get(x_3, 1); lean_inc(x_134); -x_135 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__1(x_1, x_2, x_134, x_4); +x_135 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1(x_1, x_2, x_134, x_4); x_136 = !lean_is_exclusive(x_135); if (x_136 == 0) { @@ -7958,7 +8341,7 @@ lean_dec(x_8); lean_dec(x_5); x_154 = lean_ctor_get(x_3, 2); lean_inc(x_154); -x_155 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__1(x_1, x_2, x_154, x_4); +x_155 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1(x_1, x_2, x_154, x_4); x_156 = !lean_is_exclusive(x_155); if (x_156 == 0) { @@ -8052,7 +8435,7 @@ return x_180; } } } -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__4(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__4(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -8072,10 +8455,10 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_obj x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); lean_inc(x_1); -x_7 = lean_alloc_closure((void*)(l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__2___lambda__1___boxed), 2, 1); +x_7 = lean_alloc_closure((void*)(l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2___lambda__1___boxed), 2, 1); lean_closure_set(x_7, 0, x_1); x_8 = l_Lean_Level_replace___main(x_7, x_5); -x_9 = l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__4(x_1, x_6); +x_9 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__4(x_1, x_6); lean_ctor_set(x_2, 1, x_9); lean_ctor_set(x_2, 0, x_8); return x_2; @@ -8089,10 +8472,10 @@ lean_inc(x_11); lean_inc(x_10); lean_dec(x_2); lean_inc(x_1); -x_12 = lean_alloc_closure((void*)(l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__2___lambda__1___boxed), 2, 1); +x_12 = lean_alloc_closure((void*)(l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2___lambda__1___boxed), 2, 1); lean_closure_set(x_12, 0, x_1); x_13 = l_Lean_Level_replace___main(x_12, x_10); -x_14 = l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__4(x_1, x_11); +x_14 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__4(x_1, x_11); x_15 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_15, 0, x_13); lean_ctor_set(x_15, 1, x_14); @@ -8101,12 +8484,12 @@ return x_15; } } } -lean_object* l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__3(lean_object* x_1, size_t x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__3(lean_object* x_1, size_t x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; size_t x_10; uint8_t x_11; lean_inc(x_1); -x_5 = lean_alloc_closure((void*)(l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__2___lambda__1___boxed), 2, 1); +x_5 = lean_alloc_closure((void*)(l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2___lambda__1___boxed), 2, 1); lean_closure_set(x_5, 0, x_1); x_6 = lean_ptr_addr(x_3); x_7 = x_2 == 0 ? 0 : x_6 % x_2; @@ -8148,7 +8531,7 @@ lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean lean_dec(x_5); x_20 = lean_ctor_get(x_3, 1); lean_inc(x_20); -x_21 = l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__4(x_1, x_20); +x_21 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__4(x_1, x_20); lean_inc(x_3); x_22 = lean_expr_update_const(x_3, x_21); x_23 = lean_array_uset(x_8, x_7, x_3); @@ -8175,13 +8558,13 @@ lean_inc(x_28); x_29 = lean_ctor_get(x_3, 1); lean_inc(x_29); lean_inc(x_1); -x_30 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__3(x_1, x_2, x_28, x_4); +x_30 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__3(x_1, x_2, x_28, x_4); x_31 = lean_ctor_get(x_30, 0); lean_inc(x_31); x_32 = lean_ctor_get(x_30, 1); lean_inc(x_32); lean_dec(x_30); -x_33 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__3(x_1, x_2, x_29, x_32); +x_33 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__3(x_1, x_2, x_29, x_32); x_34 = !lean_is_exclusive(x_33); if (x_34 == 0) { @@ -8243,13 +8626,13 @@ x_53 = lean_ctor_get(x_3, 2); lean_inc(x_53); x_54 = lean_ctor_get_uint64(x_3, sizeof(void*)*3); lean_inc(x_1); -x_55 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__3(x_1, x_2, x_52, x_4); +x_55 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__3(x_1, x_2, x_52, x_4); x_56 = lean_ctor_get(x_55, 0); lean_inc(x_56); x_57 = lean_ctor_get(x_55, 1); lean_inc(x_57); lean_dec(x_55); -x_58 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__3(x_1, x_2, x_53, x_57); +x_58 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__3(x_1, x_2, x_53, x_57); x_59 = !lean_is_exclusive(x_58); if (x_59 == 0) { @@ -8313,13 +8696,13 @@ x_80 = lean_ctor_get(x_3, 2); lean_inc(x_80); x_81 = lean_ctor_get_uint64(x_3, sizeof(void*)*3); lean_inc(x_1); -x_82 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__3(x_1, x_2, x_79, x_4); +x_82 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__3(x_1, x_2, x_79, x_4); x_83 = lean_ctor_get(x_82, 0); lean_inc(x_83); x_84 = lean_ctor_get(x_82, 1); lean_inc(x_84); lean_dec(x_82); -x_85 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__3(x_1, x_2, x_80, x_84); +x_85 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__3(x_1, x_2, x_80, x_84); x_86 = !lean_is_exclusive(x_85); if (x_86 == 0) { @@ -8384,20 +8767,20 @@ lean_inc(x_107); x_108 = lean_ctor_get(x_3, 3); lean_inc(x_108); lean_inc(x_1); -x_109 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__3(x_1, x_2, x_106, x_4); +x_109 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__3(x_1, x_2, x_106, x_4); 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); lean_inc(x_1); -x_112 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__3(x_1, x_2, x_107, x_111); +x_112 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__3(x_1, x_2, x_107, x_111); x_113 = lean_ctor_get(x_112, 0); lean_inc(x_113); x_114 = lean_ctor_get(x_112, 1); lean_inc(x_114); lean_dec(x_112); -x_115 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__3(x_1, x_2, x_108, x_114); +x_115 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__3(x_1, x_2, x_108, x_114); x_116 = !lean_is_exclusive(x_115); if (x_116 == 0) { @@ -8455,7 +8838,7 @@ lean_dec(x_8); lean_dec(x_5); x_134 = lean_ctor_get(x_3, 1); lean_inc(x_134); -x_135 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__3(x_1, x_2, x_134, x_4); +x_135 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__3(x_1, x_2, x_134, x_4); x_136 = !lean_is_exclusive(x_135); if (x_136 == 0) { @@ -8513,7 +8896,7 @@ lean_dec(x_8); lean_dec(x_5); x_154 = lean_ctor_get(x_3, 2); lean_inc(x_154); -x_155 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__3(x_1, x_2, x_154, x_4); +x_155 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__3(x_1, x_2, x_154, x_4); x_156 = !lean_is_exclusive(x_155); if (x_156 == 0) { @@ -8607,7 +8990,7 @@ return x_180; } } } -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__5(lean_object* x_1, size_t x_2, lean_object* x_3) { +lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__5(lean_object* x_1, size_t x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -8633,12 +9016,12 @@ x_8 = lean_ctor_get(x_3, 1); x_9 = lean_ctor_get(x_6, 1); x_10 = l_Lean_Expr_ReplaceLevelImpl_initCache; lean_inc(x_1); -x_11 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__3(x_1, x_2, x_9, x_10); +x_11 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__3(x_1, x_2, x_9, x_10); x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); lean_dec(x_11); lean_ctor_set(x_6, 1, x_12); -x_13 = l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__5(x_1, x_2, x_8); +x_13 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__5(x_1, x_2, x_8); lean_ctor_set(x_3, 1, x_13); return x_3; } @@ -8653,14 +9036,14 @@ lean_inc(x_15); lean_dec(x_6); x_17 = l_Lean_Expr_ReplaceLevelImpl_initCache; lean_inc(x_1); -x_18 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__3(x_1, x_2, x_16, x_17); +x_18 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__3(x_1, x_2, x_16, x_17); x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); lean_dec(x_18); x_20 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_20, 0, x_15); lean_ctor_set(x_20, 1, x_19); -x_21 = l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__5(x_1, x_2, x_14); +x_21 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__5(x_1, x_2, x_14); lean_ctor_set(x_3, 1, x_21); lean_ctor_set(x_3, 0, x_20); return x_3; @@ -8688,7 +9071,7 @@ if (lean_is_exclusive(x_22)) { } x_27 = l_Lean_Expr_ReplaceLevelImpl_initCache; lean_inc(x_1); -x_28 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__3(x_1, x_2, x_25, x_27); +x_28 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__3(x_1, x_2, x_25, x_27); x_29 = lean_ctor_get(x_28, 0); lean_inc(x_29); lean_dec(x_28); @@ -8699,7 +9082,7 @@ if (lean_is_scalar(x_26)) { } lean_ctor_set(x_30, 0, x_24); lean_ctor_set(x_30, 1, x_29); -x_31 = l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__5(x_1, x_2, x_23); +x_31 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__5(x_1, x_2, x_23); x_32 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_32, 0, x_30); lean_ctor_set(x_32, 1, x_31); @@ -8708,7 +9091,7 @@ return x_32; } } } -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__6(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__6(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -8736,15 +9119,15 @@ x_9 = lean_ctor_get(x_5, 2); x_10 = 8192; x_11 = l_Lean_Expr_ReplaceLevelImpl_initCache; lean_inc(x_1); -x_12 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__1(x_1, x_10, x_8, x_11); +x_12 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1(x_1, x_10, x_8, x_11); x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); lean_dec(x_12); lean_inc(x_1); -x_14 = l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__5(x_1, x_10, x_9); +x_14 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__5(x_1, x_10, x_9); lean_ctor_set(x_5, 2, x_14); lean_ctor_set(x_5, 1, x_13); -x_15 = l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__6(x_1, x_7); +x_15 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__6(x_1, x_7); lean_ctor_set(x_2, 1, x_15); return x_2; } @@ -8762,17 +9145,17 @@ lean_dec(x_5); x_20 = 8192; x_21 = l_Lean_Expr_ReplaceLevelImpl_initCache; lean_inc(x_1); -x_22 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__1(x_1, x_20, x_18, x_21); +x_22 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1(x_1, x_20, x_18, x_21); x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); lean_dec(x_22); lean_inc(x_1); -x_24 = l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__5(x_1, x_20, x_19); +x_24 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__5(x_1, x_20, x_19); x_25 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_25, 0, x_17); lean_ctor_set(x_25, 1, x_23); lean_ctor_set(x_25, 2, x_24); -x_26 = l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__6(x_1, x_16); +x_26 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__6(x_1, x_16); lean_ctor_set(x_2, 1, x_26); lean_ctor_set(x_2, 0, x_25); return x_2; @@ -8804,12 +9187,12 @@ if (lean_is_exclusive(x_27)) { x_33 = 8192; x_34 = l_Lean_Expr_ReplaceLevelImpl_initCache; lean_inc(x_1); -x_35 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__1(x_1, x_33, x_30, x_34); +x_35 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1(x_1, x_33, x_30, x_34); x_36 = lean_ctor_get(x_35, 0); lean_inc(x_36); lean_dec(x_35); lean_inc(x_1); -x_37 = l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__5(x_1, x_33, x_31); +x_37 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__5(x_1, x_33, x_31); if (lean_is_scalar(x_32)) { x_38 = lean_alloc_ctor(0, 3, 0); } else { @@ -8818,7 +9201,7 @@ if (lean_is_scalar(x_32)) { lean_ctor_set(x_38, 0, x_29); lean_ctor_set(x_38, 1, x_36); lean_ctor_set(x_38, 2, x_37); -x_39 = l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__6(x_1, x_28); +x_39 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__6(x_1, x_28); x_40 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_40, 0, x_38); lean_ctor_set(x_40, 1, x_39); @@ -8827,27 +9210,91 @@ return x_40; } } } -static lean_object* _init_l___private_Lean_Elab_Inductive_23__updateResultingUniverse___closed__1() { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +lean_inc(x_4); +x_13 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniverses(x_1, x_2, x_3, x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_13) == 0) +{ +uint8_t x_14; +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_15 = lean_ctor_get(x_13, 0); +x_16 = l_Array_toList___rarg(x_15); +lean_dec(x_15); +x_17 = l_Lean_Level_mkNaryMax___main(x_16); +x_18 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__6(x_17, x_4); +lean_ctor_set(x_13, 0, x_18); +return x_13; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_19 = lean_ctor_get(x_13, 0); +x_20 = lean_ctor_get(x_13, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_13); +x_21 = l_Array_toList___rarg(x_19); +lean_dec(x_19); +x_22 = l_Lean_Level_mkNaryMax___main(x_21); +x_23 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__6(x_22, x_4); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_20); +return x_24; +} +} +else +{ +uint8_t x_25; +lean_dec(x_4); +x_25 = !lean_is_exclusive(x_13); +if (x_25 == 0) +{ +return x_13; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_13, 0); +x_27 = lean_ctor_get(x_13, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_13); +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; +} +} +} +} +static lean_object* _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___closed__1() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_accLevelAtCtor___main___closed__1; +x_1 = l_Lean_Elab_Command_accLevelAtCtor___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Inductive_23__updateResultingUniverse___closed__2() { +static lean_object* _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Inductive_23__updateResultingUniverse___closed__1; +x_1 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___closed__1; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Inductive_23__updateResultingUniverse(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; @@ -8858,10 +9305,10 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_10 = l___private_Lean_Elab_Inductive_19__getResultingUniverse(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse(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; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_34; +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_10, 1); @@ -8871,110 +9318,50 @@ x_13 = lean_unsigned_to_nat(0u); x_14 = l_Lean_Level_getOffsetAux___main(x_11, x_13); x_15 = l_Lean_Level_getLevelOffset___main(x_11); lean_dec(x_11); -x_34 = l_Lean_Level_isParam(x_15); -if (x_34 == 0) +x_16 = l_Lean_Level_isParam(x_15); +if (x_16 == 0) { -lean_object* x_35; lean_object* x_36; uint8_t x_37; +lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_dec(x_15); lean_dec(x_14); lean_dec(x_2); -x_35 = l___private_Lean_Elab_Inductive_23__updateResultingUniverse___closed__2; -x_36 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_35, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +x_17 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___closed__2; +x_18 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_12); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_37 = !lean_is_exclusive(x_36); -if (x_37 == 0) +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) { -return x_36; +return x_18; } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_36, 0); -x_39 = lean_ctor_get(x_36, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_36); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -return x_40; +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 { -x_16 = x_12; -goto block_33; -} -block_33: -{ -lean_object* x_17; -lean_inc(x_2); -x_17 = l___private_Lean_Elab_Inductive_22__collectUniverses(x_15, x_14, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_16); -if (lean_obj_tag(x_17) == 0) -{ -uint8_t x_18; -x_18 = !lean_is_exclusive(x_17); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_17, 0); -x_20 = l_Array_toList___rarg(x_19); -lean_dec(x_19); -x_21 = l_Lean_Level_mkNaryMax___main(x_20); -x_22 = l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__6(x_21, x_2); -lean_ctor_set(x_17, 0, x_22); -return x_17; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_23 = lean_ctor_get(x_17, 0); -x_24 = lean_ctor_get(x_17, 1); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_17); -x_25 = l_Array_toList___rarg(x_23); -lean_dec(x_23); -x_26 = l_Lean_Level_mkNaryMax___main(x_25); -x_27 = l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__6(x_26, x_2); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_24); -return x_28; +lean_object* x_23; lean_object* x_24; +x_23 = lean_box(0); +x_24 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___lambda__1(x_15, x_14, x_1, x_2, x_23, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +return x_24; } } else { -uint8_t x_29; -lean_dec(x_2); -x_29 = !lean_is_exclusive(x_17); -if (x_29 == 0) -{ -return x_17; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_17, 0); -x_31 = lean_ctor_get(x_17, 1); -lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_17); -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_30); -lean_ctor_set(x_32, 1, x_31); -return x_32; -} -} -} -} -else -{ -uint8_t x_41; +uint8_t x_25; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -8982,76 +9369,86 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_41 = !lean_is_exclusive(x_10); -if (x_41 == 0) +x_25 = !lean_is_exclusive(x_10); +if (x_25 == 0) { return x_10; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_10, 0); -x_43 = lean_ctor_get(x_10, 1); -lean_inc(x_43); -lean_inc(x_42); +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_10, 0); +x_27 = lean_ctor_get(x_10, 1); +lean_inc(x_27); +lean_inc(x_26); lean_dec(x_10); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -return x_44; +x_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_object* l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__2___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__2___lambda__1(x_1, x_2); +x_3 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2___lambda__1(x_1, x_2); lean_dec(x_2); return x_3; } } -lean_object* l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { size_t x_5; lean_object* x_6; x_5 = lean_unbox_usize(x_2); lean_dec(x_2); -x_6 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__1(x_1, x_5, x_3, x_4); +x_6 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1(x_1, x_5, x_3, x_4); return x_6; } } -lean_object* l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { size_t x_5; lean_object* x_6; x_5 = lean_unbox_usize(x_2); lean_dec(x_2); -x_6 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__3(x_1, x_5, x_3, x_4); +x_6 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__3(x_1, x_5, x_3, x_4); return x_6; } } -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { size_t x_4; lean_object* x_5; x_4 = lean_unbox_usize(x_2); lean_dec(x_2); -x_5 = l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__5(x_1, x_4, x_3); +x_5 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__5(x_1, x_4, x_3); return x_5; } } -lean_object* l___private_Lean_Elab_Inductive_23__updateResultingUniverse___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___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_5); +lean_dec(x_3); +return x_13; +} +} +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_Inductive_23__updateResultingUniverse(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_1); return x_10; } } -lean_object* l_IO_getStdout___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_IO_getStdout___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; @@ -9124,19 +9521,19 @@ return x_22; } } } -lean_object* l_IO_getStdout___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_IO_getStdout___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = lean_alloc_closure((void*)(l_IO_getStdout___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__3___rarg___boxed), 3, 0); +x_5 = lean_alloc_closure((void*)(l_IO_getStdout___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__3___rarg___boxed), 3, 0); return x_5; } } -lean_object* l_IO_print___at___private_Lean_Elab_Inductive_24__traceIndTypes___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* l_IO_print___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___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; -x_9 = l_IO_getStdout___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__3___rarg(x_6, x_7, x_8); +x_9 = l_IO_getStdout___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__3___rarg(x_6, x_7, x_8); if (lean_obj_tag(x_9) == 0) { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; @@ -9241,17 +9638,17 @@ return x_35; } } } -lean_object* l_IO_println___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_IO_println___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { uint32_t x_9; lean_object* x_10; lean_object* x_11; x_9 = 10; x_10 = lean_string_push(x_1, x_9); -x_11 = l_IO_print___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__2(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_11 = l_IO_print___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__2(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8); return x_11; } } -static lean_object* _init_l_List_forM___main___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__4___closed__1() { +static lean_object* _init_l_List_forM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__4___closed__1() { _start: { lean_object* x_1; @@ -9259,7 +9656,7 @@ x_1 = lean_mk_string(" >> "); return x_1; } } -lean_object* l_List_forM___main___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_List_forM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { if (lean_obj_tag(x_1) == 0) @@ -9273,7 +9670,7 @@ return x_10; } else { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 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_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; x_11 = lean_ctor_get(x_1, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_1, 1); @@ -9283,7 +9680,7 @@ x_13 = lean_ctor_get(x_11, 0); lean_inc(x_13); x_14 = l_System_FilePath_dirName___closed__1; x_15 = l_Lean_Name_toStringWithSep___main(x_14, x_13); -x_16 = l_List_forM___main___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__4___closed__1; +x_16 = l_List_forM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__4___closed__1; x_17 = lean_string_append(x_16, x_15); lean_dec(x_15); x_18 = l_Array_iterateMAux___main___at_Lean_ppGoal___spec__6___closed__5; @@ -9295,44 +9692,46 @@ x_21 = lean_expr_dbg_to_string(x_20); lean_dec(x_20); x_22 = lean_string_append(x_19, x_21); lean_dec(x_21); -x_23 = l_IO_println___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__1(x_22, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_23) == 0) +x_23 = l_String_splitAux___main___closed__1; +x_24 = lean_string_append(x_22, x_23); +x_25 = l_IO_println___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__1(x_24, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_25) == 0) { -lean_object* x_24; -x_24 = lean_ctor_get(x_23, 1); -lean_inc(x_24); -lean_dec(x_23); +lean_object* x_26; +x_26 = lean_ctor_get(x_25, 1); +lean_inc(x_26); +lean_dec(x_25); x_1 = x_12; -x_8 = x_24; +x_8 = x_26; goto _start; } else { -uint8_t x_26; +uint8_t x_28; lean_dec(x_12); -x_26 = !lean_is_exclusive(x_23); -if (x_26 == 0) +x_28 = !lean_is_exclusive(x_25); +if (x_28 == 0) { -return x_23; +return x_25; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_23, 0); -x_28 = lean_ctor_get(x_23, 1); -lean_inc(x_28); -lean_inc(x_27); -lean_dec(x_23); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_27); -lean_ctor_set(x_29, 1, x_28); -return x_29; +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_25, 0); +x_30 = lean_ctor_get(x_25, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_25); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +return x_31; } } } } } -lean_object* l_List_forM___main___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_List_forM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { if (lean_obj_tag(x_1) == 0) @@ -9355,7 +9754,7 @@ lean_dec(x_1); x_13 = lean_ctor_get(x_11, 2); lean_inc(x_13); lean_dec(x_11); -x_14 = l_List_forM___main___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__4(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_14 = l_List_forM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__4(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8); if (lean_obj_tag(x_14) == 0) { lean_object* x_15; @@ -9392,29 +9791,29 @@ return x_20; } } } -lean_object* l___private_Lean_Elab_Inductive_24__traceIndTypes(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l_List_forM___main___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_List_forM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); return x_9; } } -lean_object* l_IO_getStdout___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_IO_getStdout___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_IO_getStdout___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__3___rarg(x_1, x_2, x_3); +x_4 = l_IO_getStdout___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__3___rarg(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l_IO_getStdout___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_IO_getStdout___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___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_IO_getStdout___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__3(x_1, x_2, x_3, x_4); +x_5 = l_IO_getStdout___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__3(x_1, x_2, x_3, x_4); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -9422,11 +9821,11 @@ lean_dec(x_1); return x_5; } } -lean_object* l_IO_print___at___private_Lean_Elab_Inductive_24__traceIndTypes___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* l_IO_print___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___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_IO_print___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_IO_print___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___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); @@ -9436,11 +9835,11 @@ lean_dec(x_2); return x_9; } } -lean_object* l_IO_println___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_IO_println___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l_IO_println___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_IO_println___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -9450,11 +9849,11 @@ lean_dec(x_2); return x_9; } } -lean_object* l_List_forM___main___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_List_forM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l_List_forM___main___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_List_forM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -9464,11 +9863,11 @@ lean_dec(x_2); return x_9; } } -lean_object* l_List_forM___main___at___private_Lean_Elab_Inductive_24__traceIndTypes___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* l_List_forM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l_List_forM___main___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_List_forM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -9478,11 +9877,11 @@ lean_dec(x_2); return x_9; } } -lean_object* l___private_Lean_Elab_Inductive_24__traceIndTypes___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l___private_Lean_Elab_Inductive_24__traceIndTypes(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes(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); @@ -9492,7 +9891,7 @@ lean_dec(x_2); return x_9; } } -lean_object* l_List_forM___main___at___private_Lean_Elab_Inductive_25__collectUsed___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* l_List_forM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUsed___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: { if (lean_obj_tag(x_1) == 0) @@ -9525,7 +9924,7 @@ goto _start; } } } -lean_object* l_List_forM___main___at___private_Lean_Elab_Inductive_25__collectUsed___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* l_List_forM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUsed___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: { if (lean_obj_tag(x_1) == 0) @@ -9554,7 +9953,7 @@ lean_dec(x_15); x_17 = lean_ctor_get(x_12, 2); lean_inc(x_17); lean_dec(x_12); -x_18 = l_List_forM___main___at___private_Lean_Elab_Inductive_25__collectUsed___spec__1(x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_16); +x_18 = l_List_forM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUsed___spec__1(x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_16); x_19 = lean_ctor_get(x_18, 1); lean_inc(x_19); lean_dec(x_18); @@ -9564,19 +9963,19 @@ goto _start; } } } -lean_object* l___private_Lean_Elab_Inductive_25__collectUsed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUsed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_List_forM___main___at___private_Lean_Elab_Inductive_25__collectUsed___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_List_forM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUsed___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_10; } } -lean_object* l_List_forM___main___at___private_Lean_Elab_Inductive_25__collectUsed___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* l_List_forM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUsed___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_List_forM___main___at___private_Lean_Elab_Inductive_25__collectUsed___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_List_forM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUsed___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); @@ -9587,11 +9986,11 @@ lean_dec(x_2); return x_10; } } -lean_object* l_List_forM___main___at___private_Lean_Elab_Inductive_25__collectUsed___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* l_List_forM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUsed___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_List_forM___main___at___private_Lean_Elab_Inductive_25__collectUsed___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_List_forM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUsed___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); @@ -9602,11 +10001,11 @@ lean_dec(x_2); return x_10; } } -lean_object* l___private_Lean_Elab_Inductive_25__collectUsed___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUsed___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_Inductive_25__collectUsed(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUsed(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); @@ -9617,7 +10016,28 @@ lean_dec(x_2); return x_10; } } -static lean_object* _init_l___private_Lean_Elab_Inductive_26__removeUnused___closed__1() { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_removeUnused_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_removeUnused_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_removeUnused_match__1___rarg), 2, 0); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_removeUnused___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -9629,18 +10049,18 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* l___private_Lean_Elab_Inductive_26__removeUnused(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_removeUnused(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; lean_object* x_19; -x_10 = l___private_Lean_Elab_Inductive_26__removeUnused___closed__1; +x_10 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_removeUnused___closed__1; x_11 = lean_st_mk_ref(x_10, 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_List_forM___main___at___private_Lean_Elab_Inductive_25__collectUsed___spec__2(x_2, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_13); +x_14 = l_List_forM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUsed___spec__2(x_2, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_13); x_15 = lean_ctor_get(x_14, 1); lean_inc(x_15); lean_dec(x_14); @@ -9655,18 +10075,44 @@ x_19 = l_Lean_Elab_Term_removeUnused(x_1, x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_ return x_19; } } -lean_object* l___private_Lean_Elab_Inductive_26__removeUnused___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_removeUnused___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_Inductive_26__removeUnused(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_removeUnused(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); return x_10; } } -lean_object* l___private_Lean_Elab_Inductive_27__withUsed___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* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withUsed_match__1___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; lean_object* x_7; +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_3, 1); +lean_inc(x_6); +lean_dec(x_3); +x_7 = lean_apply_3(x_2, x_4, x_5, x_6); +return x_7; +} +} +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withUsed_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withUsed_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withUsed___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; @@ -9674,7 +10120,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_11 = l___private_Lean_Elab_Inductive_26__removeUnused(x_1, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_removeUnused(x_1, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10); if (lean_obj_tag(x_11) == 0) { lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; @@ -9694,7 +10140,7 @@ x_17 = lean_ctor_get(x_13, 1); lean_inc(x_17); lean_dec(x_13); x_18 = lean_apply_1(x_3, x_17); -x_19 = l_Lean_Meta_withLCtx___at_Lean_Elab_Term_elabSyntheticHole___spec__1___rarg(x_15, x_16, x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_14); +x_19 = l_Lean_Meta_withLCtx___at_Lean_Elab_Term_elabBinders___spec__2___rarg(x_15, x_16, x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_14); return x_19; } else @@ -9728,24 +10174,24 @@ return x_23; } } } -lean_object* l___private_Lean_Elab_Inductive_27__withUsed(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withUsed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_27__withUsed___rarg___boxed), 10, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withUsed___rarg___boxed), 10, 0); return x_2; } } -lean_object* l___private_Lean_Elab_Inductive_27__withUsed___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* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withUsed___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l___private_Lean_Elab_Inductive_27__withUsed___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withUsed___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_1); return x_11; } } -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_28__updateParams___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* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateParams___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: { if (lean_obj_tag(x_2) == 0) @@ -9776,7 +10222,7 @@ x_16 = lean_ctor_get(x_13, 0); x_17 = lean_ctor_get(x_13, 1); lean_inc(x_5); lean_inc(x_1); -x_18 = l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_Inductive_5__mkTypeFor___spec__1(x_1, x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_18 = l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(x_1, x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_18) == 0) { lean_object* x_19; lean_object* x_20; lean_object* x_21; @@ -9786,7 +10232,7 @@ x_20 = lean_ctor_get(x_18, 1); lean_inc(x_20); lean_dec(x_18); lean_ctor_set(x_13, 1, x_19); -x_21 = l_List_mapM___main___at___private_Lean_Elab_Inductive_28__updateParams___spec__1(x_1, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_20); +x_21 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateParams___spec__1(x_1, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_20); if (lean_obj_tag(x_21) == 0) { uint8_t x_22; @@ -9879,7 +10325,7 @@ lean_inc(x_36); lean_dec(x_13); lean_inc(x_5); lean_inc(x_1); -x_38 = l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_Inductive_5__mkTypeFor___spec__1(x_1, x_37, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_38 = l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(x_1, x_37, x_3, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_38) == 0) { lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; @@ -9891,7 +10337,7 @@ lean_dec(x_38); x_41 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_41, 0, x_36); lean_ctor_set(x_41, 1, x_39); -x_42 = l_List_mapM___main___at___private_Lean_Elab_Inductive_28__updateParams___spec__1(x_1, x_35, x_3, x_4, x_5, x_6, x_7, x_8, x_40); +x_42 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateParams___spec__1(x_1, x_35, x_3, x_4, x_5, x_6, x_7, x_8, x_40); if (lean_obj_tag(x_42) == 0) { lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; @@ -9998,7 +10444,7 @@ if (lean_is_exclusive(x_55)) { } lean_inc(x_5); lean_inc(x_1); -x_60 = l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_Inductive_5__mkTypeFor___spec__1(x_1, x_58, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_60 = l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(x_1, x_58, x_3, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_60) == 0) { lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; @@ -10014,7 +10460,7 @@ if (lean_is_scalar(x_59)) { } lean_ctor_set(x_63, 0, x_57); lean_ctor_set(x_63, 1, x_61); -x_64 = l_List_mapM___main___at___private_Lean_Elab_Inductive_28__updateParams___spec__1(x_1, x_56, x_3, x_4, x_5, x_6, x_7, x_8, x_62); +x_64 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateParams___spec__1(x_1, x_56, x_3, x_4, x_5, x_6, x_7, x_8, x_62); 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; @@ -10101,7 +10547,7 @@ return x_77; } } } -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_28__updateParams___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* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateParams___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: { if (lean_obj_tag(x_2) == 0) @@ -10133,7 +10579,7 @@ x_17 = lean_ctor_get(x_13, 1); x_18 = lean_ctor_get(x_13, 2); lean_inc(x_5); lean_inc(x_1); -x_19 = l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_Inductive_5__mkTypeFor___spec__1(x_1, x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_19 = l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(x_1, x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_19) == 0) { lean_object* x_20; lean_object* x_21; lean_object* x_22; @@ -10144,7 +10590,7 @@ lean_inc(x_21); lean_dec(x_19); lean_inc(x_5); lean_inc(x_1); -x_22 = l_List_mapM___main___at___private_Lean_Elab_Inductive_28__updateParams___spec__1(x_1, x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_21); +x_22 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateParams___spec__1(x_1, x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_21); if (lean_obj_tag(x_22) == 0) { lean_object* x_23; lean_object* x_24; lean_object* x_25; @@ -10155,7 +10601,7 @@ lean_inc(x_24); lean_dec(x_22); lean_ctor_set(x_13, 2, x_23); lean_ctor_set(x_13, 1, x_20); -x_25 = l_List_mapM___main___at___private_Lean_Elab_Inductive_28__updateParams___spec__2(x_1, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_24); +x_25 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateParams___spec__2(x_1, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_24); if (lean_obj_tag(x_25) == 0) { uint8_t x_26; @@ -10281,7 +10727,7 @@ lean_inc(x_44); lean_dec(x_13); lean_inc(x_5); lean_inc(x_1); -x_47 = l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_Inductive_5__mkTypeFor___spec__1(x_1, x_45, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_47 = l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(x_1, x_45, x_3, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_47) == 0) { lean_object* x_48; lean_object* x_49; lean_object* x_50; @@ -10292,7 +10738,7 @@ lean_inc(x_49); lean_dec(x_47); lean_inc(x_5); lean_inc(x_1); -x_50 = l_List_mapM___main___at___private_Lean_Elab_Inductive_28__updateParams___spec__1(x_1, x_46, x_3, x_4, x_5, x_6, x_7, x_8, x_49); +x_50 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateParams___spec__1(x_1, x_46, x_3, x_4, x_5, x_6, x_7, x_8, x_49); if (lean_obj_tag(x_50) == 0) { lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; @@ -10305,7 +10751,7 @@ x_53 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_53, 0, x_44); lean_ctor_set(x_53, 1, x_48); lean_ctor_set(x_53, 2, x_51); -x_54 = l_List_mapM___main___at___private_Lean_Elab_Inductive_28__updateParams___spec__2(x_1, x_43, x_3, x_4, x_5, x_6, x_7, x_8, x_52); +x_54 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateParams___spec__2(x_1, x_43, x_3, x_4, x_5, x_6, x_7, x_8, x_52); if (lean_obj_tag(x_54) == 0) { lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; @@ -10447,7 +10893,7 @@ if (lean_is_exclusive(x_71)) { } lean_inc(x_5); lean_inc(x_1); -x_77 = l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_Inductive_5__mkTypeFor___spec__1(x_1, x_74, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_77 = l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(x_1, x_74, x_3, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_77) == 0) { lean_object* x_78; lean_object* x_79; lean_object* x_80; @@ -10458,7 +10904,7 @@ lean_inc(x_79); lean_dec(x_77); lean_inc(x_5); lean_inc(x_1); -x_80 = l_List_mapM___main___at___private_Lean_Elab_Inductive_28__updateParams___spec__1(x_1, x_75, x_3, x_4, x_5, x_6, x_7, x_8, x_79); +x_80 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateParams___spec__1(x_1, x_75, x_3, x_4, x_5, x_6, x_7, x_8, x_79); if (lean_obj_tag(x_80) == 0) { lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; @@ -10475,7 +10921,7 @@ if (lean_is_scalar(x_76)) { lean_ctor_set(x_83, 0, x_73); lean_ctor_set(x_83, 1, x_78); lean_ctor_set(x_83, 2, x_81); -x_84 = l_List_mapM___main___at___private_Lean_Elab_Inductive_28__updateParams___spec__2(x_1, x_72, x_3, x_4, x_5, x_6, x_7, x_8, x_82); +x_84 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateParams___spec__2(x_1, x_72, x_3, x_4, x_5, x_6, x_7, x_8, x_82); if (lean_obj_tag(x_84) == 0) { lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; @@ -10594,19 +11040,19 @@ return x_101; } } } -lean_object* l___private_Lean_Elab_Inductive_28__updateParams(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateParams(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_List_mapM___main___at___private_Lean_Elab_Inductive_28__updateParams___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateParams___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_10; } } -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_28__updateParams___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* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateParams___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_List_mapM___main___at___private_Lean_Elab_Inductive_28__updateParams___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateParams___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); @@ -10615,11 +11061,11 @@ lean_dec(x_3); return x_10; } } -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_28__updateParams___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* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateParams___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_List_mapM___main___at___private_Lean_Elab_Inductive_28__updateParams___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateParams___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); @@ -10628,11 +11074,11 @@ lean_dec(x_3); return x_10; } } -lean_object* l___private_Lean_Elab_Inductive_28__updateParams___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateParams___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_Inductive_28__updateParams(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateParams(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); @@ -10641,7 +11087,7 @@ lean_dec(x_3); return x_10; } } -lean_object* l_List_foldl___main___at___private_Lean_Elab_Inductive_29__collectLevelParamsInInductive___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectLevelParamsInInductive___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -10666,7 +11112,7 @@ goto _start; } } } -lean_object* l_List_foldl___main___at___private_Lean_Elab_Inductive_29__collectLevelParamsInInductive___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectLevelParamsInInductive___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -10687,14 +11133,14 @@ x_6 = l_Lean_CollectLevelParams_main___main(x_5, x_1); x_7 = lean_ctor_get(x_3, 2); lean_inc(x_7); lean_dec(x_3); -x_8 = l_List_foldl___main___at___private_Lean_Elab_Inductive_29__collectLevelParamsInInductive___spec__1(x_6, x_7); +x_8 = l_List_foldl___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectLevelParamsInInductive___spec__1(x_6, x_7); x_1 = x_8; x_2 = x_4; goto _start; } } } -static lean_object* _init_l___private_Lean_Elab_Inductive_29__collectLevelParamsInInductive___closed__1() { +static lean_object* _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectLevelParamsInInductive___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -10707,19 +11153,19 @@ lean_ctor_set(x_3, 2, x_2); return x_3; } } -lean_object* l___private_Lean_Elab_Inductive_29__collectLevelParamsInInductive(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectLevelParamsInInductive(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l___private_Lean_Elab_Inductive_29__collectLevelParamsInInductive___closed__1; -x_3 = l_List_foldl___main___at___private_Lean_Elab_Inductive_29__collectLevelParamsInInductive___spec__2(x_2, x_1); +x_2 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectLevelParamsInInductive___closed__1; +x_3 = l_List_foldl___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectLevelParamsInInductive___spec__2(x_2, x_1); x_4 = lean_ctor_get(x_3, 2); lean_inc(x_4); lean_dec(x_3); return x_4; } } -lean_object* l_Nat_foldAux___main___at___private_Lean_Elab_Inductive_30__mkIndFVar2Const___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Nat_foldAux___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkIndFVar2Const___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; uint8_t x_8; @@ -10755,7 +11201,7 @@ return x_6; } } } -lean_object* l___private_Lean_Elab_Inductive_30__mkIndFVar2Const(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkIndFVar2Const(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; @@ -10763,33 +11209,64 @@ x_4 = l_List_map___main___at_Lean_Meta_addGlobalInstanceImp___spec__1(x_3); x_5 = lean_array_get_size(x_1); x_6 = l_Std_HashMap_inhabited___closed__1; lean_inc(x_5); -x_7 = l_Nat_foldAux___main___at___private_Lean_Elab_Inductive_30__mkIndFVar2Const___spec__1(x_1, x_2, x_4, x_5, x_5, x_6); +x_7 = l_Nat_foldAux___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkIndFVar2Const___spec__1(x_1, x_2, x_4, x_5, x_5, x_6); lean_dec(x_5); return x_7; } } -lean_object* l_Nat_foldAux___main___at___private_Lean_Elab_Inductive_30__mkIndFVar2Const___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Nat_foldAux___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkIndFVar2Const___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; -x_7 = l_Nat_foldAux___main___at___private_Lean_Elab_Inductive_30__mkIndFVar2Const___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Nat_foldAux___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkIndFVar2Const___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); return x_7; } } -lean_object* l___private_Lean_Elab_Inductive_30__mkIndFVar2Const___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkIndFVar2Const___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Lean_Elab_Inductive_30__mkIndFVar2Const(x_1, x_2, x_3); +x_4 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkIndFVar2Const(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, lean_object* x_5, lean_object* x_6) { _start: { size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_161; lean_object* x_162; size_t x_163; uint8_t x_164; @@ -10880,13 +11357,13 @@ x_11 = lean_ctor_get(x_5, 1); lean_inc(x_11); lean_inc(x_3); lean_inc(x_1); -x_12 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__1(x_1, x_2, x_3, x_4, x_10, x_6); +x_12 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__1(x_1, x_2, x_3, x_4, x_10, x_6); x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); x_14 = lean_ctor_get(x_12, 1); lean_inc(x_14); lean_dec(x_12); -x_15 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__1(x_1, x_2, x_3, x_4, x_11, x_14); +x_15 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__1(x_1, x_2, x_3, x_4, x_11, x_14); x_16 = !lean_is_exclusive(x_15); if (x_16 == 0) { @@ -10947,13 +11424,13 @@ lean_inc(x_35); x_36 = lean_ctor_get_uint64(x_5, sizeof(void*)*3); lean_inc(x_3); lean_inc(x_1); -x_37 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__1(x_1, x_2, x_3, x_4, x_34, x_6); +x_37 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__1(x_1, x_2, x_3, x_4, x_34, x_6); 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 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__1(x_1, x_2, x_3, x_4, x_35, x_39); +x_40 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__1(x_1, x_2, x_3, x_4, x_35, x_39); x_41 = !lean_is_exclusive(x_40); if (x_41 == 0) { @@ -11016,13 +11493,13 @@ lean_inc(x_62); x_63 = lean_ctor_get_uint64(x_5, sizeof(void*)*3); lean_inc(x_3); lean_inc(x_1); -x_64 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__1(x_1, x_2, x_3, x_4, x_61, x_6); +x_64 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__1(x_1, x_2, x_3, x_4, x_61, x_6); 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 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__1(x_1, x_2, x_3, x_4, x_62, x_66); +x_67 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__1(x_1, x_2, x_3, x_4, x_62, x_66); x_68 = !lean_is_exclusive(x_67); if (x_68 == 0) { @@ -11086,7 +11563,7 @@ x_90 = lean_ctor_get(x_5, 3); lean_inc(x_90); lean_inc(x_3); lean_inc(x_1); -x_91 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__1(x_1, x_2, x_3, x_4, x_88, x_6); +x_91 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__1(x_1, x_2, x_3, x_4, x_88, x_6); x_92 = lean_ctor_get(x_91, 0); lean_inc(x_92); x_93 = lean_ctor_get(x_91, 1); @@ -11094,13 +11571,13 @@ lean_inc(x_93); lean_dec(x_91); lean_inc(x_3); lean_inc(x_1); -x_94 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__1(x_1, x_2, x_3, x_4, x_89, x_93); +x_94 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__1(x_1, x_2, x_3, x_4, x_89, x_93); 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 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__1(x_1, x_2, x_3, x_4, x_90, x_96); +x_97 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__1(x_1, x_2, x_3, x_4, x_90, x_96); x_98 = !lean_is_exclusive(x_97); if (x_98 == 0) { @@ -11156,7 +11633,7 @@ case 10: lean_object* x_116; lean_object* x_117; uint8_t x_118; x_116 = lean_ctor_get(x_5, 1); lean_inc(x_116); -x_117 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__1(x_1, x_2, x_3, x_4, x_116, x_6); +x_117 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__1(x_1, x_2, x_3, x_4, x_116, x_6); x_118 = !lean_is_exclusive(x_117); if (x_118 == 0) { @@ -11212,7 +11689,7 @@ case 11: lean_object* x_136; lean_object* x_137; uint8_t x_138; x_136 = lean_ctor_get(x_5, 2); lean_inc(x_136); -x_137 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__1(x_1, x_2, x_3, x_4, x_136, x_6); +x_137 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__1(x_1, x_2, x_3, x_4, x_136, x_6); x_138 = !lean_is_exclusive(x_137); if (x_138 == 0) { @@ -11288,85 +11765,22 @@ return x_159; } } } -lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; lean_object* x_12; -x_11 = lean_alloc_closure((void*)(l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_elabLetDeclAux___spec__2___rarg___lambda__1), 10, 3); -lean_closure_set(x_11, 0, x_3); -lean_closure_set(x_11, 1, x_4); -lean_closure_set(x_11, 2, x_5); -x_12 = l___private_Lean_Meta_Basic_21__forallBoundedTelescopeImp___rarg(x_1, x_2, 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); -if (x_13 == 0) -{ -return x_12; -} -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); -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; -} -} -else -{ -uint8_t x_17; -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_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__2(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__2___rarg), 10, 0); -return x_2; -} -} -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__3___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__2___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { size_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; x_12 = 8192; x_13 = l_Lean_Expr_ReplaceImpl_initCache; lean_inc(x_3); -x_14 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__1(x_1, x_2, x_3, x_12, x_4, x_13); +x_14 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__1(x_1, x_2, x_3, x_12, x_4, x_13); x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); lean_dec(x_14); -x_16 = l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_Inductive_5__mkTypeFor___spec__1(x_3, x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_16 = l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(x_3, x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11); return x_16; } } -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___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_4) == 0) @@ -11407,7 +11821,7 @@ x_20 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_20, 0, x_2); lean_inc(x_3); lean_inc(x_1); -x_21 = lean_alloc_closure((void*)(l_List_mapM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__3___lambda__1___boxed), 11, 2); +x_21 = lean_alloc_closure((void*)(l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__2___lambda__1___boxed), 11, 2); lean_closure_set(x_21, 0, x_1); lean_closure_set(x_21, 1, x_3); lean_inc(x_10); @@ -11416,7 +11830,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_22 = l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__2___rarg(x_19, x_20, x_21, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_22 = l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_elabLetDeclAux___spec__2___rarg(x_19, x_20, x_21, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_22) == 0) { lean_object* x_23; lean_object* x_24; lean_object* x_25; @@ -11426,7 +11840,7 @@ x_24 = lean_ctor_get(x_22, 1); lean_inc(x_24); lean_dec(x_22); lean_ctor_set(x_15, 1, x_23); -x_25 = l_List_mapM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__3(x_1, x_2, x_3, x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_24); +x_25 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__2(x_1, x_2, x_3, x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_24); if (lean_obj_tag(x_25) == 0) { uint8_t x_26; @@ -11529,7 +11943,7 @@ x_42 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_42, 0, x_2); lean_inc(x_3); lean_inc(x_1); -x_43 = lean_alloc_closure((void*)(l_List_mapM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__3___lambda__1___boxed), 11, 2); +x_43 = lean_alloc_closure((void*)(l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__2___lambda__1___boxed), 11, 2); lean_closure_set(x_43, 0, x_1); lean_closure_set(x_43, 1, x_3); lean_inc(x_10); @@ -11538,7 +11952,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_44 = l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__2___rarg(x_41, x_42, x_43, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_44 = l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_elabLetDeclAux___spec__2___rarg(x_41, x_42, x_43, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_44) == 0) { lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; @@ -11550,7 +11964,7 @@ lean_dec(x_44); x_47 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_47, 0, x_40); lean_ctor_set(x_47, 1, x_45); -x_48 = l_List_mapM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__3(x_1, x_2, x_3, x_39, x_5, x_6, x_7, x_8, x_9, x_10, x_46); +x_48 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__2(x_1, x_2, x_3, x_39, x_5, x_6, x_7, x_8, x_9, x_10, x_46); if (lean_obj_tag(x_48) == 0) { lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; @@ -11667,7 +12081,7 @@ x_66 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_66, 0, x_2); lean_inc(x_3); lean_inc(x_1); -x_67 = lean_alloc_closure((void*)(l_List_mapM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__3___lambda__1___boxed), 11, 2); +x_67 = lean_alloc_closure((void*)(l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__2___lambda__1___boxed), 11, 2); lean_closure_set(x_67, 0, x_1); lean_closure_set(x_67, 1, x_3); lean_inc(x_10); @@ -11676,7 +12090,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_68 = l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__2___rarg(x_64, x_66, x_67, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_68 = l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_elabLetDeclAux___spec__2___rarg(x_64, x_66, x_67, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_68) == 0) { lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; @@ -11692,7 +12106,7 @@ if (lean_is_scalar(x_65)) { } lean_ctor_set(x_71, 0, x_63); lean_ctor_set(x_71, 1, x_69); -x_72 = l_List_mapM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__3(x_1, x_2, x_3, x_62, x_5, x_6, x_7, x_8, x_9, x_10, x_70); +x_72 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__2(x_1, x_2, x_3, x_62, x_5, x_6, x_7, x_8, x_9, x_10, x_70); if (lean_obj_tag(x_72) == 0) { lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; @@ -11786,7 +12200,7 @@ return x_85; } } } -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { if (lean_obj_tag(x_4) == 0) @@ -11832,7 +12246,7 @@ lean_inc(x_5); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_21 = l_List_mapM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__3(x_1, x_2, x_3, x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_21 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__2(x_1, x_2, x_3, x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_21) == 0) { lean_object* x_22; lean_object* x_23; lean_object* x_24; @@ -11842,7 +12256,7 @@ x_23 = lean_ctor_get(x_21, 1); lean_inc(x_23); lean_dec(x_21); lean_ctor_set(x_15, 2, x_22); -x_24 = l_List_mapM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__4(x_1, x_2, x_3, x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_23); +x_24 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__3(x_1, x_2, x_3, x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_23); if (lean_obj_tag(x_24) == 0) { uint8_t x_25; @@ -11952,7 +12366,7 @@ lean_inc(x_5); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_42 = l_List_mapM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__3(x_1, x_2, x_3, x_41, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_42 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__2(x_1, x_2, x_3, x_41, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_42) == 0) { lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; @@ -11965,7 +12379,7 @@ x_45 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_45, 0, x_39); lean_ctor_set(x_45, 1, x_40); lean_ctor_set(x_45, 2, x_43); -x_46 = l_List_mapM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__4(x_1, x_2, x_3, x_38, x_5, x_6, x_7, x_8, x_9, x_10, x_44); +x_46 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__3(x_1, x_2, x_3, x_38, x_5, x_6, x_7, x_8, x_9, x_10, x_44); if (lean_obj_tag(x_46) == 0) { lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; @@ -12090,7 +12504,7 @@ lean_inc(x_5); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_65 = l_List_mapM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__3(x_1, x_2, x_3, x_63, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_65 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__2(x_1, x_2, x_3, x_63, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_65) == 0) { lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; @@ -12107,7 +12521,7 @@ if (lean_is_scalar(x_64)) { lean_ctor_set(x_68, 0, x_61); lean_ctor_set(x_68, 1, x_62); lean_ctor_set(x_68, 2, x_66); -x_69 = l_List_mapM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__4(x_1, x_2, x_3, x_60, x_5, x_6, x_7, x_8, x_9, x_10, x_67); +x_69 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__3(x_1, x_2, x_3, x_60, x_5, x_6, x_7, x_8, x_9, x_10, x_67); if (lean_obj_tag(x_69) == 0) { lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; @@ -12202,31 +12616,31 @@ return x_82; } } } -lean_object* l___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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 = l___private_Lean_Elab_Inductive_30__mkIndFVar2Const(x_1, x_2, x_3); -x_15 = l_List_mapM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__4(x_4, x_5, x_14, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_14 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkIndFVar2Const(x_1, x_2, x_3); +x_15 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__3(x_4, x_5, x_14, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); return x_15; } } -lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___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; lean_object* x_8; x_7 = lean_unbox_usize(x_4); lean_dec(x_4); -x_8 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__1(x_1, x_2, x_3, x_7, x_5, x_6); +x_8 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__1(x_1, x_2, x_3, x_7, x_5, x_6); lean_dec(x_2); return x_8; } } -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__3___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__2___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; -x_12 = l_List_mapM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__3___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_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__2___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -12236,17 +12650,17 @@ lean_dec(x_2); return x_12; } } -lean_object* l___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { lean_object* x_14; -x_14 = l___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts(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 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_2); lean_dec(x_1); return x_14; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Inductive_32__mkCtor2InferMod___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkCtor2InferMod___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; uint8_t x_6; @@ -12276,7 +12690,7 @@ goto _start; } } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Inductive_32__mkCtor2InferMod___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkCtor2InferMod___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; uint8_t x_6; @@ -12295,7 +12709,7 @@ x_7 = lean_array_fget(x_2, x_3); x_8 = lean_ctor_get(x_7, 7); lean_inc(x_8); x_9 = lean_unsigned_to_nat(0u); -x_10 = l_Array_iterateMAux___main___at___private_Lean_Elab_Inductive_32__mkCtor2InferMod___spec__1(x_7, x_8, x_9, x_4); +x_10 = l_Array_iterateMAux___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkCtor2InferMod___spec__1(x_7, x_8, x_9, x_4); lean_dec(x_8); lean_dec(x_7); x_11 = lean_unsigned_to_nat(1u); @@ -12307,46 +12721,46 @@ goto _start; } } } -lean_object* l___private_Lean_Elab_Inductive_32__mkCtor2InferMod(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkCtor2InferMod(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; x_2 = lean_unsigned_to_nat(0u); x_3 = l_Std_HashMap_inhabited___closed__1; -x_4 = l_Array_iterateMAux___main___at___private_Lean_Elab_Inductive_32__mkCtor2InferMod___spec__2(x_1, x_1, x_2, x_3); +x_4 = l_Array_iterateMAux___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkCtor2InferMod___spec__2(x_1, x_1, x_2, x_3); return x_4; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Inductive_32__mkCtor2InferMod___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkCtor2InferMod___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Array_iterateMAux___main___at___private_Lean_Elab_Inductive_32__mkCtor2InferMod___spec__1(x_1, x_2, x_3, x_4); +x_5 = l_Array_iterateMAux___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkCtor2InferMod___spec__1(x_1, x_2, x_3, x_4); lean_dec(x_2); lean_dec(x_1); return x_5; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Inductive_32__mkCtor2InferMod___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkCtor2InferMod___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Array_iterateMAux___main___at___private_Lean_Elab_Inductive_32__mkCtor2InferMod___spec__2(x_1, x_2, x_3, x_4); +x_5 = l_Array_iterateMAux___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkCtor2InferMod___spec__2(x_1, x_2, x_3, x_4); lean_dec(x_2); lean_dec(x_1); return x_5; } } -lean_object* l___private_Lean_Elab_Inductive_32__mkCtor2InferMod___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkCtor2InferMod___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l___private_Lean_Elab_Inductive_32__mkCtor2InferMod(x_1); +x_2 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkCtor2InferMod(x_1); lean_dec(x_1); return x_2; } } -static lean_object* _init_l_List_map___main___at___private_Lean_Elab_Inductive_33__applyInferMod___spec__1___closed__1() { +static lean_object* _init_l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; @@ -12358,7 +12772,7 @@ x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); return x_5; } } -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_33__applyInferMod___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -12382,13 +12796,13 @@ lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_o x_8 = lean_ctor_get(x_3, 1); x_9 = lean_ctor_get(x_6, 0); x_10 = lean_ctor_get(x_6, 1); -x_11 = l_List_map___main___at___private_Lean_Elab_Inductive_33__applyInferMod___spec__1(x_1, x_2, x_8); +x_11 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1(x_1, x_2, x_8); x_12 = l_Std_HashMapImp_find_x3f___at_Lean_hasOutParams___spec__5(x_2, x_9); if (lean_obj_tag(x_12) == 0) { uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; x_13 = l_Bool_Inhabited; -x_14 = l_List_map___main___at___private_Lean_Elab_Inductive_33__applyInferMod___spec__1___closed__1; +x_14 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1___closed__1; x_15 = lean_box(x_13); x_16 = lean_panic_fn(x_15, x_14); x_17 = lean_unbox(x_16); @@ -12449,13 +12863,13 @@ x_30 = lean_ctor_get(x_6, 1); lean_inc(x_30); lean_inc(x_29); lean_dec(x_6); -x_31 = l_List_map___main___at___private_Lean_Elab_Inductive_33__applyInferMod___spec__1(x_1, x_2, x_28); +x_31 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1(x_1, x_2, x_28); x_32 = l_Std_HashMapImp_find_x3f___at_Lean_hasOutParams___spec__5(x_2, x_29); if (lean_obj_tag(x_32) == 0) { uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; x_33 = l_Bool_Inhabited; -x_34 = l_List_map___main___at___private_Lean_Elab_Inductive_33__applyInferMod___spec__1___closed__1; +x_34 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1___closed__1; x_35 = lean_box(x_33); x_36 = lean_panic_fn(x_35, x_34); x_37 = lean_unbox(x_36); @@ -12540,13 +12954,13 @@ if (lean_is_exclusive(x_52)) { lean_dec_ref(x_52); x_56 = lean_box(0); } -x_57 = l_List_map___main___at___private_Lean_Elab_Inductive_33__applyInferMod___spec__1(x_1, x_2, x_53); +x_57 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1(x_1, x_2, x_53); x_58 = l_Std_HashMapImp_find_x3f___at_Lean_hasOutParams___spec__5(x_2, x_54); if (lean_obj_tag(x_58) == 0) { uint8_t x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; x_59 = l_Bool_Inhabited; -x_60 = l_List_map___main___at___private_Lean_Elab_Inductive_33__applyInferMod___spec__1___closed__1; +x_60 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1___closed__1; x_61 = lean_box(x_59); x_62 = lean_panic_fn(x_61, x_60); x_63 = lean_unbox(x_62); @@ -12633,7 +13047,7 @@ return x_81; } } } -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_33__applyInferMod___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -12656,9 +13070,9 @@ if (x_7 == 0) lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_ctor_get(x_3, 1); x_9 = lean_ctor_get(x_6, 2); -x_10 = l_List_map___main___at___private_Lean_Elab_Inductive_33__applyInferMod___spec__1(x_1, x_2, x_9); +x_10 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1(x_1, x_2, x_9); lean_ctor_set(x_6, 2, x_10); -x_11 = l_List_map___main___at___private_Lean_Elab_Inductive_33__applyInferMod___spec__2(x_1, x_2, x_8); +x_11 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__2(x_1, x_2, x_8); lean_ctor_set(x_3, 1, x_11); return x_3; } @@ -12673,12 +13087,12 @@ lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_dec(x_6); -x_16 = l_List_map___main___at___private_Lean_Elab_Inductive_33__applyInferMod___spec__1(x_1, x_2, x_15); +x_16 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1(x_1, x_2, x_15); x_17 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_17, 0, x_13); lean_ctor_set(x_17, 1, x_14); lean_ctor_set(x_17, 2, x_16); -x_18 = l_List_map___main___at___private_Lean_Elab_Inductive_33__applyInferMod___spec__2(x_1, x_2, x_12); +x_18 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__2(x_1, x_2, x_12); lean_ctor_set(x_3, 1, x_18); lean_ctor_set(x_3, 0, x_17); return x_3; @@ -12707,7 +13121,7 @@ if (lean_is_exclusive(x_19)) { lean_dec_ref(x_19); x_24 = lean_box(0); } -x_25 = l_List_map___main___at___private_Lean_Elab_Inductive_33__applyInferMod___spec__1(x_1, x_2, x_23); +x_25 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1(x_1, x_2, x_23); if (lean_is_scalar(x_24)) { x_26 = lean_alloc_ctor(0, 3, 0); } else { @@ -12716,7 +13130,7 @@ if (lean_is_scalar(x_24)) { lean_ctor_set(x_26, 0, x_21); lean_ctor_set(x_26, 1, x_22); lean_ctor_set(x_26, 2, x_25); -x_27 = l_List_map___main___at___private_Lean_Elab_Inductive_33__applyInferMod___spec__2(x_1, x_2, x_20); +x_27 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__2(x_1, x_2, x_20); x_28 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_28, 0, x_26); lean_ctor_set(x_28, 1, x_27); @@ -12725,514 +13139,64 @@ return x_28; } } } -lean_object* l___private_Lean_Elab_Inductive_33__applyInferMod(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; -x_4 = l___private_Lean_Elab_Inductive_32__mkCtor2InferMod(x_1); -x_5 = l_List_map___main___at___private_Lean_Elab_Inductive_33__applyInferMod___spec__2(x_2, x_4, x_3); +x_4 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkCtor2InferMod(x_1); +x_5 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__2(x_2, x_4, x_3); lean_dec(x_4); return x_5; } } -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_33__applyInferMod___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_map___main___at___private_Lean_Elab_Inductive_33__applyInferMod___spec__1(x_1, x_2, x_3); +x_4 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_33__applyInferMod___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_map___main___at___private_Lean_Elab_Inductive_33__applyInferMod___spec__2(x_1, x_2, x_3); +x_4 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__2(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l___private_Lean_Elab_Inductive_33__applyInferMod___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Lean_Elab_Inductive_33__applyInferMod(x_1, x_2, x_3); +x_4 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_34__mkAuxConstructions___spec__1(uint8_t 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* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1___lambda__1(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, lean_object* x_10, lean_object* x_11) { _start: { -lean_object* x_14; lean_object* x_20; uint8_t x_21; -x_20 = lean_array_get_size(x_5); -x_21 = lean_nat_dec_lt(x_6, x_20); -lean_dec(x_20); -if (x_21 == 0) -{ -lean_object* x_22; lean_object* x_23; -lean_dec(x_6); -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_13); -return x_23; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_79; lean_object* x_97; lean_object* x_98; lean_object* x_99; uint8_t x_100; -x_24 = lean_array_fget(x_5, x_6); -x_25 = lean_ctor_get(x_24, 3); -lean_inc(x_25); -lean_dec(x_24); -x_97 = lean_st_ref_take(x_12, x_13); -x_98 = lean_ctor_get(x_97, 0); -lean_inc(x_98); -x_99 = lean_ctor_get(x_97, 1); -lean_inc(x_99); -lean_dec(x_97); -x_100 = !lean_is_exclusive(x_98); -if (x_100 == 0) -{ -lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_101 = lean_ctor_get(x_98, 0); -x_102 = lean_mk_rec_on(x_101, x_25); -lean_ctor_set(x_98, 0, x_102); -x_103 = lean_st_ref_set(x_12, x_98, x_99); -if (x_3 == 0) -{ -lean_object* x_104; -x_104 = lean_ctor_get(x_103, 1); -lean_inc(x_104); -lean_dec(x_103); -x_79 = x_104; -goto block_96; -} -else -{ -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -lean_dec(x_103); -x_106 = lean_st_ref_take(x_12, x_105); -x_107 = lean_ctor_get(x_106, 0); -lean_inc(x_107); -x_108 = lean_ctor_get(x_106, 1); -lean_inc(x_108); -lean_dec(x_106); -x_109 = !lean_is_exclusive(x_107); -if (x_109 == 0) -{ -lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; -x_110 = lean_ctor_get(x_107, 0); -x_111 = lean_mk_cases_on(x_110, x_25); -lean_ctor_set(x_107, 0, x_111); -x_112 = lean_st_ref_set(x_12, x_107, x_108); -x_113 = lean_ctor_get(x_112, 1); -lean_inc(x_113); -lean_dec(x_112); -x_79 = x_113; -goto block_96; -} -else -{ -lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; -x_114 = lean_ctor_get(x_107, 0); -x_115 = lean_ctor_get(x_107, 1); -x_116 = lean_ctor_get(x_107, 2); -x_117 = lean_ctor_get(x_107, 3); -lean_inc(x_117); -lean_inc(x_116); -lean_inc(x_115); -lean_inc(x_114); -lean_dec(x_107); -x_118 = lean_mk_cases_on(x_114, x_25); -x_119 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_119, 0, x_118); -lean_ctor_set(x_119, 1, x_115); -lean_ctor_set(x_119, 2, x_116); -lean_ctor_set(x_119, 3, x_117); -x_120 = lean_st_ref_set(x_12, x_119, x_108); -x_121 = lean_ctor_get(x_120, 1); -lean_inc(x_121); -lean_dec(x_120); -x_79 = x_121; -goto block_96; -} -} -} -else -{ -lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; -x_122 = lean_ctor_get(x_98, 0); -x_123 = lean_ctor_get(x_98, 1); -x_124 = lean_ctor_get(x_98, 2); -x_125 = lean_ctor_get(x_98, 3); -lean_inc(x_125); -lean_inc(x_124); -lean_inc(x_123); -lean_inc(x_122); -lean_dec(x_98); -x_126 = lean_mk_rec_on(x_122, x_25); -x_127 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_127, 0, x_126); -lean_ctor_set(x_127, 1, x_123); -lean_ctor_set(x_127, 2, x_124); -lean_ctor_set(x_127, 3, x_125); -x_128 = lean_st_ref_set(x_12, x_127, x_99); -if (x_3 == 0) -{ -lean_object* x_129; -x_129 = lean_ctor_get(x_128, 1); -lean_inc(x_129); -lean_dec(x_128); -x_79 = x_129; -goto block_96; -} -else -{ -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; -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -lean_dec(x_128); -x_131 = lean_st_ref_take(x_12, x_130); -x_132 = lean_ctor_get(x_131, 0); -lean_inc(x_132); -x_133 = lean_ctor_get(x_131, 1); -lean_inc(x_133); -lean_dec(x_131); -x_134 = lean_ctor_get(x_132, 0); -lean_inc(x_134); -x_135 = lean_ctor_get(x_132, 1); -lean_inc(x_135); -x_136 = lean_ctor_get(x_132, 2); -lean_inc(x_136); -x_137 = lean_ctor_get(x_132, 3); -lean_inc(x_137); -if (lean_is_exclusive(x_132)) { - lean_ctor_release(x_132, 0); - lean_ctor_release(x_132, 1); - lean_ctor_release(x_132, 2); - lean_ctor_release(x_132, 3); - x_138 = x_132; -} else { - lean_dec_ref(x_132); - x_138 = lean_box(0); -} -x_139 = lean_mk_cases_on(x_134, x_25); -if (lean_is_scalar(x_138)) { - x_140 = lean_alloc_ctor(0, 4, 0); -} else { - x_140 = x_138; -} -lean_ctor_set(x_140, 0, x_139); -lean_ctor_set(x_140, 1, x_135); -lean_ctor_set(x_140, 2, x_136); -lean_ctor_set(x_140, 3, x_137); -x_141 = lean_st_ref_set(x_12, x_140, x_133); -x_142 = lean_ctor_get(x_141, 1); -lean_inc(x_142); -lean_dec(x_141); -x_79 = x_142; -goto block_96; -} -} -block_78: -{ -uint8_t x_27; -if (x_3 == 0) -{ -uint8_t x_77; -x_77 = 0; -x_27 = x_77; -goto block_76; -} -else -{ -x_27 = x_4; -goto block_76; -} -block_76: -{ -uint8_t x_28; -if (x_27 == 0) -{ -uint8_t x_74; -x_74 = 0; -x_28 = x_74; -goto block_73; -} -else -{ -uint8_t x_75; -x_75 = 1; -x_28 = x_75; -goto block_73; -} -block_73: -{ -lean_object* x_29; -if (x_28 == 0) -{ -x_29 = x_26; -goto block_56; -} -else -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; -x_57 = lean_st_ref_take(x_12, x_26); -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_57, 1); -lean_inc(x_59); -lean_dec(x_57); -x_60 = !lean_is_exclusive(x_58); -if (x_60 == 0) -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_61 = lean_ctor_get(x_58, 0); -x_62 = lean_mk_below(x_61, x_25); -lean_ctor_set(x_58, 0, x_62); -x_63 = lean_st_ref_set(x_12, x_58, x_59); -x_64 = lean_ctor_get(x_63, 1); -lean_inc(x_64); -lean_dec(x_63); -x_29 = x_64; -goto block_56; -} -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_object* x_71; lean_object* x_72; -x_65 = lean_ctor_get(x_58, 0); -x_66 = lean_ctor_get(x_58, 1); -x_67 = lean_ctor_get(x_58, 2); -x_68 = lean_ctor_get(x_58, 3); -lean_inc(x_68); -lean_inc(x_67); -lean_inc(x_66); -lean_inc(x_65); -lean_dec(x_58); -x_69 = lean_mk_below(x_65, x_25); -x_70 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_66); -lean_ctor_set(x_70, 2, x_67); -lean_ctor_set(x_70, 3, x_68); -x_71 = lean_st_ref_set(x_12, x_70, x_59); -x_72 = lean_ctor_get(x_71, 1); -lean_inc(x_72); -lean_dec(x_71); -x_29 = x_72; -goto block_56; -} -} -block_56: -{ -if (x_28 == 0) -{ -lean_object* x_30; lean_object* x_31; -lean_dec(x_25); -x_30 = lean_box(0); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_29); -x_14 = x_31; -goto block_19; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_32 = lean_st_ref_take(x_12, x_29); -x_33 = lean_ctor_get(x_32, 0); -lean_inc(x_33); -x_34 = lean_ctor_get(x_32, 1); -lean_inc(x_34); -lean_dec(x_32); -x_35 = !lean_is_exclusive(x_33); -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_33, 0); -x_37 = lean_mk_ibelow(x_36, x_25); -lean_dec(x_25); -lean_ctor_set(x_33, 0, x_37); -x_38 = lean_st_ref_set(x_12, x_33, x_34); -x_39 = !lean_is_exclusive(x_38); -if (x_39 == 0) -{ -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); -x_14 = x_38; -goto block_19; -} -else -{ -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); -x_14 = x_44; -goto block_19; -} -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_45 = lean_ctor_get(x_33, 0); -x_46 = lean_ctor_get(x_33, 1); -x_47 = lean_ctor_get(x_33, 2); -x_48 = lean_ctor_get(x_33, 3); -lean_inc(x_48); -lean_inc(x_47); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_33); -x_49 = lean_mk_ibelow(x_45, x_25); -lean_dec(x_25); -x_50 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_46); -lean_ctor_set(x_50, 2, x_47); -lean_ctor_set(x_50, 3, x_48); -x_51 = lean_st_ref_set(x_12, x_50, x_34); -x_52 = lean_ctor_get(x_51, 1); -lean_inc(x_52); -if (lean_is_exclusive(x_51)) { - lean_ctor_release(x_51, 0); - lean_ctor_release(x_51, 1); - x_53 = x_51; -} else { - lean_dec_ref(x_51); - x_53 = lean_box(0); -} -x_54 = lean_box(0); -if (lean_is_scalar(x_53)) { - x_55 = lean_alloc_ctor(0, 2, 0); -} else { - x_55 = x_53; -} -lean_ctor_set(x_55, 0, x_54); -lean_ctor_set(x_55, 1, x_52); -x_14 = x_55; -goto block_19; -} -} -} -} -} -} -block_96: -{ -if (x_3 == 0) -{ -x_26 = x_79; -goto block_78; -} -else -{ if (x_1 == 0) { -x_26 = x_79; -goto block_78; +lean_object* x_12; lean_object* x_13; +x_12 = l_List_forInAux___main___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars___spec__1___closed__2; +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_11); +return x_13; } else { if (x_2 == 0) { -x_26 = x_79; -goto block_78; -} -else -{ -lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; -x_80 = lean_st_ref_take(x_12, x_79); -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 = !lean_is_exclusive(x_81); -if (x_83 == 0) -{ -lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_84 = lean_ctor_get(x_81, 0); -x_85 = lean_mk_no_confusion(x_84, x_25); -lean_ctor_set(x_81, 0, x_85); -x_86 = lean_st_ref_set(x_12, x_81, x_82); -x_87 = lean_ctor_get(x_86, 1); -lean_inc(x_87); -lean_dec(x_86); -x_26 = x_87; -goto block_78; -} -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; -x_88 = lean_ctor_get(x_81, 0); -x_89 = lean_ctor_get(x_81, 1); -x_90 = lean_ctor_get(x_81, 2); -x_91 = lean_ctor_get(x_81, 3); -lean_inc(x_91); -lean_inc(x_90); -lean_inc(x_89); -lean_inc(x_88); -lean_dec(x_81); -x_92 = lean_mk_no_confusion(x_88, x_25); -x_93 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_93, 0, x_92); -lean_ctor_set(x_93, 1, x_89); -lean_ctor_set(x_93, 2, x_90); -lean_ctor_set(x_93, 3, x_91); -x_94 = lean_st_ref_set(x_12, x_93, x_82); -x_95 = lean_ctor_get(x_94, 1); -lean_inc(x_95); -lean_dec(x_94); -x_26 = x_95; -goto block_78; -} -} -} -} -} -} -block_19: -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_14, 1); -lean_inc(x_15); -lean_dec(x_14); -x_16 = lean_unsigned_to_nat(1u); -x_17 = lean_nat_add(x_6, x_16); -lean_dec(x_6); -x_6 = x_17; -x_13 = x_15; -goto _start; -} -} -} -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_34__mkAuxConstructions___spec__2(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, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; uint8_t x_13; -x_12 = lean_array_get_size(x_3); -x_13 = lean_nat_dec_lt(x_4, x_12); -lean_dec(x_12); -if (x_13 == 0) -{ lean_object* x_14; lean_object* x_15; -lean_dec(x_4); -x_14 = lean_box(0); +x_14 = l_List_forInAux___main___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars___spec__1___closed__2; x_15 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_15, 0, x_14); lean_ctor_set(x_15, 1, x_11); @@ -13240,176 +13204,705 @@ return x_15; } else { -lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_16 = lean_array_fget(x_3, x_4); -x_17 = lean_ctor_get(x_16, 3); +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_16 = lean_st_ref_take(x_10, x_11); +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_is_exclusive(x_17); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_20 = lean_ctor_get(x_17, 0); +x_21 = lean_mk_ibelow(x_20, x_3); +lean_ctor_set(x_17, 0, x_21); +x_22 = lean_st_ref_set(x_10, x_17, x_18); +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_22, 0); +lean_dec(x_24); +x_25 = l_List_forInAux___main___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars___spec__1___closed__2; +lean_ctor_set(x_22, 0, x_25); +return x_22; +} +else +{ +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 = l_List_forInAux___main___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars___spec__1___closed__2; +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_26); +return x_28; +} +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_29 = lean_ctor_get(x_17, 0); +x_30 = lean_ctor_get(x_17, 1); +x_31 = lean_ctor_get(x_17, 2); +x_32 = lean_ctor_get(x_17, 3); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_17); +x_33 = lean_mk_ibelow(x_29, x_3); +x_34 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_30); +lean_ctor_set(x_34, 2, x_31); +lean_ctor_set(x_34, 3, x_32); +x_35 = lean_st_ref_set(x_10, x_34, x_18); +x_36 = lean_ctor_get(x_35, 1); +lean_inc(x_36); +if (lean_is_exclusive(x_35)) { + lean_ctor_release(x_35, 0); + lean_ctor_release(x_35, 1); + x_37 = x_35; +} else { + lean_dec_ref(x_35); + x_37 = lean_box(0); +} +x_38 = l_List_forInAux___main___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars___spec__1___closed__2; +if (lean_is_scalar(x_37)) { + x_39 = lean_alloc_ctor(0, 2, 0); +} else { + x_39 = x_37; +} +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_36); +return x_39; +} +} +} +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1___lambda__2(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, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ if (x_1 == 0) { -uint8_t x_67; -x_67 = 0; -x_18 = x_67; -goto block_66; +lean_object* x_13; +x_13 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_13; } else { -x_18 = x_2; -goto block_66; -} -block_66: +if (x_2 == 0) { -uint8_t x_19; +lean_object* x_14; +x_14 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_15 = lean_st_ref_take(x_11, x_12); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = !lean_is_exclusive(x_16); if (x_18 == 0) { -uint8_t x_64; -x_64 = 0; -x_19 = x_64; -goto block_63; +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_19 = lean_ctor_get(x_16, 0); +x_20 = lean_mk_below(x_19, x_3); +lean_ctor_set(x_16, 0, x_20); +x_21 = lean_st_ref_set(x_11, x_16, x_17); +x_22 = lean_ctor_get(x_21, 1); +lean_inc(x_22); +lean_dec(x_21); +x_23 = lean_box(0); +x_24 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1___lambda__1(x_1, x_2, x_3, x_23, x_6, x_7, x_8, x_9, x_10, x_11, x_22); +return x_24; } else { -uint8_t x_65; -x_65 = 1; -x_19 = x_65; -goto block_63; -} -block_63: -{ -lean_object* x_20; -if (x_19 == 0) -{ -x_20 = x_11; -goto block_46; -} -else -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; -x_47 = lean_st_ref_take(x_10, x_11); -x_48 = lean_ctor_get(x_47, 0); -lean_inc(x_48); -x_49 = lean_ctor_get(x_47, 1); -lean_inc(x_49); -lean_dec(x_47); -x_50 = !lean_is_exclusive(x_48); -if (x_50 == 0) -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_51 = lean_ctor_get(x_48, 0); -x_52 = lean_mk_brec_on(x_51, x_17); -lean_ctor_set(x_48, 0, x_52); -x_53 = lean_st_ref_set(x_10, x_48, x_49); -x_54 = lean_ctor_get(x_53, 1); -lean_inc(x_54); -lean_dec(x_53); -x_20 = x_54; -goto block_46; -} -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; -x_55 = lean_ctor_get(x_48, 0); -x_56 = lean_ctor_get(x_48, 1); -x_57 = lean_ctor_get(x_48, 2); -x_58 = lean_ctor_get(x_48, 3); -lean_inc(x_58); -lean_inc(x_57); -lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_48); -x_59 = lean_mk_brec_on(x_55, x_17); -x_60 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_56); -lean_ctor_set(x_60, 2, x_57); -lean_ctor_set(x_60, 3, x_58); -x_61 = lean_st_ref_set(x_10, x_60, x_49); -x_62 = lean_ctor_get(x_61, 1); -lean_inc(x_62); -lean_dec(x_61); -x_20 = x_62; -goto block_46; -} -} -block_46: -{ -if (x_19 == 0) -{ -lean_object* x_21; lean_object* x_22; -lean_dec(x_17); -x_21 = lean_unsigned_to_nat(1u); -x_22 = lean_nat_add(x_4, x_21); -lean_dec(x_4); -x_4 = x_22; -x_11 = x_20; -goto _start; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; -x_24 = lean_st_ref_take(x_10, x_20); -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); +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; +x_25 = lean_ctor_get(x_16, 0); +x_26 = lean_ctor_get(x_16, 1); +x_27 = lean_ctor_get(x_16, 2); +x_28 = lean_ctor_get(x_16, 3); +lean_inc(x_28); +lean_inc(x_27); lean_inc(x_26); -lean_dec(x_24); -x_27 = !lean_is_exclusive(x_25); -if (x_27 == 0) +lean_inc(x_25); +lean_dec(x_16); +x_29 = lean_mk_below(x_25, x_3); +x_30 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_26); +lean_ctor_set(x_30, 2, x_27); +lean_ctor_set(x_30, 3, x_28); +x_31 = lean_st_ref_set(x_11, x_30, x_17); +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +lean_dec(x_31); +x_33 = lean_box(0); +x_34 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1___lambda__1(x_1, x_2, x_3, x_33, x_6, x_7, x_8, x_9, x_10, x_11, x_32); +return x_34; +} +} +} +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1___lambda__3(uint8_t x_1, uint8_t 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, lean_object* x_14) { +_start: { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_28 = lean_ctor_get(x_25, 0); -x_29 = lean_mk_binduction_on(x_28, x_17); -lean_dec(x_17); -lean_ctor_set(x_25, 0, x_29); -x_30 = lean_st_ref_set(x_10, x_25, x_26); -x_31 = lean_ctor_get(x_30, 1); -lean_inc(x_31); -lean_dec(x_30); -x_32 = lean_unsigned_to_nat(1u); -x_33 = lean_nat_add(x_4, x_32); -lean_dec(x_4); -x_4 = x_33; -x_11 = x_31; -goto _start; +if (x_1 == 0) +{ +lean_object* x_15; +x_15 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1___lambda__2(x_1, x_2, x_3, x_4, x_4, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +return x_15; } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_35 = lean_ctor_get(x_25, 0); -x_36 = lean_ctor_get(x_25, 1); -x_37 = lean_ctor_get(x_25, 2); -x_38 = lean_ctor_get(x_25, 3); -lean_inc(x_38); -lean_inc(x_37); -lean_inc(x_36); +if (x_5 == 0) +{ +lean_object* x_16; +x_16 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1___lambda__2(x_1, x_2, x_3, x_4, x_4, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +return x_16; +} +else +{ +if (x_6 == 0) +{ +lean_object* x_17; +x_17 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1___lambda__2(x_1, x_2, x_3, x_4, x_4, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_18 = lean_st_ref_take(x_13, x_14); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = !lean_is_exclusive(x_19); +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; +x_22 = lean_ctor_get(x_19, 0); +x_23 = lean_mk_no_confusion(x_22, x_3); +lean_ctor_set(x_19, 0, x_23); +x_24 = lean_st_ref_set(x_13, x_19, x_20); +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec(x_24); +x_26 = lean_box(0); +x_27 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1___lambda__2(x_1, x_2, x_3, x_4, x_26, x_8, x_9, x_10, x_11, x_12, x_13, x_25); +return x_27; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_28 = lean_ctor_get(x_19, 0); +x_29 = lean_ctor_get(x_19, 1); +x_30 = lean_ctor_get(x_19, 2); +x_31 = lean_ctor_get(x_19, 3); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_19); +x_32 = lean_mk_no_confusion(x_28, x_3); +x_33 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_29); +lean_ctor_set(x_33, 2, x_30); +lean_ctor_set(x_33, 3, x_31); +x_34 = lean_st_ref_set(x_13, x_33, x_20); +x_35 = lean_ctor_get(x_34, 1); lean_inc(x_35); +lean_dec(x_34); +x_36 = lean_box(0); +x_37 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1___lambda__2(x_1, x_2, x_3, x_4, x_36, x_8, x_9, x_10, x_11, x_12, x_13, x_35); +return x_37; +} +} +} +} +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1(uint8_t x_1, uint8_t x_2, uint8_t x_3, uint8_t x_4, lean_object* x_5, size_t x_6, size_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, lean_object* x_15) { +_start: +{ +lean_object* x_16; lean_object* x_17; uint8_t x_23; +x_23 = x_7 < x_6; +if (x_23 == 0) +{ +lean_object* x_24; +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_8); +lean_ctor_set(x_24, 1, x_15); +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_array_uget(x_5, x_7); +x_26 = lean_ctor_get(x_25, 3); +lean_inc(x_26); lean_dec(x_25); -x_39 = lean_mk_binduction_on(x_35, x_17); -lean_dec(x_17); -x_40 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_36); -lean_ctor_set(x_40, 2, x_37); -lean_ctor_set(x_40, 3, x_38); -x_41 = lean_st_ref_set(x_10, x_40, x_26); -x_42 = lean_ctor_get(x_41, 1); -lean_inc(x_42); -lean_dec(x_41); -x_43 = lean_unsigned_to_nat(1u); -x_44 = lean_nat_add(x_4, x_43); -lean_dec(x_4); -x_4 = x_44; -x_11 = x_42; +x_27 = lean_st_ref_take(x_14, x_15); +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec(x_27); +x_30 = !lean_is_exclusive(x_28); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_28, 0); +x_32 = lean_mk_rec_on(x_31, x_26); +lean_ctor_set(x_28, 0, x_32); +x_33 = lean_st_ref_set(x_14, x_28, x_29); +if (x_3 == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_34 = lean_ctor_get(x_33, 1); +lean_inc(x_34); +lean_dec(x_33); +x_35 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1___lambda__3(x_3, x_4, x_26, x_8, x_1, x_2, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_34); +lean_dec(x_8); +lean_dec(x_26); +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_16 = x_36; +x_17 = x_37; +goto block_22; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_38 = lean_ctor_get(x_33, 1); +lean_inc(x_38); +lean_dec(x_33); +x_39 = lean_st_ref_take(x_14, x_38); +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_is_exclusive(x_40); +if (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; +x_43 = lean_ctor_get(x_40, 0); +x_44 = lean_mk_cases_on(x_43, x_26); +lean_ctor_set(x_40, 0, x_44); +x_45 = lean_st_ref_set(x_14, x_40, x_41); +x_46 = lean_ctor_get(x_45, 1); +lean_inc(x_46); +lean_dec(x_45); +x_47 = lean_box(0); +x_48 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1___lambda__3(x_3, x_4, x_26, x_8, x_1, x_2, x_47, x_9, x_10, x_11, x_12, x_13, x_14, x_46); +lean_dec(x_8); +lean_dec(x_26); +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_16 = x_49; +x_17 = x_50; +goto block_22; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_51 = lean_ctor_get(x_40, 0); +x_52 = lean_ctor_get(x_40, 1); +x_53 = lean_ctor_get(x_40, 2); +x_54 = lean_ctor_get(x_40, 3); +lean_inc(x_54); +lean_inc(x_53); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_40); +x_55 = lean_mk_cases_on(x_51, x_26); +x_56 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_52); +lean_ctor_set(x_56, 2, x_53); +lean_ctor_set(x_56, 3, x_54); +x_57 = lean_st_ref_set(x_14, x_56, x_41); +x_58 = lean_ctor_get(x_57, 1); +lean_inc(x_58); +lean_dec(x_57); +x_59 = lean_box(0); +x_60 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1___lambda__3(x_3, x_4, x_26, x_8, x_1, x_2, x_59, x_9, x_10, x_11, x_12, x_13, x_14, x_58); +lean_dec(x_8); +lean_dec(x_26); +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_16 = x_61; +x_17 = x_62; +goto block_22; +} +} +} +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; +x_63 = lean_ctor_get(x_28, 0); +x_64 = lean_ctor_get(x_28, 1); +x_65 = lean_ctor_get(x_28, 2); +x_66 = lean_ctor_get(x_28, 3); +lean_inc(x_66); +lean_inc(x_65); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_28); +x_67 = lean_mk_rec_on(x_63, x_26); +x_68 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_64); +lean_ctor_set(x_68, 2, x_65); +lean_ctor_set(x_68, 3, x_66); +x_69 = lean_st_ref_set(x_14, x_68, x_29); +if (x_3 == 0) +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_70 = lean_ctor_get(x_69, 1); +lean_inc(x_70); +lean_dec(x_69); +x_71 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1___lambda__3(x_3, x_4, x_26, x_8, x_1, x_2, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_70); +lean_dec(x_8); +lean_dec(x_26); +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_71, 1); +lean_inc(x_73); +lean_dec(x_71); +x_16 = x_72; +x_17 = x_73; +goto block_22; +} +else +{ +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; +x_74 = lean_ctor_get(x_69, 1); +lean_inc(x_74); +lean_dec(x_69); +x_75 = lean_st_ref_take(x_14, x_74); +x_76 = lean_ctor_get(x_75, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_75, 1); +lean_inc(x_77); +lean_dec(x_75); +x_78 = lean_ctor_get(x_76, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_76, 1); +lean_inc(x_79); +x_80 = lean_ctor_get(x_76, 2); +lean_inc(x_80); +x_81 = lean_ctor_get(x_76, 3); +lean_inc(x_81); +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + lean_ctor_release(x_76, 2); + lean_ctor_release(x_76, 3); + x_82 = x_76; +} else { + lean_dec_ref(x_76); + x_82 = lean_box(0); +} +x_83 = lean_mk_cases_on(x_78, x_26); +if (lean_is_scalar(x_82)) { + x_84 = lean_alloc_ctor(0, 4, 0); +} else { + x_84 = x_82; +} +lean_ctor_set(x_84, 0, x_83); +lean_ctor_set(x_84, 1, x_79); +lean_ctor_set(x_84, 2, x_80); +lean_ctor_set(x_84, 3, x_81); +x_85 = lean_st_ref_set(x_14, x_84, x_77); +x_86 = lean_ctor_get(x_85, 1); +lean_inc(x_86); +lean_dec(x_85); +x_87 = lean_box(0); +x_88 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1___lambda__3(x_3, x_4, x_26, x_8, x_1, x_2, x_87, x_9, x_10, x_11, x_12, x_13, x_14, x_86); +lean_dec(x_8); +lean_dec(x_26); +x_89 = lean_ctor_get(x_88, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_88, 1); +lean_inc(x_90); +lean_dec(x_88); +x_16 = x_89; +x_17 = x_90; +goto block_22; +} +} +} +block_22: +{ +lean_object* x_18; size_t x_19; size_t x_20; +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +lean_dec(x_16); +x_19 = 1; +x_20 = x_7 + x_19; +x_7 = x_20; +x_8 = x_18; +x_15 = x_17; goto _start; } } } +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__2___lambda__1(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, lean_object* x_10, lean_object* x_11) { +_start: +{ +if (x_1 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = l_List_forInAux___main___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars___spec__1___closed__2; +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_11); +return x_13; +} +else +{ +if (x_2 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = l_List_forInAux___main___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars___spec__1___closed__2; +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_11); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_16 = lean_st_ref_take(x_10, x_11); +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_is_exclusive(x_17); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_20 = lean_ctor_get(x_17, 0); +x_21 = lean_mk_binduction_on(x_20, x_3); +lean_ctor_set(x_17, 0, x_21); +x_22 = lean_st_ref_set(x_10, x_17, x_18); +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_22, 0); +lean_dec(x_24); +x_25 = l_List_forInAux___main___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars___spec__1___closed__2; +lean_ctor_set(x_22, 0, x_25); +return x_22; +} +else +{ +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 = l_List_forInAux___main___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars___spec__1___closed__2; +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_26); +return x_28; +} +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_29 = lean_ctor_get(x_17, 0); +x_30 = lean_ctor_get(x_17, 1); +x_31 = lean_ctor_get(x_17, 2); +x_32 = lean_ctor_get(x_17, 3); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_17); +x_33 = lean_mk_binduction_on(x_29, x_3); +x_34 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_30); +lean_ctor_set(x_34, 2, x_31); +lean_ctor_set(x_34, 3, x_32); +x_35 = lean_st_ref_set(x_10, x_34, x_18); +x_36 = lean_ctor_get(x_35, 1); +lean_inc(x_36); +if (lean_is_exclusive(x_35)) { + lean_ctor_release(x_35, 0); + lean_ctor_release(x_35, 1); + x_37 = x_35; +} else { + lean_dec_ref(x_35); + x_37 = lean_box(0); +} +x_38 = l_List_forInAux___main___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars___spec__1___closed__2; +if (lean_is_scalar(x_37)) { + x_39 = lean_alloc_ctor(0, 2, 0); +} else { + x_39 = x_37; +} +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_36); +return x_39; } } } } } -static lean_object* _init_l___private_Lean_Elab_Inductive_34__mkAuxConstructions___closed__1() { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__2(uint8_t x_1, uint8_t 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) { +_start: +{ +lean_object* x_14; uint8_t x_22; +x_22 = x_5 < x_4; +if (x_22 == 0) +{ +lean_object* x_23; +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_6); +lean_ctor_set(x_23, 1, x_13); +return x_23; +} +else +{ +lean_object* x_24; +x_24 = lean_array_uget(x_3, x_5); +if (x_1 == 0) +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_24, 3); +lean_inc(x_25); +lean_dec(x_24); +x_26 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__2___lambda__1(x_1, x_2, x_25, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_6); +lean_dec(x_25); +x_14 = x_26; +goto block_21; +} +else +{ +if (x_2 == 0) +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_24, 3); +lean_inc(x_27); +lean_dec(x_24); +x_28 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__2___lambda__1(x_1, x_2, x_27, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_6); +lean_dec(x_27); +x_14 = x_28; +goto block_21; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +lean_dec(x_6); +x_29 = lean_ctor_get(x_24, 3); +lean_inc(x_29); +lean_dec(x_24); +x_30 = lean_st_ref_take(x_12, x_13); +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_30, 1); +lean_inc(x_32); +lean_dec(x_30); +x_33 = !lean_is_exclusive(x_31); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_34 = lean_ctor_get(x_31, 0); +x_35 = lean_mk_brec_on(x_34, x_29); +lean_ctor_set(x_31, 0, x_35); +x_36 = lean_st_ref_set(x_12, x_31, x_32); +x_37 = lean_ctor_get(x_36, 1); +lean_inc(x_37); +lean_dec(x_36); +x_38 = lean_box(0); +x_39 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__2___lambda__1(x_1, x_2, x_29, x_38, x_7, x_8, x_9, x_10, x_11, x_12, x_37); +lean_dec(x_29); +x_14 = x_39; +goto block_21; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_40 = lean_ctor_get(x_31, 0); +x_41 = lean_ctor_get(x_31, 1); +x_42 = lean_ctor_get(x_31, 2); +x_43 = lean_ctor_get(x_31, 3); +lean_inc(x_43); +lean_inc(x_42); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_31); +x_44 = lean_mk_brec_on(x_40, x_29); +x_45 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_41); +lean_ctor_set(x_45, 2, x_42); +lean_ctor_set(x_45, 3, x_43); +x_46 = lean_st_ref_set(x_12, x_45, x_32); +x_47 = lean_ctor_get(x_46, 1); +lean_inc(x_47); +lean_dec(x_46); +x_48 = lean_box(0); +x_49 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__2___lambda__1(x_1, x_2, x_29, x_48, x_7, x_8, x_9, x_10, x_11, x_12, x_47); +lean_dec(x_29); +x_14 = x_49; +goto block_21; +} +} +} +} +block_21: +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; size_t x_18; size_t x_19; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = lean_ctor_get(x_15, 0); +lean_inc(x_17); +lean_dec(x_15); +x_18 = 1; +x_19 = x_5 + x_18; +x_5 = x_19; +x_6 = x_17; +x_13 = x_16; +goto _start; +} +} +} +static lean_object* _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___closed__1() { _start: { lean_object* x_1; @@ -13417,20 +13910,20 @@ x_1 = lean_mk_string("PUnit"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Inductive_34__mkAuxConstructions___closed__2() { +static lean_object* _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___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_Inductive_34__mkAuxConstructions___closed__1; +x_2 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l___private_Lean_Elab_Inductive_34__mkAuxConstructions(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions(lean_object* x_1, lean_object* x_2, 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; uint8_t x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; uint8_t 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_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; size_t x_22; size_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; x_9 = lean_st_ref_get(x_7, x_8); x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); @@ -13446,44 +13939,42 @@ x_14 = l_Lean_Environment_contains(x_12, x_13); x_15 = l_Lean_Expr_heq_x3f___closed__2; lean_inc(x_12); x_16 = l_Lean_Environment_contains(x_12, x_15); -x_17 = l___private_Lean_Elab_Inductive_34__mkAuxConstructions___closed__2; +x_17 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___closed__2; lean_inc(x_12); x_18 = l_Lean_Environment_contains(x_12, x_17); x_19 = l_Lean_Prod_hasQuote___rarg___closed__2; x_20 = l_Lean_Environment_contains(x_12, x_19); -x_21 = lean_unsigned_to_nat(0u); -x_22 = l_Array_forMAux___main___at___private_Lean_Elab_Inductive_34__mkAuxConstructions___spec__1(x_14, x_16, x_18, x_20, x_1, x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_11); -x_23 = lean_ctor_get(x_22, 1); -lean_inc(x_23); -lean_dec(x_22); -x_24 = l_Array_forMAux___main___at___private_Lean_Elab_Inductive_34__mkAuxConstructions___spec__2(x_18, x_20, x_1, x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_23); -return x_24; -} -} -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_34__mkAuxConstructions___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) { -_start: +x_21 = lean_array_get_size(x_1); +x_22 = lean_usize_of_nat(x_21); +lean_dec(x_21); +x_23 = 0; +x_24 = lean_box(0); +x_25 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1(x_14, x_16, x_18, x_20, x_1, x_22, x_23, x_24, x_2, x_3, x_4, x_5, x_6, x_7, x_11); +x_26 = lean_ctor_get(x_25, 1); +lean_inc(x_26); +lean_dec(x_25); +x_27 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__2(x_18, x_20, x_1, x_22, x_23, x_24, x_2, x_3, x_4, x_5, x_6, x_7, x_26); +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) { -uint8_t x_14; uint8_t x_15; uint8_t x_16; uint8_t x_17; lean_object* x_18; -x_14 = lean_unbox(x_1); -lean_dec(x_1); -x_15 = lean_unbox(x_2); -lean_dec(x_2); -x_16 = lean_unbox(x_3); -lean_dec(x_3); -x_17 = lean_unbox(x_4); -lean_dec(x_4); -x_18 = l_Array_forMAux___main___at___private_Lean_Elab_Inductive_34__mkAuxConstructions___spec__1(x_14, x_15, x_16, x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_18; +return x_27; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_27, 0); +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_27); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +return x_31; } } -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_34__mkAuxConstructions___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { uint8_t x_12; uint8_t x_13; lean_object* x_14; @@ -13491,22 +13982,139 @@ x_12 = lean_unbox(x_1); lean_dec(x_1); x_13 = lean_unbox(x_2); lean_dec(x_2); -x_14 = l_Array_forMAux___main___at___private_Lean_Elab_Inductive_34__mkAuxConstructions___spec__2(x_12, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_14 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1___lambda__1(x_12, x_13, 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); lean_dec(x_3); return x_14; } } -lean_object* l___private_Lean_Elab_Inductive_34__mkAuxConstructions___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1___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: +{ +uint8_t x_13; uint8_t x_14; lean_object* x_15; +x_13 = lean_unbox(x_1); +lean_dec(x_1); +x_14 = lean_unbox(x_2); +lean_dec(x_2); +x_15 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1___lambda__2(x_13, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_15; +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +uint8_t x_15; uint8_t x_16; uint8_t x_17; uint8_t x_18; lean_object* x_19; +x_15 = lean_unbox(x_1); +lean_dec(x_1); +x_16 = lean_unbox(x_2); +lean_dec(x_2); +x_17 = lean_unbox(x_5); +lean_dec(x_5); +x_18 = lean_unbox(x_6); +lean_dec(x_6); +x_19 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1___lambda__3(x_15, x_16, x_3, x_4, x_17, x_18, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +return x_19; +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___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: +{ +uint8_t x_16; uint8_t x_17; uint8_t x_18; uint8_t x_19; size_t x_20; size_t x_21; lean_object* x_22; +x_16 = lean_unbox(x_1); +lean_dec(x_1); +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 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_21 = lean_unbox_usize(x_7); +lean_dec(x_7); +x_22 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1(x_16, x_17, x_18, x_19, x_5, x_20, x_21, 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); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_5); +return x_22; +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__2___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +uint8_t x_12; uint8_t x_13; lean_object* x_14; +x_12 = lean_unbox(x_1); +lean_dec(x_1); +x_13 = lean_unbox(x_2); +lean_dec(x_2); +x_14 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__2___lambda__1(x_12, x_13, 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); +lean_dec(x_3); +return x_14; +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +uint8_t x_14; uint8_t x_15; size_t x_16; size_t x_17; lean_object* x_18; +x_14 = lean_unbox(x_1); +lean_dec(x_1); +x_15 = lean_unbox(x_2); +lean_dec(x_2); +x_16 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_17 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_18 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__2(x_14, x_15, x_3, x_16, x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +return x_18; +} +} +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l___private_Lean_Elab_Inductive_34__mkAuxConstructions(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions(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); @@ -13517,7 +14125,40 @@ lean_dec(x_1); return x_9; } } -lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Inductive_35__mkInductiveDecl___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, lean_object* x_13) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___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, lean_object* x_13) { _start: { lean_object* x_14; uint8_t x_15; @@ -13541,7 +14182,7 @@ x_24 = lean_ctor_get(x_23, 4); lean_inc(x_24); lean_inc(x_9); lean_inc(x_2); -x_25 = l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_Inductive_5__mkTypeFor___spec__1(x_2, x_24, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_25 = l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(x_2, x_24, x_7, x_8, x_9, x_10, x_11, x_12, x_13); if (lean_obj_tag(x_25) == 0) { lean_object* x_26; lean_object* x_27; lean_object* x_28; @@ -13557,7 +14198,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); -x_28 = l___private_Lean_Elab_Inductive_16__elabCtors(x_21, x_2, x_23, x_7, x_8, x_9, x_10, x_11, x_12, x_27); +x_28 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors(x_21, x_2, x_23, x_7, x_8, x_9, x_10, x_11, x_12, x_27); if (lean_obj_tag(x_28) == 0) { lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; @@ -13670,30 +14311,27 @@ return x_44; } } } -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_35__mkInductiveDecl___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* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___spec__2(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -lean_object* x_10; uint8_t x_11; -x_10 = lean_array_get_size(x_1); -x_11 = lean_nat_dec_lt(x_2, x_10); -lean_dec(x_10); -if (x_11 == 0) +uint8_t x_12; +x_12 = x_3 < x_2; +if (x_12 == 0) { -lean_object* x_12; lean_object* x_13; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_3); -lean_dec(x_2); -x_12 = lean_box(0); +lean_object* x_13; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_5); x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_9); +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; lean_object* x_16; lean_object* x_17; uint8_t x_18; uint8_t x_19; lean_object* x_20; -x_14 = lean_array_fget(x_1, x_2); +lean_dec(x_4); +x_14 = lean_array_uget(x_1, x_3); x_15 = lean_ctor_get(x_14, 3); lean_inc(x_15); x_16 = lean_ctor_get(x_14, 1); @@ -13704,355 +14342,400 @@ lean_inc(x_17); lean_dec(x_16); x_18 = 0; x_19 = 1; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_3); -x_20 = l_Lean_Elab_Term_applyAttributesAt(x_15, x_17, x_18, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_5); +x_20 = l_Lean_Elab_Term_applyAttributesAt(x_15, x_17, x_18, x_19, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_17); if (lean_obj_tag(x_20) == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; +lean_object* x_21; size_t x_22; size_t x_23; lean_object* x_24; x_21 = lean_ctor_get(x_20, 1); lean_inc(x_21); lean_dec(x_20); -x_22 = lean_unsigned_to_nat(1u); -x_23 = lean_nat_add(x_2, x_22); -lean_dec(x_2); -x_2 = x_23; -x_9 = x_21; +x_22 = 1; +x_23 = x_3 + x_22; +x_24 = lean_box(0); +x_3 = x_23; +x_4 = x_24; +x_11 = x_21; goto _start; } else { -uint8_t x_25; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_3); -lean_dec(x_2); -x_25 = !lean_is_exclusive(x_20); -if (x_25 == 0) +uint8_t x_26; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_5); +x_26 = !lean_is_exclusive(x_20); +if (x_26 == 0) { return x_20; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_20, 0); -x_27 = lean_ctor_get(x_20, 1); +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_20, 0); +x_28 = lean_ctor_get(x_20, 1); +lean_inc(x_28); lean_inc(x_27); -lean_inc(x_26); lean_dec(x_20); -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; +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +return x_29; } } } } } -lean_object* l___private_Lean_Elab_Inductive_35__mkInductiveDecl___lambda__1(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, 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) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___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, 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, lean_object* x_15, lean_object* x_16) { _start: { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_54; -x_17 = lean_array_get_size(x_9); -x_18 = lean_nat_add(x_17, x_1); -lean_inc(x_12); -x_54 = l_List_mapM___main___at___private_Lean_Elab_Inductive_28__updateParams___spec__2(x_9, x_7, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_54) == 0) +lean_object* x_17; lean_object* x_18; +lean_inc(x_9); +x_17 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectLevelParamsInInductive(x_9); +x_18 = l_Lean_Elab_sortDeclLevelParams(x_1, x_2, x_17); +if (lean_obj_tag(x_18) == 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); -lean_inc(x_10); -x_57 = l___private_Lean_Elab_Inductive_18__levelMVarToParam(x_55, x_10, x_11, x_12, x_13, x_14, x_15, x_56); -if (x_8 == 0) -{ -lean_object* x_58; lean_object* x_59; -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_19 = x_58; -x_20 = x_59; -goto block_53; +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +lean_dec(x_18); +x_20 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_20, 0, x_19); +x_21 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_21, 0, x_20); +x_22 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(x_21, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +return x_22; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_57, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_57, 1); -lean_inc(x_61); -lean_dec(x_57); +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_18, 0); +lean_inc(x_23); +lean_dec(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_10); -x_62 = l___private_Lean_Elab_Inductive_23__updateResultingUniverse(x_18, x_60, x_10, x_11, x_12, x_13, x_14, x_15, x_61); -if (lean_obj_tag(x_62) == 0) +lean_inc(x_6); +lean_inc(x_23); +x_24 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts(x_3, x_4, x_23, x_5, x_6, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_24) == 0) { -lean_object* x_63; lean_object* x_64; -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_19 = x_63; -x_20 = x_64; -goto block_53; +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_25 = lean_ctor_get(x_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___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod(x_3, x_6, x_25); +x_28 = lean_alloc_ctor(6, 3, 1); +lean_ctor_set(x_28, 0, x_23); +lean_ctor_set(x_28, 1, x_6); +lean_ctor_set(x_28, 2, x_27); +lean_ctor_set_uint8(x_28, sizeof(void*)*3, x_7); +lean_inc(x_28); +x_29 = l_Lean_Elab_Term_ensureNoUnassignedMVars(x_28, x_10, x_11, x_12, x_13, x_14, x_15, x_26); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_29, 1); +lean_inc(x_30); +lean_dec(x_29); +lean_inc(x_14); +lean_inc(x_10); +x_31 = l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__2(x_28, x_10, x_11, x_12, x_13, x_14, x_15, x_30); +lean_dec(x_28); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; size_t x_35; size_t x_36; lean_object* x_37; lean_object* x_38; +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +lean_dec(x_31); +x_33 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions(x_3, x_10, x_11, x_12, x_13, x_14, x_15, x_32); +x_34 = lean_ctor_get(x_33, 1); +lean_inc(x_34); +lean_dec(x_33); +x_35 = lean_usize_of_nat(x_8); +x_36 = 0; +x_37 = lean_box(0); +x_38 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___spec__2(x_3, x_35, x_36, x_37, x_10, x_11, x_12, x_13, x_14, x_15, x_34); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +if (lean_obj_tag(x_38) == 0) +{ +uint8_t x_39; +x_39 = !lean_is_exclusive(x_38); +if (x_39 == 0) +{ +return x_38; } else { -uint8_t x_65; -lean_dec(x_18); -lean_dec(x_17); +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_38, 0); +x_41 = lean_ctor_get(x_38, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_38); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +else +{ +uint8_t x_43; +x_43 = !lean_is_exclusive(x_38); +if (x_43 == 0) +{ +return x_38; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_38, 0); +x_45 = lean_ctor_get(x_38, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_38); +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 +{ +uint8_t x_47; 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_3); -lean_dec(x_2); -x_65 = !lean_is_exclusive(x_62); -if (x_65 == 0) +x_47 = !lean_is_exclusive(x_31); +if (x_47 == 0) { -return x_62; +return x_31; } else { -lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = lean_ctor_get(x_62, 0); -x_67 = lean_ctor_get(x_62, 1); -lean_inc(x_67); -lean_inc(x_66); -lean_dec(x_62); -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; -} +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_31, 0); +x_49 = lean_ctor_get(x_31, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_31); +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 { -uint8_t x_69; -lean_dec(x_18); -lean_dec(x_17); +uint8_t x_51; +lean_dec(x_28); 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_3); -lean_dec(x_2); -x_69 = !lean_is_exclusive(x_54); -if (x_69 == 0) +x_51 = !lean_is_exclusive(x_29); +if (x_51 == 0) { +return x_29; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_29, 0); +x_53 = lean_ctor_get(x_29, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_29); +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_70; lean_object* x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_54, 0); -x_71 = lean_ctor_get(x_54, 1); -lean_inc(x_71); -lean_inc(x_70); -lean_dec(x_54); -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; -} -} -block_53: -{ -lean_object* x_21; lean_object* x_22; -lean_inc(x_19); -x_21 = l___private_Lean_Elab_Inductive_29__collectLevelParamsInInductive(x_19); -x_22 = l_Lean_Elab_sortDeclLevelParams(x_2, x_3, x_21); -if (lean_obj_tag(x_22) == 0) -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -lean_dec(x_22); -x_24 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_24, 0, x_23); -x_25 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_25, 0, x_24); -x_26 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_25, x_10, x_11, x_12, x_13, x_14, x_15, x_20); +uint8_t x_55; +lean_dec(x_23); 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); +x_55 = !lean_is_exclusive(x_24); +if (x_55 == 0) +{ +return x_24; +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_24, 0); +x_57 = lean_ctor_get(x_24, 1); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_24); +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* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___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, uint8_t x_7, lean_object* x_8, uint8_t 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: +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_array_get_size(x_10); +x_19 = lean_nat_add(x_18, x_1); +lean_inc(x_13); +x_20 = l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateParams___spec__2(x_10, x_2, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +lean_inc(x_11); +x_23 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParam(x_21, x_11, x_12, x_13, x_14, x_15, x_16, x_22); +if (x_9 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +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 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___lambda__1(x_3, x_4, x_5, x_6, x_18, x_19, x_7, x_8, x_24, x_11, x_12, x_13, x_14, x_15, x_16, x_25); return x_26; } else { -lean_object* x_27; lean_object* x_28; -x_27 = lean_ctor_get(x_22, 0); +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_23, 0); lean_inc(x_27); -lean_dec(x_22); +x_28 = lean_ctor_get(x_23, 1); +lean_inc(x_28); +lean_dec(x_23); +lean_inc(x_16); 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_18); -lean_inc(x_27); -x_28 = l___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts(x_4, x_5, x_27, x_17, x_18, x_19, x_10, x_11, x_12, x_13, x_14, x_15, x_20); -if (lean_obj_tag(x_28) == 0) +x_29 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse(x_19, x_27, x_11, x_12, x_13, x_14, x_15, x_16, x_28); +if (lean_obj_tag(x_29) == 0) { -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_29, 0); lean_inc(x_30); -lean_dec(x_28); -x_31 = l___private_Lean_Elab_Inductive_33__applyInferMod(x_4, x_18, x_29); -x_32 = lean_alloc_ctor(6, 3, 1); -lean_ctor_set(x_32, 0, x_27); -lean_ctor_set(x_32, 1, x_18); -lean_ctor_set(x_32, 2, x_31); -lean_ctor_set_uint8(x_32, sizeof(void*)*3, x_6); -lean_inc(x_32); -x_33 = l_Lean_Elab_Term_ensureNoUnassignedMVars(x_32, x_10, x_11, x_12, x_13, x_14, x_15, x_30); -if (lean_obj_tag(x_33) == 0) +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +lean_dec(x_29); +x_32 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___lambda__1(x_3, x_4, x_5, x_6, x_18, x_19, x_7, x_8, x_30, x_11, x_12, x_13, x_14, x_15, x_16, x_31); +return x_32; +} +else { -lean_object* x_34; lean_object* x_35; -x_34 = lean_ctor_get(x_33, 1); -lean_inc(x_34); -lean_dec(x_33); -lean_inc(x_14); -lean_inc(x_10); -x_35 = l_Lean_addDecl___at_Lean_Elab_Command_elabEvalUnsafe___spec__2(x_32, x_10, x_11, x_12, x_13, x_14, x_15, x_34); -lean_dec(x_32); -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; -x_36 = lean_ctor_get(x_35, 1); -lean_inc(x_36); -lean_dec(x_35); -x_37 = l___private_Lean_Elab_Inductive_34__mkAuxConstructions(x_4, x_10, x_11, x_12, x_13, x_14, x_15, x_36); -x_38 = lean_ctor_get(x_37, 1); -lean_inc(x_38); -lean_dec(x_37); -x_39 = lean_unsigned_to_nat(0u); -x_40 = l_Array_forMAux___main___at___private_Lean_Elab_Inductive_35__mkInductiveDecl___spec__2(x_4, x_39, x_10, x_11, x_12, x_13, x_14, x_15, x_38); +uint8_t x_33; +lean_dec(x_19); +lean_dec(x_18); +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_4); +lean_dec(x_3); +x_33 = !lean_is_exclusive(x_29); +if (x_33 == 0) +{ +return x_29; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_29, 0); +x_35 = lean_ctor_get(x_29, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_29); +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +return x_36; +} +} +} +} +else +{ +uint8_t x_37; +lean_dec(x_19); +lean_dec(x_18); +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_4); +lean_dec(x_3); +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 -{ -uint8_t x_41; -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_41 = !lean_is_exclusive(x_35); -if (x_41 == 0) -{ -return x_35; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_35, 0); -x_43 = lean_ctor_get(x_35, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_35); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -return x_44; } } } -else -{ -uint8_t x_45; -lean_dec(x_32); -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_45 = !lean_is_exclusive(x_33); -if (x_45 == 0) -{ -return x_33; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_33, 0); -x_47 = lean_ctor_get(x_33, 1); -lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_33); -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_27); -lean_dec(x_18); -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_49 = !lean_is_exclusive(x_28); -if (x_49 == 0) -{ -return x_28; -} -else -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_28, 0); -x_51 = lean_ctor_get(x_28, 1); -lean_inc(x_51); -lean_inc(x_50); -lean_dec(x_28); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -return x_52; -} -} -} -} -} -} -lean_object* l___private_Lean_Elab_Inductive_35__mkInductiveDecl___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; @@ -14066,8 +14749,7 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_18); -x_19 = l_Nat_foldMAux___main___at___private_Lean_Elab_Inductive_35__mkInductiveDecl___spec__1(x_2, x_7, x_8, x_18, x_18, x_17, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -lean_dec(x_18); +x_19 = l_Nat_foldMAux___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___spec__1(x_2, x_7, x_8, x_18, x_18, x_17, x_9, x_10, x_11, x_12, x_13, x_14, x_15); if (lean_obj_tag(x_19) == 0) { lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; @@ -14099,7 +14781,7 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_22); -x_27 = l___private_Lean_Elab_Inductive_19__getResultingUniverse(x_22, x_9, x_10, x_11, x_12, x_13, x_14, x_26); +x_27 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse(x_22, x_9, x_10, x_11, x_12, x_13, x_14, x_26); if (lean_obj_tag(x_27) == 0) { lean_object* x_28; lean_object* x_29; lean_object* x_30; @@ -14120,22 +14802,24 @@ lean_inc(x_32); lean_dec(x_30); x_33 = lean_box(x_5); lean_inc(x_22); -x_34 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_35__mkInductiveDecl___lambda__1___boxed), 16, 8); +x_34 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___lambda__2___boxed), 17, 9); lean_closure_set(x_34, 0, x_16); -lean_closure_set(x_34, 1, x_3); -lean_closure_set(x_34, 2, x_4); -lean_closure_set(x_34, 3, x_1); -lean_closure_set(x_34, 4, x_8); -lean_closure_set(x_34, 5, x_33); -lean_closure_set(x_34, 6, x_22); -lean_closure_set(x_34, 7, x_31); -x_35 = l___private_Lean_Elab_Inductive_27__withUsed___rarg(x_6, x_22, x_34, x_9, x_10, x_11, x_12, x_13, x_14, x_32); +lean_closure_set(x_34, 1, x_22); +lean_closure_set(x_34, 2, x_3); +lean_closure_set(x_34, 3, x_4); +lean_closure_set(x_34, 4, x_1); +lean_closure_set(x_34, 5, x_8); +lean_closure_set(x_34, 6, x_33); +lean_closure_set(x_34, 7, x_18); +lean_closure_set(x_34, 8, x_31); +x_35 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withUsed___rarg(x_6, x_22, x_34, x_9, x_10, x_11, x_12, x_13, x_14, x_32); return x_35; } else { uint8_t x_36; lean_dec(x_22); +lean_dec(x_18); lean_dec(x_16); lean_dec(x_14); lean_dec(x_13); @@ -14171,6 +14855,7 @@ else { uint8_t x_40; lean_dec(x_22); +lean_dec(x_18); lean_dec(x_16); lean_dec(x_14); lean_dec(x_13); @@ -14206,6 +14891,7 @@ else { uint8_t x_44; lean_dec(x_22); +lean_dec(x_18); lean_dec(x_16); lean_dec(x_14); lean_dec(x_13); @@ -14240,6 +14926,7 @@ return x_47; else { uint8_t x_48; +lean_dec(x_18); lean_dec(x_16); lean_dec(x_14); lean_dec(x_13); @@ -14272,24 +14959,24 @@ return x_51; } } } -lean_object* l___private_Lean_Elab_Inductive_35__mkInductiveDecl___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { lean_object* x_14; lean_object* x_15; lean_object* x_16; x_14 = lean_box(x_4); lean_inc(x_6); -x_15 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_35__mkInductiveDecl___lambda__2___boxed), 15, 6); +x_15 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___lambda__3___boxed), 15, 6); lean_closure_set(x_15, 0, x_1); lean_closure_set(x_15, 1, x_6); lean_closure_set(x_15, 2, x_2); lean_closure_set(x_15, 3, x_3); lean_closure_set(x_15, 4, x_14); lean_closure_set(x_15, 5, x_5); -x_16 = l___private_Lean_Elab_Inductive_14__withInductiveLocalDecls___rarg(x_6, x_15, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_16 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls___rarg(x_6, x_15, x_7, x_8, x_9, x_10, x_11, x_12, x_13); return x_16; } } -lean_object* l___private_Lean_Elab_Inductive_35__mkInductiveDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; @@ -14304,7 +14991,7 @@ lean_inc(x_15); lean_dec(x_13); lean_inc(x_7); lean_inc(x_3); -x_16 = l___private_Lean_Elab_Inductive_4__checkLevelNames(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_15); +x_16 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkLevelNames(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_15); if (lean_obj_tag(x_16) == 0) { 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; uint8_t x_26; @@ -14321,11 +15008,11 @@ x_21 = lean_ctor_get(x_12, 0); lean_inc(x_21); lean_dec(x_12); lean_inc(x_2); -x_22 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_12__elabHeader), 8, 1); +x_22 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeader), 8, 1); lean_closure_set(x_22, 0, x_2); x_23 = lean_box(x_20); lean_inc(x_18); -x_24 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_35__mkInductiveDecl___lambda__3___boxed), 13, 5); +x_24 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___lambda__4___boxed), 13, 5); lean_closure_set(x_24, 0, x_2); lean_closure_set(x_24, 1, x_14); lean_closure_set(x_24, 2, x_18); @@ -14412,63 +15099,98 @@ return x_44; } } } -lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Inductive_35__mkInductiveDecl___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* l_Nat_foldMAux___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___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) { _start: { lean_object* x_14; -x_14 = l_Nat_foldMAux___main___at___private_Lean_Elab_Inductive_35__mkInductiveDecl___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, x_13); +x_14 = l_Nat_foldMAux___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___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, x_13); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); return x_14; } } -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_35__mkInductiveDecl___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* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___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_10; -x_10 = l_Array_forMAux___main___at___private_Lean_Elab_Inductive_35__mkInductiveDecl___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -return x_10; -} -} -lean_object* l___private_Lean_Elab_Inductive_35__mkInductiveDecl___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_17; uint8_t x_18; lean_object* x_19; -x_17 = lean_unbox(x_6); -lean_dec(x_6); -x_18 = lean_unbox(x_8); +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___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___spec__2(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_8); -x_19 = l___private_Lean_Elab_Inductive_35__mkInductiveDecl___lambda__1(x_1, x_2, x_3, x_4, x_5, x_17, x_7, x_18, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -lean_dec(x_5); -lean_dec(x_4); +lean_dec(x_7); +lean_dec(x_6); lean_dec(x_1); -return x_19; +return x_14; } } -lean_object* l___private_Lean_Elab_Inductive_35__mkInductiveDecl___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* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___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_17; lean_object* x_18; +x_17 = lean_unbox(x_7); +lean_dec(x_7); +x_18 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_17, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +lean_dec(x_8); +lean_dec(x_4); +lean_dec(x_3); +return x_18; +} +} +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___lambda__2___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +_start: +{ +uint8_t x_18; uint8_t x_19; lean_object* x_20; +x_18 = lean_unbox(x_7); +lean_dec(x_7); +x_19 = lean_unbox(x_9); +lean_dec(x_9); +x_20 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_18, x_8, x_19, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +return x_20; +} +} +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___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_5); lean_dec(x_5); -x_17 = l___private_Lean_Elab_Inductive_35__mkInductiveDecl___lambda__2(x_1, x_2, x_3, x_4, x_16, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +x_17 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___lambda__3(x_1, x_2, x_3, x_4, x_16, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); lean_dec(x_6); lean_dec(x_2); return x_17; } } -lean_object* l___private_Lean_Elab_Inductive_35__mkInductiveDecl___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* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { uint8_t x_14; lean_object* x_15; x_14 = lean_unbox(x_4); lean_dec(x_4); -x_15 = l___private_Lean_Elab_Inductive_35__mkInductiveDecl___lambda__3(x_1, x_2, x_3, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_15 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___lambda__4(x_1, x_2, x_3, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); return x_15; } } @@ -14492,7 +15214,7 @@ x_17 = l_Lean_replaceRef(x_16, x_14); lean_dec(x_14); lean_dec(x_16); lean_ctor_set(x_8, 3, x_17); -x_18 = l___private_Lean_Elab_Inductive_35__mkInductiveDecl(x_3, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_12); +x_18 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl(x_3, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_12); return x_18; } else @@ -14518,7 +15240,7 @@ lean_ctor_set(x_26, 0, x_19); lean_ctor_set(x_26, 1, x_20); lean_ctor_set(x_26, 2, x_21); lean_ctor_set(x_26, 3, x_25); -x_27 = l___private_Lean_Elab_Inductive_35__mkInductiveDecl(x_3, x_2, x_4, x_5, x_6, x_7, x_26, x_9, x_12); +x_27 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl(x_3, x_2, x_4, x_5, x_6, x_7, x_26, x_9, x_12); return x_27; } } @@ -14614,48 +15336,48 @@ lean_dec_ref(res); res = initialize_Lean_Elab_DeclUtil(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l_Lean_Elab_Command_checkValidInductiveModifier___lambda__1___closed__1 = _init_l_Lean_Elab_Command_checkValidInductiveModifier___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_checkValidInductiveModifier___lambda__1___closed__1); +l_Lean_Elab_Command_checkValidInductiveModifier___lambda__1___closed__2 = _init_l_Lean_Elab_Command_checkValidInductiveModifier___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_checkValidInductiveModifier___lambda__1___closed__2); +l_Lean_Elab_Command_checkValidInductiveModifier___lambda__1___closed__3 = _init_l_Lean_Elab_Command_checkValidInductiveModifier___lambda__1___closed__3(); +lean_mark_persistent(l_Lean_Elab_Command_checkValidInductiveModifier___lambda__1___closed__3); +l_Lean_Elab_Command_checkValidInductiveModifier___lambda__2___closed__1 = _init_l_Lean_Elab_Command_checkValidInductiveModifier___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_checkValidInductiveModifier___lambda__2___closed__1); +l_Lean_Elab_Command_checkValidInductiveModifier___lambda__2___closed__2 = _init_l_Lean_Elab_Command_checkValidInductiveModifier___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_checkValidInductiveModifier___lambda__2___closed__2); +l_Lean_Elab_Command_checkValidInductiveModifier___lambda__2___closed__3 = _init_l_Lean_Elab_Command_checkValidInductiveModifier___lambda__2___closed__3(); +lean_mark_persistent(l_Lean_Elab_Command_checkValidInductiveModifier___lambda__2___closed__3); l_Lean_Elab_Command_checkValidInductiveModifier___closed__1 = _init_l_Lean_Elab_Command_checkValidInductiveModifier___closed__1(); lean_mark_persistent(l_Lean_Elab_Command_checkValidInductiveModifier___closed__1); l_Lean_Elab_Command_checkValidInductiveModifier___closed__2 = _init_l_Lean_Elab_Command_checkValidInductiveModifier___closed__2(); lean_mark_persistent(l_Lean_Elab_Command_checkValidInductiveModifier___closed__2); l_Lean_Elab_Command_checkValidInductiveModifier___closed__3 = _init_l_Lean_Elab_Command_checkValidInductiveModifier___closed__3(); lean_mark_persistent(l_Lean_Elab_Command_checkValidInductiveModifier___closed__3); -l_Lean_Elab_Command_checkValidInductiveModifier___closed__4 = _init_l_Lean_Elab_Command_checkValidInductiveModifier___closed__4(); -lean_mark_persistent(l_Lean_Elab_Command_checkValidInductiveModifier___closed__4); -l_Lean_Elab_Command_checkValidInductiveModifier___closed__5 = _init_l_Lean_Elab_Command_checkValidInductiveModifier___closed__5(); -lean_mark_persistent(l_Lean_Elab_Command_checkValidInductiveModifier___closed__5); -l_Lean_Elab_Command_checkValidInductiveModifier___closed__6 = _init_l_Lean_Elab_Command_checkValidInductiveModifier___closed__6(); -lean_mark_persistent(l_Lean_Elab_Command_checkValidInductiveModifier___closed__6); -l_Lean_Elab_Command_checkValidInductiveModifier___closed__7 = _init_l_Lean_Elab_Command_checkValidInductiveModifier___closed__7(); -lean_mark_persistent(l_Lean_Elab_Command_checkValidInductiveModifier___closed__7); -l_Lean_Elab_Command_checkValidInductiveModifier___closed__8 = _init_l_Lean_Elab_Command_checkValidInductiveModifier___closed__8(); -lean_mark_persistent(l_Lean_Elab_Command_checkValidInductiveModifier___closed__8); -l_Lean_Elab_Command_checkValidInductiveModifier___closed__9 = _init_l_Lean_Elab_Command_checkValidInductiveModifier___closed__9(); -lean_mark_persistent(l_Lean_Elab_Command_checkValidInductiveModifier___closed__9); +l_Lean_Elab_Command_checkValidCtorModifier___lambda__1___closed__1 = _init_l_Lean_Elab_Command_checkValidCtorModifier___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_checkValidCtorModifier___lambda__1___closed__1); +l_Lean_Elab_Command_checkValidCtorModifier___lambda__1___closed__2 = _init_l_Lean_Elab_Command_checkValidCtorModifier___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_checkValidCtorModifier___lambda__1___closed__2); +l_Lean_Elab_Command_checkValidCtorModifier___lambda__1___closed__3 = _init_l_Lean_Elab_Command_checkValidCtorModifier___lambda__1___closed__3(); +lean_mark_persistent(l_Lean_Elab_Command_checkValidCtorModifier___lambda__1___closed__3); +l_Lean_Elab_Command_checkValidCtorModifier___lambda__2___closed__1 = _init_l_Lean_Elab_Command_checkValidCtorModifier___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_checkValidCtorModifier___lambda__2___closed__1); +l_Lean_Elab_Command_checkValidCtorModifier___lambda__2___closed__2 = _init_l_Lean_Elab_Command_checkValidCtorModifier___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_checkValidCtorModifier___lambda__2___closed__2); +l_Lean_Elab_Command_checkValidCtorModifier___lambda__2___closed__3 = _init_l_Lean_Elab_Command_checkValidCtorModifier___lambda__2___closed__3(); +lean_mark_persistent(l_Lean_Elab_Command_checkValidCtorModifier___lambda__2___closed__3); +l_Lean_Elab_Command_checkValidCtorModifier___lambda__3___closed__1 = _init_l_Lean_Elab_Command_checkValidCtorModifier___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_checkValidCtorModifier___lambda__3___closed__1); +l_Lean_Elab_Command_checkValidCtorModifier___lambda__3___closed__2 = _init_l_Lean_Elab_Command_checkValidCtorModifier___lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_checkValidCtorModifier___lambda__3___closed__2); +l_Lean_Elab_Command_checkValidCtorModifier___lambda__3___closed__3 = _init_l_Lean_Elab_Command_checkValidCtorModifier___lambda__3___closed__3(); +lean_mark_persistent(l_Lean_Elab_Command_checkValidCtorModifier___lambda__3___closed__3); l_Lean_Elab_Command_checkValidCtorModifier___closed__1 = _init_l_Lean_Elab_Command_checkValidCtorModifier___closed__1(); lean_mark_persistent(l_Lean_Elab_Command_checkValidCtorModifier___closed__1); l_Lean_Elab_Command_checkValidCtorModifier___closed__2 = _init_l_Lean_Elab_Command_checkValidCtorModifier___closed__2(); lean_mark_persistent(l_Lean_Elab_Command_checkValidCtorModifier___closed__2); l_Lean_Elab_Command_checkValidCtorModifier___closed__3 = _init_l_Lean_Elab_Command_checkValidCtorModifier___closed__3(); lean_mark_persistent(l_Lean_Elab_Command_checkValidCtorModifier___closed__3); -l_Lean_Elab_Command_checkValidCtorModifier___closed__4 = _init_l_Lean_Elab_Command_checkValidCtorModifier___closed__4(); -lean_mark_persistent(l_Lean_Elab_Command_checkValidCtorModifier___closed__4); -l_Lean_Elab_Command_checkValidCtorModifier___closed__5 = _init_l_Lean_Elab_Command_checkValidCtorModifier___closed__5(); -lean_mark_persistent(l_Lean_Elab_Command_checkValidCtorModifier___closed__5); -l_Lean_Elab_Command_checkValidCtorModifier___closed__6 = _init_l_Lean_Elab_Command_checkValidCtorModifier___closed__6(); -lean_mark_persistent(l_Lean_Elab_Command_checkValidCtorModifier___closed__6); -l_Lean_Elab_Command_checkValidCtorModifier___closed__7 = _init_l_Lean_Elab_Command_checkValidCtorModifier___closed__7(); -lean_mark_persistent(l_Lean_Elab_Command_checkValidCtorModifier___closed__7); -l_Lean_Elab_Command_checkValidCtorModifier___closed__8 = _init_l_Lean_Elab_Command_checkValidCtorModifier___closed__8(); -lean_mark_persistent(l_Lean_Elab_Command_checkValidCtorModifier___closed__8); -l_Lean_Elab_Command_checkValidCtorModifier___closed__9 = _init_l_Lean_Elab_Command_checkValidCtorModifier___closed__9(); -lean_mark_persistent(l_Lean_Elab_Command_checkValidCtorModifier___closed__9); -l_Lean_Elab_Command_checkValidCtorModifier___closed__10 = _init_l_Lean_Elab_Command_checkValidCtorModifier___closed__10(); -lean_mark_persistent(l_Lean_Elab_Command_checkValidCtorModifier___closed__10); -l_Lean_Elab_Command_checkValidCtorModifier___closed__11 = _init_l_Lean_Elab_Command_checkValidCtorModifier___closed__11(); -lean_mark_persistent(l_Lean_Elab_Command_checkValidCtorModifier___closed__11); -l_Lean_Elab_Command_checkValidCtorModifier___closed__12 = _init_l_Lean_Elab_Command_checkValidCtorModifier___closed__12(); -lean_mark_persistent(l_Lean_Elab_Command_checkValidCtorModifier___closed__12); l_Lean_Elab_Command_CtorView_inhabited___closed__1 = _init_l_Lean_Elab_Command_CtorView_inhabited___closed__1(); lean_mark_persistent(l_Lean_Elab_Command_CtorView_inhabited___closed__1); l_Lean_Elab_Command_CtorView_inhabited___closed__2 = _init_l_Lean_Elab_Command_CtorView_inhabited___closed__2(); @@ -14670,98 +15392,80 @@ l_Lean_Elab_Command_ElabHeaderResult_inhabited___closed__1 = _init_l_Lean_Elab_C lean_mark_persistent(l_Lean_Elab_Command_ElabHeaderResult_inhabited___closed__1); l_Lean_Elab_Command_ElabHeaderResult_inhabited = _init_l_Lean_Elab_Command_ElabHeaderResult_inhabited(); lean_mark_persistent(l_Lean_Elab_Command_ElabHeaderResult_inhabited); -l___private_Lean_Elab_Inductive_1__elabHeaderAux___main___lambda__1___closed__1 = _init_l___private_Lean_Elab_Inductive_1__elabHeaderAux___main___lambda__1___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Inductive_1__elabHeaderAux___main___lambda__1___closed__1); -l___private_Lean_Elab_Inductive_1__elabHeaderAux___main___lambda__1___closed__2 = _init_l___private_Lean_Elab_Inductive_1__elabHeaderAux___main___lambda__1___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Inductive_1__elabHeaderAux___main___lambda__1___closed__2); -l___private_Lean_Elab_Inductive_1__elabHeaderAux___main___lambda__1___closed__3 = _init_l___private_Lean_Elab_Inductive_1__elabHeaderAux___main___lambda__1___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Inductive_1__elabHeaderAux___main___lambda__1___closed__3); -l_Array_forMAux___main___at___private_Lean_Elab_Inductive_2__checkNumParams___spec__1___closed__1 = _init_l_Array_forMAux___main___at___private_Lean_Elab_Inductive_2__checkNumParams___spec__1___closed__1(); -lean_mark_persistent(l_Array_forMAux___main___at___private_Lean_Elab_Inductive_2__checkNumParams___spec__1___closed__1); -l_Array_forMAux___main___at___private_Lean_Elab_Inductive_2__checkNumParams___spec__1___closed__2 = _init_l_Array_forMAux___main___at___private_Lean_Elab_Inductive_2__checkNumParams___spec__1___closed__2(); -lean_mark_persistent(l_Array_forMAux___main___at___private_Lean_Elab_Inductive_2__checkNumParams___spec__1___closed__2); -l_Array_forMAux___main___at___private_Lean_Elab_Inductive_2__checkNumParams___spec__1___closed__3 = _init_l_Array_forMAux___main___at___private_Lean_Elab_Inductive_2__checkNumParams___spec__1___closed__3(); -lean_mark_persistent(l_Array_forMAux___main___at___private_Lean_Elab_Inductive_2__checkNumParams___spec__1___closed__3); -l_Array_forMAux___main___at___private_Lean_Elab_Inductive_3__checkUnsafe___spec__1___closed__1 = _init_l_Array_forMAux___main___at___private_Lean_Elab_Inductive_3__checkUnsafe___spec__1___closed__1(); -lean_mark_persistent(l_Array_forMAux___main___at___private_Lean_Elab_Inductive_3__checkUnsafe___spec__1___closed__1); -l_Array_forMAux___main___at___private_Lean_Elab_Inductive_3__checkUnsafe___spec__1___closed__2 = _init_l_Array_forMAux___main___at___private_Lean_Elab_Inductive_3__checkUnsafe___spec__1___closed__2(); -lean_mark_persistent(l_Array_forMAux___main___at___private_Lean_Elab_Inductive_3__checkUnsafe___spec__1___closed__2); -l_Array_forMAux___main___at___private_Lean_Elab_Inductive_3__checkUnsafe___spec__1___closed__3 = _init_l_Array_forMAux___main___at___private_Lean_Elab_Inductive_3__checkUnsafe___spec__1___closed__3(); -lean_mark_persistent(l_Array_forMAux___main___at___private_Lean_Elab_Inductive_3__checkUnsafe___spec__1___closed__3); -l_Array_forMAux___main___at___private_Lean_Elab_Inductive_4__checkLevelNames___spec__1___closed__1 = _init_l_Array_forMAux___main___at___private_Lean_Elab_Inductive_4__checkLevelNames___spec__1___closed__1(); -lean_mark_persistent(l_Array_forMAux___main___at___private_Lean_Elab_Inductive_4__checkLevelNames___spec__1___closed__1); -l_Array_forMAux___main___at___private_Lean_Elab_Inductive_4__checkLevelNames___spec__1___closed__2 = _init_l_Array_forMAux___main___at___private_Lean_Elab_Inductive_4__checkLevelNames___spec__1___closed__2(); -lean_mark_persistent(l_Array_forMAux___main___at___private_Lean_Elab_Inductive_4__checkLevelNames___spec__1___closed__2); -l_Array_forMAux___main___at___private_Lean_Elab_Inductive_4__checkLevelNames___spec__1___closed__3 = _init_l_Array_forMAux___main___at___private_Lean_Elab_Inductive_4__checkLevelNames___spec__1___closed__3(); -lean_mark_persistent(l_Array_forMAux___main___at___private_Lean_Elab_Inductive_4__checkLevelNames___spec__1___closed__3); -l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg___closed__1 = _init_l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg___closed__1); -l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg___closed__2 = _init_l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg___closed__2); -l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg___closed__3 = _init_l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg___closed__3); -l___private_Lean_Elab_Inductive_7__getResultingType___closed__1 = _init_l___private_Lean_Elab_Inductive_7__getResultingType___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Inductive_7__getResultingType___closed__1); -l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__1 = _init_l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__1); -l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__2 = _init_l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__2); -l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__3 = _init_l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__3); -l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__4 = _init_l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__4); -l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__5 = _init_l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__5); -l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__6 = _init_l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__6); -l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___closed__1 = _init_l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___closed__1); -l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___closed__2 = _init_l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___closed__2); -l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___closed__3 = _init_l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___closed__3); -l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__1 = _init_l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__1(); -lean_mark_persistent(l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__1); -l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__2 = _init_l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__2(); -lean_mark_persistent(l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__2); -l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__3 = _init_l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__3(); -lean_mark_persistent(l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__3); -l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__4 = _init_l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__4(); -lean_mark_persistent(l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__4); -l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__5 = _init_l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__5(); -lean_mark_persistent(l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__5); -l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__6 = _init_l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__6(); -lean_mark_persistent(l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__6); -l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__1 = _init_l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__1(); -lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__1); -l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__2 = _init_l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__2(); -lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__2); -l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__3 = _init_l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__3(); -lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__3); -l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__4 = _init_l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__4(); -lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__4); -l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__5 = _init_l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__5(); -lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__5); -l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__6 = _init_l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__6(); -lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__6); -l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__7 = _init_l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__7(); -lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__7); -l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__8 = _init_l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__8(); -lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__8); -l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__9 = _init_l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__9(); -lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__9); -l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__1 = _init_l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__1); -l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__2 = _init_l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__2); -l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__3 = _init_l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__3); -l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__4 = _init_l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__4); -l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__5 = _init_l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__5); -l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__6 = _init_l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__6); +l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2___closed__1 = _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2___closed__1); +l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2___closed__2 = _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2___closed__2); +l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2___closed__3 = _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2___closed__3); +l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams___spec__1___closed__1 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams___spec__1___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams___spec__1___closed__1); +l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams___spec__1___closed__2 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams___spec__1___closed__2(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams___spec__1___closed__2); +l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams___spec__1___closed__3 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams___spec__1___closed__3(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams___spec__1___closed__3); +l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe___spec__1___closed__1 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe___spec__1___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe___spec__1___closed__1); +l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe___spec__1___closed__2 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe___spec__1___closed__2(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe___spec__1___closed__2); +l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe___spec__1___closed__3 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe___spec__1___closed__3(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe___spec__1___closed__3); +l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkLevelNames___spec__1___closed__1 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkLevelNames___spec__1___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkLevelNames___spec__1___closed__1); +l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkLevelNames___spec__1___closed__2 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkLevelNames___spec__1___closed__2(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkLevelNames___spec__1___closed__2); +l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkLevelNames___spec__1___closed__3 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkLevelNames___spec__1___closed__3(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkLevelNames___spec__1___closed__3); +l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_throwUnexpectedInductiveType___rarg___closed__1 = _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_throwUnexpectedInductiveType___rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_throwUnexpectedInductiveType___rarg___closed__1); +l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_throwUnexpectedInductiveType___rarg___closed__2 = _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_throwUnexpectedInductiveType___rarg___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_throwUnexpectedInductiveType___rarg___closed__2); +l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_throwUnexpectedInductiveType___rarg___closed__3 = _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_throwUnexpectedInductiveType___rarg___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_throwUnexpectedInductiveType___rarg___closed__3); +l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingType___closed__1 = _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingType___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingType___closed__1); +l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___lambda__1___closed__1 = _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___lambda__1___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___lambda__1___closed__1); +l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___lambda__1___closed__2 = _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___lambda__1___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___lambda__1___closed__2); +l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___closed__1 = _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___closed__1); +l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___closed__2 = _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___closed__2); +l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__2___closed__1 = _init_l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__2___closed__1(); +lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__2___closed__1); +l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__2___closed__2 = _init_l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__2___closed__2(); +lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__2___closed__2); +l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__2___closed__3 = _init_l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__2___closed__3(); +lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__2___closed__3); +l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__2___closed__4 = _init_l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__2___closed__4(); +lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__2___closed__4); +l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__4___closed__1 = _init_l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__4___closed__1(); +lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__4___closed__1); +l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__4___closed__2 = _init_l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__4___closed__2(); +lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__4___closed__2); +l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5___closed__1 = _init_l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5___closed__1(); +lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5___closed__1); +l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5___closed__2 = _init_l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5___closed__2(); +lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5___closed__2); +l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5___closed__3 = _init_l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5___closed__3(); +lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5___closed__3); +l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5___closed__4 = _init_l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5___closed__4(); +lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5___closed__4); +l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5___closed__5 = _init_l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5___closed__5(); +lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___lambda__5___closed__5); +l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__1 = _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__1); +l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__2 = _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__2); +l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__3 = _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__3); +l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__4 = _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__4); +l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__5 = _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__5); +l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__6 = _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__6); l_Lean_Elab_Command_tmpIndParam___closed__1 = _init_l_Lean_Elab_Command_tmpIndParam___closed__1(); lean_mark_persistent(l_Lean_Elab_Command_tmpIndParam___closed__1); l_Lean_Elab_Command_tmpIndParam___closed__2 = _init_l_Lean_Elab_Command_tmpIndParam___closed__2(); @@ -14778,30 +15482,26 @@ l_Lean_Elab_Command_shouldInferResultUniverse___closed__3 = _init_l_Lean_Elab_Co lean_mark_persistent(l_Lean_Elab_Command_shouldInferResultUniverse___closed__3); l_Lean_Elab_Command_shouldInferResultUniverse___closed__4 = _init_l_Lean_Elab_Command_shouldInferResultUniverse___closed__4(); lean_mark_persistent(l_Lean_Elab_Command_shouldInferResultUniverse___closed__4); -l_Lean_Elab_Command_shouldInferResultUniverse___closed__5 = _init_l_Lean_Elab_Command_shouldInferResultUniverse___closed__5(); -lean_mark_persistent(l_Lean_Elab_Command_shouldInferResultUniverse___closed__5); -l_Lean_Elab_Command_shouldInferResultUniverse___closed__6 = _init_l_Lean_Elab_Command_shouldInferResultUniverse___closed__6(); -lean_mark_persistent(l_Lean_Elab_Command_shouldInferResultUniverse___closed__6); -l_Lean_Elab_Command_accLevelAtCtor___main___closed__1 = _init_l_Lean_Elab_Command_accLevelAtCtor___main___closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_accLevelAtCtor___main___closed__1); -l_Lean_Elab_Command_accLevelAtCtor___main___closed__2 = _init_l_Lean_Elab_Command_accLevelAtCtor___main___closed__2(); -lean_mark_persistent(l_Lean_Elab_Command_accLevelAtCtor___main___closed__2); -l___private_Lean_Elab_Inductive_23__updateResultingUniverse___closed__1 = _init_l___private_Lean_Elab_Inductive_23__updateResultingUniverse___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Inductive_23__updateResultingUniverse___closed__1); -l___private_Lean_Elab_Inductive_23__updateResultingUniverse___closed__2 = _init_l___private_Lean_Elab_Inductive_23__updateResultingUniverse___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Inductive_23__updateResultingUniverse___closed__2); -l_List_forM___main___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__4___closed__1 = _init_l_List_forM___main___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__4___closed__1(); -lean_mark_persistent(l_List_forM___main___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__4___closed__1); -l___private_Lean_Elab_Inductive_26__removeUnused___closed__1 = _init_l___private_Lean_Elab_Inductive_26__removeUnused___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Inductive_26__removeUnused___closed__1); -l___private_Lean_Elab_Inductive_29__collectLevelParamsInInductive___closed__1 = _init_l___private_Lean_Elab_Inductive_29__collectLevelParamsInInductive___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Inductive_29__collectLevelParamsInInductive___closed__1); -l_List_map___main___at___private_Lean_Elab_Inductive_33__applyInferMod___spec__1___closed__1 = _init_l_List_map___main___at___private_Lean_Elab_Inductive_33__applyInferMod___spec__1___closed__1(); -lean_mark_persistent(l_List_map___main___at___private_Lean_Elab_Inductive_33__applyInferMod___spec__1___closed__1); -l___private_Lean_Elab_Inductive_34__mkAuxConstructions___closed__1 = _init_l___private_Lean_Elab_Inductive_34__mkAuxConstructions___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Inductive_34__mkAuxConstructions___closed__1); -l___private_Lean_Elab_Inductive_34__mkAuxConstructions___closed__2 = _init_l___private_Lean_Elab_Inductive_34__mkAuxConstructions___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Inductive_34__mkAuxConstructions___closed__2); +l_Lean_Elab_Command_accLevelAtCtor___closed__1 = _init_l_Lean_Elab_Command_accLevelAtCtor___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_accLevelAtCtor___closed__1); +l_Lean_Elab_Command_accLevelAtCtor___closed__2 = _init_l_Lean_Elab_Command_accLevelAtCtor___closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_accLevelAtCtor___closed__2); +l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___closed__1 = _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___closed__1); +l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___closed__2 = _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___closed__2); +l_List_forM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__4___closed__1 = _init_l_List_forM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__4___closed__1(); +lean_mark_persistent(l_List_forM___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__4___closed__1); +l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_removeUnused___closed__1 = _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_removeUnused___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_removeUnused___closed__1); +l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectLevelParamsInInductive___closed__1 = _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectLevelParamsInInductive___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectLevelParamsInInductive___closed__1); +l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1___closed__1 = _init_l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1___closed__1(); +lean_mark_persistent(l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1___closed__1); +l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___closed__1 = _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___closed__1); +l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___closed__2 = _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___closed__2); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Elab/StructInst.c b/stage0/stdlib/Lean/Elab/StructInst.c index dfb82ce053..c575930b26 100644 --- a/stage0/stdlib/Lean/Elab/StructInst.c +++ b/stage0/stdlib/Lean/Elab/StructInst.c @@ -14,578 +14,763 @@ extern "C" { #endif lean_object* l_List_reverse___rarg(lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_StructInst_formatStruct___main(lean_object*); -lean_object* l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__3; +lean_object* l_Lean_Meta_getExprMVarAssignment_x3f___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_modifyFields(lean_object*, lean_object*); lean_object* l_Lean_fmt___at_Lean_Position_Lean_HasFormat___spec__1(lean_object*); -lean_object* l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_17__groupFields___lambda__2___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_12__mkFieldMap(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__2; -lean_object* l___private_Lean_Elab_StructInst_2__getStructSource___closed__3; +lean_object* l_Lean_Elab_Term_StructInst_Field_toSyntax_match__2(lean_object*); +lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_HashMap_toList___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__6(lean_object*); +lean_object* l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__3; +lean_object* l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__4; extern lean_object* l_Lean_fieldIdxKind; +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_AssocList_find_x3f___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); +lean_object* l_List_head_x21___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__3(lean_object*); lean_object* l_List_tail_x21___rarg(lean_object*); -lean_object* l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_Field_expr_x3f___default; +lean_object* l_Lean_Elab_Term_StructInst_elabStructInst_match__2(lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* lean_erase_macro_scopes(lean_object*); lean_object* l_Lean_Syntax_isNatLitAux(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_18__addMissingFields(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__6; -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__7; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__1; +lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM(lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName_match__1(lean_object*); lean_object* l_Lean_Meta_synthInstance_x3f___at_Lean_Elab_Term_StructInst_trySynthStructInstance_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__4___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__4(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_StructInst_formatStruct___main___closed__4; +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Expr_4__getAppRevArgsAux___main(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___main___boxed(lean_object*); -lean_object* l_unreachable_x21___rarg(lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_Struct_allDefault_match__2___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_nullKind; -lean_object* l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__4; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkSubstructSource(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Expr_3__getAppArgsAux___main(lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_18__addMissingFields___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduce_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_fmt___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___spec__1(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_StructInst_expandStructInstExpectedType___closed__1; +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduceProjOf_x3f_match__1(lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_FieldLHS_toSyntax_match__1(lean_object*); uint8_t l_Lean_Elab_Term_StructInst_Struct_allDefault(lean_object*); -lean_object* l_Std_AssocList_foldlM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__7___boxed(lean_object*, lean_object*); uint8_t l_USize_decEq(size_t, size_t); +lean_object* l_Lean_Elab_Term_StructInst_FieldVal_toSyntax_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Lean_Format_joinSep___main___at_Lean_Elab_Term_StructInst_formatField___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs___closed__5; +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_step_match__2(lean_object*); +uint8_t l_Std_AssocList_contains___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__4(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__6___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f_match__2(lean_object*); lean_object* lean_expr_update_mdata(lean_object*, lean_object*); -lean_object* l_Lean_Format_pretty(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__6; +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__11___boxed(lean_object**); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldIdx___closed__2; uint8_t lean_name_eq(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_5__getStructName___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_3__isModifyOp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields_match__1(lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduce_match__3(lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_formatStruct_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__11; -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_7__mkStructView___spec__2(lean_object*); -lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_StructInst_14__getFieldIdx___spec__1___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__2; -lean_object* l_Std_AssocList_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__7(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__5; extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__8; lean_object* l_Lean_Elab_Term_StructInst_Struct_hasToString; -lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__4; -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldlM___main___at___private_Lean_Elab_StructInst_24__elabStruct___main___spec__1___closed__3; +extern lean_object* l_Std_HashMap_inhabited___closed__1; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkProjStx(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_StructInst_elabStructInst___closed__1; -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__3; +lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__5; lean_object* lean_array_fswap(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__3; -lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__19; -lean_object* l_Array_extract___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___main___spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__6; +lean_object* l_Lean_Elab_Term_StructInst_elabStructInst_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__3___closed__1; +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduce___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux_match__1___rarg(lean_object*, lean_object*); +lean_object* lean_metavar_ctx_get_expr_assignment(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getFieldValue_x3f(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_WHNF_19__unfoldDefinitionImp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_Context_allStructNames___default; extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__20; +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_findField_x3f_match__1(lean_object*); +lean_object* l_Std_mkHashMap___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__9(lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_Struct_allDefault_match__1(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_markDefaultMissing(lean_object*); extern lean_object* l_Array_empty___closed__1; -lean_object* l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___main___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_environment_find(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__5; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__5; +lean_object* l_Lean_Elab_Term_StructInst_initFn____x40_Lean_Elab_StructInst___hyg_6358_(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__4; -lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___spec__1(size_t, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux___closed__1; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__2(lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); -lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_StructInst_Struct_allDefault___main___boxed(lean_object*); -lean_object* l_Std_HashMapImp_moveEntries___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__6(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_5__getStructName___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop_match__2(lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields_match__1(lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__16; lean_object* l_List_append___rarg(lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__5; +lean_object* l_List_head_x21___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__5(lean_object*); lean_object* l_Lean_annotation_x3f(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__1; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___boxed(lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduce_match__4(lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap_match__1___rarg(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isApp(lean_object*); -lean_object* l_Lean_Elab_Term_StructInst_formatStruct___main___closed__5; lean_object* l___regBuiltin_Lean_Elab_Term_StructInst_elabStructInst(lean_object*); -lean_object* l_List_foldlM___main___at___private_Lean_Elab_StructInst_24__elabStruct___main___spec__1___closed__2; -uint8_t l_List_foldr___main___at_Lean_Elab_Term_StructInst_Struct_allDefault___main___spec__1(uint8_t, lean_object*); +lean_object* l_Std_HashMapImp_expand___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__5(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_FieldLHS_inhabited___closed__1; -lean_object* l___private_Lean_Elab_StructInst_16__mkSubstructSource___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_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__3; lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__5; -lean_object* l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__2; +lean_object* l_Lean_throwError___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___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* l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_propagateExpectedType___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth_match__1(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_ref(lean_object*); lean_object* l_Lean_Elab_Term_getMVarDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_lambdaLetTelescope___at___private_Lean_Meta_InferType_6__inferLambdaType___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_whnf___at___private_Lean_Elab_Term_6__isTypeApp_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduce___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__3; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields_match__1(lean_object*); lean_object* lean_expr_instantiate1(lean_object*, lean_object*); +lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__6(lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_expandStructInstExpectedType(lean_object*, lean_object*, lean_object*); lean_object* l_List_find_x3f___main___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___closed__4; lean_object* l_Lean_Elab_Term_StructInst_Struct_setFields(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__2; lean_object* l_Std_HashMap_toList___rarg(lean_object*); -lean_object* l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__4; -lean_object* l___private_Lean_Elab_StructInst_14__getFieldIdx___closed__2; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__18; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__1(lean_object*); +lean_object* l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__1(lean_object*, lean_object*); lean_object* l_List_map___main___rarg(lean_object*, lean_object*); lean_object* l_Nat_max(lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn___main(lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__3; extern lean_object* l_Lean_formatKVMap___closed__1; extern lean_object* l_Lean_Name_inhabited; extern lean_object* l_Lean_Expr_getAppArgs___closed__1; lean_object* l_Lean_Elab_Term_StructInst_formatField(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_8__expandCompositeFields___closed__1; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux_match__1(lean_object*); +lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___spec__2___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Field_hasFormat___closed__1; -lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__11; lean_object* l_Lean_Elab_Term_synthesizeAppInstMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_StructInst_expandStructInstExpectedType(lean_object*); -lean_object* l_Lean_Elab_Term_StructInst_formatStruct___main___closed__1; -lean_object* l_List_foldlM___main___at___private_Lean_Elab_StructInst_24__elabStruct___main___spec__1___closed__1; +lean_object* l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__1; +lean_object* l_Lean_Elab_Term_StructInst_elabStructInst_match__1(lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduce_match__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_appArg_x21(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__6; -lean_object* l_List_map___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__2(lean_object*); -lean_object* l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___main___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__2; lean_object* lean_string_utf8_byte_size(lean_object*); lean_object* l_List_head_x21___rarg(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_25__elabStructInstAux(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_StructInst_4__elabModifyOp___closed__12; -lean_object* l___private_Lean_Elab_StructInst_9__expandNumLitFields(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_AssocList_find_x3f___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__2___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux_match__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__5; lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___main___spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__15; +lean_object* l_Std_HashMap_toList___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__6___boxed(lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop(lean_object*, lean_object*, lean_object*, 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_getMainModule___rarg(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -lean_object* l___private_Lean_Elab_StructInst_26__regTraceClasses(lean_object*); +lean_object* l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__14; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f_match__2(lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__5; lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagate(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__7; -lean_object* l___private_Lean_Elab_StructInst_18__addMissingFields___lambda__1___boxed(lean_object**); -lean_object* l___private_Lean_Elab_StructInst_17__groupFields___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* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__26; +lean_object* l_Lean_Elab_Term_StructInst_Field_toSyntax___closed__1; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__4; extern lean_object* l_Lean_mkAppStx___closed__8; -lean_object* l___private_Lean_Elab_StructInst_21__getForallBody(lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__7; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux_match__3(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Source_inhabited; lean_object* l_Lean_fmt___at_Lean_Level_LevelToFormat_toResult___main___spec__1(lean_object*); extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__18; -lean_object* l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___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_nat_add(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__1; +lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__4; lean_object* l_Lean_Environment_getProjectionStructureName_x3f(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames_match__1(lean_object*); 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_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Field_isSimple___rarg___boxed(lean_object*); -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___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_Std_AssocList_foldlM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__7(lean_object*, lean_object*); -lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__1(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_13__isSimpleField_x3f___boxed(lean_object*); -lean_object* l___private_Lean_Elab_StructInst_15__mkProjStx(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop_match__1(lean_object*); +lean_object* l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___spec__1___lambda__1___closed__1; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeader(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__9(lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__13; +lean_object* l_Lean_Elab_Term_StructInst_Struct_ref_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldIdx___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isSimpleField_x3f(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_FieldLHS_toSyntax___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_17__groupFields___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_FieldLHS_hasFormat(lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_23__mkCtorHeader___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkStructView(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Source_isNone___boxed(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_inhabited; extern lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___closed__1; -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__6; -lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__1___boxed(lean_object*, lean_object*); +extern lean_object* l___private_Lean_Meta_Basic_6__liftMkBindingM___rarg___closed__3; lean_object* l_Lean_Elab_Term_StructInst_Struct_structName(lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___closed__1; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*); uint8_t lean_metavar_ctx_is_expr_assigned(lean_object*, lean_object*); lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_Lean_AddMessageContext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_formatStruct___closed__5; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_defaultMissing_x3f___boxed(lean_object*); -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__2; -lean_object* l___private_Lean_Elab_StructInst_17__groupFields___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_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__2; extern lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___closed__2; -lean_object* l_Lean_Meta_assignExprMVar___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__4; +lean_object* l_Lean_Elab_Term_StructInst_Struct_allDefault_match__2(lean_object*); extern lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandMatchAltsIntoMatchAux___closed__13; lean_object* l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__11___boxed(lean_object**); extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__28; -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___closed__1; +lean_object* l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___spec__1___lambda__1___closed__2; +lean_object* l_Lean_Meta_whnf___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_propagateExpectedType___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__1; lean_object* l_Lean_Elab_Term_elabTermEnsuringType(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_array_fget(lean_object*, lean_object*); lean_object* l_Lean_mkProj(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___main(lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_FieldVal_toSyntax___closed__1; +lean_object* l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM_match__1(lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_findField_x3f___lambda__1___boxed(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_formatStruct___closed__3; lean_object* l_Lean_Elab_Term_StructInst_FieldVal_toSyntax___boxed(lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__9; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__9___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SynthInstance_8__synthInstanceImp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1___closed__3; extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__5; +extern lean_object* l_Lean_Elab_Term_elabLetDeclAux___closed__4; lean_object* l_Lean_Format_joinSep___main___at___private_Lean_Data_Trie_6__toStringAux___main___spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__8; +lean_object* l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1(lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f_match__4(lean_object*); extern lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__7; lean_object* l___private_Lean_Meta_Basic_4__mkFreshExprMVarImpl(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__22; -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___closed__2; +lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__2; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__7(lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap_match__1(lean_object*); +lean_object* l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_AssocList_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__7(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); -lean_object* l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__1; -lean_object* l___private_Lean_Elab_StructInst_24__elabStruct___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_AssocList_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__7(lean_object*, lean_object*); +lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__7; +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields_match__4(lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux_match__1(lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isSimpleField_x3f_match__1(lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__17; +lean_object* l_Lean_Elab_Term_StructInst_elabStructInst_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_AssocList_contains___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__4___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_formatStruct(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Field_isSimple(lean_object*); -lean_object* l___private_Lean_Elab_StructInst_17__groupFields___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__8; lean_object* l_Lean_Name_append___main(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields_match__3(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_fields___boxed(lean_object*); +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_shrink___main___rarg(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__3; -lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__1; +lean_object* l_Array_filterAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkStructView___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_Context_structs___default; +lean_object* l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_toFieldLHS___closed__2; lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_FieldLHS_toSyntax(uint8_t, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_22__propagateExpectedType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_head_x21___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__3___boxed(lean_object*); +lean_object* l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__3(lean_object*); lean_object* l_Lean_mkAnnotation(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__1; +lean_object* l_Lean_Elab_Term_StructInst_Struct_source_match__1(lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkStructView___spec__2(lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__4(lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_Source_isNone_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames_match__2(lean_object*); +lean_object* l_Lean_Meta_assignExprMVar___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getFieldName___closed__2; extern lean_object* l_Lean_formatEntry___closed__2; +lean_object* l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValue_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_toFieldLHS___closed__1; +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getFieldName___closed__1; lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__6; lean_object* l_Std_mkHashMapImp___rarg(lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName_match__2(lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_propagateExpectedType(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_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__8___rarg(lean_object*, lean_object*); extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__6; -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main(lean_object*, 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_StructInst_17__groupFields___lambda__1(lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__2; +lean_object* l_Lean_Elab_Term_StructInst_Field_isSimple_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Field_inhabited(lean_object*); -lean_object* l___private_Lean_Elab_StructInst_22__propagateExpectedType(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_StructInst_Struct_modifyFieldsM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_instantiate_type_lparams(lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_SynthInstance_tryResolveCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_setMCtx___at_Lean_Elab_Term_savingMCtx___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_HashMap_toList___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__6___boxed(lean_object*); -lean_object* l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__2; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__4; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeader___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_StructInst_formatField_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_Field_toSyntax___spec__1(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__20; -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_formatStruct_match__2___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getFieldName___boxed(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth(lean_object*); -lean_object* l_List_head_x21___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__3(lean_object*); -lean_object* l___private_Lean_Elab_StructInst_12__mkFieldMap___closed__1; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__2; size_t l_Lean_Name_hash(lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_step_match__3___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__5(lean_object*); lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_repr(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_markDefaultMissing___closed__1; -lean_object* l___private_Lean_Elab_StructInst_17__groupFields___lambda__3___closed__3; -lean_object* l___private_Lean_Elab_StructInst_7__mkStructView(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__24; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_HashMapImp_moveEntries___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__6(lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__15; +uint8_t l_List_foldr___main___at_Lean_Elab_Term_StructInst_Struct_allDefault___spec__1(uint8_t, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___closed__2; lean_object* l_Lean_Meta_synthInstance_x3f___at_Lean_Elab_Term_StructInst_trySynthStructInstance_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__4; lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduceProjOf_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_23__mkCtorHeader___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_AssocList_contains___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__4___boxed(lean_object*, lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_trySynthStructInstance_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__1; lean_object* l_Array_iterateMAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_23__mkCtorHeader(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__10; -lean_object* l___private_Lean_Elab_StructInst_5__getStructName(lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduceProjOf_x3f_match__2(lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_step_match__4(lean_object*); lean_object* l_Lean_Syntax_prettyPrint(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_markDefaultMissing___closed__2; -lean_object* l_Lean_Meta_getExprMVarAssignment_x3f___at___private_Lean_Meta_Basic_9__isClassQuick_x3f___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkFreshLevelMVar___at___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_AssocList_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__7___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_Struct_allDefault_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_7__mkStructView___spec__2___closed__1; -lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___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* l_List_map___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__1(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux(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_StructInst_4__elabModifyOp___closed__16; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__1(lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__1; +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduce_match__1(lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource_match__1(lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkStructView___spec__2___closed__1; +lean_object* l_Std_AssocList_replace___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__8(lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__6; lean_object* l_Lean_getStructureFields(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_CtorHeaderResult_instMVars___default; lean_object* l_Function_comp___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___closed__1; -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_7__mkStructView___spec__3(lean_object*); -uint8_t l_Lean_Elab_Term_StructInst_Struct_allDefault___main(lean_object*); -lean_object* l_Std_HashMapImp_insert___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__3(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___closed__2; -lean_object* l_Lean_Elab_Term_StructInst_Struct_hasFormat___closed__1; -extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__5; +lean_object* l_Lean_Elab_Term_StructInst_FieldVal_toSyntax___closed__2; +lean_object* l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___spec__1___closed__1; +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getFieldName_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields_match__2(lean_object*); +lean_object* l_Lean_Meta_getExprMVarAssignment_x3f___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduce(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_setMCtx___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkAppStx___closed__6; -lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__6; lean_object* l_Lean_Elab_Term_StructInst_findField_x3f(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop_match__3___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_expr_dbg_to_string(lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___closed__2; lean_object* l_Lean_Elab_Term_StructInst_defaultMissing_x3f(lean_object*); lean_object* l_Lean_getPathToBaseStructure_x3f(lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___closed__1; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields_match__2(lean_object*); size_t lean_usize_modn(size_t, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux_match__1___rarg(uint8_t, lean_object*, lean_object*); +lean_object* l_List_foldr___main___at_Lean_Elab_Term_StructInst_Struct_allDefault___spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_setStructSourceSyntax_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__7___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_isRoundDone___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Elab_Term_StructInst_findField_x3f___lambda__1(lean_object*, lean_object*); extern lean_object* l_List_head_x21___rarg___closed__2; -lean_object* l___private_Lean_Elab_StructInst_14__getFieldIdx___closed__3; -lean_object* l_Lean_Meta_whnfForall___at___private_Lean_Elab_Term_18__useImplicitLambda_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___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*); +uint8_t l_Array_isEmpty___rarg(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_elabStructInst___closed__1; +lean_object* l_Lean_Elab_Term_StructInst_formatStruct_match__2(lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_step_match__1___rarg(lean_object*, lean_object*, lean_object*); uint8_t l_Array_contains___at_Lean_findField_x3f___main___spec__1(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__7; -lean_object* l___private_Lean_Elab_StructInst_8__expandCompositeFields(lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___closed__1; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getForallBody(lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__4; +lean_object* l_List_head_x21___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__3___boxed(lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_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*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___closed__1; lean_object* l_List_redLength___main___rarg(lean_object*); -lean_object* l___private_Lean_Elab_StructInst_10__expandParentFields(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux_match__2___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__16; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_toFieldLHS_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_Struct_fields_match__1(lean_object*); +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_step_match__3(lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f_match__1(lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux___closed__2; uint8_t l_Lean_Elab_Term_StructInst_Field_isSimple___rarg(lean_object*); -lean_object* l_List_head_x21___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__5___boxed(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_fields(lean_object*); -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduce___main___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_AssocList_find_x3f___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__2(lean_object*, lean_object*); uint8_t l_Lean_Expr_isAppOfArity___main(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f_match__3(lean_object*); uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp(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_StructInst_Struct_allDefault___boxed(lean_object*); extern lean_object* l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__5; -lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__18; +lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeader___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Id_Monad; +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_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f_match__1(lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg(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_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__1; lean_object* l_Lean_Elab_Term_StructInst_Struct_structName___boxed(lean_object*); -lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__5; -lean_object* l_Lean_Meta_isExprDefEq___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeader___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux_match__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_setStructSourceSyntax(lean_object*, lean_object*); lean_object* lean_expr_update_proj(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_formatField_match__1(lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__12; +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___lambda__1(lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___spec__1(lean_object*); +lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Std_AssocList_contains___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__4(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___main(lean_object*, lean_object*); -extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_141____closed__4; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields_match__3___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f_match__3(lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___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_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__3; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName_match__4(lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkSubstructSource_match__1(lean_object*); extern lean_object* l_Lean_nullKind___closed__2; +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop_match__3(lean_object*); +lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Elab_Term_declareTacticSyntax___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkSepStx(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop_match__1(lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduce_match__2(lean_object*); extern lean_object* l_Lean_Elab_Term_termElabAttribute; extern lean_object* l_Lean_Format_sbracket___closed__3; lean_object* l_fix1___rarg___lambda__1___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___main___spec__1(lean_object*); +lean_object* l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__3(lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getForallBody_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__5; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getForallBody_match__1(lean_object*); lean_object* l_Lean_mkAtomFrom(lean_object*, lean_object*); size_t l_USize_mod(size_t, size_t); lean_object* l_Lean_Elab_Term_StructInst_FieldLHS_inhabited; -lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__28; -lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__15; -lean_object* l___private_Lean_Elab_StructInst_9__expandNumLitFields___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_Struct_fields_match__1___rarg(lean_object*, lean_object*); +lean_object* l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1___closed__1; lean_object* l_Lean_ConstantInfo_lparams(lean_object*); lean_object* l_Array_umapMAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_HasRepr___closed__1; +lean_object* l_Lean_Elab_Term_StructInst_findField_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Field_hasToString; extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__2; -lean_object* l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__7; -lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__3; -lean_object* l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___main___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_FieldLHS_hasFormat_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__1; extern lean_object* l_Lean_Expr_FindImpl_initCache; -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__1; -lean_object* l___private_Lean_Elab_StructInst_9__expandNumLitFields___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduce_match__3___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__4; +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_step_match__1(lean_object*); extern lean_object* l_Lean_Syntax_inhabited; size_t lean_ptr_addr(lean_object*); -lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__3; -lean_object* l_Lean_throwError___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___spec__2(lean_object*); -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___closed__3; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___closed__2; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_Field_toSyntax_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_instantiate_value_lparams(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__2; +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__8(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_expandStructInstExpectedType___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_propagateExpectedType_match__1(lean_object*); +lean_object* l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1___closed__2; lean_object* l_Lean_Elab_Term_StructInst_formatField___closed__1; +lean_object* l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkHole(lean_object*); +lean_object* l_Lean_Meta_setMCtx___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_macroAttribute; -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__2; +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f_match__1(lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getForallBody_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_setArg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__4; -lean_object* l_Std_AssocList_find_x3f___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__2___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__22; +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduceProjOf_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isMVar(lean_object*); -lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__5; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__1; lean_object* l_Lean_Meta_reduceProj_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getFieldValue_x3f___lambda__1(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_Struct_structName_match__1___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___closed__1; uint8_t lean_nat_dec_le(lean_object*, lean_object*); -lean_object* l_List_foldr___main___at_Lean_Elab_Term_StructInst_Struct_allDefault___main___spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkApp(lean_object*, lean_object*); extern lean_object* l_Lean_SourceInfo_inhabited___closed__1; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkSubstructSource_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_source___boxed(lean_object*); lean_object* l_Lean_Expr_betaRev(lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___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_Elab_Term_StructInst_formatField___closed__2; extern lean_object* l_Lean_Format_sbracket___closed__4; lean_object* l_Lean_Syntax_getArgs(lean_object*); uint8_t l_Lean_BinderInfo_isExplicit(uint8_t); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__3___closed__3; lean_object* l_Lean_Syntax_getKind(lean_object*); -lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__2; +lean_object* l_Lean_addTrace___at_Lean_Elab_Term_declareTacticSyntax___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux_match__2(lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource_match__1(lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_formatStruct_match__1(lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_Field_toSyntax_match__2___rarg(lean_object*, lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_step___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__2; -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__4; -lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__14; -lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__1; -lean_object* l___private_Lean_Elab_StructInst_19__expandStruct(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___spec__1(lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_head_x21___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__5___boxed(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getFieldName(lean_object*); -lean_object* l___private_Lean_Elab_StructInst_16__mkSubstructSource(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldIdx___spec__1(lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_530____closed__8; -lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f_match__3___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields_match__3(lean_object*); +lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_ref___boxed(lean_object*); -lean_object* l_Std_HashMap_toList___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__6(lean_object*); -lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__25; +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___lambda__1___closed__1; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux_match__2(lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName_match__3___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldIdx_match__1(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_isRoundDone(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_mkHashMap___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__9(lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__11; +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f_match__2(lean_object*); lean_object* l_Lean_Elab_Term_isExprMVarAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__19; lean_object* l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___at_Lean_Elab_Term_StructInst_Struct_modifyFields___spec__1(lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__8; -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux(lean_object*, lean_object*, lean_object*, 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_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__2(lean_object*); +lean_object* l_Array_ofSubarray___rarg(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_object* l_Lean_getStructureCtor(lean_object*, lean_object*); lean_object* lean_nat_mul(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_source(lean_object*); -lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_StructInst_14__getFieldIdx___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___lambda__1___closed__2; lean_object* l_Lean_Elab_Term_StructInst_Struct_hasToString___closed__1; -lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__7; -lean_object* l_List_foldlM___main___at___private_Lean_Elab_StructInst_24__elabStruct___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_17__groupFields___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_Struct_allDefault_match__3(lean_object*); +lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__4; +extern lean_object* l_Lean_ResolveName_resolveNamespaceUsingScope___closed__3; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_propagateExpectedType_match__2(lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields_match__2(lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_FieldVal_toSyntax_match__1(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduceProjOf_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource___closed__1; extern lean_object* l_Lean_mkAppStx___closed__9; -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__4; -lean_object* l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__6; -lean_object* l_List_map___main___at___private_Lean_Elab_StructInst_8__expandCompositeFields___spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f_match__3___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields___lambda__1___boxed(lean_object**); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__3; uint8_t l_Lean_Syntax_isNone(lean_object*); -lean_object* l___private_Lean_Elab_StructInst_17__groupFields(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__9; -lean_object* l___private_Lean_Elab_StructInst_2__getStructSource(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main(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_StructInst_4__elabModifyOp___closed__6; -lean_object* l___private_Lean_Elab_StructInst_17__groupFields___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* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource___closed__3; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_propagateExpectedType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_step_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__1; extern lean_object* l_PUnit_Inhabited; +lean_object* l_Lean_Elab_Term_StructInst_Field_toSyntax___closed__2; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct_match__1(lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__1; -lean_object* l___private_Lean_Elab_StructInst_17__groupFields___lambda__3___closed__1; lean_object* l_Lean_Elab_Term_StructInst_elabStructInst___closed__3; -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___main___boxed(lean_object*, lean_object*); -lean_object* l_Std_HashMapImp_expand___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__5(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasLooseBVars(lean_object*); +lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__8; extern lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__9; -lean_object* l___private_Lean_Elab_StructInst_17__groupFields___lambda__2(lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__3; lean_object* l_Array_toList___rarg(lean_object*); -lean_object* l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__8; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MetavarContext_MkBinding_mkBinding(uint8_t, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValue_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__9; -lean_object* l___private_Lean_Elab_StructInst_24__elabStruct(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_isSubobjectField_x3f(lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__8; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isSimpleField_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___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_mk_array(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_17__groupFields___lambda__3___closed__2; +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth_match__2(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_inhabited___closed__1; lean_object* l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_setStructSourceSyntax_match__1(lean_object*); uint8_t l_Lean_Elab_Term_StructInst_Source_isNone(lean_object*); -lean_object* l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___main___spec__1___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__6; lean_object* l_Lean_Elab_Term_StructInst_Struct_hasFormat; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__5; extern lean_object* l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__4; -extern lean_object* l_Lean_MessageData_arrayExpr_toMessageData___main___closed__2; -lean_object* l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___main(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__21; -lean_object* l___private_Lean_Elab_StructInst_14__getFieldIdx(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_StructInst_5__getStructName___rarg___closed__5; -lean_object* l___private_Lean_Elab_StructInst_18__addMissingFields___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__7; +lean_object* l_Std_HashMapImp_insert___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__3(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__3; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_propagateExpectedType_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields_match__3___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_AppBuilder_1__mkIdImp___closed__2; -lean_object* l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___main___spec__1___closed__1; -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___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___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__6; -lean_object* l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__13; -lean_object* l___private_Lean_Elab_StructInst_14__getFieldIdx___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName(lean_object*); +lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__1; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__4(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getFieldName_match__1(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Field_hasToString___closed__1; lean_object* l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_toFieldLHS(lean_object*); +lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduce_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__1; -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduce___main___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkFreshLevelMVar___at_Lean_Elab_Term_ensureType___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); -lean_object* l_List_head_x21___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__5(lean_object*); -lean_object* l_Array_filterAux___main___at___private_Lean_Elab_StructInst_7__mkStructView___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_AssocList_replace___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__8(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_whnfForall___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_propagateExpectedType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_step(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_mkOptionalNode___closed__2; -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__2; -lean_object* l_Lean_Elab_Term_StructInst_formatStruct___main___closed__3; -lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__23; -lean_object* l___private_Lean_Elab_StructInst_14__getFieldIdx___closed__1; -lean_object* l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; -lean_object* l_List_map___main___at___private_Lean_Elab_StructInst_8__expandCompositeFields___spec__2(lean_object*); +lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__2; +lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields_match__1(lean_object*); +lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___spec__2(size_t, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkStructView___spec__3(lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_FieldLHS_hasFormat_match__1(lean_object*); +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*); extern lean_object* l___private_Lean_Elab_Term_5__tryCoe___closed__3; +lean_object* l_Lean_Elab_Term_StructInst_formatStruct___closed__2; extern lean_object* l_Lean_Meta_CheckAssignment_checkFVar___closed__1; lean_object* l_Lean_Elab_Term_StructInst_trySynthStructInstance_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_2__getStructSource___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___main___lambda__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Field_inhabited___closed__1; -lean_object* l_Lean_Meta_mkForallFVars___at___private_Lean_Meta_InferType_6__inferLambdaType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__2; extern lean_object* l_Lean_Meta_CheckAssignment_checkFVar___closed__2; lean_object* l_List_toArrayAux___main___rarg(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__3; -lean_object* l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___main___spec__1___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_6__toFieldLHS___closed__1; +lean_object* l_Lean_Elab_Term_StructInst_formatStruct___closed__1; extern lean_object* l_System_FilePath_dirName___closed__1; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName_match__3(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwError___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__8; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isSimpleField_x3f___boxed(lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldIdx___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_Struct_source_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Field_hasFormat; -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__8(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_6__toFieldLHS(lean_object*); -lean_object* l_Lean_throwError___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Elab_Term_StructInst_DefaultFields_State_progress___default; +lean_object* l_Lean_Elab_Term_StructInst_Struct_structName_match__1(lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__5___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Field_inhabited___closed__2; +lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_throwFailedToElabField(lean_object*); extern lean_object* l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__8; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource___closed__4; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap_match__2(lean_object*); uint8_t l_Lean_isStructureLike(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_6__toFieldLHS___closed__2; -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___main___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduce___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___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* l_Lean_Elab_Term_StructInst_FieldLHS_toSyntax_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__2(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__10; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_formatField___closed__4; lean_object* l_ReaderT_inhabited___rarg___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldIdx___closed__1; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName_match__4___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentExpr(lean_object*); -lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__2; +lean_object* l_Lean_Elab_Term_StructInst_Field_toSyntax_match__1(lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduceProjOf_x3f_match__2___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__8; -lean_object* l___private_Lean_Elab_StructInst_19__expandStruct___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__3; -lean_object* l___private_Lean_Elab_StructInst_2__getStructSource___closed__1; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___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* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getFieldValue_x3f___lambda__1___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_23__mkCtorHeader___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkSubstructSource___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__1; +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth_match__2___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_Source_isNone_match__1(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Field_toSyntax(lean_object*); -lean_object* l_Lean_Elab_Term_StructInst_formatStruct___main___closed__2; +lean_object* l_Lean_Elab_Term_StructInst_formatStruct___closed__4; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___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* l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_isLocalIdent_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_5__inferForallType___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__4; -lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__9; -lean_object* l___private_Lean_Elab_StructInst_21__getForallBody___main(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___closed__3; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields_match__3___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f_match__4___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_FieldVal_toSyntax(lean_object*); -lean_object* l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__5; lean_object* l_Lean_findField_x3f___main(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_5__getStructName___boxed(lean_object*); -lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1___closed__4; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields_match__1(lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___spec__2(lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields_match__4___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__3___closed__2; lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__17; +lean_object* l_Lean_Elab_Term_StructInst_Struct_allDefault_match__3___rarg(lean_object*, lean_object*); lean_object* l_Lean_Name_components(lean_object*); -lean_object* l___private_Lean_Elab_StructInst_2__getStructSource___closed__2; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__20; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_propagateExpectedType_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__2(lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__6; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldIdx_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__6; extern lean_object* l_addParenHeuristic___closed__1; -lean_object* l___private_Lean_Elab_StructInst_3__isModifyOp_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_Struct_ref_match__1(lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields_match__3(lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_findSome_x3f___main___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__8(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_elabStructInst___closed__2; +lean_object* l___private_Init_Util_2__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_Context_maxDistance___default; +lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__6; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___boxed(lean_object*); -lean_object* l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__3; +lean_object* l_Lean_Elab_Term_StructInst_Field_isSimple_match__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_elabStructInst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__17; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_toFieldLHS_match__1(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getFieldValue_x3f___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux___closed__3; +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource___closed__2; +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_step_match__4___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_formatField___closed__3; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_907____closed__1; -lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__27; lean_object* l_monadInhabited___rarg(lean_object*, lean_object*); uint8_t l_Lean_Syntax_isIdent(lean_object*); -lean_object* l___private_Lean_Elab_StructInst_13__isSimpleField_x3f(lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop_match__2(lean_object*); +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___spec__1(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_expandStructInstExpectedType(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -672,7 +857,38 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__1() { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource_match__1___rarg), 3, 0); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource___closed__1() { _start: { lean_object* x_1; @@ -680,22 +896,22 @@ x_1 = lean_mk_string("src"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__2() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__1; +x_1 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource___closed__1; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__3() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__1; +x_1 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource___closed__1; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__2; +x_3 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource___closed__2; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -703,55 +919,29 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__4() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__1; +x_2 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource(lean_object* x_1, lean_object* x_2, 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; uint8_t x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_250; +lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; x_9 = lean_unsigned_to_nat(1u); x_10 = l_Lean_Syntax_getArg(x_1, x_9); x_11 = l_Lean_Syntax_isNone(x_10); -x_250 = lean_st_ref_take(x_7, x_8); -if (x_11 == 0) -{ -lean_object* x_251; lean_object* x_252; uint8_t x_253; -x_251 = lean_ctor_get(x_250, 0); -lean_inc(x_251); -x_252 = lean_ctor_get(x_250, 1); -lean_inc(x_252); -lean_dec(x_250); -x_253 = 0; -x_12 = x_253; -x_13 = x_251; -x_14 = x_252; -goto block_249; -} -else -{ -lean_object* x_254; lean_object* x_255; uint8_t x_256; -x_254 = lean_ctor_get(x_250, 0); -lean_inc(x_254); -x_255 = lean_ctor_get(x_250, 1); -lean_inc(x_255); -lean_dec(x_250); -x_256 = 1; -x_12 = x_256; -x_13 = x_254; -x_14 = x_255; -goto block_249; -} -block_249: -{ -uint8_t x_15; +x_12 = lean_st_ref_take(x_7, x_8); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); x_15 = !lean_is_exclusive(x_13); if (x_15 == 0) { @@ -760,7 +950,7 @@ x_16 = lean_ctor_get(x_13, 1); x_17 = lean_nat_add(x_16, x_9); lean_ctor_set(x_13, 1, x_17); x_18 = lean_st_ref_set(x_7, x_13, x_14); -if (x_12 == 0) +if (x_11 == 0) { lean_object* x_19; uint8_t x_20; x_19 = lean_ctor_get(x_18, 1); @@ -798,11 +988,11 @@ lean_inc(x_31); x_32 = lean_ctor_get(x_30, 1); lean_inc(x_32); lean_dec(x_30); -x_33 = l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__4; +x_33 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource___closed__4; x_34 = l_Lean_addMacroScope(x_31, x_33, x_28); x_35 = lean_box(0); x_36 = l_Lean_SourceInfo_inhabited___closed__1; -x_37 = l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__3; +x_37 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource___closed__3; x_38 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_38, 0, x_36); lean_ctor_set(x_38, 1, x_37); @@ -998,11 +1188,11 @@ lean_inc(x_121); x_122 = lean_ctor_get(x_120, 1); lean_inc(x_122); lean_dec(x_120); -x_123 = l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__4; +x_123 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource___closed__4; x_124 = l_Lean_addMacroScope(x_121, x_123, x_118); x_125 = lean_box(0); x_126 = l_Lean_SourceInfo_inhabited___closed__1; -x_127 = l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__3; +x_127 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource___closed__3; x_128 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_128, 0, x_126); lean_ctor_set(x_128, 1, x_127); @@ -1156,7 +1346,7 @@ lean_ctor_set(x_177, 1, x_176); lean_ctor_set(x_177, 2, x_174); lean_ctor_set(x_177, 3, x_175); x_178 = lean_st_ref_set(x_7, x_177, x_14); -if (x_12 == 0) +if (x_11 == 0) { 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; uint8_t 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; x_179 = lean_ctor_get(x_178, 1); @@ -1232,11 +1422,11 @@ lean_inc(x_200); x_201 = lean_ctor_get(x_199, 1); lean_inc(x_201); lean_dec(x_199); -x_202 = l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__4; +x_202 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource___closed__4; x_203 = l_Lean_addMacroScope(x_200, x_202, x_197); x_204 = lean_box(0); x_205 = l_Lean_SourceInfo_inhabited___closed__1; -x_206 = l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__3; +x_206 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource___closed__3; x_207 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_207, 0, x_205); lean_ctor_set(x_207, 1, x_206); @@ -1369,12 +1559,11 @@ return x_248; } } } -} -lean_object* l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource___boxed(lean_object* x_1, lean_object* x_2, 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_StructInst_1__expandNonAtomicExplicitSource(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource(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); @@ -1390,6 +1579,34 @@ x_1 = lean_box(0); return x_1; } } +lean_object* l_Lean_Elab_Term_StructInst_Source_isNone_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = lean_apply_1(x_3, x_1); +return x_6; +} +} +} +lean_object* l_Lean_Elab_Term_StructInst_Source_isNone_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_Source_isNone_match__1___rarg), 3, 0); +return x_2; +} +} uint8_t l_Lean_Elab_Term_StructInst_Source_isNone(lean_object* x_1) { _start: { @@ -1417,6 +1634,54 @@ x_3 = lean_box(x_2); return x_3; } } +lean_object* l_Lean_Elab_Term_StructInst_setStructSourceSyntax_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 0: +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_4); +lean_dec(x_3); +x_5 = lean_box(0); +x_6 = lean_apply_1(x_2, x_5); +return x_6; +} +case 1: +{ +lean_object* x_7; lean_object* x_8; +lean_dec(x_4); +lean_dec(x_2); +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_apply_1(x_3, x_7); +return x_8; +} +default: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +lean_dec(x_3); +lean_dec(x_2); +x_9 = lean_ctor_get(x_1, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_1, 1); +lean_inc(x_10); +lean_dec(x_1); +x_11 = lean_apply_2(x_4, x_9, x_10); +return x_11; +} +} +} +} +lean_object* l_Lean_Elab_Term_StructInst_setStructSourceSyntax_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_setStructSourceSyntax_match__1___rarg), 4, 0); +return x_2; +} +} lean_object* l_Lean_Elab_Term_StructInst_setStructSourceSyntax(lean_object* x_1, lean_object* x_2) { _start: { @@ -1460,7 +1725,38 @@ return x_19; } } } -static lean_object* _init_l___private_Lean_Elab_StructInst_2__getStructSource___closed__1() { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource_match__1___rarg), 3, 0); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__1() { _start: { lean_object* x_1; @@ -1468,30 +1764,59 @@ x_1 = lean_mk_string("invalid structure instance `with` and `..` cannot be used return x_1; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_2__getStructSource___closed__2() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_StructInst_2__getStructSource___closed__1; +x_1 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_2__getStructSource___closed__3() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_StructInst_2__getStructSource___closed__2; +x_1 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_StructInst_2__getStructSource(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__4() { _start: { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +lean_object* x_1; +x_1 = lean_mk_string("Lean.Elab.StructInst"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("_private.Lean.Elab.StructInst.0.Lean.Elab.Term.StructInst.getStructSource"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__6() { +_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_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__4; +x_2 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__5; +x_3 = lean_unsigned_to_nat(76u); +x_4 = lean_unsigned_to_nat(17u); +x_5 = l_Lean_ResolveName_resolveNamespaceUsingScope___closed__3; +x_6 = l___private_Init_Util_2__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; uint8_t x_14; x_9 = lean_unsigned_to_nat(1u); x_10 = l_Lean_Syntax_getArg(x_1, x_9); x_11 = lean_unsigned_to_nat(3u); @@ -1499,239 +1824,356 @@ x_12 = l_Lean_Syntax_getArg(x_1, x_11); x_13 = l_Lean_Syntax_isNone(x_10); if (x_13 == 0) { -uint8_t x_14; -x_14 = !lean_is_exclusive(x_6); +uint8_t x_70; +x_70 = 0; +x_14 = x_70; +goto block_69; +} +else +{ +uint8_t x_71; +x_71 = l_Lean_Syntax_isNone(x_12); +x_14 = x_71; +goto block_69; +} +block_69: +{ if (x_14 == 0) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_15 = lean_ctor_get(x_6, 3); -x_16 = l_Lean_replaceRef(x_1, x_15); -x_17 = l_Lean_replaceRef(x_16, x_15); -lean_dec(x_16); -x_18 = l_Lean_replaceRef(x_17, x_15); -lean_dec(x_15); -lean_dec(x_17); -lean_ctor_set(x_6, 3, x_18); -x_19 = l_Lean_Syntax_isNone(x_12); -lean_dec(x_12); -if (x_19 == 0) +if (x_13 == 0) { -lean_object* x_20; lean_object* x_21; +uint8_t x_15; +x_15 = !lean_is_exclusive(x_6); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_16 = lean_ctor_get(x_6, 3); +x_17 = l_Lean_replaceRef(x_1, x_16); +x_18 = l_Lean_replaceRef(x_17, x_16); +lean_dec(x_17); +x_19 = l_Lean_replaceRef(x_18, x_16); +lean_dec(x_16); +lean_dec(x_18); +lean_ctor_set(x_6, 3, x_19); +x_20 = l_Lean_Syntax_isNone(x_12); +lean_dec(x_12); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_dec(x_10); -x_20 = l___private_Lean_Elab_StructInst_2__getStructSource___closed__3; -x_21 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_20, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_21 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__3; +x_22 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_21; +return x_22; } else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_22 = lean_unsigned_to_nat(0u); -x_23 = l_Lean_Syntax_getArg(x_10, x_22); +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_23 = lean_unsigned_to_nat(0u); +x_24 = l_Lean_Syntax_getArg(x_10, x_23); lean_inc(x_4); -x_24 = l_Lean_Elab_Term_isLocalIdent_x3f(x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -if (lean_obj_tag(x_25) == 0) -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -lean_dec(x_10); -x_26 = lean_ctor_get(x_24, 1); +x_25 = l_Lean_Elab_Term_isLocalIdent_x3f(x_24, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_26 = lean_ctor_get(x_25, 0); lean_inc(x_26); -lean_dec(x_24); -x_27 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -x_28 = l_unreachable_x21___rarg(x_27); -x_29 = lean_apply_7(x_28, x_2, x_3, x_4, x_5, x_6, x_7, x_26); -return x_29; +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +lean_dec(x_10); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; +x_29 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__6; +x_30 = lean_panic_fn(x_28, x_29); +x_31 = lean_apply_7(x_30, x_2, x_3, x_4, x_5, x_6, x_7, x_27); +return x_31; } else { -uint8_t x_30; +uint8_t x_32; lean_dec(x_6); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_30 = !lean_is_exclusive(x_24); -if (x_30 == 0) +x_32 = !lean_is_exclusive(x_25); +if (x_32 == 0) { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_24, 0); -lean_dec(x_31); -x_32 = lean_ctor_get(x_25, 0); -lean_inc(x_32); -lean_dec(x_25); -x_33 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_33, 0, x_10); -lean_ctor_set(x_33, 1, x_32); -lean_ctor_set(x_24, 0, x_33); -return x_24; -} -else -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_34 = lean_ctor_get(x_24, 1); +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_25, 0); +lean_dec(x_33); +x_34 = lean_ctor_get(x_26, 0); lean_inc(x_34); -lean_dec(x_24); -x_35 = lean_ctor_get(x_25, 0); -lean_inc(x_35); +lean_dec(x_26); +x_35 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_35, 0, x_10); +lean_ctor_set(x_35, 1, x_34); +lean_ctor_set(x_25, 0, x_35); +return x_25; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_36 = lean_ctor_get(x_25, 1); +lean_inc(x_36); lean_dec(x_25); -x_36 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_36, 0, x_10); -lean_ctor_set(x_36, 1, 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; +x_37 = lean_ctor_get(x_26, 0); +lean_inc(x_37); +lean_dec(x_26); +x_38 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_38, 0, x_10); +lean_ctor_set(x_38, 1, x_37); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_36); +return x_39; } } } } else { -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; -x_38 = lean_ctor_get(x_6, 0); -x_39 = lean_ctor_get(x_6, 1); -x_40 = lean_ctor_get(x_6, 2); -x_41 = lean_ctor_get(x_6, 3); +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; +x_40 = lean_ctor_get(x_6, 0); +x_41 = lean_ctor_get(x_6, 1); +x_42 = lean_ctor_get(x_6, 2); +x_43 = lean_ctor_get(x_6, 3); +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_dec(x_6); -x_42 = l_Lean_replaceRef(x_1, x_41); -x_43 = l_Lean_replaceRef(x_42, x_41); -lean_dec(x_42); -x_44 = l_Lean_replaceRef(x_43, x_41); -lean_dec(x_41); +x_44 = l_Lean_replaceRef(x_1, x_43); +x_45 = l_Lean_replaceRef(x_44, x_43); +lean_dec(x_44); +x_46 = l_Lean_replaceRef(x_45, x_43); lean_dec(x_43); -x_45 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_45, 0, x_38); -lean_ctor_set(x_45, 1, x_39); -lean_ctor_set(x_45, 2, x_40); -lean_ctor_set(x_45, 3, x_44); -x_46 = l_Lean_Syntax_isNone(x_12); +lean_dec(x_45); +x_47 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_47, 0, x_40); +lean_ctor_set(x_47, 1, x_41); +lean_ctor_set(x_47, 2, x_42); +lean_ctor_set(x_47, 3, x_46); +x_48 = l_Lean_Syntax_isNone(x_12); lean_dec(x_12); -if (x_46 == 0) +if (x_48 == 0) { -lean_object* x_47; lean_object* x_48; +lean_object* x_49; lean_object* x_50; lean_dec(x_10); -x_47 = l___private_Lean_Elab_StructInst_2__getStructSource___closed__3; -x_48 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_47, x_2, x_3, x_4, x_5, x_45, x_7, x_8); +x_49 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__3; +x_50 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(x_49, x_2, x_3, x_4, x_5, x_47, x_7, x_8); lean_dec(x_7); -lean_dec(x_45); +lean_dec(x_47); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_48; +return x_50; } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_49 = lean_unsigned_to_nat(0u); -x_50 = l_Lean_Syntax_getArg(x_10, x_49); +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_51 = lean_unsigned_to_nat(0u); +x_52 = l_Lean_Syntax_getArg(x_10, x_51); lean_inc(x_4); -x_51 = l_Lean_Elab_Term_isLocalIdent_x3f(x_50, x_2, x_3, x_4, x_5, x_45, x_7, x_8); -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -if (lean_obj_tag(x_52) == 0) +x_53 = l_Lean_Elab_Term_isLocalIdent_x3f(x_52, x_2, x_3, x_4, x_5, x_47, x_7, x_8); +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +if (lean_obj_tag(x_54) == 0) { -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_dec(x_10); -x_53 = lean_ctor_get(x_51, 1); -lean_inc(x_53); -lean_dec(x_51); -x_54 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -x_55 = l_unreachable_x21___rarg(x_54); -x_56 = lean_apply_7(x_55, x_2, x_3, x_4, x_5, x_45, x_7, x_53); -return x_56; +x_55 = lean_ctor_get(x_53, 1); +lean_inc(x_55); +lean_dec(x_53); +x_56 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; +x_57 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__6; +x_58 = lean_panic_fn(x_56, x_57); +x_59 = lean_apply_7(x_58, x_2, x_3, x_4, x_5, x_47, x_7, x_55); +return x_59; } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; -lean_dec(x_45); +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +lean_dec(x_47); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_57 = lean_ctor_get(x_51, 1); -lean_inc(x_57); -if (lean_is_exclusive(x_51)) { - lean_ctor_release(x_51, 0); - lean_ctor_release(x_51, 1); - x_58 = x_51; +x_60 = lean_ctor_get(x_53, 1); +lean_inc(x_60); +if (lean_is_exclusive(x_53)) { + lean_ctor_release(x_53, 0); + lean_ctor_release(x_53, 1); + x_61 = x_53; } else { - lean_dec_ref(x_51); - x_58 = lean_box(0); + lean_dec_ref(x_53); + x_61 = lean_box(0); } -x_59 = lean_ctor_get(x_52, 0); -lean_inc(x_59); -lean_dec(x_52); -x_60 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_60, 0, x_10); -lean_ctor_set(x_60, 1, x_59); -if (lean_is_scalar(x_58)) { - x_61 = lean_alloc_ctor(0, 2, 0); +x_62 = lean_ctor_get(x_54, 0); +lean_inc(x_62); +lean_dec(x_54); +x_63 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_63, 0, x_10); +lean_ctor_set(x_63, 1, x_62); +if (lean_is_scalar(x_61)) { + x_64 = lean_alloc_ctor(0, 2, 0); } else { - x_61 = x_58; + x_64 = x_61; } -lean_ctor_set(x_61, 0, x_60); -lean_ctor_set(x_61, 1, x_57); -return x_61; -} -} -} -} -else -{ -uint8_t x_62; -lean_dec(x_10); -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_62 = l_Lean_Syntax_isNone(x_12); -if (x_62 == 0) -{ -lean_object* x_63; lean_object* x_64; -x_63 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_63, 0, x_12); -x_64 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_8); +lean_ctor_set(x_64, 1, x_60); return x_64; } +} +} +} else { lean_object* x_65; lean_object* x_66; -lean_dec(x_12); -x_65 = lean_box(0); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_65 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_65, 0, x_12); x_66 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_66, 0, x_65); lean_ctor_set(x_66, 1, x_8); return x_66; } } +else +{ +lean_object* x_67; lean_object* x_68; +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_8); +return x_68; } } -lean_object* l___private_Lean_Elab_StructInst_2__getStructSource___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___boxed(lean_object* x_1, lean_object* x_2, 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_StructInst_2__getStructSource(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_1); return x_9; } } -static lean_object* _init_l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__1() { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f_match__3___rarg), 3, 0); +return x_2; +} +} +static lean_object* _init_l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__1() { _start: { lean_object* x_1; @@ -1739,17 +2181,17 @@ x_1 = lean_mk_string("structInstArrayRef"); return x_1; } } -static lean_object* _init_l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__2() { +static lean_object* _init_l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_mkAppStx___closed__6; -x_2 = l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__1; +x_2 = l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__3() { +static lean_object* _init_l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__3() { _start: { lean_object* x_1; @@ -1757,27 +2199,27 @@ x_1 = lean_mk_string("invalid {...} notation, can't mix field and `[..]` at a gi return x_1; } } -static lean_object* _init_l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__4() { +static lean_object* _init_l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__3; +x_1 = l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__3; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__5() { +static lean_object* _init_l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__4; +x_1 = l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__4; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__6() { +static lean_object* _init_l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__6() { _start: { lean_object* x_1; @@ -1785,27 +2227,27 @@ x_1 = lean_mk_string("invalid {...} notation, at most one `[..]` at a given leve return x_1; } } -static lean_object* _init_l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__7() { +static lean_object* _init_l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__7() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__6; +x_1 = l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__6; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__8() { +static lean_object* _init_l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__7; +x_1 = l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__7; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___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* l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___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_12; uint8_t x_13; @@ -1830,7 +2272,7 @@ x_15 = lean_array_fget(x_2, x_3); x_16 = lean_unsigned_to_nat(0u); x_17 = l_Lean_Syntax_getArg(x_15, x_16); x_18 = l_Lean_Syntax_getKind(x_17); -x_19 = l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__2; +x_19 = l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__2; x_20 = lean_name_eq(x_18, x_19); lean_dec(x_18); if (x_20 == 0) @@ -1868,8 +2310,8 @@ else lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_dec(x_4); lean_dec(x_3); -x_29 = l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__5; -x_30 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_15, x_29, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_29 = l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__5; +x_30 = l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2___rarg(x_15, x_29, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_15); x_31 = !lean_is_exclusive(x_30); if (x_31 == 0) @@ -1918,8 +2360,8 @@ lean_dec(x_39); if (x_40 == 0) { lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_41 = l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__5; -x_42 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_15, x_41, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_41 = l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__5; +x_42 = l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2___rarg(x_15, x_41, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_15); x_43 = !lean_is_exclusive(x_42); if (x_43 == 0) @@ -1943,8 +2385,8 @@ return x_46; else { lean_object* x_47; lean_object* x_48; uint8_t x_49; -x_47 = l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__8; -x_48 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_15, x_47, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_47 = l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__8; +x_48 = l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2___rarg(x_15, x_47, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_15); x_49 = !lean_is_exclusive(x_48); if (x_49 == 0) @@ -1970,7 +2412,7 @@ return x_52; } } } -lean_object* l___private_Lean_Elab_StructInst_3__isModifyOp_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_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: { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; @@ -1980,7 +2422,7 @@ x_11 = l_Lean_Syntax_getArgs(x_10); lean_dec(x_10); x_12 = lean_box(0); x_13 = lean_unsigned_to_nat(0u); -x_14 = l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1(x_9, x_11, x_13, x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_14 = l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1(x_9, x_11, x_13, x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_11); if (lean_obj_tag(x_14) == 0) { @@ -2025,7 +2467,7 @@ lean_inc(x_22); x_23 = l_Lean_Syntax_getArg(x_22, x_13); lean_dec(x_22); x_24 = l_Lean_Syntax_getKind(x_23); -x_25 = l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__2; +x_25 = l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__2; x_26 = lean_name_eq(x_24, x_25); lean_dec(x_24); if (x_26 == 0) @@ -2050,7 +2492,7 @@ lean_inc(x_28); x_29 = l_Lean_Syntax_getArg(x_28, x_13); lean_dec(x_28); x_30 = l_Lean_Syntax_getKind(x_29); -x_31 = l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__2; +x_31 = l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__2; x_32 = lean_name_eq(x_30, x_31); lean_dec(x_30); if (x_32 == 0) @@ -2097,11 +2539,11 @@ return x_38; } } } -lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___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_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___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 = l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___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_8); lean_dec(x_7); @@ -2111,11 +2553,11 @@ lean_dec(x_1); return x_12; } } -lean_object* l___private_Lean_Elab_StructInst_3__isModifyOp_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l___private_Lean_Elab_StructInst_3__isModifyOp_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); @@ -2124,7 +2566,7 @@ lean_dec(x_1); return x_9; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__1() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__1() { _start: { lean_object* x_1; @@ -2132,17 +2574,17 @@ x_1 = lean_mk_string("struct"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__2() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_907____closed__1; -x_2 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__1; +x_2 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__3() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__3() { _start: { lean_object* x_1; @@ -2150,17 +2592,17 @@ x_1 = lean_mk_string("modifyOp"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__4() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__2; -x_2 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__3; +x_1 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__2; +x_2 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__5() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__5() { _start: { lean_object* x_1; @@ -2168,22 +2610,22 @@ x_1 = lean_mk_string("s"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__6() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__5; +x_1 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__5; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__7() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__5; +x_1 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__5; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__6; +x_3 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__6; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -2191,32 +2633,32 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__8() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__5; +x_2 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__5; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__9() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__9() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__3; +x_1 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__3; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__10() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__3; +x_1 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__3; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__9; +x_3 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__9; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -2224,51 +2666,17 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__11() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__3; +x_2 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__12() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_141____closed__4; -x_2 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__13() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__12; -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___private_Lean_Elab_StructInst_4__elabModifyOp___closed__14() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__13; -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___private_Lean_Elab_StructInst_4__elabModifyOp___closed__15() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -2278,7 +2686,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__16() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__13() { _start: { lean_object* x_1; lean_object* x_2; @@ -2287,13 +2695,13 @@ x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__17() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___closed__1; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__16; +x_3 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__13; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -2301,7 +2709,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__18() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__15() { _start: { lean_object* x_1; @@ -2309,27 +2717,16 @@ x_1 = lean_mk_string("\n===>\n"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__19() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__16() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__18; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__15; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__20() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__19; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__21() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__17() { _start: { lean_object* x_1; @@ -2337,51 +2734,16 @@ x_1 = lean_mk_string("\nval: "); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__22() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__18() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__21; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__17; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__23() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__22; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__24() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__12; -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___private_Lean_Elab_StructInst_4__elabModifyOp___closed__25() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__24; -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___private_Lean_Elab_StructInst_4__elabModifyOp___closed__26() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__19() { _start: { lean_object* x_1; @@ -2389,64 +2751,58 @@ x_1 = lean_mk_string("\nSource: "); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__27() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__20() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__26; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__19; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__28() { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__27; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: +lean_object* x_12; uint8_t x_315; lean_object* x_316; lean_object* x_329; lean_object* x_330; lean_object* x_331; uint8_t x_332; +x_329 = lean_st_ref_get(x_10, x_11); +x_330 = lean_ctor_get(x_329, 0); +lean_inc(x_330); +x_331 = lean_ctor_get(x_330, 3); +lean_inc(x_331); +lean_dec(x_330); +x_332 = lean_ctor_get_uint8(x_331, sizeof(void*)*1); +lean_dec(x_331); +if (x_332 == 0) { -lean_object* x_12; lean_object* x_303; lean_object* x_304; uint8_t x_305; -x_303 = lean_ctor_get(x_9, 0); -lean_inc(x_303); -x_304 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__4; -x_305 = l_Lean_checkTraceOption(x_303, x_304); -lean_dec(x_303); -if (x_305 == 0) -{ -x_12 = x_11; -goto block_302; +lean_object* x_333; uint8_t x_334; +x_333 = lean_ctor_get(x_329, 1); +lean_inc(x_333); +lean_dec(x_329); +x_334 = 0; +x_315 = x_334; +x_316 = x_333; +goto block_328; } else { -lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; -lean_inc(x_2); -x_306 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_306, 0, x_2); -x_307 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__28; -x_308 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_308, 0, x_306); -lean_ctor_set(x_308, 1, x_307); -lean_inc(x_3); -x_309 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_309, 0, x_3); -x_310 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_310, 0, x_308); -lean_ctor_set(x_310, 1, x_309); -x_311 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_304, x_310, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -x_312 = lean_ctor_get(x_311, 1); -lean_inc(x_312); -lean_dec(x_311); -x_12 = x_312; -goto block_302; +lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; uint8_t x_340; +x_335 = lean_ctor_get(x_329, 1); +lean_inc(x_335); +lean_dec(x_329); +x_336 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__4; +x_337 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Elab_Term_declareTacticSyntax___spec__6(x_336, x_5, x_6, x_7, x_8, x_9, x_10, x_335); +x_338 = lean_ctor_get(x_337, 0); +lean_inc(x_338); +x_339 = lean_ctor_get(x_337, 1); +lean_inc(x_339); +lean_dec(x_337); +x_340 = lean_unbox(x_338); +lean_dec(x_338); +x_315 = x_340; +x_316 = x_339; +goto block_328; } -block_302: +block_314: { lean_object* x_13; lean_object* x_14; uint8_t x_15; x_13 = lean_unsigned_to_nat(1u); @@ -2454,7 +2810,7 @@ x_14 = l_Lean_Syntax_getArg(x_2, x_13); x_15 = l_Lean_Syntax_isNone(x_14); if (x_15 == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; lean_object* x_41; +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; uint8_t x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; x_16 = l_Lean_Elab_Term_getCurrMacroScope(x_5, x_6, x_7, x_8, x_9, x_10, x_12); x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); @@ -2467,11 +2823,11 @@ lean_inc(x_20); x_21 = lean_ctor_get(x_19, 1); lean_inc(x_21); lean_dec(x_19); -x_22 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__8; +x_22 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__8; x_23 = l_Lean_addMacroScope(x_20, x_22, x_17); x_24 = lean_box(0); x_25 = l_Lean_SourceInfo_inhabited___closed__1; -x_26 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__7; +x_26 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__7; x_27 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_27, 0, x_25); lean_ctor_set(x_27, 1, x_26); @@ -2481,260 +2837,303 @@ x_28 = lean_unsigned_to_nat(0u); x_29 = l_Lean_Syntax_getArg(x_14, x_28); lean_inc(x_29); x_30 = l_Lean_Syntax_getKind(x_29); -x_31 = l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__2; +x_31 = l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__2; x_32 = lean_name_eq(x_30, x_31); lean_dec(x_30); x_33 = l_Lean_Syntax_getArgs(x_14); lean_dec(x_14); x_34 = lean_array_get_size(x_33); -x_35 = l_Array_extract___rarg(x_33, x_13, x_34); -x_36 = l_Lean_nullKind; -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_35); -x_38 = lean_ctor_get(x_9, 0); -lean_inc(x_38); -x_39 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__4; -x_40 = l_Lean_checkTraceOption(x_38, x_39); -lean_dec(x_38); +x_35 = l_Array_toSubarray___rarg(x_33, x_13, x_34); +x_36 = l_Array_ofSubarray___rarg(x_35); +lean_dec(x_35); +x_37 = l_Lean_nullKind; +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_36); +x_39 = lean_st_ref_get(x_10, x_21); if (x_32 == 0) { -lean_object* x_181; -x_181 = l_Lean_Syntax_getArg(x_29, x_13); +lean_object* x_197; +x_197 = l_Lean_Syntax_getArg(x_29, x_13); lean_dec(x_29); -x_41 = x_181; -goto block_180; +x_40 = x_197; +goto block_196; } else { -x_41 = x_29; -goto block_180; +x_40 = x_29; +goto block_196; } -block_180: +block_196: { -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_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_inc(x_2); -x_42 = l_Lean_Syntax_setArg(x_2, x_28, x_41); -x_43 = l_Lean_Syntax_setArg(x_42, x_13, x_37); -x_44 = l_Lean_mkOptionalNode___closed__2; -x_45 = lean_array_push(x_44, x_43); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_36); -lean_ctor_set(x_46, 1, x_45); +x_41 = l_Lean_Syntax_setArg(x_2, x_28, x_40); +x_42 = l_Lean_Syntax_setArg(x_41, x_13, x_38); +x_43 = l_Lean_mkOptionalNode___closed__2; +x_44 = lean_array_push(x_43, x_42); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_37); +lean_ctor_set(x_45, 1, x_44); if (lean_obj_tag(x_3) == 1) { -lean_object* x_171; lean_object* x_172; lean_object* x_173; uint8_t x_174; -x_171 = lean_ctor_get(x_3, 0); -lean_inc(x_171); -x_172 = lean_ctor_get(x_3, 1); -lean_inc(x_172); -x_173 = lean_array_get_size(x_172); -x_174 = lean_nat_dec_lt(x_28, x_173); -lean_dec(x_173); -if (x_174 == 0) +lean_object* x_187; lean_object* x_188; lean_object* x_189; uint8_t x_190; +x_187 = lean_ctor_get(x_3, 0); +lean_inc(x_187); +x_188 = lean_ctor_get(x_3, 1); +lean_inc(x_188); +x_189 = lean_array_get_size(x_188); +x_190 = lean_nat_dec_lt(x_28, x_189); +lean_dec(x_189); +if (x_190 == 0) { -lean_object* x_175; +lean_object* x_191; lean_dec(x_27); -x_175 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_175, 0, x_171); -lean_ctor_set(x_175, 1, x_172); -x_47 = x_175; -goto block_170; +x_191 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_191, 0, x_187); +lean_ctor_set(x_191, 1, x_188); +x_46 = x_191; +goto block_186; } else { -lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; -x_176 = lean_box(0); -x_177 = lean_array_fset(x_172, x_28, x_176); -x_178 = lean_array_fset(x_177, x_28, x_27); -x_179 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_179, 0, x_171); -lean_ctor_set(x_179, 1, x_178); -x_47 = x_179; -goto block_170; +lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; +x_192 = lean_box(0); +x_193 = lean_array_fset(x_188, x_28, x_192); +x_194 = lean_array_fset(x_193, x_28, x_27); +x_195 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_195, 0, x_187); +lean_ctor_set(x_195, 1, x_194); +x_46 = x_195; +goto block_186; } } else { lean_dec(x_27); lean_inc(x_3); -x_47 = x_3; -goto block_170; +x_46 = x_3; +goto block_186; } -block_170: +block_186: { -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_161; lean_object* x_162; lean_object* x_175; lean_object* x_176; uint8_t x_177; lean_inc(x_1); -x_48 = l_Lean_Syntax_setArg(x_1, x_13, x_47); -x_49 = lean_unsigned_to_nat(2u); -x_50 = l_Lean_Syntax_setArg(x_48, x_49, x_46); -if (x_40 == 0) +x_47 = l_Lean_Syntax_setArg(x_1, x_13, x_46); +x_48 = lean_unsigned_to_nat(2u); +x_49 = l_Lean_Syntax_setArg(x_47, x_48, x_45); +x_175 = lean_ctor_get(x_39, 0); +lean_inc(x_175); +x_176 = lean_ctor_get(x_175, 3); +lean_inc(x_176); +lean_dec(x_175); +x_177 = lean_ctor_get_uint8(x_176, sizeof(void*)*1); +lean_dec(x_176); +if (x_177 == 0) { -x_51 = x_21; -goto block_162; +lean_object* x_178; uint8_t x_179; +x_178 = lean_ctor_get(x_39, 1); +lean_inc(x_178); +lean_dec(x_39); +x_179 = 0; +x_161 = x_179; +x_162 = x_178; +goto block_174; } else { -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_inc(x_1); -x_163 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_163, 0, x_1); -x_164 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__23; -x_165 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_165, 0, x_163); -lean_ctor_set(x_165, 1, x_164); -lean_inc(x_50); -x_166 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_166, 0, x_50); -x_167 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_167, 0, x_165); -lean_ctor_set(x_167, 1, x_166); -x_168 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_39, x_167, x_5, x_6, x_7, x_8, x_9, x_10, x_21); -x_169 = lean_ctor_get(x_168, 1); -lean_inc(x_169); -lean_dec(x_168); -x_51 = x_169; -goto block_162; +lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; uint8_t x_185; +x_180 = lean_ctor_get(x_39, 1); +lean_inc(x_180); +lean_dec(x_39); +x_181 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__4; +x_182 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Elab_Term_declareTacticSyntax___spec__6(x_181, x_5, x_6, x_7, x_8, x_9, x_10, x_180); +x_183 = lean_ctor_get(x_182, 0); +lean_inc(x_183); +x_184 = lean_ctor_get(x_182, 1); +lean_inc(x_184); +lean_dec(x_182); +x_185 = lean_unbox(x_183); +lean_dec(x_183); +x_161 = x_185; +x_162 = x_184; +goto block_174; } -block_162: +block_160: { -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; -x_52 = l_Lean_Syntax_getArg(x_2, x_28); +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; uint8_t x_134; lean_object* x_135; lean_object* x_148; lean_object* x_149; lean_object* x_150; uint8_t x_151; +x_51 = l_Lean_Syntax_getArg(x_2, x_28); lean_dec(x_2); -x_53 = l_Lean_Syntax_getArg(x_52, x_13); -lean_dec(x_52); -x_54 = l_Lean_Syntax_getArg(x_3, x_28); +x_52 = l_Lean_Syntax_getArg(x_51, x_13); +lean_dec(x_51); +x_53 = l_Lean_Syntax_getArg(x_3, x_28); lean_dec(x_3); -x_55 = l_Lean_Elab_Term_getCurrMacroScope(x_5, x_6, x_7, x_8, x_9, x_10, x_51); -x_56 = lean_ctor_get(x_55, 0); +x_54 = l_Lean_Elab_Term_getCurrMacroScope(x_5, x_6, x_7, x_8, x_9, x_10, x_50); +x_55 = lean_ctor_get(x_54, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_54, 1); lean_inc(x_56); -x_57 = lean_ctor_get(x_55, 1); -lean_inc(x_57); -lean_dec(x_55); -x_58 = l_Lean_Elab_Term_getMainModule___rarg(x_10, x_57); -x_59 = lean_ctor_get(x_58, 0); +lean_dec(x_54); +x_57 = l_Lean_Elab_Term_getMainModule___rarg(x_10, 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); -x_60 = lean_ctor_get(x_58, 1); -lean_inc(x_60); -lean_dec(x_58); -x_61 = l_Array_empty___closed__1; -x_62 = lean_array_push(x_61, x_54); -x_63 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__16; -x_64 = lean_array_push(x_62, x_63); -x_65 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__11; -lean_inc(x_56); -lean_inc(x_59); -x_66 = l_Lean_addMacroScope(x_59, x_65, x_56); -x_67 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__10; -x_68 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__14; -x_69 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_69, 0, x_25); -lean_ctor_set(x_69, 1, x_67); -lean_ctor_set(x_69, 2, x_66); -lean_ctor_set(x_69, 3, x_68); -x_70 = lean_array_push(x_64, x_69); -x_71 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__11; -x_72 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_72, 0, x_71); -lean_ctor_set(x_72, 1, x_70); -x_73 = lean_array_push(x_61, x_72); -x_74 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___closed__2; -lean_inc(x_56); -lean_inc(x_59); -x_75 = l_Lean_addMacroScope(x_59, x_74, x_56); -x_76 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__17; -x_77 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_77, 0, x_25); -lean_ctor_set(x_77, 1, x_76); -lean_ctor_set(x_77, 2, x_75); -lean_ctor_set(x_77, 3, x_24); -x_78 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__6; -x_79 = lean_array_push(x_78, x_77); -x_80 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__20; -x_81 = lean_array_push(x_79, x_80); -x_82 = lean_array_push(x_81, x_53); -x_83 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__15; -x_84 = lean_array_push(x_82, x_83); -x_85 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__15; -x_86 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_86, 0, x_85); -lean_ctor_set(x_86, 1, x_84); -x_87 = lean_array_push(x_61, x_86); -x_88 = l_Lean_addMacroScope(x_59, x_22, x_56); -x_89 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_89, 0, x_25); -lean_ctor_set(x_89, 1, x_26); -lean_ctor_set(x_89, 2, x_88); -lean_ctor_set(x_89, 3, x_24); -x_90 = lean_array_push(x_61, x_89); -x_91 = l_Lean_nullKind___closed__2; -x_92 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_92, 0, x_91); -lean_ctor_set(x_92, 1, x_90); -x_93 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__9; -x_94 = lean_array_push(x_93, x_92); -x_95 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__17; -x_96 = lean_array_push(x_94, x_95); -x_97 = lean_array_push(x_96, x_50); -x_98 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__7; -x_99 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_99, 0, x_98); -lean_ctor_set(x_99, 1, x_97); -x_100 = lean_array_push(x_61, x_99); -x_101 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__5; -x_102 = lean_array_push(x_100, x_101); -x_103 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_103, 0, x_91); -lean_ctor_set(x_103, 1, x_102); -x_104 = lean_array_push(x_78, x_103); -x_105 = lean_array_push(x_104, x_83); -x_106 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__4; +lean_dec(x_57); +x_60 = l_Array_empty___closed__1; +x_61 = lean_array_push(x_60, x_53); +x_62 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__16; +x_63 = lean_array_push(x_61, x_62); +x_64 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__11; +lean_inc(x_55); +lean_inc(x_58); +x_65 = l_Lean_addMacroScope(x_58, x_64, x_55); +x_66 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__10; +x_67 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_67, 0, x_25); +lean_ctor_set(x_67, 1, x_66); +lean_ctor_set(x_67, 2, x_65); +lean_ctor_set(x_67, 3, x_24); +x_68 = lean_array_push(x_63, x_67); +x_69 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__11; +x_70 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_68); +x_71 = lean_array_push(x_60, x_70); +x_72 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___closed__2; +lean_inc(x_55); +lean_inc(x_58); +x_73 = l_Lean_addMacroScope(x_58, x_72, x_55); +x_74 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__14; +x_75 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_75, 0, x_25); +lean_ctor_set(x_75, 1, x_74); +lean_ctor_set(x_75, 2, x_73); +lean_ctor_set(x_75, 3, x_24); +x_76 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__6; +x_77 = lean_array_push(x_76, x_75); +x_78 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__20; +x_79 = lean_array_push(x_77, x_78); +x_80 = lean_array_push(x_79, x_52); +x_81 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__15; +x_82 = lean_array_push(x_80, x_81); +x_83 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__12; +x_84 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_84, 0, x_83); +lean_ctor_set(x_84, 1, x_82); +x_85 = lean_array_push(x_60, x_84); +x_86 = l_Lean_addMacroScope(x_58, x_22, x_55); +x_87 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_87, 0, x_25); +lean_ctor_set(x_87, 1, x_26); +lean_ctor_set(x_87, 2, x_86); +lean_ctor_set(x_87, 3, x_24); +x_88 = lean_array_push(x_60, x_87); +x_89 = l_Lean_nullKind___closed__2; +x_90 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_88); +x_91 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__9; +x_92 = lean_array_push(x_91, x_90); +x_93 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__17; +x_94 = lean_array_push(x_92, x_93); +x_95 = lean_array_push(x_94, x_49); +x_96 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__7; +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_96); +lean_ctor_set(x_97, 1, x_95); +x_98 = lean_array_push(x_60, x_97); +x_99 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__5; +x_100 = lean_array_push(x_98, x_99); +x_101 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_101, 0, x_89); +lean_ctor_set(x_101, 1, x_100); +x_102 = lean_array_push(x_76, x_101); +x_103 = lean_array_push(x_102, x_81); +x_104 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__4; +x_105 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_105, 0, x_104); +lean_ctor_set(x_105, 1, x_103); +x_106 = lean_array_push(x_85, x_105); x_107 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_107, 0, x_106); -lean_ctor_set(x_107, 1, x_105); -x_108 = lean_array_push(x_87, x_107); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_91); -lean_ctor_set(x_109, 1, x_108); -x_110 = lean_array_push(x_73, x_109); -x_111 = l_Lean_mkAppStx___closed__8; -x_112 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_112, 0, x_111); -lean_ctor_set(x_112, 1, x_110); -if (x_40 == 0) +lean_ctor_set(x_107, 0, x_89); +lean_ctor_set(x_107, 1, x_106); +x_108 = lean_array_push(x_71, x_107); +x_109 = l_Lean_mkAppStx___closed__8; +x_110 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_110, 0, x_109); +lean_ctor_set(x_110, 1, x_108); +x_148 = lean_st_ref_get(x_10, x_59); +x_149 = lean_ctor_get(x_148, 0); +lean_inc(x_149); +x_150 = lean_ctor_get(x_149, 3); +lean_inc(x_150); +lean_dec(x_149); +x_151 = lean_ctor_get_uint8(x_150, sizeof(void*)*1); +lean_dec(x_150); +if (x_151 == 0) { -uint8_t x_113; -x_113 = !lean_is_exclusive(x_5); -if (x_113 == 0) -{ -lean_object* x_114; lean_object* x_115; lean_object* x_116; uint8_t x_117; lean_object* x_118; -x_114 = lean_ctor_get(x_5, 6); -lean_inc(x_112); -x_115 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_115, 0, x_1); -lean_ctor_set(x_115, 1, x_112); -x_116 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_116, 0, x_115); -lean_ctor_set(x_116, 1, x_114); -lean_ctor_set(x_5, 6, x_116); -x_117 = 1; -x_118 = l_Lean_Elab_Term_elabTerm(x_112, x_4, x_117, x_5, x_6, x_7, x_8, x_9, x_10, x_60); -return x_118; +lean_object* x_152; uint8_t x_153; +x_152 = lean_ctor_get(x_148, 1); +lean_inc(x_152); +lean_dec(x_148); +x_153 = 0; +x_134 = x_153; +x_135 = x_152; +goto block_147; } else { -lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; uint8_t x_127; uint8_t x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; uint8_t x_132; lean_object* x_133; -x_119 = lean_ctor_get(x_5, 0); -x_120 = lean_ctor_get(x_5, 1); -x_121 = lean_ctor_get(x_5, 2); -x_122 = lean_ctor_get(x_5, 3); -x_123 = lean_ctor_get(x_5, 4); -x_124 = lean_ctor_get(x_5, 5); -x_125 = lean_ctor_get(x_5, 6); -x_126 = lean_ctor_get(x_5, 7); -x_127 = lean_ctor_get_uint8(x_5, sizeof(void*)*8); -x_128 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 1); -lean_inc(x_126); +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; uint8_t x_159; +x_154 = lean_ctor_get(x_148, 1); +lean_inc(x_154); +lean_dec(x_148); +x_155 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__4; +x_156 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Elab_Term_declareTacticSyntax___spec__6(x_155, x_5, x_6, x_7, x_8, x_9, x_10, x_154); +x_157 = lean_ctor_get(x_156, 0); +lean_inc(x_157); +x_158 = lean_ctor_get(x_156, 1); +lean_inc(x_158); +lean_dec(x_156); +x_159 = lean_unbox(x_157); +lean_dec(x_157); +x_134 = x_159; +x_135 = x_158; +goto block_147; +} +block_133: +{ +uint8_t x_112; +x_112 = !lean_is_exclusive(x_5); +if (x_112 == 0) +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; uint8_t x_116; lean_object* x_117; +x_113 = lean_ctor_get(x_5, 6); +lean_inc(x_110); +x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_1); +lean_ctor_set(x_114, 1, x_110); +x_115 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_115, 0, x_114); +lean_ctor_set(x_115, 1, x_113); +lean_ctor_set(x_5, 6, x_115); +x_116 = 1; +x_117 = l_Lean_Elab_Term_elabTerm(x_110, x_4, x_116, x_5, x_6, x_7, x_8, x_9, x_10, x_111); +return x_117; +} +else +{ +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; uint8_t x_126; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; uint8_t x_131; lean_object* x_132; +x_118 = lean_ctor_get(x_5, 0); +x_119 = lean_ctor_get(x_5, 1); +x_120 = lean_ctor_get(x_5, 2); +x_121 = lean_ctor_get(x_5, 3); +x_122 = lean_ctor_get(x_5, 4); +x_123 = lean_ctor_get(x_5, 5); +x_124 = lean_ctor_get(x_5, 6); +x_125 = lean_ctor_get(x_5, 7); +x_126 = lean_ctor_get_uint8(x_5, sizeof(void*)*8); +x_127 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 1); lean_inc(x_125); lean_inc(x_124); lean_inc(x_123); @@ -2742,111 +3141,108 @@ lean_inc(x_122); lean_inc(x_121); lean_inc(x_120); lean_inc(x_119); +lean_inc(x_118); lean_dec(x_5); -lean_inc(x_112); -x_129 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_129, 0, x_1); -lean_ctor_set(x_129, 1, x_112); -x_130 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_130, 0, x_129); -lean_ctor_set(x_130, 1, x_125); -x_131 = lean_alloc_ctor(0, 8, 2); -lean_ctor_set(x_131, 0, x_119); -lean_ctor_set(x_131, 1, x_120); -lean_ctor_set(x_131, 2, x_121); -lean_ctor_set(x_131, 3, x_122); -lean_ctor_set(x_131, 4, x_123); -lean_ctor_set(x_131, 5, x_124); -lean_ctor_set(x_131, 6, x_130); -lean_ctor_set(x_131, 7, x_126); -lean_ctor_set_uint8(x_131, sizeof(void*)*8, x_127); -lean_ctor_set_uint8(x_131, sizeof(void*)*8 + 1, x_128); -x_132 = 1; -x_133 = l_Lean_Elab_Term_elabTerm(x_112, x_4, x_132, x_131, x_6, x_7, x_8, x_9, x_10, x_60); -return x_133; +lean_inc(x_110); +x_128 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_128, 0, x_1); +lean_ctor_set(x_128, 1, x_110); +x_129 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_129, 0, x_128); +lean_ctor_set(x_129, 1, x_124); +x_130 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_130, 0, x_118); +lean_ctor_set(x_130, 1, x_119); +lean_ctor_set(x_130, 2, x_120); +lean_ctor_set(x_130, 3, x_121); +lean_ctor_set(x_130, 4, x_122); +lean_ctor_set(x_130, 5, x_123); +lean_ctor_set(x_130, 6, x_129); +lean_ctor_set(x_130, 7, x_125); +lean_ctor_set_uint8(x_130, sizeof(void*)*8, x_126); +lean_ctor_set_uint8(x_130, sizeof(void*)*8 + 1, x_127); +x_131 = 1; +x_132 = l_Lean_Elab_Term_elabTerm(x_110, x_4, x_131, x_130, x_6, x_7, x_8, x_9, x_10, x_111); +return x_132; } } +block_147: +{ +if (x_134 == 0) +{ +x_111 = x_135; +goto block_133; +} else { -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_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_inc(x_1); -x_134 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_134, 0, x_1); -x_135 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__20; -x_136 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_136, 0, x_134); -lean_ctor_set(x_136, 1, x_135); -lean_inc(x_112); -x_137 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_137, 0, x_112); +x_136 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_136, 0, x_1); +x_137 = l_Lean_Elab_Term_elabLetDeclAux___closed__4; x_138 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_138, 0, x_136); -lean_ctor_set(x_138, 1, x_137); -x_139 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_39, x_138, x_5, x_6, x_7, x_8, x_9, x_10, x_60); -x_140 = lean_ctor_get(x_139, 1); -lean_inc(x_140); -lean_dec(x_139); -x_141 = !lean_is_exclusive(x_5); -if (x_141 == 0) +lean_ctor_set(x_138, 0, x_137); +lean_ctor_set(x_138, 1, x_136); +x_139 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__16; +x_140 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_140, 0, x_138); +lean_ctor_set(x_140, 1, x_139); +lean_inc(x_110); +x_141 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_141, 0, x_110); +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 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_143, 0, x_142); +lean_ctor_set(x_143, 1, x_137); +x_144 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__4; +x_145 = l_Lean_addTrace___at_Lean_Elab_Term_declareTacticSyntax___spec__7(x_144, x_143, x_5, x_6, x_7, x_8, x_9, x_10, x_135); +x_146 = lean_ctor_get(x_145, 1); +lean_inc(x_146); +lean_dec(x_145); +x_111 = x_146; +goto block_133; +} +} +} +block_174: { -lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; lean_object* x_146; -x_142 = lean_ctor_get(x_5, 6); -lean_inc(x_112); -x_143 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_143, 0, x_1); -lean_ctor_set(x_143, 1, x_112); -x_144 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_144, 0, x_143); -lean_ctor_set(x_144, 1, x_142); -lean_ctor_set(x_5, 6, x_144); -x_145 = 1; -x_146 = l_Lean_Elab_Term_elabTerm(x_112, x_4, x_145, x_5, x_6, x_7, x_8, x_9, x_10, x_140); -return x_146; +if (x_161 == 0) +{ +x_50 = x_162; +goto block_160; } else { -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; uint8_t x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; uint8_t x_160; lean_object* x_161; -x_147 = lean_ctor_get(x_5, 0); -x_148 = lean_ctor_get(x_5, 1); -x_149 = lean_ctor_get(x_5, 2); -x_150 = lean_ctor_get(x_5, 3); -x_151 = lean_ctor_get(x_5, 4); -x_152 = lean_ctor_get(x_5, 5); -x_153 = lean_ctor_get(x_5, 6); -x_154 = lean_ctor_get(x_5, 7); -x_155 = lean_ctor_get_uint8(x_5, sizeof(void*)*8); -x_156 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 1); -lean_inc(x_154); -lean_inc(x_153); -lean_inc(x_152); -lean_inc(x_151); -lean_inc(x_150); -lean_inc(x_149); -lean_inc(x_148); -lean_inc(x_147); -lean_dec(x_5); -lean_inc(x_112); -x_157 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_157, 0, x_1); -lean_ctor_set(x_157, 1, x_112); -x_158 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_158, 0, x_157); -lean_ctor_set(x_158, 1, x_153); -x_159 = lean_alloc_ctor(0, 8, 2); -lean_ctor_set(x_159, 0, x_147); -lean_ctor_set(x_159, 1, x_148); -lean_ctor_set(x_159, 2, x_149); -lean_ctor_set(x_159, 3, x_150); -lean_ctor_set(x_159, 4, x_151); -lean_ctor_set(x_159, 5, x_152); -lean_ctor_set(x_159, 6, x_158); -lean_ctor_set(x_159, 7, x_154); -lean_ctor_set_uint8(x_159, sizeof(void*)*8, x_155); -lean_ctor_set_uint8(x_159, sizeof(void*)*8 + 1, x_156); -x_160 = 1; -x_161 = l_Lean_Elab_Term_elabTerm(x_112, x_4, x_160, x_159, x_6, x_7, x_8, x_9, x_10, x_140); -return x_161; -} +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_inc(x_1); +x_163 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_163, 0, x_1); +x_164 = l_Lean_Elab_Term_elabLetDeclAux___closed__4; +x_165 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_165, 0, x_164); +lean_ctor_set(x_165, 1, x_163); +x_166 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__18; +x_167 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_167, 0, x_165); +lean_ctor_set(x_167, 1, x_166); +lean_inc(x_49); +x_168 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_168, 0, x_49); +x_169 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_169, 0, x_167); +lean_ctor_set(x_169, 1, x_168); +x_170 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_170, 0, x_169); +lean_ctor_set(x_170, 1, x_164); +x_171 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__4; +x_172 = l_Lean_addTrace___at_Lean_Elab_Term_declareTacticSyntax___spec__7(x_171, x_170, x_5, x_6, x_7, x_8, x_9, x_10, x_162); +x_173 = lean_ctor_get(x_172, 1); +lean_inc(x_173); +lean_dec(x_172); +x_50 = x_173; +goto block_160; } } } @@ -2854,274 +3250,448 @@ return x_161; } else { -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; uint8_t x_252; +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; uint8_t x_288; lean_object* x_289; lean_object* x_302; lean_object* x_303; lean_object* x_304; uint8_t x_305; lean_dec(x_14); -x_182 = lean_unsigned_to_nat(3u); -x_183 = l_Lean_Syntax_getArg(x_2, x_182); -x_184 = lean_unsigned_to_nat(0u); -x_185 = l_Lean_Syntax_getArg(x_2, x_184); +x_198 = lean_unsigned_to_nat(3u); +x_199 = l_Lean_Syntax_getArg(x_2, x_198); +x_200 = lean_unsigned_to_nat(0u); +x_201 = l_Lean_Syntax_getArg(x_2, x_200); lean_dec(x_2); -x_186 = l_Lean_Syntax_getArg(x_185, x_13); -lean_dec(x_185); -x_187 = l_Lean_Syntax_getArg(x_3, x_184); +x_202 = l_Lean_Syntax_getArg(x_201, x_13); +lean_dec(x_201); +x_203 = l_Lean_Syntax_getArg(x_3, x_200); lean_dec(x_3); -x_188 = l_Lean_Elab_Term_getCurrMacroScope(x_5, x_6, x_7, x_8, x_9, x_10, x_12); -x_189 = lean_ctor_get(x_188, 0); -lean_inc(x_189); -x_190 = lean_ctor_get(x_188, 1); -lean_inc(x_190); -lean_dec(x_188); -x_191 = l_Lean_Elab_Term_getMainModule___rarg(x_10, x_190); -x_192 = lean_ctor_get(x_191, 0); -lean_inc(x_192); -x_193 = lean_ctor_get(x_191, 1); -lean_inc(x_193); -lean_dec(x_191); -x_194 = l_Array_empty___closed__1; -x_195 = lean_array_push(x_194, x_187); -x_196 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__16; -x_197 = lean_array_push(x_195, x_196); -x_198 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__11; -lean_inc(x_189); -lean_inc(x_192); -x_199 = l_Lean_addMacroScope(x_192, x_198, x_189); -x_200 = lean_box(0); -x_201 = l_Lean_SourceInfo_inhabited___closed__1; -x_202 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__10; -x_203 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__25; -x_204 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_204, 0, x_201); -lean_ctor_set(x_204, 1, x_202); -lean_ctor_set(x_204, 2, x_199); -lean_ctor_set(x_204, 3, x_203); -x_205 = lean_array_push(x_197, x_204); -x_206 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__11; -x_207 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_207, 0, x_206); -lean_ctor_set(x_207, 1, x_205); -x_208 = lean_array_push(x_194, x_207); -x_209 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___closed__2; -lean_inc(x_189); -lean_inc(x_192); -x_210 = l_Lean_addMacroScope(x_192, x_209, x_189); -x_211 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__17; -x_212 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_212, 0, x_201); -lean_ctor_set(x_212, 1, x_211); -lean_ctor_set(x_212, 2, x_210); -lean_ctor_set(x_212, 3, x_200); -x_213 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__6; -x_214 = lean_array_push(x_213, x_212); -x_215 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__20; -x_216 = lean_array_push(x_214, x_215); -x_217 = lean_array_push(x_216, x_186); -x_218 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__15; -x_219 = lean_array_push(x_217, x_218); -x_220 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__15; -x_221 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_221, 0, x_220); -lean_ctor_set(x_221, 1, x_219); -x_222 = lean_array_push(x_194, x_221); -x_223 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__8; -x_224 = l_Lean_addMacroScope(x_192, x_223, x_189); -x_225 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__7; -x_226 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_226, 0, x_201); -lean_ctor_set(x_226, 1, x_225); -lean_ctor_set(x_226, 2, x_224); -lean_ctor_set(x_226, 3, x_200); -x_227 = lean_array_push(x_194, x_226); -x_228 = l_Lean_nullKind___closed__2; -x_229 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_229, 0, x_228); -lean_ctor_set(x_229, 1, x_227); -x_230 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__9; -x_231 = lean_array_push(x_230, x_229); -x_232 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__17; -x_233 = lean_array_push(x_231, x_232); -x_234 = lean_array_push(x_233, x_183); -x_235 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__7; +x_204 = l_Lean_Elab_Term_getCurrMacroScope(x_5, x_6, x_7, x_8, x_9, x_10, x_12); +x_205 = lean_ctor_get(x_204, 0); +lean_inc(x_205); +x_206 = lean_ctor_get(x_204, 1); +lean_inc(x_206); +lean_dec(x_204); +x_207 = l_Lean_Elab_Term_getMainModule___rarg(x_10, x_206); +x_208 = lean_ctor_get(x_207, 0); +lean_inc(x_208); +x_209 = lean_ctor_get(x_207, 1); +lean_inc(x_209); +lean_dec(x_207); +x_210 = l_Array_empty___closed__1; +x_211 = lean_array_push(x_210, x_203); +x_212 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__16; +x_213 = lean_array_push(x_211, x_212); +x_214 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__11; +lean_inc(x_205); +lean_inc(x_208); +x_215 = l_Lean_addMacroScope(x_208, x_214, x_205); +x_216 = lean_box(0); +x_217 = l_Lean_SourceInfo_inhabited___closed__1; +x_218 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__10; +x_219 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_219, 0, x_217); +lean_ctor_set(x_219, 1, x_218); +lean_ctor_set(x_219, 2, x_215); +lean_ctor_set(x_219, 3, x_216); +x_220 = lean_array_push(x_213, x_219); +x_221 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__11; +x_222 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_222, 0, x_221); +lean_ctor_set(x_222, 1, x_220); +x_223 = lean_array_push(x_210, x_222); +x_224 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___closed__2; +lean_inc(x_205); +lean_inc(x_208); +x_225 = l_Lean_addMacroScope(x_208, x_224, x_205); +x_226 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__14; +x_227 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_227, 0, x_217); +lean_ctor_set(x_227, 1, x_226); +lean_ctor_set(x_227, 2, x_225); +lean_ctor_set(x_227, 3, x_216); +x_228 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__6; +x_229 = lean_array_push(x_228, x_227); +x_230 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__20; +x_231 = lean_array_push(x_229, x_230); +x_232 = lean_array_push(x_231, x_202); +x_233 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__15; +x_234 = lean_array_push(x_232, x_233); +x_235 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__12; x_236 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_236, 0, x_235); lean_ctor_set(x_236, 1, x_234); -x_237 = lean_array_push(x_194, x_236); -x_238 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__5; -x_239 = lean_array_push(x_237, x_238); -x_240 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_240, 0, x_228); -lean_ctor_set(x_240, 1, x_239); -x_241 = lean_array_push(x_213, x_240); -x_242 = lean_array_push(x_241, x_218); -x_243 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__4; +x_237 = lean_array_push(x_210, x_236); +x_238 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__8; +x_239 = l_Lean_addMacroScope(x_208, x_238, x_205); +x_240 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__7; +x_241 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_241, 0, x_217); +lean_ctor_set(x_241, 1, x_240); +lean_ctor_set(x_241, 2, x_239); +lean_ctor_set(x_241, 3, x_216); +x_242 = lean_array_push(x_210, x_241); +x_243 = l_Lean_nullKind___closed__2; x_244 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_244, 0, x_243); lean_ctor_set(x_244, 1, x_242); -x_245 = lean_array_push(x_222, x_244); -x_246 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_246, 0, x_228); -lean_ctor_set(x_246, 1, x_245); -x_247 = lean_array_push(x_208, x_246); -x_248 = l_Lean_mkAppStx___closed__8; -x_249 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_249, 0, x_248); -lean_ctor_set(x_249, 1, x_247); -x_250 = lean_ctor_get(x_9, 0); -lean_inc(x_250); -x_251 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__4; -x_252 = l_Lean_checkTraceOption(x_250, x_251); -lean_dec(x_250); -if (x_252 == 0) +x_245 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__9; +x_246 = lean_array_push(x_245, x_244); +x_247 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__17; +x_248 = lean_array_push(x_246, x_247); +x_249 = lean_array_push(x_248, x_199); +x_250 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__7; +x_251 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_251, 0, x_250); +lean_ctor_set(x_251, 1, x_249); +x_252 = lean_array_push(x_210, x_251); +x_253 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__5; +x_254 = lean_array_push(x_252, x_253); +x_255 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_255, 0, x_243); +lean_ctor_set(x_255, 1, x_254); +x_256 = lean_array_push(x_228, x_255); +x_257 = lean_array_push(x_256, x_233); +x_258 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__4; +x_259 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_259, 0, x_258); +lean_ctor_set(x_259, 1, x_257); +x_260 = lean_array_push(x_237, x_259); +x_261 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_261, 0, x_243); +lean_ctor_set(x_261, 1, x_260); +x_262 = lean_array_push(x_223, x_261); +x_263 = l_Lean_mkAppStx___closed__8; +x_264 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_264, 0, x_263); +lean_ctor_set(x_264, 1, x_262); +x_302 = lean_st_ref_get(x_10, x_209); +x_303 = lean_ctor_get(x_302, 0); +lean_inc(x_303); +x_304 = lean_ctor_get(x_303, 3); +lean_inc(x_304); +lean_dec(x_303); +x_305 = lean_ctor_get_uint8(x_304, sizeof(void*)*1); +lean_dec(x_304); +if (x_305 == 0) { -uint8_t x_253; -x_253 = !lean_is_exclusive(x_5); -if (x_253 == 0) -{ -lean_object* x_254; lean_object* x_255; lean_object* x_256; uint8_t x_257; lean_object* x_258; -x_254 = lean_ctor_get(x_5, 6); -lean_inc(x_249); -x_255 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_255, 0, x_1); -lean_ctor_set(x_255, 1, x_249); -x_256 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_256, 0, x_255); -lean_ctor_set(x_256, 1, x_254); -lean_ctor_set(x_5, 6, x_256); -x_257 = 1; -x_258 = l_Lean_Elab_Term_elabTerm(x_249, x_4, x_257, x_5, x_6, x_7, x_8, x_9, x_10, x_193); -return x_258; +lean_object* x_306; uint8_t x_307; +x_306 = lean_ctor_get(x_302, 1); +lean_inc(x_306); +lean_dec(x_302); +x_307 = 0; +x_288 = x_307; +x_289 = x_306; +goto block_301; } else { -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; uint8_t x_267; uint8_t x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; uint8_t x_272; lean_object* x_273; -x_259 = lean_ctor_get(x_5, 0); -x_260 = lean_ctor_get(x_5, 1); -x_261 = lean_ctor_get(x_5, 2); -x_262 = lean_ctor_get(x_5, 3); -x_263 = lean_ctor_get(x_5, 4); -x_264 = lean_ctor_get(x_5, 5); -x_265 = lean_ctor_get(x_5, 6); -x_266 = lean_ctor_get(x_5, 7); -x_267 = lean_ctor_get_uint8(x_5, sizeof(void*)*8); -x_268 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 1); -lean_inc(x_266); -lean_inc(x_265); +lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; uint8_t x_313; +x_308 = lean_ctor_get(x_302, 1); +lean_inc(x_308); +lean_dec(x_302); +x_309 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__4; +x_310 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Elab_Term_declareTacticSyntax___spec__6(x_309, x_5, x_6, x_7, x_8, x_9, x_10, x_308); +x_311 = lean_ctor_get(x_310, 0); +lean_inc(x_311); +x_312 = lean_ctor_get(x_310, 1); +lean_inc(x_312); +lean_dec(x_310); +x_313 = lean_unbox(x_311); +lean_dec(x_311); +x_288 = x_313; +x_289 = x_312; +goto block_301; +} +block_287: +{ +uint8_t x_266; +x_266 = !lean_is_exclusive(x_5); +if (x_266 == 0) +{ +lean_object* x_267; lean_object* x_268; lean_object* x_269; uint8_t x_270; lean_object* x_271; +x_267 = lean_ctor_get(x_5, 6); lean_inc(x_264); -lean_inc(x_263); -lean_inc(x_262); -lean_inc(x_261); -lean_inc(x_260); -lean_inc(x_259); -lean_dec(x_5); -lean_inc(x_249); -x_269 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_269, 0, x_1); -lean_ctor_set(x_269, 1, x_249); -x_270 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_270, 0, x_269); -lean_ctor_set(x_270, 1, x_265); -x_271 = lean_alloc_ctor(0, 8, 2); -lean_ctor_set(x_271, 0, x_259); -lean_ctor_set(x_271, 1, x_260); -lean_ctor_set(x_271, 2, x_261); -lean_ctor_set(x_271, 3, x_262); -lean_ctor_set(x_271, 4, x_263); -lean_ctor_set(x_271, 5, x_264); -lean_ctor_set(x_271, 6, x_270); -lean_ctor_set(x_271, 7, x_266); -lean_ctor_set_uint8(x_271, sizeof(void*)*8, x_267); -lean_ctor_set_uint8(x_271, sizeof(void*)*8 + 1, x_268); -x_272 = 1; -x_273 = l_Lean_Elab_Term_elabTerm(x_249, x_4, x_272, x_271, x_6, x_7, x_8, x_9, x_10, x_193); -return x_273; -} +x_268 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_268, 0, x_1); +lean_ctor_set(x_268, 1, x_264); +x_269 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_269, 0, x_268); +lean_ctor_set(x_269, 1, x_267); +lean_ctor_set(x_5, 6, x_269); +x_270 = 1; +x_271 = l_Lean_Elab_Term_elabTerm(x_264, x_4, x_270, x_5, x_6, x_7, x_8, x_9, x_10, x_265); +return x_271; } else { -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; uint8_t x_281; -lean_inc(x_1); -x_274 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_274, 0, x_1); -x_275 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__20; -x_276 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_276, 0, x_274); -lean_ctor_set(x_276, 1, x_275); -lean_inc(x_249); -x_277 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_277, 0, x_249); -x_278 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_278, 0, x_276); -lean_ctor_set(x_278, 1, x_277); -x_279 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_251, x_278, x_5, x_6, x_7, x_8, x_9, x_10, x_193); -x_280 = lean_ctor_get(x_279, 1); -lean_inc(x_280); -lean_dec(x_279); -x_281 = !lean_is_exclusive(x_5); -if (x_281 == 0) -{ -lean_object* x_282; lean_object* x_283; lean_object* x_284; uint8_t x_285; lean_object* x_286; -x_282 = lean_ctor_get(x_5, 6); -lean_inc(x_249); -x_283 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_283, 0, x_1); -lean_ctor_set(x_283, 1, x_249); -x_284 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_284, 0, x_283); -lean_ctor_set(x_284, 1, x_282); -lean_ctor_set(x_5, 6, x_284); +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; uint8_t x_280; uint8_t x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; uint8_t x_285; lean_object* x_286; +x_272 = lean_ctor_get(x_5, 0); +x_273 = lean_ctor_get(x_5, 1); +x_274 = lean_ctor_get(x_5, 2); +x_275 = lean_ctor_get(x_5, 3); +x_276 = lean_ctor_get(x_5, 4); +x_277 = lean_ctor_get(x_5, 5); +x_278 = lean_ctor_get(x_5, 6); +x_279 = lean_ctor_get(x_5, 7); +x_280 = lean_ctor_get_uint8(x_5, sizeof(void*)*8); +x_281 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 1); +lean_inc(x_279); +lean_inc(x_278); +lean_inc(x_277); +lean_inc(x_276); +lean_inc(x_275); +lean_inc(x_274); +lean_inc(x_273); +lean_inc(x_272); +lean_dec(x_5); +lean_inc(x_264); +x_282 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_282, 0, x_1); +lean_ctor_set(x_282, 1, x_264); +x_283 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_283, 0, x_282); +lean_ctor_set(x_283, 1, x_278); +x_284 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_284, 0, x_272); +lean_ctor_set(x_284, 1, x_273); +lean_ctor_set(x_284, 2, x_274); +lean_ctor_set(x_284, 3, x_275); +lean_ctor_set(x_284, 4, x_276); +lean_ctor_set(x_284, 5, x_277); +lean_ctor_set(x_284, 6, x_283); +lean_ctor_set(x_284, 7, x_279); +lean_ctor_set_uint8(x_284, sizeof(void*)*8, x_280); +lean_ctor_set_uint8(x_284, sizeof(void*)*8 + 1, x_281); x_285 = 1; -x_286 = l_Lean_Elab_Term_elabTerm(x_249, x_4, x_285, x_5, x_6, x_7, x_8, x_9, x_10, x_280); +x_286 = l_Lean_Elab_Term_elabTerm(x_264, x_4, x_285, x_284, x_6, x_7, x_8, x_9, x_10, x_265); return x_286; } +} +block_301: +{ +if (x_288 == 0) +{ +x_265 = x_289; +goto block_287; +} 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; uint8_t x_295; uint8_t x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; uint8_t x_300; lean_object* x_301; -x_287 = lean_ctor_get(x_5, 0); -x_288 = lean_ctor_get(x_5, 1); -x_289 = lean_ctor_get(x_5, 2); -x_290 = lean_ctor_get(x_5, 3); -x_291 = lean_ctor_get(x_5, 4); -x_292 = lean_ctor_get(x_5, 5); -x_293 = lean_ctor_get(x_5, 6); -x_294 = lean_ctor_get(x_5, 7); -x_295 = lean_ctor_get_uint8(x_5, sizeof(void*)*8); -x_296 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 1); -lean_inc(x_294); -lean_inc(x_293); -lean_inc(x_292); -lean_inc(x_291); -lean_inc(x_290); -lean_inc(x_289); -lean_inc(x_288); -lean_inc(x_287); +lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; +lean_inc(x_1); +x_290 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_290, 0, x_1); +x_291 = l_Lean_Elab_Term_elabLetDeclAux___closed__4; +x_292 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_292, 0, x_291); +lean_ctor_set(x_292, 1, x_290); +x_293 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__16; +x_294 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_294, 0, x_292); +lean_ctor_set(x_294, 1, x_293); +lean_inc(x_264); +x_295 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_295, 0, x_264); +x_296 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_296, 0, x_294); +lean_ctor_set(x_296, 1, x_295); +x_297 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_297, 0, x_296); +lean_ctor_set(x_297, 1, x_291); +x_298 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__4; +x_299 = l_Lean_addTrace___at_Lean_Elab_Term_declareTacticSyntax___spec__7(x_298, x_297, x_5, x_6, x_7, x_8, x_9, x_10, x_289); +x_300 = lean_ctor_get(x_299, 1); +lean_inc(x_300); +lean_dec(x_299); +x_265 = x_300; +goto block_287; +} +} +} +} +block_328: +{ +if (x_315 == 0) +{ +x_12 = x_316; +goto block_314; +} +else +{ +lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; +lean_inc(x_2); +x_317 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_317, 0, x_2); +x_318 = l_Lean_Elab_Term_elabLetDeclAux___closed__4; +x_319 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_319, 0, x_318); +lean_ctor_set(x_319, 1, x_317); +x_320 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__20; +x_321 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_321, 0, x_319); +lean_ctor_set(x_321, 1, x_320); +lean_inc(x_3); +x_322 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_322, 0, x_3); +x_323 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_323, 0, x_321); +lean_ctor_set(x_323, 1, x_322); +x_324 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_324, 0, x_323); +lean_ctor_set(x_324, 1, x_318); +x_325 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__4; +x_326 = l_Lean_addTrace___at_Lean_Elab_Term_declareTacticSyntax___spec__7(x_325, x_324, x_5, x_6, x_7, x_8, x_9, x_10, x_316); +x_327 = lean_ctor_get(x_326, 1); +lean_inc(x_327); +lean_dec(x_326); +x_12 = x_327; +goto block_314; +} +} +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 4) +{ +lean_object* x_4; lean_object* x_5; uint64_t x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +lean_dec(x_1); +x_7 = lean_box_uint64(x_6); +x_8 = lean_apply_3(x_2, x_4, x_5, x_7); +return x_8; +} +else +{ +lean_object* x_9; +lean_dec(x_2); +x_9 = lean_apply_1(x_3, x_1); +return x_9; +} +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +if (lean_obj_tag(x_1) == 2) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_dec(x_5); -lean_inc(x_249); -x_297 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_297, 0, x_1); -lean_ctor_set(x_297, 1, x_249); -x_298 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_298, 0, x_297); -lean_ctor_set(x_298, 1, x_293); -x_299 = lean_alloc_ctor(0, 8, 2); -lean_ctor_set(x_299, 0, x_287); -lean_ctor_set(x_299, 1, x_288); -lean_ctor_set(x_299, 2, x_289); -lean_ctor_set(x_299, 3, x_290); -lean_ctor_set(x_299, 4, x_291); -lean_ctor_set(x_299, 5, x_292); -lean_ctor_set(x_299, 6, x_298); -lean_ctor_set(x_299, 7, x_294); -lean_ctor_set_uint8(x_299, sizeof(void*)*8, x_295); -lean_ctor_set_uint8(x_299, sizeof(void*)*8 + 1, x_296); -x_300 = 1; -x_301 = l_Lean_Elab_Term_elabTerm(x_249, x_4, x_300, x_299, x_6, x_7, x_8, x_9, x_10, x_280); -return x_301; +lean_dec(x_4); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_1, 1); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_apply_3(x_3, x_6, x_7, x_2); +return x_8; +} +else +{ +lean_dec(x_3); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_9; +lean_dec(x_4); +x_9 = lean_apply_1(x_5, x_1); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; +lean_dec(x_5); +x_10 = lean_ctor_get(x_2, 0); +lean_inc(x_10); +lean_dec(x_2); +x_11 = lean_apply_2(x_4, x_1, x_10); +return x_11; } } } } +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName_match__2___rarg), 5, 0); +return x_2; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__1() { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 4) +{ +lean_object* x_4; lean_object* x_5; uint64_t x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +lean_dec(x_1); +x_7 = lean_box_uint64(x_6); +x_8 = lean_apply_3(x_2, x_4, x_5, x_7); +return x_8; +} +else +{ +lean_object* x_9; +lean_dec(x_2); +x_9 = lean_apply_1(x_3, x_1); +return x_9; +} +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName_match__3___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName_match__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName_match__4(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName_match__4___rarg), 3, 0); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__1() { _start: { lean_object* x_1; @@ -3129,55 +3699,16 @@ x_1 = lean_mk_string("invalid {...} notation, expected type must be known"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__2() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("invalid {...} notation, expected type is not of the form (C ...)"); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__4; -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_StructInst_5__getStructName___rarg___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__5; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__7() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__3() { _start: { lean_object* x_1; @@ -3185,27 +3716,33 @@ x_1 = lean_mk_string("invalid {...} notation, source type is not of the form (C return x_1; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__8() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__7; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("invalid {...} notation, expected type is not of the form (C ...)"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__8; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l___private_Lean_Elab_StructInst_5__getStructName___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; @@ -3213,350 +3750,407 @@ lean_inc(x_1); x_10 = l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(x_1, 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; -x_11 = lean_ctor_get(x_10, 1); -lean_inc(x_11); -lean_dec(x_10); if (lean_obj_tag(x_1) == 0) { if (lean_obj_tag(x_2) == 2) { -lean_object* x_21; lean_object* x_22; -x_21 = lean_ctor_get(x_2, 1); -lean_inc(x_21); +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +lean_dec(x_10); +x_12 = lean_ctor_get(x_2, 1); +lean_inc(x_12); lean_dec(x_2); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_22 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_21, x_3, x_4, x_5, x_6, x_7, x_8, x_11); -if (lean_obj_tag(x_22) == 0) +x_13 = l_Lean_Meta_inferType___at___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType___spec__1(x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_11); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 1); -lean_inc(x_24); -lean_dec(x_22); +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_25 = l_Lean_Meta_whnf___at___private_Lean_Elab_Term_6__isTypeApp_x3f___spec__1(x_23, x_3, x_4, x_5, x_6, x_7, x_8, x_24); -if (lean_obj_tag(x_25) == 0) +x_16 = l_Lean_Meta_whnf___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_propagateExpectedType___spec__2(x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_15); +if (lean_obj_tag(x_16) == 0) { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -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); -lean_inc(x_26); -x_28 = l_Lean_Elab_Term_tryPostponeIfMVar(x_26, x_3, x_4, x_5, x_6, x_7, x_8, x_27); -if (lean_obj_tag(x_28) == 0) +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +lean_inc(x_17); +x_19 = l_Lean_Elab_Term_tryPostponeIfMVar(x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_18); +if (lean_obj_tag(x_19) == 0) { -uint8_t x_29; -x_29 = !lean_is_exclusive(x_28); -if (x_29 == 0) +uint8_t x_20; +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) { -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_38; -x_30 = lean_ctor_get(x_28, 1); -x_31 = lean_ctor_get(x_28, 0); -lean_dec(x_31); -x_38 = l_Lean_Expr_getAppFn___main(x_26); -if (lean_obj_tag(x_38) == 4) +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_19, 1); +x_22 = lean_ctor_get(x_19, 0); +lean_dec(x_22); +x_23 = l_Lean_Expr_getAppFn___main(x_17); +if (lean_obj_tag(x_23) == 4) { -lean_object* x_39; -lean_dec(x_26); +lean_object* x_24; +lean_dec(x_17); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -lean_dec(x_38); -lean_ctor_set(x_28, 0, x_39); -return x_28; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +lean_dec(x_23); +lean_ctor_set(x_19, 0, x_24); +return x_19; } else { -lean_object* x_40; -lean_dec(x_38); -lean_free_object(x_28); -x_40 = lean_box(0); -x_32 = x_40; -goto block_37; +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +lean_dec(x_23); +lean_free_object(x_19); +x_25 = l_Lean_indentExpr(x_17); +x_26 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__4; +x_27 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_25); +x_28 = l_Lean_Elab_Term_elabLetDeclAux___closed__4; +x_29 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +x_30 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_21); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_30; } -block_37: +} +else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_19, 1); +lean_inc(x_31); +lean_dec(x_19); +x_32 = l_Lean_Expr_getAppFn___main(x_17); +if (lean_obj_tag(x_32) == 4) +{ +lean_object* x_33; lean_object* x_34; +lean_dec(x_17); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); lean_dec(x_32); -x_33 = l_Lean_indentExpr(x_26); -x_34 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -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_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_35, x_3, x_4, x_5, x_6, x_7, x_8, x_30); +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; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +lean_dec(x_32); +x_35 = l_Lean_indentExpr(x_17); +x_36 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__4; +x_37 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_35); +x_38 = l_Lean_Elab_Term_elabLetDeclAux___closed__4; +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_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(x_39, x_3, x_4, x_5, x_6, x_7, x_8, x_31); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_36; +return x_40; +} } } else { -lean_object* x_41; lean_object* x_42; lean_object* x_48; -x_41 = lean_ctor_get(x_28, 1); -lean_inc(x_41); -lean_dec(x_28); -x_48 = l_Lean_Expr_getAppFn___main(x_26); -if (lean_obj_tag(x_48) == 4) -{ -lean_object* x_49; lean_object* x_50; -lean_dec(x_26); +uint8_t x_41; +lean_dec(x_17); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_49 = lean_ctor_get(x_48, 0); -lean_inc(x_49); -lean_dec(x_48); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_41); -return x_50; +x_41 = !lean_is_exclusive(x_19); +if (x_41 == 0) +{ +return x_19; } else { -lean_object* x_51; -lean_dec(x_48); -x_51 = lean_box(0); -x_42 = x_51; -goto block_47; -} -block_47: -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -lean_dec(x_42); -x_43 = l_Lean_indentExpr(x_26); -x_44 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -x_45 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_45, 1, x_43); -x_46 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_45, x_3, x_4, x_5, x_6, x_7, x_8, x_41); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_46; +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_19, 0); +x_43 = lean_ctor_get(x_19, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_19); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +return x_44; } } } else { -uint8_t x_52; -lean_dec(x_26); +uint8_t x_45; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_52 = !lean_is_exclusive(x_28); -if (x_52 == 0) +x_45 = !lean_is_exclusive(x_16); +if (x_45 == 0) { -return x_28; +return x_16; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_16, 0); +x_47 = lean_ctor_get(x_16, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_16); +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_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_49 = !lean_is_exclusive(x_13); +if (x_49 == 0) +{ +return x_13; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_13, 0); +x_51 = lean_ctor_get(x_13, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_13); +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_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_28, 0); -x_54 = lean_ctor_get(x_28, 1); -lean_inc(x_54); +lean_dec(x_2); +x_53 = lean_ctor_get(x_10, 1); lean_inc(x_53); -lean_dec(x_28); -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_53); -lean_ctor_set(x_55, 1, x_54); +lean_dec(x_10); +x_54 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__2; +x_55 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_54, x_3, x_4, x_5, x_6, x_7, x_8, x_53); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); return x_55; } } -} else { -uint8_t x_56; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_56 = !lean_is_exclusive(x_25); -if (x_56 == 0) -{ -return x_25; -} -else -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_25, 0); -x_58 = lean_ctor_get(x_25, 1); -lean_inc(x_58); +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_10, 1); +lean_inc(x_56); +lean_dec(x_10); +x_57 = lean_ctor_get(x_1, 0); lean_inc(x_57); -lean_dec(x_25); -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_3); -x_60 = !lean_is_exclusive(x_22); -if (x_60 == 0) -{ -return x_22; -} -else -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_61 = lean_ctor_get(x_22, 0); -x_62 = lean_ctor_get(x_22, 1); -lean_inc(x_62); -lean_inc(x_61); -lean_dec(x_22); -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 -{ -lean_object* x_64; -lean_dec(x_2); -x_64 = lean_box(0); -x_12 = x_64; -goto block_20; -} -} -else -{ -lean_object* x_65; lean_object* x_66; -x_65 = lean_ctor_get(x_1, 0); -lean_inc(x_65); lean_dec(x_1); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_65); -x_66 = l_Lean_Meta_whnf___at___private_Lean_Elab_Term_6__isTypeApp_x3f___spec__1(x_65, x_3, x_4, x_5, x_6, x_7, x_8, x_11); -if (lean_obj_tag(x_66) == 0) +lean_inc(x_57); +x_58 = l_Lean_Meta_whnf___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_propagateExpectedType___spec__2(x_57, x_3, x_4, x_5, x_6, x_7, x_8, x_56); +if (lean_obj_tag(x_58) == 0) { -uint8_t x_67; -x_67 = !lean_is_exclusive(x_66); -if (x_67 == 0) +uint8_t x_59; +x_59 = !lean_is_exclusive(x_58); +if (x_59 == 0) { -lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_76; -x_68 = lean_ctor_get(x_66, 0); -x_69 = lean_ctor_get(x_66, 1); -x_76 = l_Lean_Expr_getAppFn___main(x_68); -lean_dec(x_68); -switch (lean_obj_tag(x_76)) { -case 0: +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_58, 0); +x_61 = lean_ctor_get(x_58, 1); +x_62 = l_Lean_Expr_getAppFn___main(x_60); +lean_dec(x_60); +if (lean_obj_tag(x_62) == 4) { -lean_dec(x_76); -lean_free_object(x_66); -if (lean_obj_tag(x_2) == 2) -{ -lean_object* x_77; lean_object* x_78; -lean_dec(x_65); -x_77 = lean_ctor_get(x_2, 1); -lean_inc(x_77); -lean_dec(x_2); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_78 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_77, x_3, x_4, x_5, x_6, x_7, x_8, x_69); -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_78, 0); -lean_inc(x_79); -x_80 = lean_ctor_get(x_78, 1); -lean_inc(x_80); -lean_dec(x_78); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_81 = l_Lean_Meta_whnf___at___private_Lean_Elab_Term_6__isTypeApp_x3f___spec__1(x_79, x_3, x_4, x_5, x_6, x_7, x_8, x_80); -if (lean_obj_tag(x_81) == 0) -{ -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_81, 0); -lean_inc(x_82); -x_83 = lean_ctor_get(x_81, 1); -lean_inc(x_83); -lean_dec(x_81); -lean_inc(x_82); -x_84 = l_Lean_Elab_Term_tryPostponeIfMVar(x_82, x_3, x_4, x_5, x_6, x_7, x_8, x_83); -if (lean_obj_tag(x_84) == 0) -{ -uint8_t x_85; -x_85 = !lean_is_exclusive(x_84); -if (x_85 == 0) -{ -lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_94; -x_86 = lean_ctor_get(x_84, 1); -x_87 = lean_ctor_get(x_84, 0); -lean_dec(x_87); -x_94 = l_Lean_Expr_getAppFn___main(x_82); -if (lean_obj_tag(x_94) == 4) -{ -lean_object* x_95; -lean_dec(x_82); +lean_object* x_63; +lean_dec(x_57); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -lean_dec(x_94); -lean_ctor_set(x_84, 0, x_95); -return x_84; +lean_dec(x_2); +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +lean_dec(x_62); +lean_ctor_set(x_58, 0, x_63); +return x_58; } else { -lean_object* x_96; -lean_dec(x_94); -lean_free_object(x_84); -x_96 = lean_box(0); -x_88 = x_96; -goto block_93; -} -block_93: +lean_dec(x_62); +lean_free_object(x_58); +if (lean_obj_tag(x_2) == 2) { -lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; -lean_dec(x_88); -x_89 = l_Lean_indentExpr(x_82); -x_90 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; +lean_object* x_64; lean_object* x_65; +lean_dec(x_57); +x_64 = lean_ctor_get(x_2, 1); +lean_inc(x_64); +lean_dec(x_2); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_65 = l_Lean_Meta_inferType___at___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType___spec__1(x_64, x_3, x_4, x_5, x_6, x_7, x_8, x_61); +if (lean_obj_tag(x_65) == 0) +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_65, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_65, 1); +lean_inc(x_67); +lean_dec(x_65); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_68 = l_Lean_Meta_whnf___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_propagateExpectedType___spec__2(x_66, x_3, x_4, x_5, x_6, x_7, x_8, x_67); +if (lean_obj_tag(x_68) == 0) +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +lean_dec(x_68); +lean_inc(x_69); +x_71 = l_Lean_Elab_Term_tryPostponeIfMVar(x_69, x_3, x_4, x_5, x_6, x_7, x_8, x_70); +if (lean_obj_tag(x_71) == 0) +{ +uint8_t x_72; +x_72 = !lean_is_exclusive(x_71); +if (x_72 == 0) +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_71, 1); +x_74 = lean_ctor_get(x_71, 0); +lean_dec(x_74); +x_75 = l_Lean_Expr_getAppFn___main(x_69); +if (lean_obj_tag(x_75) == 4) +{ +lean_object* x_76; +lean_dec(x_69); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_76 = lean_ctor_get(x_75, 0); +lean_inc(x_76); +lean_dec(x_75); +lean_ctor_set(x_71, 0, x_76); +return x_71; +} +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; +lean_dec(x_75); +lean_free_object(x_71); +x_77 = l_Lean_indentExpr(x_69); +x_78 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__4; +x_79 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_79, 0, x_78); +lean_ctor_set(x_79, 1, x_77); +x_80 = l_Lean_Elab_Term_elabLetDeclAux___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 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(x_81, x_3, x_4, x_5, x_6, x_7, x_8, x_73); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_82; +} +} +else +{ +lean_object* x_83; lean_object* x_84; +x_83 = lean_ctor_get(x_71, 1); +lean_inc(x_83); +lean_dec(x_71); +x_84 = l_Lean_Expr_getAppFn___main(x_69); +if (lean_obj_tag(x_84) == 4) +{ +lean_object* x_85; lean_object* x_86; +lean_dec(x_69); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_85 = lean_ctor_get(x_84, 0); +lean_inc(x_85); +lean_dec(x_84); +x_86 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_83); +return x_86; +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; +lean_dec(x_84); +x_87 = l_Lean_indentExpr(x_69); +x_88 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__4; +x_89 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_89, 0, x_88); +lean_ctor_set(x_89, 1, x_87); +x_90 = l_Lean_Elab_Term_elabLetDeclAux___closed__4; x_91 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_91, 0, x_90); -lean_ctor_set(x_91, 1, x_89); -x_92 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_91, x_3, x_4, x_5, x_6, x_7, x_8, x_86); +lean_ctor_set(x_91, 0, x_89); +lean_ctor_set(x_91, 1, x_90); +x_92 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(x_91, x_3, x_4, x_5, x_6, x_7, x_8, x_83); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -3564,5272 +4158,385 @@ lean_dec(x_5); return x_92; } } +} else { -lean_object* x_97; lean_object* x_98; lean_object* x_104; -x_97 = lean_ctor_get(x_84, 1); -lean_inc(x_97); -lean_dec(x_84); -x_104 = l_Lean_Expr_getAppFn___main(x_82); -if (lean_obj_tag(x_104) == 4) -{ -lean_object* x_105; lean_object* x_106; -lean_dec(x_82); +uint8_t x_93; +lean_dec(x_69); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_105 = lean_ctor_get(x_104, 0); -lean_inc(x_105); -lean_dec(x_104); -x_106 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_106, 0, x_105); -lean_ctor_set(x_106, 1, x_97); -return x_106; +x_93 = !lean_is_exclusive(x_71); +if (x_93 == 0) +{ +return x_71; } else { -lean_object* x_107; -lean_dec(x_104); -x_107 = lean_box(0); -x_98 = x_107; -goto block_103; -} -block_103: -{ -lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; -lean_dec(x_98); -x_99 = l_Lean_indentExpr(x_82); -x_100 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -x_101 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_99); -x_102 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_101, x_3, x_4, x_5, x_6, x_7, x_8, x_97); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_102; +lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_94 = lean_ctor_get(x_71, 0); +x_95 = lean_ctor_get(x_71, 1); +lean_inc(x_95); +lean_inc(x_94); +lean_dec(x_71); +x_96 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_96, 0, x_94); +lean_ctor_set(x_96, 1, x_95); +return x_96; } } } else { -uint8_t x_108; -lean_dec(x_82); +uint8_t x_97; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_108 = !lean_is_exclusive(x_84); -if (x_108 == 0) +x_97 = !lean_is_exclusive(x_68); +if (x_97 == 0) { -return x_84; +return x_68; } else { -lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_109 = lean_ctor_get(x_84, 0); -x_110 = lean_ctor_get(x_84, 1); -lean_inc(x_110); -lean_inc(x_109); -lean_dec(x_84); -x_111 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_111, 0, x_109); -lean_ctor_set(x_111, 1, x_110); -return x_111; +lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_98 = lean_ctor_get(x_68, 0); +x_99 = lean_ctor_get(x_68, 1); +lean_inc(x_99); +lean_inc(x_98); +lean_dec(x_68); +x_100 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_100, 0, x_98); +lean_ctor_set(x_100, 1, x_99); +return x_100; } } } else { -uint8_t x_112; +uint8_t x_101; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_112 = !lean_is_exclusive(x_81); -if (x_112 == 0) +x_101 = !lean_is_exclusive(x_65); +if (x_101 == 0) { -return x_81; +return x_65; } else { -lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_113 = lean_ctor_get(x_81, 0); -x_114 = lean_ctor_get(x_81, 1); +lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_102 = lean_ctor_get(x_65, 0); +x_103 = lean_ctor_get(x_65, 1); +lean_inc(x_103); +lean_inc(x_102); +lean_dec(x_65); +x_104 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_104, 0, x_102); +lean_ctor_set(x_104, 1, x_103); +return x_104; +} +} +} +else +{ +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_dec(x_2); +x_105 = l_Lean_indentExpr(x_57); +x_106 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__6; +x_107 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_107, 1, x_105); +x_108 = l_Lean_Elab_Term_elabLetDeclAux___closed__4; +x_109 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_109, 0, x_107); +lean_ctor_set(x_109, 1, x_108); +x_110 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_109, x_3, x_4, x_5, x_6, x_7, x_8, x_61); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_110; +} +} +} +else +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_111 = lean_ctor_get(x_58, 0); +x_112 = lean_ctor_get(x_58, 1); +lean_inc(x_112); +lean_inc(x_111); +lean_dec(x_58); +x_113 = l_Lean_Expr_getAppFn___main(x_111); +lean_dec(x_111); +if (lean_obj_tag(x_113) == 4) +{ +lean_object* x_114; lean_object* x_115; +lean_dec(x_57); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_114 = lean_ctor_get(x_113, 0); lean_inc(x_114); -lean_inc(x_113); -lean_dec(x_81); -x_115 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_115, 0, x_113); -lean_ctor_set(x_115, 1, x_114); +lean_dec(x_113); +x_115 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_115, 0, x_114); +lean_ctor_set(x_115, 1, x_112); return x_115; } -} -} else { -uint8_t x_116; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_116 = !lean_is_exclusive(x_78); -if (x_116 == 0) -{ -return x_78; -} -else -{ -lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_117 = lean_ctor_get(x_78, 0); -x_118 = lean_ctor_get(x_78, 1); -lean_inc(x_118); -lean_inc(x_117); -lean_dec(x_78); -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_2); -x_120 = lean_box(0); -x_70 = x_120; -goto block_75; -} -} -case 1: -{ -lean_dec(x_76); -lean_free_object(x_66); +lean_dec(x_113); if (lean_obj_tag(x_2) == 2) { -lean_object* x_121; lean_object* x_122; -lean_dec(x_65); -x_121 = lean_ctor_get(x_2, 1); -lean_inc(x_121); +lean_object* x_116; lean_object* x_117; +lean_dec(x_57); +x_116 = lean_ctor_get(x_2, 1); +lean_inc(x_116); lean_dec(x_2); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_122 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_121, x_3, x_4, x_5, x_6, x_7, x_8, x_69); -if (lean_obj_tag(x_122) == 0) +x_117 = l_Lean_Meta_inferType___at___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType___spec__1(x_116, x_3, x_4, x_5, x_6, x_7, x_8, x_112); +if (lean_obj_tag(x_117) == 0) { -lean_object* x_123; lean_object* x_124; lean_object* x_125; -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); +lean_object* x_118; lean_object* x_119; lean_object* 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); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_125 = l_Lean_Meta_whnf___at___private_Lean_Elab_Term_6__isTypeApp_x3f___spec__1(x_123, x_3, x_4, x_5, x_6, x_7, x_8, x_124); -if (lean_obj_tag(x_125) == 0) +x_120 = l_Lean_Meta_whnf___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_propagateExpectedType___spec__2(x_118, x_3, x_4, x_5, x_6, x_7, x_8, x_119); +if (lean_obj_tag(x_120) == 0) { -lean_object* x_126; lean_object* x_127; lean_object* x_128; -x_126 = lean_ctor_get(x_125, 0); -lean_inc(x_126); -x_127 = lean_ctor_get(x_125, 1); -lean_inc(x_127); -lean_dec(x_125); -lean_inc(x_126); -x_128 = l_Lean_Elab_Term_tryPostponeIfMVar(x_126, x_3, x_4, x_5, x_6, x_7, x_8, x_127); -if (lean_obj_tag(x_128) == 0) +lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_121 = lean_ctor_get(x_120, 0); +lean_inc(x_121); +x_122 = lean_ctor_get(x_120, 1); +lean_inc(x_122); +lean_dec(x_120); +lean_inc(x_121); +x_123 = l_Lean_Elab_Term_tryPostponeIfMVar(x_121, x_3, x_4, x_5, x_6, x_7, x_8, x_122); +if (lean_obj_tag(x_123) == 0) { -uint8_t x_129; -x_129 = !lean_is_exclusive(x_128); -if (x_129 == 0) +lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_124 = lean_ctor_get(x_123, 1); +lean_inc(x_124); +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + lean_ctor_release(x_123, 1); + x_125 = x_123; +} else { + lean_dec_ref(x_123); + x_125 = lean_box(0); +} +x_126 = l_Lean_Expr_getAppFn___main(x_121); +if (lean_obj_tag(x_126) == 4) { -lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_138; -x_130 = lean_ctor_get(x_128, 1); -x_131 = lean_ctor_get(x_128, 0); -lean_dec(x_131); -x_138 = l_Lean_Expr_getAppFn___main(x_126); -if (lean_obj_tag(x_138) == 4) -{ -lean_object* x_139; -lean_dec(x_126); +lean_object* x_127; lean_object* x_128; +lean_dec(x_121); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_139 = lean_ctor_get(x_138, 0); -lean_inc(x_139); -lean_dec(x_138); -lean_ctor_set(x_128, 0, x_139); +x_127 = lean_ctor_get(x_126, 0); +lean_inc(x_127); +lean_dec(x_126); +if (lean_is_scalar(x_125)) { + x_128 = lean_alloc_ctor(0, 2, 0); +} else { + x_128 = x_125; +} +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_124); return x_128; } else { -lean_object* x_140; -lean_dec(x_138); -lean_free_object(x_128); -x_140 = lean_box(0); -x_132 = x_140; -goto block_137; -} -block_137: -{ -lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; -lean_dec(x_132); -x_133 = l_Lean_indentExpr(x_126); -x_134 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -x_135 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_135, 0, x_134); -lean_ctor_set(x_135, 1, x_133); -x_136 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_135, x_3, x_4, x_5, x_6, x_7, x_8, x_130); +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_dec(x_126); +lean_dec(x_125); +x_129 = l_Lean_indentExpr(x_121); +x_130 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__4; +x_131 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_131, 0, x_130); +lean_ctor_set(x_131, 1, x_129); +x_132 = l_Lean_Elab_Term_elabLetDeclAux___closed__4; +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_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(x_133, x_3, x_4, x_5, x_6, x_7, x_8, x_124); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_136; +return x_134; } } else { -lean_object* x_141; lean_object* x_142; lean_object* x_148; -x_141 = lean_ctor_get(x_128, 1); -lean_inc(x_141); -lean_dec(x_128); -x_148 = l_Lean_Expr_getAppFn___main(x_126); -if (lean_obj_tag(x_148) == 4) -{ -lean_object* x_149; lean_object* x_150; -lean_dec(x_126); +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; +lean_dec(x_121); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_149 = lean_ctor_get(x_148, 0); -lean_inc(x_149); -lean_dec(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_141); -return x_150; +x_135 = lean_ctor_get(x_123, 0); +lean_inc(x_135); +x_136 = lean_ctor_get(x_123, 1); +lean_inc(x_136); +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + lean_ctor_release(x_123, 1); + x_137 = x_123; +} else { + lean_dec_ref(x_123); + x_137 = lean_box(0); +} +if (lean_is_scalar(x_137)) { + x_138 = lean_alloc_ctor(1, 2, 0); +} else { + x_138 = x_137; +} +lean_ctor_set(x_138, 0, x_135); +lean_ctor_set(x_138, 1, x_136); +return x_138; +} } else { -lean_object* x_151; -lean_dec(x_148); -x_151 = lean_box(0); -x_142 = x_151; -goto block_147; -} -block_147: -{ -lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; -lean_dec(x_142); -x_143 = l_Lean_indentExpr(x_126); -x_144 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -x_145 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_145, 0, x_144); -lean_ctor_set(x_145, 1, x_143); -x_146 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_145, x_3, x_4, x_5, x_6, x_7, x_8, x_141); +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); +lean_dec(x_3); +x_139 = lean_ctor_get(x_120, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_120, 1); +lean_inc(x_140); +if (lean_is_exclusive(x_120)) { + lean_ctor_release(x_120, 0); + lean_ctor_release(x_120, 1); + x_141 = x_120; +} else { + lean_dec_ref(x_120); + x_141 = lean_box(0); +} +if (lean_is_scalar(x_141)) { + x_142 = lean_alloc_ctor(1, 2, 0); +} else { + x_142 = x_141; +} +lean_ctor_set(x_142, 0, x_139); +lean_ctor_set(x_142, 1, x_140); +return x_142; +} +} +else +{ +lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_143 = lean_ctor_get(x_117, 0); +lean_inc(x_143); +x_144 = lean_ctor_get(x_117, 1); +lean_inc(x_144); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_145 = x_117; +} else { + lean_dec_ref(x_117); + x_145 = lean_box(0); +} +if (lean_is_scalar(x_145)) { + x_146 = lean_alloc_ctor(1, 2, 0); +} else { + x_146 = x_145; +} +lean_ctor_set(x_146, 0, x_143); +lean_ctor_set(x_146, 1, x_144); return x_146; } } +else +{ +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_dec(x_2); +x_147 = l_Lean_indentExpr(x_57); +x_148 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__6; +x_149 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_147); +x_150 = l_Lean_Elab_Term_elabLetDeclAux___closed__4; +x_151 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_151, 0, x_149); +lean_ctor_set(x_151, 1, x_150); +x_152 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_151, x_3, x_4, x_5, x_6, x_7, x_8, x_112); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_152; +} +} +} } else { -uint8_t x_152; -lean_dec(x_126); +uint8_t x_153; +lean_dec(x_57); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_152 = !lean_is_exclusive(x_128); -if (x_152 == 0) +lean_dec(x_2); +x_153 = !lean_is_exclusive(x_58); +if (x_153 == 0) { -return x_128; +return x_58; } else { -lean_object* x_153; lean_object* x_154; lean_object* x_155; -x_153 = lean_ctor_get(x_128, 0); -x_154 = lean_ctor_get(x_128, 1); +lean_object* x_154; lean_object* x_155; lean_object* x_156; +x_154 = lean_ctor_get(x_58, 0); +x_155 = lean_ctor_get(x_58, 1); +lean_inc(x_155); lean_inc(x_154); -lean_inc(x_153); -lean_dec(x_128); -x_155 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_155, 0, x_153); -lean_ctor_set(x_155, 1, x_154); -return x_155; +lean_dec(x_58); +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_156; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_156 = !lean_is_exclusive(x_125); -if (x_156 == 0) -{ -return x_125; -} -else -{ -lean_object* x_157; lean_object* x_158; lean_object* x_159; -x_157 = lean_ctor_get(x_125, 0); -x_158 = lean_ctor_get(x_125, 1); -lean_inc(x_158); -lean_inc(x_157); -lean_dec(x_125); -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; -} -} -} -else -{ -uint8_t x_160; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_160 = !lean_is_exclusive(x_122); -if (x_160 == 0) -{ -return x_122; -} -else -{ -lean_object* x_161; lean_object* x_162; lean_object* x_163; -x_161 = lean_ctor_get(x_122, 0); -x_162 = lean_ctor_get(x_122, 1); -lean_inc(x_162); -lean_inc(x_161); -lean_dec(x_122); -x_163 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_163, 0, x_161); -lean_ctor_set(x_163, 1, x_162); -return x_163; -} -} -} -else -{ -lean_object* x_164; -lean_dec(x_2); -x_164 = lean_box(0); -x_70 = x_164; -goto block_75; -} -} -case 2: -{ -lean_dec(x_76); -lean_free_object(x_66); -if (lean_obj_tag(x_2) == 2) -{ -lean_object* x_165; lean_object* x_166; -lean_dec(x_65); -x_165 = lean_ctor_get(x_2, 1); -lean_inc(x_165); -lean_dec(x_2); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_166 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_165, x_3, x_4, x_5, x_6, x_7, x_8, x_69); -if (lean_obj_tag(x_166) == 0) -{ -lean_object* x_167; lean_object* x_168; lean_object* x_169; -x_167 = lean_ctor_get(x_166, 0); -lean_inc(x_167); -x_168 = lean_ctor_get(x_166, 1); -lean_inc(x_168); -lean_dec(x_166); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_169 = l_Lean_Meta_whnf___at___private_Lean_Elab_Term_6__isTypeApp_x3f___spec__1(x_167, x_3, x_4, x_5, x_6, x_7, x_8, x_168); -if (lean_obj_tag(x_169) == 0) -{ -lean_object* x_170; lean_object* x_171; lean_object* x_172; -x_170 = lean_ctor_get(x_169, 0); -lean_inc(x_170); -x_171 = lean_ctor_get(x_169, 1); -lean_inc(x_171); -lean_dec(x_169); -lean_inc(x_170); -x_172 = l_Lean_Elab_Term_tryPostponeIfMVar(x_170, x_3, x_4, x_5, x_6, x_7, x_8, x_171); -if (lean_obj_tag(x_172) == 0) -{ -uint8_t x_173; -x_173 = !lean_is_exclusive(x_172); -if (x_173 == 0) -{ -lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_182; -x_174 = lean_ctor_get(x_172, 1); -x_175 = lean_ctor_get(x_172, 0); -lean_dec(x_175); -x_182 = l_Lean_Expr_getAppFn___main(x_170); -if (lean_obj_tag(x_182) == 4) -{ -lean_object* x_183; -lean_dec(x_170); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_183 = lean_ctor_get(x_182, 0); -lean_inc(x_183); -lean_dec(x_182); -lean_ctor_set(x_172, 0, x_183); -return x_172; -} -else -{ -lean_object* x_184; -lean_dec(x_182); -lean_free_object(x_172); -x_184 = lean_box(0); -x_176 = x_184; -goto block_181; -} -block_181: -{ -lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; -lean_dec(x_176); -x_177 = l_Lean_indentExpr(x_170); -x_178 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -x_179 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_179, 0, x_178); -lean_ctor_set(x_179, 1, x_177); -x_180 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_179, x_3, x_4, x_5, x_6, x_7, x_8, x_174); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_180; -} -} -else -{ -lean_object* x_185; lean_object* x_186; lean_object* x_192; -x_185 = lean_ctor_get(x_172, 1); -lean_inc(x_185); -lean_dec(x_172); -x_192 = l_Lean_Expr_getAppFn___main(x_170); -if (lean_obj_tag(x_192) == 4) -{ -lean_object* x_193; lean_object* x_194; -lean_dec(x_170); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_193 = lean_ctor_get(x_192, 0); -lean_inc(x_193); -lean_dec(x_192); -x_194 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_194, 0, x_193); -lean_ctor_set(x_194, 1, x_185); -return x_194; -} -else -{ -lean_object* x_195; -lean_dec(x_192); -x_195 = lean_box(0); -x_186 = x_195; -goto block_191; -} -block_191: -{ -lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; -lean_dec(x_186); -x_187 = l_Lean_indentExpr(x_170); -x_188 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -x_189 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_189, 0, x_188); -lean_ctor_set(x_189, 1, x_187); -x_190 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_189, x_3, x_4, x_5, x_6, x_7, x_8, x_185); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_190; -} -} -} -else -{ -uint8_t x_196; -lean_dec(x_170); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_196 = !lean_is_exclusive(x_172); -if (x_196 == 0) -{ -return x_172; -} -else -{ -lean_object* x_197; lean_object* x_198; lean_object* x_199; -x_197 = lean_ctor_get(x_172, 0); -x_198 = lean_ctor_get(x_172, 1); -lean_inc(x_198); -lean_inc(x_197); -lean_dec(x_172); -x_199 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_199, 0, x_197); -lean_ctor_set(x_199, 1, x_198); -return x_199; -} -} -} -else -{ -uint8_t x_200; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_200 = !lean_is_exclusive(x_169); -if (x_200 == 0) -{ -return x_169; -} -else -{ -lean_object* x_201; lean_object* x_202; lean_object* x_203; -x_201 = lean_ctor_get(x_169, 0); -x_202 = lean_ctor_get(x_169, 1); -lean_inc(x_202); -lean_inc(x_201); -lean_dec(x_169); -x_203 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_203, 0, x_201); -lean_ctor_set(x_203, 1, x_202); -return x_203; -} -} -} -else -{ -uint8_t x_204; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_204 = !lean_is_exclusive(x_166); -if (x_204 == 0) -{ -return x_166; -} -else -{ -lean_object* x_205; lean_object* x_206; lean_object* x_207; -x_205 = lean_ctor_get(x_166, 0); -x_206 = lean_ctor_get(x_166, 1); -lean_inc(x_206); -lean_inc(x_205); -lean_dec(x_166); -x_207 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_207, 0, x_205); -lean_ctor_set(x_207, 1, x_206); -return x_207; -} -} -} -else -{ -lean_object* x_208; -lean_dec(x_2); -x_208 = lean_box(0); -x_70 = x_208; -goto block_75; -} -} -case 3: -{ -lean_dec(x_76); -lean_free_object(x_66); -if (lean_obj_tag(x_2) == 2) -{ -lean_object* x_209; lean_object* x_210; -lean_dec(x_65); -x_209 = lean_ctor_get(x_2, 1); -lean_inc(x_209); -lean_dec(x_2); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_210 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_209, x_3, x_4, x_5, x_6, x_7, x_8, x_69); -if (lean_obj_tag(x_210) == 0) -{ -lean_object* x_211; lean_object* x_212; lean_object* x_213; -x_211 = lean_ctor_get(x_210, 0); -lean_inc(x_211); -x_212 = lean_ctor_get(x_210, 1); -lean_inc(x_212); -lean_dec(x_210); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_213 = l_Lean_Meta_whnf___at___private_Lean_Elab_Term_6__isTypeApp_x3f___spec__1(x_211, x_3, x_4, x_5, x_6, x_7, x_8, x_212); -if (lean_obj_tag(x_213) == 0) -{ -lean_object* x_214; lean_object* x_215; lean_object* x_216; -x_214 = lean_ctor_get(x_213, 0); -lean_inc(x_214); -x_215 = lean_ctor_get(x_213, 1); -lean_inc(x_215); -lean_dec(x_213); -lean_inc(x_214); -x_216 = l_Lean_Elab_Term_tryPostponeIfMVar(x_214, x_3, x_4, x_5, x_6, x_7, x_8, x_215); -if (lean_obj_tag(x_216) == 0) -{ -uint8_t x_217; -x_217 = !lean_is_exclusive(x_216); -if (x_217 == 0) -{ -lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_226; -x_218 = lean_ctor_get(x_216, 1); -x_219 = lean_ctor_get(x_216, 0); -lean_dec(x_219); -x_226 = l_Lean_Expr_getAppFn___main(x_214); -if (lean_obj_tag(x_226) == 4) -{ -lean_object* x_227; -lean_dec(x_214); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_227 = lean_ctor_get(x_226, 0); -lean_inc(x_227); -lean_dec(x_226); -lean_ctor_set(x_216, 0, x_227); -return x_216; -} -else -{ -lean_object* x_228; -lean_dec(x_226); -lean_free_object(x_216); -x_228 = lean_box(0); -x_220 = x_228; -goto block_225; -} -block_225: -{ -lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; -lean_dec(x_220); -x_221 = l_Lean_indentExpr(x_214); -x_222 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -x_223 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_223, 0, x_222); -lean_ctor_set(x_223, 1, x_221); -x_224 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_223, x_3, x_4, x_5, x_6, x_7, x_8, x_218); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_224; -} -} -else -{ -lean_object* x_229; lean_object* x_230; lean_object* x_236; -x_229 = lean_ctor_get(x_216, 1); -lean_inc(x_229); -lean_dec(x_216); -x_236 = l_Lean_Expr_getAppFn___main(x_214); -if (lean_obj_tag(x_236) == 4) -{ -lean_object* x_237; lean_object* x_238; -lean_dec(x_214); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_237 = lean_ctor_get(x_236, 0); -lean_inc(x_237); -lean_dec(x_236); -x_238 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_238, 0, x_237); -lean_ctor_set(x_238, 1, x_229); -return x_238; -} -else -{ -lean_object* x_239; -lean_dec(x_236); -x_239 = lean_box(0); -x_230 = x_239; -goto block_235; -} -block_235: -{ -lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; -lean_dec(x_230); -x_231 = l_Lean_indentExpr(x_214); -x_232 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -x_233 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_233, 0, x_232); -lean_ctor_set(x_233, 1, x_231); -x_234 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_233, x_3, x_4, x_5, x_6, x_7, x_8, x_229); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_234; -} -} -} -else -{ -uint8_t x_240; -lean_dec(x_214); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_240 = !lean_is_exclusive(x_216); -if (x_240 == 0) -{ -return x_216; -} -else -{ -lean_object* x_241; lean_object* x_242; lean_object* x_243; -x_241 = lean_ctor_get(x_216, 0); -x_242 = lean_ctor_get(x_216, 1); -lean_inc(x_242); -lean_inc(x_241); -lean_dec(x_216); -x_243 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_243, 0, x_241); -lean_ctor_set(x_243, 1, x_242); -return x_243; -} -} -} -else -{ -uint8_t x_244; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_244 = !lean_is_exclusive(x_213); -if (x_244 == 0) -{ -return x_213; -} -else -{ -lean_object* x_245; lean_object* x_246; lean_object* x_247; -x_245 = lean_ctor_get(x_213, 0); -x_246 = lean_ctor_get(x_213, 1); -lean_inc(x_246); -lean_inc(x_245); -lean_dec(x_213); -x_247 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_247, 0, x_245); -lean_ctor_set(x_247, 1, x_246); -return x_247; -} -} -} -else -{ -uint8_t x_248; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_248 = !lean_is_exclusive(x_210); -if (x_248 == 0) -{ -return x_210; -} -else -{ -lean_object* x_249; lean_object* x_250; lean_object* x_251; -x_249 = lean_ctor_get(x_210, 0); -x_250 = lean_ctor_get(x_210, 1); -lean_inc(x_250); -lean_inc(x_249); -lean_dec(x_210); -x_251 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_251, 0, x_249); -lean_ctor_set(x_251, 1, x_250); -return x_251; -} -} -} -else -{ -lean_object* x_252; -lean_dec(x_2); -x_252 = lean_box(0); -x_70 = x_252; -goto block_75; -} -} -case 4: -{ -lean_object* x_253; -lean_dec(x_65); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_253 = lean_ctor_get(x_76, 0); -lean_inc(x_253); -lean_dec(x_76); -lean_ctor_set(x_66, 0, x_253); -return x_66; -} -case 5: -{ -lean_dec(x_76); -lean_free_object(x_66); -if (lean_obj_tag(x_2) == 2) -{ -lean_object* x_254; lean_object* x_255; -lean_dec(x_65); -x_254 = lean_ctor_get(x_2, 1); -lean_inc(x_254); -lean_dec(x_2); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_255 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_254, x_3, x_4, x_5, x_6, x_7, x_8, x_69); -if (lean_obj_tag(x_255) == 0) -{ -lean_object* x_256; lean_object* x_257; lean_object* x_258; -x_256 = lean_ctor_get(x_255, 0); -lean_inc(x_256); -x_257 = lean_ctor_get(x_255, 1); -lean_inc(x_257); -lean_dec(x_255); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_258 = l_Lean_Meta_whnf___at___private_Lean_Elab_Term_6__isTypeApp_x3f___spec__1(x_256, x_3, x_4, x_5, x_6, x_7, x_8, x_257); -if (lean_obj_tag(x_258) == 0) -{ -lean_object* x_259; lean_object* x_260; lean_object* x_261; -x_259 = lean_ctor_get(x_258, 0); -lean_inc(x_259); -x_260 = lean_ctor_get(x_258, 1); -lean_inc(x_260); -lean_dec(x_258); -lean_inc(x_259); -x_261 = l_Lean_Elab_Term_tryPostponeIfMVar(x_259, x_3, x_4, x_5, x_6, x_7, x_8, x_260); -if (lean_obj_tag(x_261) == 0) -{ -uint8_t x_262; -x_262 = !lean_is_exclusive(x_261); -if (x_262 == 0) -{ -lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_271; -x_263 = lean_ctor_get(x_261, 1); -x_264 = lean_ctor_get(x_261, 0); -lean_dec(x_264); -x_271 = l_Lean_Expr_getAppFn___main(x_259); -if (lean_obj_tag(x_271) == 4) -{ -lean_object* x_272; -lean_dec(x_259); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_272 = lean_ctor_get(x_271, 0); -lean_inc(x_272); -lean_dec(x_271); -lean_ctor_set(x_261, 0, x_272); -return x_261; -} -else -{ -lean_object* x_273; -lean_dec(x_271); -lean_free_object(x_261); -x_273 = lean_box(0); -x_265 = x_273; -goto block_270; -} -block_270: -{ -lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; -lean_dec(x_265); -x_266 = l_Lean_indentExpr(x_259); -x_267 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -x_268 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_268, 0, x_267); -lean_ctor_set(x_268, 1, x_266); -x_269 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_268, x_3, x_4, x_5, x_6, x_7, x_8, x_263); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_269; -} -} -else -{ -lean_object* x_274; lean_object* x_275; lean_object* x_281; -x_274 = lean_ctor_get(x_261, 1); -lean_inc(x_274); -lean_dec(x_261); -x_281 = l_Lean_Expr_getAppFn___main(x_259); -if (lean_obj_tag(x_281) == 4) -{ -lean_object* x_282; lean_object* x_283; -lean_dec(x_259); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_282 = lean_ctor_get(x_281, 0); -lean_inc(x_282); -lean_dec(x_281); -x_283 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_283, 0, x_282); -lean_ctor_set(x_283, 1, x_274); -return x_283; -} -else -{ -lean_object* x_284; -lean_dec(x_281); -x_284 = lean_box(0); -x_275 = x_284; -goto block_280; -} -block_280: -{ -lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; -lean_dec(x_275); -x_276 = l_Lean_indentExpr(x_259); -x_277 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -x_278 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_278, 0, x_277); -lean_ctor_set(x_278, 1, x_276); -x_279 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_278, x_3, x_4, x_5, x_6, x_7, x_8, x_274); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_279; -} -} -} -else -{ -uint8_t x_285; -lean_dec(x_259); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_285 = !lean_is_exclusive(x_261); -if (x_285 == 0) -{ -return x_261; -} -else -{ -lean_object* x_286; lean_object* x_287; lean_object* x_288; -x_286 = lean_ctor_get(x_261, 0); -x_287 = lean_ctor_get(x_261, 1); -lean_inc(x_287); -lean_inc(x_286); -lean_dec(x_261); -x_288 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_288, 0, x_286); -lean_ctor_set(x_288, 1, x_287); -return x_288; -} -} -} -else -{ -uint8_t x_289; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_289 = !lean_is_exclusive(x_258); -if (x_289 == 0) -{ -return x_258; -} -else -{ -lean_object* x_290; lean_object* x_291; lean_object* x_292; -x_290 = lean_ctor_get(x_258, 0); -x_291 = lean_ctor_get(x_258, 1); -lean_inc(x_291); -lean_inc(x_290); -lean_dec(x_258); -x_292 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_292, 0, x_290); -lean_ctor_set(x_292, 1, x_291); -return x_292; -} -} -} -else -{ -uint8_t x_293; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_293 = !lean_is_exclusive(x_255); -if (x_293 == 0) -{ -return x_255; -} -else -{ -lean_object* x_294; lean_object* x_295; lean_object* x_296; -x_294 = lean_ctor_get(x_255, 0); -x_295 = lean_ctor_get(x_255, 1); -lean_inc(x_295); -lean_inc(x_294); -lean_dec(x_255); -x_296 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_296, 0, x_294); -lean_ctor_set(x_296, 1, x_295); -return x_296; -} -} -} -else -{ -lean_object* x_297; -lean_dec(x_2); -x_297 = lean_box(0); -x_70 = x_297; -goto block_75; -} -} -case 6: -{ -lean_dec(x_76); -lean_free_object(x_66); -if (lean_obj_tag(x_2) == 2) -{ -lean_object* x_298; lean_object* x_299; -lean_dec(x_65); -x_298 = lean_ctor_get(x_2, 1); -lean_inc(x_298); -lean_dec(x_2); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_299 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_298, x_3, x_4, x_5, x_6, x_7, x_8, x_69); -if (lean_obj_tag(x_299) == 0) -{ -lean_object* x_300; lean_object* x_301; lean_object* x_302; -x_300 = lean_ctor_get(x_299, 0); -lean_inc(x_300); -x_301 = lean_ctor_get(x_299, 1); -lean_inc(x_301); -lean_dec(x_299); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_302 = l_Lean_Meta_whnf___at___private_Lean_Elab_Term_6__isTypeApp_x3f___spec__1(x_300, x_3, x_4, x_5, x_6, x_7, x_8, x_301); -if (lean_obj_tag(x_302) == 0) -{ -lean_object* x_303; lean_object* x_304; lean_object* x_305; -x_303 = lean_ctor_get(x_302, 0); -lean_inc(x_303); -x_304 = lean_ctor_get(x_302, 1); -lean_inc(x_304); -lean_dec(x_302); -lean_inc(x_303); -x_305 = l_Lean_Elab_Term_tryPostponeIfMVar(x_303, x_3, x_4, x_5, x_6, x_7, x_8, x_304); -if (lean_obj_tag(x_305) == 0) -{ -uint8_t x_306; -x_306 = !lean_is_exclusive(x_305); -if (x_306 == 0) -{ -lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_315; -x_307 = lean_ctor_get(x_305, 1); -x_308 = lean_ctor_get(x_305, 0); -lean_dec(x_308); -x_315 = l_Lean_Expr_getAppFn___main(x_303); -if (lean_obj_tag(x_315) == 4) -{ -lean_object* x_316; -lean_dec(x_303); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_316 = lean_ctor_get(x_315, 0); -lean_inc(x_316); -lean_dec(x_315); -lean_ctor_set(x_305, 0, x_316); -return x_305; -} -else -{ -lean_object* x_317; -lean_dec(x_315); -lean_free_object(x_305); -x_317 = lean_box(0); -x_309 = x_317; -goto block_314; -} -block_314: -{ -lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; -lean_dec(x_309); -x_310 = l_Lean_indentExpr(x_303); -x_311 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -x_312 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_312, 0, x_311); -lean_ctor_set(x_312, 1, x_310); -x_313 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_312, x_3, x_4, x_5, x_6, x_7, x_8, x_307); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_313; -} -} -else -{ -lean_object* x_318; lean_object* x_319; lean_object* x_325; -x_318 = lean_ctor_get(x_305, 1); -lean_inc(x_318); -lean_dec(x_305); -x_325 = l_Lean_Expr_getAppFn___main(x_303); -if (lean_obj_tag(x_325) == 4) -{ -lean_object* x_326; lean_object* x_327; -lean_dec(x_303); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_326 = lean_ctor_get(x_325, 0); -lean_inc(x_326); -lean_dec(x_325); -x_327 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_327, 0, x_326); -lean_ctor_set(x_327, 1, x_318); -return x_327; -} -else -{ -lean_object* x_328; -lean_dec(x_325); -x_328 = lean_box(0); -x_319 = x_328; -goto block_324; -} -block_324: -{ -lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; -lean_dec(x_319); -x_320 = l_Lean_indentExpr(x_303); -x_321 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -x_322 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_322, 0, x_321); -lean_ctor_set(x_322, 1, x_320); -x_323 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_322, x_3, x_4, x_5, x_6, x_7, x_8, x_318); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_323; -} -} -} -else -{ -uint8_t x_329; -lean_dec(x_303); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_329 = !lean_is_exclusive(x_305); -if (x_329 == 0) -{ -return x_305; -} -else -{ -lean_object* x_330; lean_object* x_331; lean_object* x_332; -x_330 = lean_ctor_get(x_305, 0); -x_331 = lean_ctor_get(x_305, 1); -lean_inc(x_331); -lean_inc(x_330); -lean_dec(x_305); -x_332 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_332, 0, x_330); -lean_ctor_set(x_332, 1, x_331); -return x_332; -} -} -} -else -{ -uint8_t x_333; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_333 = !lean_is_exclusive(x_302); -if (x_333 == 0) -{ -return x_302; -} -else -{ -lean_object* x_334; lean_object* x_335; lean_object* x_336; -x_334 = lean_ctor_get(x_302, 0); -x_335 = lean_ctor_get(x_302, 1); -lean_inc(x_335); -lean_inc(x_334); -lean_dec(x_302); -x_336 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_336, 0, x_334); -lean_ctor_set(x_336, 1, x_335); -return x_336; -} -} -} -else -{ -uint8_t x_337; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_337 = !lean_is_exclusive(x_299); -if (x_337 == 0) -{ -return x_299; -} -else -{ -lean_object* x_338; lean_object* x_339; lean_object* x_340; -x_338 = lean_ctor_get(x_299, 0); -x_339 = lean_ctor_get(x_299, 1); -lean_inc(x_339); -lean_inc(x_338); -lean_dec(x_299); -x_340 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_340, 0, x_338); -lean_ctor_set(x_340, 1, x_339); -return x_340; -} -} -} -else -{ -lean_object* x_341; -lean_dec(x_2); -x_341 = lean_box(0); -x_70 = x_341; -goto block_75; -} -} -case 7: -{ -lean_dec(x_76); -lean_free_object(x_66); -if (lean_obj_tag(x_2) == 2) -{ -lean_object* x_342; lean_object* x_343; -lean_dec(x_65); -x_342 = lean_ctor_get(x_2, 1); -lean_inc(x_342); -lean_dec(x_2); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_343 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_342, x_3, x_4, x_5, x_6, x_7, x_8, x_69); -if (lean_obj_tag(x_343) == 0) -{ -lean_object* x_344; lean_object* x_345; lean_object* x_346; -x_344 = lean_ctor_get(x_343, 0); -lean_inc(x_344); -x_345 = lean_ctor_get(x_343, 1); -lean_inc(x_345); -lean_dec(x_343); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_346 = l_Lean_Meta_whnf___at___private_Lean_Elab_Term_6__isTypeApp_x3f___spec__1(x_344, x_3, x_4, x_5, x_6, x_7, x_8, x_345); -if (lean_obj_tag(x_346) == 0) -{ -lean_object* x_347; lean_object* x_348; lean_object* x_349; -x_347 = lean_ctor_get(x_346, 0); -lean_inc(x_347); -x_348 = lean_ctor_get(x_346, 1); -lean_inc(x_348); -lean_dec(x_346); -lean_inc(x_347); -x_349 = l_Lean_Elab_Term_tryPostponeIfMVar(x_347, x_3, x_4, x_5, x_6, x_7, x_8, x_348); -if (lean_obj_tag(x_349) == 0) -{ -uint8_t x_350; -x_350 = !lean_is_exclusive(x_349); -if (x_350 == 0) -{ -lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_359; -x_351 = lean_ctor_get(x_349, 1); -x_352 = lean_ctor_get(x_349, 0); -lean_dec(x_352); -x_359 = l_Lean_Expr_getAppFn___main(x_347); -if (lean_obj_tag(x_359) == 4) -{ -lean_object* x_360; -lean_dec(x_347); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_360 = lean_ctor_get(x_359, 0); -lean_inc(x_360); -lean_dec(x_359); -lean_ctor_set(x_349, 0, x_360); -return x_349; -} -else -{ -lean_object* x_361; -lean_dec(x_359); -lean_free_object(x_349); -x_361 = lean_box(0); -x_353 = x_361; -goto block_358; -} -block_358: -{ -lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; -lean_dec(x_353); -x_354 = l_Lean_indentExpr(x_347); -x_355 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -x_356 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_356, 0, x_355); -lean_ctor_set(x_356, 1, x_354); -x_357 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_356, x_3, x_4, x_5, x_6, x_7, x_8, x_351); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_357; -} -} -else -{ -lean_object* x_362; lean_object* x_363; lean_object* x_369; -x_362 = lean_ctor_get(x_349, 1); -lean_inc(x_362); -lean_dec(x_349); -x_369 = l_Lean_Expr_getAppFn___main(x_347); -if (lean_obj_tag(x_369) == 4) -{ -lean_object* x_370; lean_object* x_371; -lean_dec(x_347); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_370 = lean_ctor_get(x_369, 0); -lean_inc(x_370); -lean_dec(x_369); -x_371 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_371, 0, x_370); -lean_ctor_set(x_371, 1, x_362); -return x_371; -} -else -{ -lean_object* x_372; -lean_dec(x_369); -x_372 = lean_box(0); -x_363 = x_372; -goto block_368; -} -block_368: -{ -lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; -lean_dec(x_363); -x_364 = l_Lean_indentExpr(x_347); -x_365 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -x_366 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_366, 0, x_365); -lean_ctor_set(x_366, 1, x_364); -x_367 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_366, x_3, x_4, x_5, x_6, x_7, x_8, x_362); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_367; -} -} -} -else -{ -uint8_t x_373; -lean_dec(x_347); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_373 = !lean_is_exclusive(x_349); -if (x_373 == 0) -{ -return x_349; -} -else -{ -lean_object* x_374; lean_object* x_375; lean_object* x_376; -x_374 = lean_ctor_get(x_349, 0); -x_375 = lean_ctor_get(x_349, 1); -lean_inc(x_375); -lean_inc(x_374); -lean_dec(x_349); -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 -{ -uint8_t x_377; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_377 = !lean_is_exclusive(x_346); -if (x_377 == 0) -{ -return x_346; -} -else -{ -lean_object* x_378; lean_object* x_379; lean_object* x_380; -x_378 = lean_ctor_get(x_346, 0); -x_379 = lean_ctor_get(x_346, 1); -lean_inc(x_379); -lean_inc(x_378); -lean_dec(x_346); -x_380 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_380, 0, x_378); -lean_ctor_set(x_380, 1, x_379); -return x_380; -} -} -} -else -{ -uint8_t x_381; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_381 = !lean_is_exclusive(x_343); -if (x_381 == 0) -{ -return x_343; -} -else -{ -lean_object* x_382; lean_object* x_383; lean_object* x_384; -x_382 = lean_ctor_get(x_343, 0); -x_383 = lean_ctor_get(x_343, 1); -lean_inc(x_383); -lean_inc(x_382); -lean_dec(x_343); -x_384 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_384, 0, x_382); -lean_ctor_set(x_384, 1, x_383); -return x_384; -} -} -} -else -{ -lean_object* x_385; -lean_dec(x_2); -x_385 = lean_box(0); -x_70 = x_385; -goto block_75; -} -} -case 8: -{ -lean_dec(x_76); -lean_free_object(x_66); -if (lean_obj_tag(x_2) == 2) -{ -lean_object* x_386; lean_object* x_387; -lean_dec(x_65); -x_386 = lean_ctor_get(x_2, 1); -lean_inc(x_386); -lean_dec(x_2); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_387 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_386, x_3, x_4, x_5, x_6, x_7, x_8, x_69); -if (lean_obj_tag(x_387) == 0) -{ -lean_object* x_388; lean_object* x_389; lean_object* x_390; -x_388 = lean_ctor_get(x_387, 0); -lean_inc(x_388); -x_389 = lean_ctor_get(x_387, 1); -lean_inc(x_389); -lean_dec(x_387); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_390 = l_Lean_Meta_whnf___at___private_Lean_Elab_Term_6__isTypeApp_x3f___spec__1(x_388, x_3, x_4, x_5, x_6, x_7, x_8, x_389); -if (lean_obj_tag(x_390) == 0) -{ -lean_object* x_391; lean_object* x_392; lean_object* x_393; -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_391); -x_393 = l_Lean_Elab_Term_tryPostponeIfMVar(x_391, x_3, x_4, x_5, x_6, x_7, x_8, x_392); -if (lean_obj_tag(x_393) == 0) -{ -uint8_t x_394; -x_394 = !lean_is_exclusive(x_393); -if (x_394 == 0) -{ -lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_403; -x_395 = lean_ctor_get(x_393, 1); -x_396 = lean_ctor_get(x_393, 0); -lean_dec(x_396); -x_403 = l_Lean_Expr_getAppFn___main(x_391); -if (lean_obj_tag(x_403) == 4) -{ -lean_object* x_404; -lean_dec(x_391); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_404 = lean_ctor_get(x_403, 0); -lean_inc(x_404); -lean_dec(x_403); -lean_ctor_set(x_393, 0, x_404); -return x_393; -} -else -{ -lean_object* x_405; -lean_dec(x_403); -lean_free_object(x_393); -x_405 = lean_box(0); -x_397 = x_405; -goto block_402; -} -block_402: -{ -lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; -lean_dec(x_397); -x_398 = l_Lean_indentExpr(x_391); -x_399 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -x_400 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_400, 0, x_399); -lean_ctor_set(x_400, 1, x_398); -x_401 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_400, x_3, x_4, x_5, x_6, x_7, x_8, x_395); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_401; -} -} -else -{ -lean_object* x_406; lean_object* x_407; lean_object* x_413; -x_406 = lean_ctor_get(x_393, 1); -lean_inc(x_406); -lean_dec(x_393); -x_413 = l_Lean_Expr_getAppFn___main(x_391); -if (lean_obj_tag(x_413) == 4) -{ -lean_object* x_414; lean_object* x_415; -lean_dec(x_391); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_414 = lean_ctor_get(x_413, 0); -lean_inc(x_414); -lean_dec(x_413); -x_415 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_415, 0, x_414); -lean_ctor_set(x_415, 1, x_406); -return x_415; -} -else -{ -lean_object* x_416; -lean_dec(x_413); -x_416 = lean_box(0); -x_407 = x_416; -goto block_412; -} -block_412: -{ -lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; -lean_dec(x_407); -x_408 = l_Lean_indentExpr(x_391); -x_409 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -x_410 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_410, 0, x_409); -lean_ctor_set(x_410, 1, x_408); -x_411 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_410, x_3, x_4, x_5, x_6, x_7, x_8, x_406); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_411; -} -} -} -else -{ -uint8_t x_417; -lean_dec(x_391); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_417 = !lean_is_exclusive(x_393); -if (x_417 == 0) -{ -return x_393; -} -else -{ -lean_object* x_418; lean_object* x_419; lean_object* x_420; -x_418 = lean_ctor_get(x_393, 0); -x_419 = lean_ctor_get(x_393, 1); -lean_inc(x_419); -lean_inc(x_418); -lean_dec(x_393); -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; -} -} -} -else -{ -uint8_t x_421; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_421 = !lean_is_exclusive(x_390); -if (x_421 == 0) -{ -return x_390; -} -else -{ -lean_object* x_422; lean_object* x_423; lean_object* x_424; -x_422 = lean_ctor_get(x_390, 0); -x_423 = lean_ctor_get(x_390, 1); -lean_inc(x_423); -lean_inc(x_422); -lean_dec(x_390); -x_424 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_424, 0, x_422); -lean_ctor_set(x_424, 1, x_423); -return x_424; -} -} -} -else -{ -uint8_t x_425; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_425 = !lean_is_exclusive(x_387); -if (x_425 == 0) -{ -return x_387; -} -else -{ -lean_object* x_426; lean_object* x_427; lean_object* x_428; -x_426 = lean_ctor_get(x_387, 0); -x_427 = lean_ctor_get(x_387, 1); -lean_inc(x_427); -lean_inc(x_426); -lean_dec(x_387); -x_428 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_428, 0, x_426); -lean_ctor_set(x_428, 1, x_427); -return x_428; -} -} -} -else -{ -lean_object* x_429; -lean_dec(x_2); -x_429 = lean_box(0); -x_70 = x_429; -goto block_75; -} -} -case 9: -{ -lean_dec(x_76); -lean_free_object(x_66); -if (lean_obj_tag(x_2) == 2) -{ -lean_object* x_430; lean_object* x_431; -lean_dec(x_65); -x_430 = lean_ctor_get(x_2, 1); -lean_inc(x_430); -lean_dec(x_2); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_431 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_430, x_3, x_4, x_5, x_6, x_7, x_8, x_69); -if (lean_obj_tag(x_431) == 0) -{ -lean_object* x_432; lean_object* x_433; lean_object* x_434; -x_432 = lean_ctor_get(x_431, 0); -lean_inc(x_432); -x_433 = lean_ctor_get(x_431, 1); -lean_inc(x_433); -lean_dec(x_431); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_434 = l_Lean_Meta_whnf___at___private_Lean_Elab_Term_6__isTypeApp_x3f___spec__1(x_432, x_3, x_4, x_5, x_6, x_7, x_8, x_433); -if (lean_obj_tag(x_434) == 0) -{ -lean_object* x_435; lean_object* x_436; lean_object* x_437; -x_435 = lean_ctor_get(x_434, 0); -lean_inc(x_435); -x_436 = lean_ctor_get(x_434, 1); -lean_inc(x_436); -lean_dec(x_434); -lean_inc(x_435); -x_437 = l_Lean_Elab_Term_tryPostponeIfMVar(x_435, x_3, x_4, x_5, x_6, x_7, x_8, x_436); -if (lean_obj_tag(x_437) == 0) -{ -uint8_t x_438; -x_438 = !lean_is_exclusive(x_437); -if (x_438 == 0) -{ -lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_447; -x_439 = lean_ctor_get(x_437, 1); -x_440 = lean_ctor_get(x_437, 0); -lean_dec(x_440); -x_447 = l_Lean_Expr_getAppFn___main(x_435); -if (lean_obj_tag(x_447) == 4) -{ -lean_object* x_448; -lean_dec(x_435); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_448 = lean_ctor_get(x_447, 0); -lean_inc(x_448); -lean_dec(x_447); -lean_ctor_set(x_437, 0, x_448); -return x_437; -} -else -{ -lean_object* x_449; -lean_dec(x_447); -lean_free_object(x_437); -x_449 = lean_box(0); -x_441 = x_449; -goto block_446; -} -block_446: -{ -lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; -lean_dec(x_441); -x_442 = l_Lean_indentExpr(x_435); -x_443 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -x_444 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_444, 0, x_443); -lean_ctor_set(x_444, 1, x_442); -x_445 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_444, x_3, x_4, x_5, x_6, x_7, x_8, x_439); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_445; -} -} -else -{ -lean_object* x_450; lean_object* x_451; lean_object* x_457; -x_450 = lean_ctor_get(x_437, 1); -lean_inc(x_450); -lean_dec(x_437); -x_457 = l_Lean_Expr_getAppFn___main(x_435); -if (lean_obj_tag(x_457) == 4) -{ -lean_object* x_458; lean_object* x_459; -lean_dec(x_435); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_458 = lean_ctor_get(x_457, 0); -lean_inc(x_458); -lean_dec(x_457); -x_459 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_459, 0, x_458); -lean_ctor_set(x_459, 1, x_450); -return x_459; -} -else -{ -lean_object* x_460; -lean_dec(x_457); -x_460 = lean_box(0); -x_451 = x_460; -goto block_456; -} -block_456: -{ -lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; -lean_dec(x_451); -x_452 = l_Lean_indentExpr(x_435); -x_453 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -x_454 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_454, 0, x_453); -lean_ctor_set(x_454, 1, x_452); -x_455 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_454, x_3, x_4, x_5, x_6, x_7, x_8, x_450); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_455; -} -} -} -else -{ -uint8_t x_461; -lean_dec(x_435); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_461 = !lean_is_exclusive(x_437); -if (x_461 == 0) -{ -return x_437; -} -else -{ -lean_object* x_462; lean_object* x_463; lean_object* x_464; -x_462 = lean_ctor_get(x_437, 0); -x_463 = lean_ctor_get(x_437, 1); -lean_inc(x_463); -lean_inc(x_462); -lean_dec(x_437); -x_464 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_464, 0, x_462); -lean_ctor_set(x_464, 1, x_463); -return x_464; -} -} -} -else -{ -uint8_t x_465; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_465 = !lean_is_exclusive(x_434); -if (x_465 == 0) -{ -return x_434; -} -else -{ -lean_object* x_466; lean_object* x_467; lean_object* x_468; -x_466 = lean_ctor_get(x_434, 0); -x_467 = lean_ctor_get(x_434, 1); -lean_inc(x_467); -lean_inc(x_466); -lean_dec(x_434); -x_468 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_468, 0, x_466); -lean_ctor_set(x_468, 1, x_467); -return x_468; -} -} -} -else -{ -uint8_t x_469; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_469 = !lean_is_exclusive(x_431); -if (x_469 == 0) -{ -return x_431; -} -else -{ -lean_object* x_470; lean_object* x_471; lean_object* x_472; -x_470 = lean_ctor_get(x_431, 0); -x_471 = lean_ctor_get(x_431, 1); -lean_inc(x_471); -lean_inc(x_470); -lean_dec(x_431); -x_472 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_472, 0, x_470); -lean_ctor_set(x_472, 1, x_471); -return x_472; -} -} -} -else -{ -lean_object* x_473; -lean_dec(x_2); -x_473 = lean_box(0); -x_70 = x_473; -goto block_75; -} -} -case 10: -{ -lean_dec(x_76); -lean_free_object(x_66); -if (lean_obj_tag(x_2) == 2) -{ -lean_object* x_474; lean_object* x_475; -lean_dec(x_65); -x_474 = lean_ctor_get(x_2, 1); -lean_inc(x_474); -lean_dec(x_2); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_475 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_474, x_3, x_4, x_5, x_6, x_7, x_8, x_69); -if (lean_obj_tag(x_475) == 0) -{ -lean_object* x_476; lean_object* x_477; lean_object* x_478; -x_476 = lean_ctor_get(x_475, 0); -lean_inc(x_476); -x_477 = lean_ctor_get(x_475, 1); -lean_inc(x_477); -lean_dec(x_475); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_478 = l_Lean_Meta_whnf___at___private_Lean_Elab_Term_6__isTypeApp_x3f___spec__1(x_476, x_3, x_4, x_5, x_6, x_7, x_8, x_477); -if (lean_obj_tag(x_478) == 0) -{ -lean_object* x_479; lean_object* x_480; lean_object* x_481; -x_479 = lean_ctor_get(x_478, 0); -lean_inc(x_479); -x_480 = lean_ctor_get(x_478, 1); -lean_inc(x_480); -lean_dec(x_478); -lean_inc(x_479); -x_481 = l_Lean_Elab_Term_tryPostponeIfMVar(x_479, x_3, x_4, x_5, x_6, x_7, x_8, x_480); -if (lean_obj_tag(x_481) == 0) -{ -uint8_t x_482; -x_482 = !lean_is_exclusive(x_481); -if (x_482 == 0) -{ -lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_491; -x_483 = lean_ctor_get(x_481, 1); -x_484 = lean_ctor_get(x_481, 0); -lean_dec(x_484); -x_491 = l_Lean_Expr_getAppFn___main(x_479); -if (lean_obj_tag(x_491) == 4) -{ -lean_object* x_492; -lean_dec(x_479); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_492 = lean_ctor_get(x_491, 0); -lean_inc(x_492); -lean_dec(x_491); -lean_ctor_set(x_481, 0, x_492); -return x_481; -} -else -{ -lean_object* x_493; -lean_dec(x_491); -lean_free_object(x_481); -x_493 = lean_box(0); -x_485 = x_493; -goto block_490; -} -block_490: -{ -lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; -lean_dec(x_485); -x_486 = l_Lean_indentExpr(x_479); -x_487 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -x_488 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_488, 0, x_487); -lean_ctor_set(x_488, 1, x_486); -x_489 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_488, x_3, x_4, x_5, x_6, x_7, x_8, x_483); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_489; -} -} -else -{ -lean_object* x_494; lean_object* x_495; lean_object* x_501; -x_494 = lean_ctor_get(x_481, 1); -lean_inc(x_494); -lean_dec(x_481); -x_501 = l_Lean_Expr_getAppFn___main(x_479); -if (lean_obj_tag(x_501) == 4) -{ -lean_object* x_502; lean_object* x_503; -lean_dec(x_479); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_502 = lean_ctor_get(x_501, 0); -lean_inc(x_502); -lean_dec(x_501); -x_503 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_503, 0, x_502); -lean_ctor_set(x_503, 1, x_494); -return x_503; -} -else -{ -lean_object* x_504; -lean_dec(x_501); -x_504 = lean_box(0); -x_495 = x_504; -goto block_500; -} -block_500: -{ -lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; -lean_dec(x_495); -x_496 = l_Lean_indentExpr(x_479); -x_497 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -x_498 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_498, 0, x_497); -lean_ctor_set(x_498, 1, x_496); -x_499 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_498, x_3, x_4, x_5, x_6, x_7, x_8, x_494); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_499; -} -} -} -else -{ -uint8_t x_505; -lean_dec(x_479); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_505 = !lean_is_exclusive(x_481); -if (x_505 == 0) -{ -return x_481; -} -else -{ -lean_object* x_506; lean_object* x_507; lean_object* x_508; -x_506 = lean_ctor_get(x_481, 0); -x_507 = lean_ctor_get(x_481, 1); -lean_inc(x_507); -lean_inc(x_506); -lean_dec(x_481); -x_508 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_508, 0, x_506); -lean_ctor_set(x_508, 1, x_507); -return x_508; -} -} -} -else -{ -uint8_t x_509; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_509 = !lean_is_exclusive(x_478); -if (x_509 == 0) -{ -return x_478; -} -else -{ -lean_object* x_510; lean_object* x_511; lean_object* x_512; -x_510 = lean_ctor_get(x_478, 0); -x_511 = lean_ctor_get(x_478, 1); -lean_inc(x_511); -lean_inc(x_510); -lean_dec(x_478); -x_512 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_512, 0, x_510); -lean_ctor_set(x_512, 1, x_511); -return x_512; -} -} -} -else -{ -uint8_t x_513; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_513 = !lean_is_exclusive(x_475); -if (x_513 == 0) -{ -return x_475; -} -else -{ -lean_object* x_514; lean_object* x_515; lean_object* x_516; -x_514 = lean_ctor_get(x_475, 0); -x_515 = lean_ctor_get(x_475, 1); -lean_inc(x_515); -lean_inc(x_514); -lean_dec(x_475); -x_516 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_516, 0, x_514); -lean_ctor_set(x_516, 1, x_515); -return x_516; -} -} -} -else -{ -lean_object* x_517; -lean_dec(x_2); -x_517 = lean_box(0); -x_70 = x_517; -goto block_75; -} -} -case 11: -{ -lean_dec(x_76); -lean_free_object(x_66); -if (lean_obj_tag(x_2) == 2) -{ -lean_object* x_518; lean_object* x_519; -lean_dec(x_65); -x_518 = lean_ctor_get(x_2, 1); -lean_inc(x_518); -lean_dec(x_2); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_519 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_518, x_3, x_4, x_5, x_6, x_7, x_8, x_69); -if (lean_obj_tag(x_519) == 0) -{ -lean_object* x_520; lean_object* x_521; lean_object* x_522; -x_520 = lean_ctor_get(x_519, 0); -lean_inc(x_520); -x_521 = lean_ctor_get(x_519, 1); -lean_inc(x_521); -lean_dec(x_519); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_522 = l_Lean_Meta_whnf___at___private_Lean_Elab_Term_6__isTypeApp_x3f___spec__1(x_520, x_3, x_4, x_5, x_6, x_7, x_8, x_521); -if (lean_obj_tag(x_522) == 0) -{ -lean_object* x_523; lean_object* x_524; lean_object* x_525; -x_523 = lean_ctor_get(x_522, 0); -lean_inc(x_523); -x_524 = lean_ctor_get(x_522, 1); -lean_inc(x_524); -lean_dec(x_522); -lean_inc(x_523); -x_525 = l_Lean_Elab_Term_tryPostponeIfMVar(x_523, x_3, x_4, x_5, x_6, x_7, x_8, x_524); -if (lean_obj_tag(x_525) == 0) -{ -uint8_t x_526; -x_526 = !lean_is_exclusive(x_525); -if (x_526 == 0) -{ -lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_535; -x_527 = lean_ctor_get(x_525, 1); -x_528 = lean_ctor_get(x_525, 0); -lean_dec(x_528); -x_535 = l_Lean_Expr_getAppFn___main(x_523); -if (lean_obj_tag(x_535) == 4) -{ -lean_object* x_536; -lean_dec(x_523); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_536 = lean_ctor_get(x_535, 0); -lean_inc(x_536); -lean_dec(x_535); -lean_ctor_set(x_525, 0, x_536); -return x_525; -} -else -{ -lean_object* x_537; -lean_dec(x_535); -lean_free_object(x_525); -x_537 = lean_box(0); -x_529 = x_537; -goto block_534; -} -block_534: -{ -lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; -lean_dec(x_529); -x_530 = l_Lean_indentExpr(x_523); -x_531 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -x_532 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_532, 0, x_531); -lean_ctor_set(x_532, 1, x_530); -x_533 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_532, x_3, x_4, x_5, x_6, x_7, x_8, x_527); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_533; -} -} -else -{ -lean_object* x_538; lean_object* x_539; lean_object* x_545; -x_538 = lean_ctor_get(x_525, 1); -lean_inc(x_538); -lean_dec(x_525); -x_545 = l_Lean_Expr_getAppFn___main(x_523); -if (lean_obj_tag(x_545) == 4) -{ -lean_object* x_546; lean_object* x_547; -lean_dec(x_523); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_546 = lean_ctor_get(x_545, 0); -lean_inc(x_546); -lean_dec(x_545); -x_547 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_547, 0, x_546); -lean_ctor_set(x_547, 1, x_538); -return x_547; -} -else -{ -lean_object* x_548; -lean_dec(x_545); -x_548 = lean_box(0); -x_539 = x_548; -goto block_544; -} -block_544: -{ -lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; -lean_dec(x_539); -x_540 = l_Lean_indentExpr(x_523); -x_541 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -x_542 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_542, 0, x_541); -lean_ctor_set(x_542, 1, x_540); -x_543 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_542, x_3, x_4, x_5, x_6, x_7, x_8, x_538); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_543; -} -} -} -else -{ -uint8_t x_549; -lean_dec(x_523); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_549 = !lean_is_exclusive(x_525); -if (x_549 == 0) -{ -return x_525; -} -else -{ -lean_object* x_550; lean_object* x_551; lean_object* x_552; -x_550 = lean_ctor_get(x_525, 0); -x_551 = lean_ctor_get(x_525, 1); -lean_inc(x_551); -lean_inc(x_550); -lean_dec(x_525); -x_552 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_552, 0, x_550); -lean_ctor_set(x_552, 1, x_551); -return x_552; -} -} -} -else -{ -uint8_t x_553; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_553 = !lean_is_exclusive(x_522); -if (x_553 == 0) -{ -return x_522; -} -else -{ -lean_object* x_554; lean_object* x_555; lean_object* x_556; -x_554 = lean_ctor_get(x_522, 0); -x_555 = lean_ctor_get(x_522, 1); -lean_inc(x_555); -lean_inc(x_554); -lean_dec(x_522); -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 -{ -uint8_t x_557; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_557 = !lean_is_exclusive(x_519); -if (x_557 == 0) -{ -return x_519; -} -else -{ -lean_object* x_558; lean_object* x_559; lean_object* x_560; -x_558 = lean_ctor_get(x_519, 0); -x_559 = lean_ctor_get(x_519, 1); -lean_inc(x_559); -lean_inc(x_558); -lean_dec(x_519); -x_560 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_560, 0, x_558); -lean_ctor_set(x_560, 1, x_559); -return x_560; -} -} -} -else -{ -lean_object* x_561; -lean_dec(x_2); -x_561 = lean_box(0); -x_70 = x_561; -goto block_75; -} -} -default: -{ -lean_dec(x_76); -lean_free_object(x_66); -if (lean_obj_tag(x_2) == 2) -{ -lean_object* x_562; lean_object* x_563; -lean_dec(x_65); -x_562 = lean_ctor_get(x_2, 1); -lean_inc(x_562); -lean_dec(x_2); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_563 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_562, x_3, x_4, x_5, x_6, x_7, x_8, x_69); -if (lean_obj_tag(x_563) == 0) -{ -lean_object* x_564; lean_object* x_565; lean_object* x_566; -x_564 = lean_ctor_get(x_563, 0); -lean_inc(x_564); -x_565 = lean_ctor_get(x_563, 1); -lean_inc(x_565); -lean_dec(x_563); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_566 = l_Lean_Meta_whnf___at___private_Lean_Elab_Term_6__isTypeApp_x3f___spec__1(x_564, x_3, x_4, x_5, x_6, x_7, x_8, x_565); -if (lean_obj_tag(x_566) == 0) -{ -lean_object* x_567; lean_object* x_568; lean_object* x_569; -x_567 = lean_ctor_get(x_566, 0); -lean_inc(x_567); -x_568 = lean_ctor_get(x_566, 1); -lean_inc(x_568); -lean_dec(x_566); -lean_inc(x_567); -x_569 = l_Lean_Elab_Term_tryPostponeIfMVar(x_567, x_3, x_4, x_5, x_6, x_7, x_8, x_568); -if (lean_obj_tag(x_569) == 0) -{ -uint8_t x_570; -x_570 = !lean_is_exclusive(x_569); -if (x_570 == 0) -{ -lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_579; -x_571 = lean_ctor_get(x_569, 1); -x_572 = lean_ctor_get(x_569, 0); -lean_dec(x_572); -x_579 = l_Lean_Expr_getAppFn___main(x_567); -if (lean_obj_tag(x_579) == 4) -{ -lean_object* x_580; -lean_dec(x_567); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_580 = lean_ctor_get(x_579, 0); -lean_inc(x_580); -lean_dec(x_579); -lean_ctor_set(x_569, 0, x_580); -return x_569; -} -else -{ -lean_object* x_581; -lean_dec(x_579); -lean_free_object(x_569); -x_581 = lean_box(0); -x_573 = x_581; -goto block_578; -} -block_578: -{ -lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; -lean_dec(x_573); -x_574 = l_Lean_indentExpr(x_567); -x_575 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -x_576 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_576, 0, x_575); -lean_ctor_set(x_576, 1, x_574); -x_577 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_576, x_3, x_4, x_5, x_6, x_7, x_8, x_571); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_577; -} -} -else -{ -lean_object* x_582; lean_object* x_583; lean_object* x_589; -x_582 = lean_ctor_get(x_569, 1); -lean_inc(x_582); -lean_dec(x_569); -x_589 = l_Lean_Expr_getAppFn___main(x_567); -if (lean_obj_tag(x_589) == 4) -{ -lean_object* x_590; lean_object* x_591; -lean_dec(x_567); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_590 = lean_ctor_get(x_589, 0); -lean_inc(x_590); -lean_dec(x_589); -x_591 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_591, 0, x_590); -lean_ctor_set(x_591, 1, x_582); -return x_591; -} -else -{ -lean_object* x_592; -lean_dec(x_589); -x_592 = lean_box(0); -x_583 = x_592; -goto block_588; -} -block_588: -{ -lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; -lean_dec(x_583); -x_584 = l_Lean_indentExpr(x_567); -x_585 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -x_586 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_586, 0, x_585); -lean_ctor_set(x_586, 1, x_584); -x_587 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_586, x_3, x_4, x_5, x_6, x_7, x_8, x_582); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_587; -} -} -} -else -{ -uint8_t x_593; -lean_dec(x_567); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_593 = !lean_is_exclusive(x_569); -if (x_593 == 0) -{ -return x_569; -} -else -{ -lean_object* x_594; lean_object* x_595; lean_object* x_596; -x_594 = lean_ctor_get(x_569, 0); -x_595 = lean_ctor_get(x_569, 1); -lean_inc(x_595); -lean_inc(x_594); -lean_dec(x_569); -x_596 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_596, 0, x_594); -lean_ctor_set(x_596, 1, x_595); -return x_596; -} -} -} -else -{ -uint8_t x_597; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_597 = !lean_is_exclusive(x_566); -if (x_597 == 0) -{ -return x_566; -} -else -{ -lean_object* x_598; lean_object* x_599; lean_object* x_600; -x_598 = lean_ctor_get(x_566, 0); -x_599 = lean_ctor_get(x_566, 1); -lean_inc(x_599); -lean_inc(x_598); -lean_dec(x_566); -x_600 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_600, 0, x_598); -lean_ctor_set(x_600, 1, x_599); -return x_600; -} -} -} -else -{ -uint8_t x_601; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_601 = !lean_is_exclusive(x_563); -if (x_601 == 0) -{ -return x_563; -} -else -{ -lean_object* x_602; lean_object* x_603; lean_object* x_604; -x_602 = lean_ctor_get(x_563, 0); -x_603 = lean_ctor_get(x_563, 1); -lean_inc(x_603); -lean_inc(x_602); -lean_dec(x_563); -x_604 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_604, 0, x_602); -lean_ctor_set(x_604, 1, x_603); -return x_604; -} -} -} -else -{ -lean_object* x_605; -lean_dec(x_2); -x_605 = lean_box(0); -x_70 = x_605; -goto block_75; -} -} -} -block_75: -{ -lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; -lean_dec(x_70); -x_71 = l_Lean_indentExpr(x_65); -x_72 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; -x_73 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_73, 0, x_72); -lean_ctor_set(x_73, 1, x_71); -x_74 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_73, x_3, x_4, x_5, x_6, x_7, x_8, x_69); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_74; -} -} -else -{ -lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_614; -x_606 = lean_ctor_get(x_66, 0); -x_607 = lean_ctor_get(x_66, 1); -lean_inc(x_607); -lean_inc(x_606); -lean_dec(x_66); -x_614 = l_Lean_Expr_getAppFn___main(x_606); -lean_dec(x_606); -switch (lean_obj_tag(x_614)) { -case 0: -{ -lean_dec(x_614); -if (lean_obj_tag(x_2) == 2) -{ -lean_object* x_615; lean_object* x_616; -lean_dec(x_65); -x_615 = lean_ctor_get(x_2, 1); -lean_inc(x_615); -lean_dec(x_2); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_616 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_615, x_3, x_4, x_5, x_6, x_7, x_8, x_607); -if (lean_obj_tag(x_616) == 0) -{ -lean_object* x_617; lean_object* x_618; lean_object* x_619; -x_617 = lean_ctor_get(x_616, 0); -lean_inc(x_617); -x_618 = lean_ctor_get(x_616, 1); -lean_inc(x_618); -lean_dec(x_616); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_619 = l_Lean_Meta_whnf___at___private_Lean_Elab_Term_6__isTypeApp_x3f___spec__1(x_617, x_3, x_4, x_5, x_6, x_7, x_8, x_618); -if (lean_obj_tag(x_619) == 0) -{ -lean_object* x_620; lean_object* x_621; lean_object* x_622; -x_620 = lean_ctor_get(x_619, 0); -lean_inc(x_620); -x_621 = lean_ctor_get(x_619, 1); -lean_inc(x_621); -lean_dec(x_619); -lean_inc(x_620); -x_622 = l_Lean_Elab_Term_tryPostponeIfMVar(x_620, x_3, x_4, x_5, x_6, x_7, x_8, x_621); -if (lean_obj_tag(x_622) == 0) -{ -lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_631; -x_623 = lean_ctor_get(x_622, 1); -lean_inc(x_623); -if (lean_is_exclusive(x_622)) { - lean_ctor_release(x_622, 0); - lean_ctor_release(x_622, 1); - x_624 = x_622; -} else { - lean_dec_ref(x_622); - x_624 = lean_box(0); -} -x_631 = l_Lean_Expr_getAppFn___main(x_620); -if (lean_obj_tag(x_631) == 4) -{ -lean_object* x_632; lean_object* x_633; -lean_dec(x_620); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_632 = lean_ctor_get(x_631, 0); -lean_inc(x_632); -lean_dec(x_631); -if (lean_is_scalar(x_624)) { - x_633 = lean_alloc_ctor(0, 2, 0); -} else { - x_633 = x_624; -} -lean_ctor_set(x_633, 0, x_632); -lean_ctor_set(x_633, 1, x_623); -return x_633; -} -else -{ -lean_object* x_634; -lean_dec(x_631); -lean_dec(x_624); -x_634 = lean_box(0); -x_625 = x_634; -goto block_630; -} -block_630: -{ -lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; -lean_dec(x_625); -x_626 = l_Lean_indentExpr(x_620); -x_627 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -x_628 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_628, 0, x_627); -lean_ctor_set(x_628, 1, x_626); -x_629 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_628, x_3, x_4, x_5, x_6, x_7, x_8, x_623); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_629; -} -} -else -{ -lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; -lean_dec(x_620); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_635 = lean_ctor_get(x_622, 0); -lean_inc(x_635); -x_636 = lean_ctor_get(x_622, 1); -lean_inc(x_636); -if (lean_is_exclusive(x_622)) { - lean_ctor_release(x_622, 0); - lean_ctor_release(x_622, 1); - x_637 = x_622; -} else { - lean_dec_ref(x_622); - x_637 = lean_box(0); -} -if (lean_is_scalar(x_637)) { - x_638 = lean_alloc_ctor(1, 2, 0); -} else { - x_638 = x_637; -} -lean_ctor_set(x_638, 0, x_635); -lean_ctor_set(x_638, 1, x_636); -return x_638; -} -} -else -{ -lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_639 = lean_ctor_get(x_619, 0); -lean_inc(x_639); -x_640 = lean_ctor_get(x_619, 1); -lean_inc(x_640); -if (lean_is_exclusive(x_619)) { - lean_ctor_release(x_619, 0); - lean_ctor_release(x_619, 1); - x_641 = x_619; -} else { - lean_dec_ref(x_619); - x_641 = lean_box(0); -} -if (lean_is_scalar(x_641)) { - x_642 = lean_alloc_ctor(1, 2, 0); -} else { - x_642 = x_641; -} -lean_ctor_set(x_642, 0, x_639); -lean_ctor_set(x_642, 1, x_640); -return x_642; -} -} -else -{ -lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_643 = lean_ctor_get(x_616, 0); -lean_inc(x_643); -x_644 = lean_ctor_get(x_616, 1); -lean_inc(x_644); -if (lean_is_exclusive(x_616)) { - lean_ctor_release(x_616, 0); - lean_ctor_release(x_616, 1); - x_645 = x_616; -} else { - lean_dec_ref(x_616); - x_645 = lean_box(0); -} -if (lean_is_scalar(x_645)) { - x_646 = lean_alloc_ctor(1, 2, 0); -} else { - x_646 = x_645; -} -lean_ctor_set(x_646, 0, x_643); -lean_ctor_set(x_646, 1, x_644); -return x_646; -} -} -else -{ -lean_object* x_647; -lean_dec(x_2); -x_647 = lean_box(0); -x_608 = x_647; -goto block_613; -} -} -case 1: -{ -lean_dec(x_614); -if (lean_obj_tag(x_2) == 2) -{ -lean_object* x_648; lean_object* x_649; -lean_dec(x_65); -x_648 = lean_ctor_get(x_2, 1); -lean_inc(x_648); -lean_dec(x_2); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_649 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_648, x_3, x_4, x_5, x_6, x_7, x_8, x_607); -if (lean_obj_tag(x_649) == 0) -{ -lean_object* x_650; lean_object* x_651; lean_object* x_652; -x_650 = lean_ctor_get(x_649, 0); -lean_inc(x_650); -x_651 = lean_ctor_get(x_649, 1); -lean_inc(x_651); -lean_dec(x_649); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_652 = l_Lean_Meta_whnf___at___private_Lean_Elab_Term_6__isTypeApp_x3f___spec__1(x_650, x_3, x_4, x_5, x_6, x_7, x_8, x_651); -if (lean_obj_tag(x_652) == 0) -{ -lean_object* x_653; lean_object* x_654; lean_object* x_655; -x_653 = lean_ctor_get(x_652, 0); -lean_inc(x_653); -x_654 = lean_ctor_get(x_652, 1); -lean_inc(x_654); -lean_dec(x_652); -lean_inc(x_653); -x_655 = l_Lean_Elab_Term_tryPostponeIfMVar(x_653, x_3, x_4, x_5, x_6, x_7, x_8, x_654); -if (lean_obj_tag(x_655) == 0) -{ -lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_664; -x_656 = lean_ctor_get(x_655, 1); -lean_inc(x_656); -if (lean_is_exclusive(x_655)) { - lean_ctor_release(x_655, 0); - lean_ctor_release(x_655, 1); - x_657 = x_655; -} else { - lean_dec_ref(x_655); - x_657 = lean_box(0); -} -x_664 = l_Lean_Expr_getAppFn___main(x_653); -if (lean_obj_tag(x_664) == 4) -{ -lean_object* x_665; lean_object* x_666; -lean_dec(x_653); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_665 = lean_ctor_get(x_664, 0); -lean_inc(x_665); -lean_dec(x_664); -if (lean_is_scalar(x_657)) { - x_666 = lean_alloc_ctor(0, 2, 0); -} else { - x_666 = x_657; -} -lean_ctor_set(x_666, 0, x_665); -lean_ctor_set(x_666, 1, x_656); -return x_666; -} -else -{ -lean_object* x_667; -lean_dec(x_664); -lean_dec(x_657); -x_667 = lean_box(0); -x_658 = x_667; -goto block_663; -} -block_663: -{ -lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; -lean_dec(x_658); -x_659 = l_Lean_indentExpr(x_653); -x_660 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -x_661 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_661, 0, x_660); -lean_ctor_set(x_661, 1, x_659); -x_662 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_661, x_3, x_4, x_5, x_6, x_7, x_8, x_656); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_662; -} -} -else -{ -lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; -lean_dec(x_653); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_668 = lean_ctor_get(x_655, 0); -lean_inc(x_668); -x_669 = lean_ctor_get(x_655, 1); -lean_inc(x_669); -if (lean_is_exclusive(x_655)) { - lean_ctor_release(x_655, 0); - lean_ctor_release(x_655, 1); - x_670 = x_655; -} else { - lean_dec_ref(x_655); - x_670 = lean_box(0); -} -if (lean_is_scalar(x_670)) { - x_671 = lean_alloc_ctor(1, 2, 0); -} else { - x_671 = x_670; -} -lean_ctor_set(x_671, 0, x_668); -lean_ctor_set(x_671, 1, x_669); -return x_671; -} -} -else -{ -lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_672 = lean_ctor_get(x_652, 0); -lean_inc(x_672); -x_673 = lean_ctor_get(x_652, 1); -lean_inc(x_673); -if (lean_is_exclusive(x_652)) { - lean_ctor_release(x_652, 0); - lean_ctor_release(x_652, 1); - x_674 = x_652; -} else { - lean_dec_ref(x_652); - x_674 = lean_box(0); -} -if (lean_is_scalar(x_674)) { - x_675 = lean_alloc_ctor(1, 2, 0); -} else { - x_675 = x_674; -} -lean_ctor_set(x_675, 0, x_672); -lean_ctor_set(x_675, 1, x_673); -return x_675; -} -} -else -{ -lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_676 = lean_ctor_get(x_649, 0); -lean_inc(x_676); -x_677 = lean_ctor_get(x_649, 1); -lean_inc(x_677); -if (lean_is_exclusive(x_649)) { - lean_ctor_release(x_649, 0); - lean_ctor_release(x_649, 1); - x_678 = x_649; -} else { - lean_dec_ref(x_649); - x_678 = lean_box(0); -} -if (lean_is_scalar(x_678)) { - x_679 = lean_alloc_ctor(1, 2, 0); -} else { - x_679 = x_678; -} -lean_ctor_set(x_679, 0, x_676); -lean_ctor_set(x_679, 1, x_677); -return x_679; -} -} -else -{ -lean_object* x_680; -lean_dec(x_2); -x_680 = lean_box(0); -x_608 = x_680; -goto block_613; -} -} -case 2: -{ -lean_dec(x_614); -if (lean_obj_tag(x_2) == 2) -{ -lean_object* x_681; lean_object* x_682; -lean_dec(x_65); -x_681 = lean_ctor_get(x_2, 1); -lean_inc(x_681); -lean_dec(x_2); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_682 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_681, x_3, x_4, x_5, x_6, x_7, x_8, x_607); -if (lean_obj_tag(x_682) == 0) -{ -lean_object* x_683; lean_object* x_684; lean_object* x_685; -x_683 = lean_ctor_get(x_682, 0); -lean_inc(x_683); -x_684 = lean_ctor_get(x_682, 1); -lean_inc(x_684); -lean_dec(x_682); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_685 = l_Lean_Meta_whnf___at___private_Lean_Elab_Term_6__isTypeApp_x3f___spec__1(x_683, x_3, x_4, x_5, x_6, x_7, x_8, x_684); -if (lean_obj_tag(x_685) == 0) -{ -lean_object* x_686; lean_object* x_687; lean_object* x_688; -x_686 = lean_ctor_get(x_685, 0); -lean_inc(x_686); -x_687 = lean_ctor_get(x_685, 1); -lean_inc(x_687); -lean_dec(x_685); -lean_inc(x_686); -x_688 = l_Lean_Elab_Term_tryPostponeIfMVar(x_686, x_3, x_4, x_5, x_6, x_7, x_8, x_687); -if (lean_obj_tag(x_688) == 0) -{ -lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_697; -x_689 = lean_ctor_get(x_688, 1); -lean_inc(x_689); -if (lean_is_exclusive(x_688)) { - lean_ctor_release(x_688, 0); - lean_ctor_release(x_688, 1); - x_690 = x_688; -} else { - lean_dec_ref(x_688); - x_690 = lean_box(0); -} -x_697 = l_Lean_Expr_getAppFn___main(x_686); -if (lean_obj_tag(x_697) == 4) -{ -lean_object* x_698; lean_object* x_699; -lean_dec(x_686); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_698 = lean_ctor_get(x_697, 0); -lean_inc(x_698); -lean_dec(x_697); -if (lean_is_scalar(x_690)) { - x_699 = lean_alloc_ctor(0, 2, 0); -} else { - x_699 = x_690; -} -lean_ctor_set(x_699, 0, x_698); -lean_ctor_set(x_699, 1, x_689); -return x_699; -} -else -{ -lean_object* x_700; -lean_dec(x_697); -lean_dec(x_690); -x_700 = lean_box(0); -x_691 = x_700; -goto block_696; -} -block_696: -{ -lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; -lean_dec(x_691); -x_692 = l_Lean_indentExpr(x_686); -x_693 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -x_694 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_694, 0, x_693); -lean_ctor_set(x_694, 1, x_692); -x_695 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_694, x_3, x_4, x_5, x_6, x_7, x_8, x_689); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_695; -} -} -else -{ -lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; -lean_dec(x_686); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_701 = lean_ctor_get(x_688, 0); -lean_inc(x_701); -x_702 = lean_ctor_get(x_688, 1); -lean_inc(x_702); -if (lean_is_exclusive(x_688)) { - lean_ctor_release(x_688, 0); - lean_ctor_release(x_688, 1); - x_703 = x_688; -} else { - lean_dec_ref(x_688); - x_703 = lean_box(0); -} -if (lean_is_scalar(x_703)) { - x_704 = lean_alloc_ctor(1, 2, 0); -} else { - x_704 = x_703; -} -lean_ctor_set(x_704, 0, x_701); -lean_ctor_set(x_704, 1, x_702); -return x_704; -} -} -else -{ -lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_705 = lean_ctor_get(x_685, 0); -lean_inc(x_705); -x_706 = lean_ctor_get(x_685, 1); -lean_inc(x_706); -if (lean_is_exclusive(x_685)) { - lean_ctor_release(x_685, 0); - lean_ctor_release(x_685, 1); - x_707 = x_685; -} else { - lean_dec_ref(x_685); - x_707 = lean_box(0); -} -if (lean_is_scalar(x_707)) { - x_708 = lean_alloc_ctor(1, 2, 0); -} else { - x_708 = x_707; -} -lean_ctor_set(x_708, 0, x_705); -lean_ctor_set(x_708, 1, x_706); -return x_708; -} -} -else -{ -lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_709 = lean_ctor_get(x_682, 0); -lean_inc(x_709); -x_710 = lean_ctor_get(x_682, 1); -lean_inc(x_710); -if (lean_is_exclusive(x_682)) { - lean_ctor_release(x_682, 0); - lean_ctor_release(x_682, 1); - x_711 = x_682; -} else { - lean_dec_ref(x_682); - x_711 = lean_box(0); -} -if (lean_is_scalar(x_711)) { - x_712 = lean_alloc_ctor(1, 2, 0); -} else { - x_712 = x_711; -} -lean_ctor_set(x_712, 0, x_709); -lean_ctor_set(x_712, 1, x_710); -return x_712; -} -} -else -{ -lean_object* x_713; -lean_dec(x_2); -x_713 = lean_box(0); -x_608 = x_713; -goto block_613; -} -} -case 3: -{ -lean_dec(x_614); -if (lean_obj_tag(x_2) == 2) -{ -lean_object* x_714; lean_object* x_715; -lean_dec(x_65); -x_714 = lean_ctor_get(x_2, 1); -lean_inc(x_714); -lean_dec(x_2); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_715 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_714, x_3, x_4, x_5, x_6, x_7, x_8, x_607); -if (lean_obj_tag(x_715) == 0) -{ -lean_object* x_716; lean_object* x_717; lean_object* x_718; -x_716 = lean_ctor_get(x_715, 0); -lean_inc(x_716); -x_717 = lean_ctor_get(x_715, 1); -lean_inc(x_717); -lean_dec(x_715); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_718 = l_Lean_Meta_whnf___at___private_Lean_Elab_Term_6__isTypeApp_x3f___spec__1(x_716, x_3, x_4, x_5, x_6, x_7, x_8, x_717); -if (lean_obj_tag(x_718) == 0) -{ -lean_object* x_719; lean_object* x_720; lean_object* x_721; -x_719 = lean_ctor_get(x_718, 0); -lean_inc(x_719); -x_720 = lean_ctor_get(x_718, 1); -lean_inc(x_720); -lean_dec(x_718); -lean_inc(x_719); -x_721 = l_Lean_Elab_Term_tryPostponeIfMVar(x_719, x_3, x_4, x_5, x_6, x_7, x_8, x_720); -if (lean_obj_tag(x_721) == 0) -{ -lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_730; -x_722 = lean_ctor_get(x_721, 1); -lean_inc(x_722); -if (lean_is_exclusive(x_721)) { - lean_ctor_release(x_721, 0); - lean_ctor_release(x_721, 1); - x_723 = x_721; -} else { - lean_dec_ref(x_721); - x_723 = lean_box(0); -} -x_730 = l_Lean_Expr_getAppFn___main(x_719); -if (lean_obj_tag(x_730) == 4) -{ -lean_object* x_731; lean_object* x_732; -lean_dec(x_719); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_731 = lean_ctor_get(x_730, 0); -lean_inc(x_731); -lean_dec(x_730); -if (lean_is_scalar(x_723)) { - x_732 = lean_alloc_ctor(0, 2, 0); -} else { - x_732 = x_723; -} -lean_ctor_set(x_732, 0, x_731); -lean_ctor_set(x_732, 1, x_722); -return x_732; -} -else -{ -lean_object* x_733; -lean_dec(x_730); -lean_dec(x_723); -x_733 = lean_box(0); -x_724 = x_733; -goto block_729; -} -block_729: -{ -lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; -lean_dec(x_724); -x_725 = l_Lean_indentExpr(x_719); -x_726 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -x_727 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_727, 0, x_726); -lean_ctor_set(x_727, 1, x_725); -x_728 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_727, x_3, x_4, x_5, x_6, x_7, x_8, x_722); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_728; -} -} -else -{ -lean_object* x_734; lean_object* x_735; lean_object* x_736; lean_object* x_737; -lean_dec(x_719); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_734 = lean_ctor_get(x_721, 0); -lean_inc(x_734); -x_735 = lean_ctor_get(x_721, 1); -lean_inc(x_735); -if (lean_is_exclusive(x_721)) { - lean_ctor_release(x_721, 0); - lean_ctor_release(x_721, 1); - x_736 = x_721; -} else { - lean_dec_ref(x_721); - x_736 = lean_box(0); -} -if (lean_is_scalar(x_736)) { - x_737 = lean_alloc_ctor(1, 2, 0); -} else { - x_737 = x_736; -} -lean_ctor_set(x_737, 0, x_734); -lean_ctor_set(x_737, 1, x_735); -return x_737; -} -} -else -{ -lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_738 = lean_ctor_get(x_718, 0); -lean_inc(x_738); -x_739 = lean_ctor_get(x_718, 1); -lean_inc(x_739); -if (lean_is_exclusive(x_718)) { - lean_ctor_release(x_718, 0); - lean_ctor_release(x_718, 1); - x_740 = x_718; -} else { - lean_dec_ref(x_718); - x_740 = lean_box(0); -} -if (lean_is_scalar(x_740)) { - x_741 = lean_alloc_ctor(1, 2, 0); -} else { - x_741 = x_740; -} -lean_ctor_set(x_741, 0, x_738); -lean_ctor_set(x_741, 1, x_739); -return x_741; -} -} -else -{ -lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_742 = lean_ctor_get(x_715, 0); -lean_inc(x_742); -x_743 = lean_ctor_get(x_715, 1); -lean_inc(x_743); -if (lean_is_exclusive(x_715)) { - lean_ctor_release(x_715, 0); - lean_ctor_release(x_715, 1); - x_744 = x_715; -} else { - lean_dec_ref(x_715); - x_744 = lean_box(0); -} -if (lean_is_scalar(x_744)) { - x_745 = lean_alloc_ctor(1, 2, 0); -} else { - x_745 = x_744; -} -lean_ctor_set(x_745, 0, x_742); -lean_ctor_set(x_745, 1, x_743); -return x_745; -} -} -else -{ -lean_object* x_746; -lean_dec(x_2); -x_746 = lean_box(0); -x_608 = x_746; -goto block_613; -} -} -case 4: -{ -lean_object* x_747; lean_object* x_748; -lean_dec(x_65); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_747 = lean_ctor_get(x_614, 0); -lean_inc(x_747); -lean_dec(x_614); -x_748 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_748, 0, x_747); -lean_ctor_set(x_748, 1, x_607); -return x_748; -} -case 5: -{ -lean_dec(x_614); -if (lean_obj_tag(x_2) == 2) -{ -lean_object* x_749; lean_object* x_750; -lean_dec(x_65); -x_749 = lean_ctor_get(x_2, 1); -lean_inc(x_749); -lean_dec(x_2); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_750 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_749, x_3, x_4, x_5, x_6, x_7, x_8, x_607); -if (lean_obj_tag(x_750) == 0) -{ -lean_object* x_751; lean_object* x_752; lean_object* x_753; -x_751 = lean_ctor_get(x_750, 0); -lean_inc(x_751); -x_752 = lean_ctor_get(x_750, 1); -lean_inc(x_752); -lean_dec(x_750); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_753 = l_Lean_Meta_whnf___at___private_Lean_Elab_Term_6__isTypeApp_x3f___spec__1(x_751, x_3, x_4, x_5, x_6, x_7, x_8, x_752); -if (lean_obj_tag(x_753) == 0) -{ -lean_object* x_754; lean_object* x_755; lean_object* x_756; -x_754 = lean_ctor_get(x_753, 0); -lean_inc(x_754); -x_755 = lean_ctor_get(x_753, 1); -lean_inc(x_755); -lean_dec(x_753); -lean_inc(x_754); -x_756 = l_Lean_Elab_Term_tryPostponeIfMVar(x_754, x_3, x_4, x_5, x_6, x_7, x_8, x_755); -if (lean_obj_tag(x_756) == 0) -{ -lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_765; -x_757 = lean_ctor_get(x_756, 1); -lean_inc(x_757); -if (lean_is_exclusive(x_756)) { - lean_ctor_release(x_756, 0); - lean_ctor_release(x_756, 1); - x_758 = x_756; -} else { - lean_dec_ref(x_756); - x_758 = lean_box(0); -} -x_765 = l_Lean_Expr_getAppFn___main(x_754); -if (lean_obj_tag(x_765) == 4) -{ -lean_object* x_766; lean_object* x_767; -lean_dec(x_754); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_766 = lean_ctor_get(x_765, 0); -lean_inc(x_766); -lean_dec(x_765); -if (lean_is_scalar(x_758)) { - x_767 = lean_alloc_ctor(0, 2, 0); -} else { - x_767 = x_758; -} -lean_ctor_set(x_767, 0, x_766); -lean_ctor_set(x_767, 1, x_757); -return x_767; -} -else -{ -lean_object* x_768; -lean_dec(x_765); -lean_dec(x_758); -x_768 = lean_box(0); -x_759 = x_768; -goto block_764; -} -block_764: -{ -lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; -lean_dec(x_759); -x_760 = l_Lean_indentExpr(x_754); -x_761 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -x_762 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_762, 0, x_761); -lean_ctor_set(x_762, 1, x_760); -x_763 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_762, x_3, x_4, x_5, x_6, x_7, x_8, x_757); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_763; -} -} -else -{ -lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; -lean_dec(x_754); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_769 = lean_ctor_get(x_756, 0); -lean_inc(x_769); -x_770 = lean_ctor_get(x_756, 1); -lean_inc(x_770); -if (lean_is_exclusive(x_756)) { - lean_ctor_release(x_756, 0); - lean_ctor_release(x_756, 1); - x_771 = x_756; -} else { - lean_dec_ref(x_756); - x_771 = lean_box(0); -} -if (lean_is_scalar(x_771)) { - x_772 = lean_alloc_ctor(1, 2, 0); -} else { - x_772 = x_771; -} -lean_ctor_set(x_772, 0, x_769); -lean_ctor_set(x_772, 1, x_770); -return x_772; -} -} -else -{ -lean_object* x_773; lean_object* x_774; lean_object* x_775; lean_object* x_776; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_773 = lean_ctor_get(x_753, 0); -lean_inc(x_773); -x_774 = lean_ctor_get(x_753, 1); -lean_inc(x_774); -if (lean_is_exclusive(x_753)) { - lean_ctor_release(x_753, 0); - lean_ctor_release(x_753, 1); - x_775 = x_753; -} else { - lean_dec_ref(x_753); - x_775 = lean_box(0); -} -if (lean_is_scalar(x_775)) { - x_776 = lean_alloc_ctor(1, 2, 0); -} else { - x_776 = x_775; -} -lean_ctor_set(x_776, 0, x_773); -lean_ctor_set(x_776, 1, x_774); -return x_776; -} -} -else -{ -lean_object* x_777; lean_object* x_778; lean_object* x_779; lean_object* x_780; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_777 = lean_ctor_get(x_750, 0); -lean_inc(x_777); -x_778 = lean_ctor_get(x_750, 1); -lean_inc(x_778); -if (lean_is_exclusive(x_750)) { - lean_ctor_release(x_750, 0); - lean_ctor_release(x_750, 1); - x_779 = x_750; -} else { - lean_dec_ref(x_750); - x_779 = lean_box(0); -} -if (lean_is_scalar(x_779)) { - x_780 = lean_alloc_ctor(1, 2, 0); -} else { - x_780 = x_779; -} -lean_ctor_set(x_780, 0, x_777); -lean_ctor_set(x_780, 1, x_778); -return x_780; -} -} -else -{ -lean_object* x_781; -lean_dec(x_2); -x_781 = lean_box(0); -x_608 = x_781; -goto block_613; -} -} -case 6: -{ -lean_dec(x_614); -if (lean_obj_tag(x_2) == 2) -{ -lean_object* x_782; lean_object* x_783; -lean_dec(x_65); -x_782 = lean_ctor_get(x_2, 1); -lean_inc(x_782); -lean_dec(x_2); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_783 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_782, x_3, x_4, x_5, x_6, x_7, x_8, x_607); -if (lean_obj_tag(x_783) == 0) -{ -lean_object* x_784; lean_object* x_785; lean_object* x_786; -x_784 = lean_ctor_get(x_783, 0); -lean_inc(x_784); -x_785 = lean_ctor_get(x_783, 1); -lean_inc(x_785); -lean_dec(x_783); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_786 = l_Lean_Meta_whnf___at___private_Lean_Elab_Term_6__isTypeApp_x3f___spec__1(x_784, x_3, x_4, x_5, x_6, x_7, x_8, x_785); -if (lean_obj_tag(x_786) == 0) -{ -lean_object* x_787; lean_object* x_788; lean_object* x_789; -x_787 = lean_ctor_get(x_786, 0); -lean_inc(x_787); -x_788 = lean_ctor_get(x_786, 1); -lean_inc(x_788); -lean_dec(x_786); -lean_inc(x_787); -x_789 = l_Lean_Elab_Term_tryPostponeIfMVar(x_787, x_3, x_4, x_5, x_6, x_7, x_8, x_788); -if (lean_obj_tag(x_789) == 0) -{ -lean_object* x_790; lean_object* x_791; lean_object* x_792; lean_object* x_798; -x_790 = lean_ctor_get(x_789, 1); -lean_inc(x_790); -if (lean_is_exclusive(x_789)) { - lean_ctor_release(x_789, 0); - lean_ctor_release(x_789, 1); - x_791 = x_789; -} else { - lean_dec_ref(x_789); - x_791 = lean_box(0); -} -x_798 = l_Lean_Expr_getAppFn___main(x_787); -if (lean_obj_tag(x_798) == 4) -{ -lean_object* x_799; lean_object* x_800; -lean_dec(x_787); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_799 = lean_ctor_get(x_798, 0); -lean_inc(x_799); -lean_dec(x_798); -if (lean_is_scalar(x_791)) { - x_800 = lean_alloc_ctor(0, 2, 0); -} else { - x_800 = x_791; -} -lean_ctor_set(x_800, 0, x_799); -lean_ctor_set(x_800, 1, x_790); -return x_800; -} -else -{ -lean_object* x_801; -lean_dec(x_798); -lean_dec(x_791); -x_801 = lean_box(0); -x_792 = x_801; -goto block_797; -} -block_797: -{ -lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; -lean_dec(x_792); -x_793 = l_Lean_indentExpr(x_787); -x_794 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -x_795 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_795, 0, x_794); -lean_ctor_set(x_795, 1, x_793); -x_796 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_795, x_3, x_4, x_5, x_6, x_7, x_8, x_790); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_796; -} -} -else -{ -lean_object* x_802; lean_object* x_803; lean_object* x_804; lean_object* x_805; -lean_dec(x_787); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_802 = lean_ctor_get(x_789, 0); -lean_inc(x_802); -x_803 = lean_ctor_get(x_789, 1); -lean_inc(x_803); -if (lean_is_exclusive(x_789)) { - lean_ctor_release(x_789, 0); - lean_ctor_release(x_789, 1); - x_804 = x_789; -} else { - lean_dec_ref(x_789); - x_804 = lean_box(0); -} -if (lean_is_scalar(x_804)) { - x_805 = lean_alloc_ctor(1, 2, 0); -} else { - x_805 = x_804; -} -lean_ctor_set(x_805, 0, x_802); -lean_ctor_set(x_805, 1, x_803); -return x_805; -} -} -else -{ -lean_object* x_806; lean_object* x_807; lean_object* x_808; lean_object* x_809; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_806 = lean_ctor_get(x_786, 0); -lean_inc(x_806); -x_807 = lean_ctor_get(x_786, 1); -lean_inc(x_807); -if (lean_is_exclusive(x_786)) { - lean_ctor_release(x_786, 0); - lean_ctor_release(x_786, 1); - x_808 = x_786; -} else { - lean_dec_ref(x_786); - x_808 = lean_box(0); -} -if (lean_is_scalar(x_808)) { - x_809 = lean_alloc_ctor(1, 2, 0); -} else { - x_809 = x_808; -} -lean_ctor_set(x_809, 0, x_806); -lean_ctor_set(x_809, 1, x_807); -return x_809; -} -} -else -{ -lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_810 = lean_ctor_get(x_783, 0); -lean_inc(x_810); -x_811 = lean_ctor_get(x_783, 1); -lean_inc(x_811); -if (lean_is_exclusive(x_783)) { - lean_ctor_release(x_783, 0); - lean_ctor_release(x_783, 1); - x_812 = x_783; -} else { - lean_dec_ref(x_783); - x_812 = lean_box(0); -} -if (lean_is_scalar(x_812)) { - x_813 = lean_alloc_ctor(1, 2, 0); -} else { - x_813 = x_812; -} -lean_ctor_set(x_813, 0, x_810); -lean_ctor_set(x_813, 1, x_811); -return x_813; -} -} -else -{ -lean_object* x_814; -lean_dec(x_2); -x_814 = lean_box(0); -x_608 = x_814; -goto block_613; -} -} -case 7: -{ -lean_dec(x_614); -if (lean_obj_tag(x_2) == 2) -{ -lean_object* x_815; lean_object* x_816; -lean_dec(x_65); -x_815 = lean_ctor_get(x_2, 1); -lean_inc(x_815); -lean_dec(x_2); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_816 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_815, x_3, x_4, x_5, x_6, x_7, x_8, x_607); -if (lean_obj_tag(x_816) == 0) -{ -lean_object* x_817; lean_object* x_818; lean_object* x_819; -x_817 = lean_ctor_get(x_816, 0); -lean_inc(x_817); -x_818 = lean_ctor_get(x_816, 1); -lean_inc(x_818); -lean_dec(x_816); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_819 = l_Lean_Meta_whnf___at___private_Lean_Elab_Term_6__isTypeApp_x3f___spec__1(x_817, x_3, x_4, x_5, x_6, x_7, x_8, x_818); -if (lean_obj_tag(x_819) == 0) -{ -lean_object* x_820; lean_object* x_821; lean_object* x_822; -x_820 = lean_ctor_get(x_819, 0); -lean_inc(x_820); -x_821 = lean_ctor_get(x_819, 1); -lean_inc(x_821); -lean_dec(x_819); -lean_inc(x_820); -x_822 = l_Lean_Elab_Term_tryPostponeIfMVar(x_820, x_3, x_4, x_5, x_6, x_7, x_8, x_821); -if (lean_obj_tag(x_822) == 0) -{ -lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_831; -x_823 = lean_ctor_get(x_822, 1); -lean_inc(x_823); -if (lean_is_exclusive(x_822)) { - lean_ctor_release(x_822, 0); - lean_ctor_release(x_822, 1); - x_824 = x_822; -} else { - lean_dec_ref(x_822); - x_824 = lean_box(0); -} -x_831 = l_Lean_Expr_getAppFn___main(x_820); -if (lean_obj_tag(x_831) == 4) -{ -lean_object* x_832; lean_object* x_833; -lean_dec(x_820); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_832 = lean_ctor_get(x_831, 0); -lean_inc(x_832); -lean_dec(x_831); -if (lean_is_scalar(x_824)) { - x_833 = lean_alloc_ctor(0, 2, 0); -} else { - x_833 = x_824; -} -lean_ctor_set(x_833, 0, x_832); -lean_ctor_set(x_833, 1, x_823); -return x_833; -} -else -{ -lean_object* x_834; -lean_dec(x_831); -lean_dec(x_824); -x_834 = lean_box(0); -x_825 = x_834; -goto block_830; -} -block_830: -{ -lean_object* x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; -lean_dec(x_825); -x_826 = l_Lean_indentExpr(x_820); -x_827 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -x_828 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_828, 0, x_827); -lean_ctor_set(x_828, 1, x_826); -x_829 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_828, x_3, x_4, x_5, x_6, x_7, x_8, x_823); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_829; -} -} -else -{ -lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; -lean_dec(x_820); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_835 = lean_ctor_get(x_822, 0); -lean_inc(x_835); -x_836 = lean_ctor_get(x_822, 1); -lean_inc(x_836); -if (lean_is_exclusive(x_822)) { - lean_ctor_release(x_822, 0); - lean_ctor_release(x_822, 1); - x_837 = x_822; -} else { - lean_dec_ref(x_822); - x_837 = lean_box(0); -} -if (lean_is_scalar(x_837)) { - x_838 = lean_alloc_ctor(1, 2, 0); -} else { - x_838 = x_837; -} -lean_ctor_set(x_838, 0, x_835); -lean_ctor_set(x_838, 1, x_836); -return x_838; -} -} -else -{ -lean_object* x_839; lean_object* x_840; lean_object* x_841; lean_object* x_842; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_839 = lean_ctor_get(x_819, 0); -lean_inc(x_839); -x_840 = lean_ctor_get(x_819, 1); -lean_inc(x_840); -if (lean_is_exclusive(x_819)) { - lean_ctor_release(x_819, 0); - lean_ctor_release(x_819, 1); - x_841 = x_819; -} else { - lean_dec_ref(x_819); - x_841 = lean_box(0); -} -if (lean_is_scalar(x_841)) { - x_842 = lean_alloc_ctor(1, 2, 0); -} else { - x_842 = x_841; -} -lean_ctor_set(x_842, 0, x_839); -lean_ctor_set(x_842, 1, x_840); -return x_842; -} -} -else -{ -lean_object* x_843; lean_object* x_844; lean_object* x_845; lean_object* x_846; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_843 = lean_ctor_get(x_816, 0); -lean_inc(x_843); -x_844 = lean_ctor_get(x_816, 1); -lean_inc(x_844); -if (lean_is_exclusive(x_816)) { - lean_ctor_release(x_816, 0); - lean_ctor_release(x_816, 1); - x_845 = x_816; -} else { - lean_dec_ref(x_816); - x_845 = lean_box(0); -} -if (lean_is_scalar(x_845)) { - x_846 = lean_alloc_ctor(1, 2, 0); -} else { - x_846 = x_845; -} -lean_ctor_set(x_846, 0, x_843); -lean_ctor_set(x_846, 1, x_844); -return x_846; -} -} -else -{ -lean_object* x_847; -lean_dec(x_2); -x_847 = lean_box(0); -x_608 = x_847; -goto block_613; -} -} -case 8: -{ -lean_dec(x_614); -if (lean_obj_tag(x_2) == 2) -{ -lean_object* x_848; lean_object* x_849; -lean_dec(x_65); -x_848 = lean_ctor_get(x_2, 1); -lean_inc(x_848); -lean_dec(x_2); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_849 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_848, x_3, x_4, x_5, x_6, x_7, x_8, x_607); -if (lean_obj_tag(x_849) == 0) -{ -lean_object* x_850; lean_object* x_851; lean_object* x_852; -x_850 = lean_ctor_get(x_849, 0); -lean_inc(x_850); -x_851 = lean_ctor_get(x_849, 1); -lean_inc(x_851); -lean_dec(x_849); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_852 = l_Lean_Meta_whnf___at___private_Lean_Elab_Term_6__isTypeApp_x3f___spec__1(x_850, x_3, x_4, x_5, x_6, x_7, x_8, x_851); -if (lean_obj_tag(x_852) == 0) -{ -lean_object* x_853; lean_object* x_854; lean_object* x_855; -x_853 = lean_ctor_get(x_852, 0); -lean_inc(x_853); -x_854 = lean_ctor_get(x_852, 1); -lean_inc(x_854); -lean_dec(x_852); -lean_inc(x_853); -x_855 = l_Lean_Elab_Term_tryPostponeIfMVar(x_853, x_3, x_4, x_5, x_6, x_7, x_8, x_854); -if (lean_obj_tag(x_855) == 0) -{ -lean_object* x_856; lean_object* x_857; lean_object* x_858; lean_object* x_864; -x_856 = lean_ctor_get(x_855, 1); -lean_inc(x_856); -if (lean_is_exclusive(x_855)) { - lean_ctor_release(x_855, 0); - lean_ctor_release(x_855, 1); - x_857 = x_855; -} else { - lean_dec_ref(x_855); - x_857 = lean_box(0); -} -x_864 = l_Lean_Expr_getAppFn___main(x_853); -if (lean_obj_tag(x_864) == 4) -{ -lean_object* x_865; lean_object* x_866; -lean_dec(x_853); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_865 = lean_ctor_get(x_864, 0); -lean_inc(x_865); -lean_dec(x_864); -if (lean_is_scalar(x_857)) { - x_866 = lean_alloc_ctor(0, 2, 0); -} else { - x_866 = x_857; -} -lean_ctor_set(x_866, 0, x_865); -lean_ctor_set(x_866, 1, x_856); -return x_866; -} -else -{ -lean_object* x_867; -lean_dec(x_864); -lean_dec(x_857); -x_867 = lean_box(0); -x_858 = x_867; -goto block_863; -} -block_863: -{ -lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; -lean_dec(x_858); -x_859 = l_Lean_indentExpr(x_853); -x_860 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -x_861 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_861, 0, x_860); -lean_ctor_set(x_861, 1, x_859); -x_862 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_861, x_3, x_4, x_5, x_6, x_7, x_8, x_856); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_862; -} -} -else -{ -lean_object* x_868; lean_object* x_869; lean_object* x_870; lean_object* x_871; -lean_dec(x_853); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_868 = lean_ctor_get(x_855, 0); -lean_inc(x_868); -x_869 = lean_ctor_get(x_855, 1); -lean_inc(x_869); -if (lean_is_exclusive(x_855)) { - lean_ctor_release(x_855, 0); - lean_ctor_release(x_855, 1); - x_870 = x_855; -} else { - lean_dec_ref(x_855); - x_870 = lean_box(0); -} -if (lean_is_scalar(x_870)) { - x_871 = lean_alloc_ctor(1, 2, 0); -} else { - x_871 = x_870; -} -lean_ctor_set(x_871, 0, x_868); -lean_ctor_set(x_871, 1, x_869); -return x_871; -} -} -else -{ -lean_object* x_872; lean_object* x_873; lean_object* x_874; lean_object* x_875; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_872 = lean_ctor_get(x_852, 0); -lean_inc(x_872); -x_873 = lean_ctor_get(x_852, 1); -lean_inc(x_873); -if (lean_is_exclusive(x_852)) { - lean_ctor_release(x_852, 0); - lean_ctor_release(x_852, 1); - x_874 = x_852; -} else { - lean_dec_ref(x_852); - x_874 = lean_box(0); -} -if (lean_is_scalar(x_874)) { - x_875 = lean_alloc_ctor(1, 2, 0); -} else { - x_875 = x_874; -} -lean_ctor_set(x_875, 0, x_872); -lean_ctor_set(x_875, 1, x_873); -return x_875; -} -} -else -{ -lean_object* x_876; lean_object* x_877; lean_object* x_878; lean_object* x_879; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_876 = lean_ctor_get(x_849, 0); -lean_inc(x_876); -x_877 = lean_ctor_get(x_849, 1); -lean_inc(x_877); -if (lean_is_exclusive(x_849)) { - lean_ctor_release(x_849, 0); - lean_ctor_release(x_849, 1); - x_878 = x_849; -} else { - lean_dec_ref(x_849); - x_878 = lean_box(0); -} -if (lean_is_scalar(x_878)) { - x_879 = lean_alloc_ctor(1, 2, 0); -} else { - x_879 = x_878; -} -lean_ctor_set(x_879, 0, x_876); -lean_ctor_set(x_879, 1, x_877); -return x_879; -} -} -else -{ -lean_object* x_880; -lean_dec(x_2); -x_880 = lean_box(0); -x_608 = x_880; -goto block_613; -} -} -case 9: -{ -lean_dec(x_614); -if (lean_obj_tag(x_2) == 2) -{ -lean_object* x_881; lean_object* x_882; -lean_dec(x_65); -x_881 = lean_ctor_get(x_2, 1); -lean_inc(x_881); -lean_dec(x_2); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_882 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_881, x_3, x_4, x_5, x_6, x_7, x_8, x_607); -if (lean_obj_tag(x_882) == 0) -{ -lean_object* x_883; lean_object* x_884; lean_object* x_885; -x_883 = lean_ctor_get(x_882, 0); -lean_inc(x_883); -x_884 = lean_ctor_get(x_882, 1); -lean_inc(x_884); -lean_dec(x_882); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_885 = l_Lean_Meta_whnf___at___private_Lean_Elab_Term_6__isTypeApp_x3f___spec__1(x_883, x_3, x_4, x_5, x_6, x_7, x_8, x_884); -if (lean_obj_tag(x_885) == 0) -{ -lean_object* x_886; lean_object* x_887; lean_object* x_888; -x_886 = lean_ctor_get(x_885, 0); -lean_inc(x_886); -x_887 = lean_ctor_get(x_885, 1); -lean_inc(x_887); -lean_dec(x_885); -lean_inc(x_886); -x_888 = l_Lean_Elab_Term_tryPostponeIfMVar(x_886, x_3, x_4, x_5, x_6, x_7, x_8, x_887); -if (lean_obj_tag(x_888) == 0) -{ -lean_object* x_889; lean_object* x_890; lean_object* x_891; lean_object* x_897; -x_889 = lean_ctor_get(x_888, 1); -lean_inc(x_889); -if (lean_is_exclusive(x_888)) { - lean_ctor_release(x_888, 0); - lean_ctor_release(x_888, 1); - x_890 = x_888; -} else { - lean_dec_ref(x_888); - x_890 = lean_box(0); -} -x_897 = l_Lean_Expr_getAppFn___main(x_886); -if (lean_obj_tag(x_897) == 4) -{ -lean_object* x_898; lean_object* x_899; -lean_dec(x_886); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_898 = lean_ctor_get(x_897, 0); -lean_inc(x_898); -lean_dec(x_897); -if (lean_is_scalar(x_890)) { - x_899 = lean_alloc_ctor(0, 2, 0); -} else { - x_899 = x_890; -} -lean_ctor_set(x_899, 0, x_898); -lean_ctor_set(x_899, 1, x_889); -return x_899; -} -else -{ -lean_object* x_900; -lean_dec(x_897); -lean_dec(x_890); -x_900 = lean_box(0); -x_891 = x_900; -goto block_896; -} -block_896: -{ -lean_object* x_892; lean_object* x_893; lean_object* x_894; lean_object* x_895; -lean_dec(x_891); -x_892 = l_Lean_indentExpr(x_886); -x_893 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -x_894 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_894, 0, x_893); -lean_ctor_set(x_894, 1, x_892); -x_895 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_894, x_3, x_4, x_5, x_6, x_7, x_8, x_889); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_895; -} -} -else -{ -lean_object* x_901; lean_object* x_902; lean_object* x_903; lean_object* x_904; -lean_dec(x_886); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_901 = lean_ctor_get(x_888, 0); -lean_inc(x_901); -x_902 = lean_ctor_get(x_888, 1); -lean_inc(x_902); -if (lean_is_exclusive(x_888)) { - lean_ctor_release(x_888, 0); - lean_ctor_release(x_888, 1); - x_903 = x_888; -} else { - lean_dec_ref(x_888); - x_903 = lean_box(0); -} -if (lean_is_scalar(x_903)) { - x_904 = lean_alloc_ctor(1, 2, 0); -} else { - x_904 = x_903; -} -lean_ctor_set(x_904, 0, x_901); -lean_ctor_set(x_904, 1, x_902); -return x_904; -} -} -else -{ -lean_object* x_905; lean_object* x_906; lean_object* x_907; lean_object* x_908; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_905 = lean_ctor_get(x_885, 0); -lean_inc(x_905); -x_906 = lean_ctor_get(x_885, 1); -lean_inc(x_906); -if (lean_is_exclusive(x_885)) { - lean_ctor_release(x_885, 0); - lean_ctor_release(x_885, 1); - x_907 = x_885; -} else { - lean_dec_ref(x_885); - x_907 = lean_box(0); -} -if (lean_is_scalar(x_907)) { - x_908 = lean_alloc_ctor(1, 2, 0); -} else { - x_908 = x_907; -} -lean_ctor_set(x_908, 0, x_905); -lean_ctor_set(x_908, 1, x_906); -return x_908; -} -} -else -{ -lean_object* x_909; lean_object* x_910; lean_object* x_911; lean_object* x_912; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_909 = lean_ctor_get(x_882, 0); -lean_inc(x_909); -x_910 = lean_ctor_get(x_882, 1); -lean_inc(x_910); -if (lean_is_exclusive(x_882)) { - lean_ctor_release(x_882, 0); - lean_ctor_release(x_882, 1); - x_911 = x_882; -} else { - lean_dec_ref(x_882); - x_911 = lean_box(0); -} -if (lean_is_scalar(x_911)) { - x_912 = lean_alloc_ctor(1, 2, 0); -} else { - x_912 = x_911; -} -lean_ctor_set(x_912, 0, x_909); -lean_ctor_set(x_912, 1, x_910); -return x_912; -} -} -else -{ -lean_object* x_913; -lean_dec(x_2); -x_913 = lean_box(0); -x_608 = x_913; -goto block_613; -} -} -case 10: -{ -lean_dec(x_614); -if (lean_obj_tag(x_2) == 2) -{ -lean_object* x_914; lean_object* x_915; -lean_dec(x_65); -x_914 = lean_ctor_get(x_2, 1); -lean_inc(x_914); -lean_dec(x_2); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_915 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_914, x_3, x_4, x_5, x_6, x_7, x_8, x_607); -if (lean_obj_tag(x_915) == 0) -{ -lean_object* x_916; lean_object* x_917; lean_object* x_918; -x_916 = lean_ctor_get(x_915, 0); -lean_inc(x_916); -x_917 = lean_ctor_get(x_915, 1); -lean_inc(x_917); -lean_dec(x_915); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_918 = l_Lean_Meta_whnf___at___private_Lean_Elab_Term_6__isTypeApp_x3f___spec__1(x_916, x_3, x_4, x_5, x_6, x_7, x_8, x_917); -if (lean_obj_tag(x_918) == 0) -{ -lean_object* x_919; lean_object* x_920; lean_object* x_921; -x_919 = lean_ctor_get(x_918, 0); -lean_inc(x_919); -x_920 = lean_ctor_get(x_918, 1); -lean_inc(x_920); -lean_dec(x_918); -lean_inc(x_919); -x_921 = l_Lean_Elab_Term_tryPostponeIfMVar(x_919, x_3, x_4, x_5, x_6, x_7, x_8, x_920); -if (lean_obj_tag(x_921) == 0) -{ -lean_object* x_922; lean_object* x_923; lean_object* x_924; lean_object* x_930; -x_922 = lean_ctor_get(x_921, 1); -lean_inc(x_922); -if (lean_is_exclusive(x_921)) { - lean_ctor_release(x_921, 0); - lean_ctor_release(x_921, 1); - x_923 = x_921; -} else { - lean_dec_ref(x_921); - x_923 = lean_box(0); -} -x_930 = l_Lean_Expr_getAppFn___main(x_919); -if (lean_obj_tag(x_930) == 4) -{ -lean_object* x_931; lean_object* x_932; -lean_dec(x_919); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_931 = lean_ctor_get(x_930, 0); -lean_inc(x_931); -lean_dec(x_930); -if (lean_is_scalar(x_923)) { - x_932 = lean_alloc_ctor(0, 2, 0); -} else { - x_932 = x_923; -} -lean_ctor_set(x_932, 0, x_931); -lean_ctor_set(x_932, 1, x_922); -return x_932; -} -else -{ -lean_object* x_933; -lean_dec(x_930); -lean_dec(x_923); -x_933 = lean_box(0); -x_924 = x_933; -goto block_929; -} -block_929: -{ -lean_object* x_925; lean_object* x_926; lean_object* x_927; lean_object* x_928; -lean_dec(x_924); -x_925 = l_Lean_indentExpr(x_919); -x_926 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -x_927 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_927, 0, x_926); -lean_ctor_set(x_927, 1, x_925); -x_928 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_927, x_3, x_4, x_5, x_6, x_7, x_8, x_922); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_928; -} -} -else -{ -lean_object* x_934; lean_object* x_935; lean_object* x_936; lean_object* x_937; -lean_dec(x_919); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_934 = lean_ctor_get(x_921, 0); -lean_inc(x_934); -x_935 = lean_ctor_get(x_921, 1); -lean_inc(x_935); -if (lean_is_exclusive(x_921)) { - lean_ctor_release(x_921, 0); - lean_ctor_release(x_921, 1); - x_936 = x_921; -} else { - lean_dec_ref(x_921); - x_936 = lean_box(0); -} -if (lean_is_scalar(x_936)) { - x_937 = lean_alloc_ctor(1, 2, 0); -} else { - x_937 = x_936; -} -lean_ctor_set(x_937, 0, x_934); -lean_ctor_set(x_937, 1, x_935); -return x_937; -} -} -else -{ -lean_object* x_938; lean_object* x_939; lean_object* x_940; lean_object* x_941; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_938 = lean_ctor_get(x_918, 0); -lean_inc(x_938); -x_939 = lean_ctor_get(x_918, 1); -lean_inc(x_939); -if (lean_is_exclusive(x_918)) { - lean_ctor_release(x_918, 0); - lean_ctor_release(x_918, 1); - x_940 = x_918; -} else { - lean_dec_ref(x_918); - x_940 = lean_box(0); -} -if (lean_is_scalar(x_940)) { - x_941 = lean_alloc_ctor(1, 2, 0); -} else { - x_941 = x_940; -} -lean_ctor_set(x_941, 0, x_938); -lean_ctor_set(x_941, 1, x_939); -return x_941; -} -} -else -{ -lean_object* x_942; lean_object* x_943; lean_object* x_944; lean_object* x_945; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_942 = lean_ctor_get(x_915, 0); -lean_inc(x_942); -x_943 = lean_ctor_get(x_915, 1); -lean_inc(x_943); -if (lean_is_exclusive(x_915)) { - lean_ctor_release(x_915, 0); - lean_ctor_release(x_915, 1); - x_944 = x_915; -} else { - lean_dec_ref(x_915); - x_944 = lean_box(0); -} -if (lean_is_scalar(x_944)) { - x_945 = lean_alloc_ctor(1, 2, 0); -} else { - x_945 = x_944; -} -lean_ctor_set(x_945, 0, x_942); -lean_ctor_set(x_945, 1, x_943); -return x_945; -} -} -else -{ -lean_object* x_946; -lean_dec(x_2); -x_946 = lean_box(0); -x_608 = x_946; -goto block_613; -} -} -case 11: -{ -lean_dec(x_614); -if (lean_obj_tag(x_2) == 2) -{ -lean_object* x_947; lean_object* x_948; -lean_dec(x_65); -x_947 = lean_ctor_get(x_2, 1); -lean_inc(x_947); -lean_dec(x_2); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_948 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_947, x_3, x_4, x_5, x_6, x_7, x_8, x_607); -if (lean_obj_tag(x_948) == 0) -{ -lean_object* x_949; lean_object* x_950; lean_object* x_951; -x_949 = lean_ctor_get(x_948, 0); -lean_inc(x_949); -x_950 = lean_ctor_get(x_948, 1); -lean_inc(x_950); -lean_dec(x_948); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_951 = l_Lean_Meta_whnf___at___private_Lean_Elab_Term_6__isTypeApp_x3f___spec__1(x_949, x_3, x_4, x_5, x_6, x_7, x_8, x_950); -if (lean_obj_tag(x_951) == 0) -{ -lean_object* x_952; lean_object* x_953; lean_object* x_954; -x_952 = lean_ctor_get(x_951, 0); -lean_inc(x_952); -x_953 = lean_ctor_get(x_951, 1); -lean_inc(x_953); -lean_dec(x_951); -lean_inc(x_952); -x_954 = l_Lean_Elab_Term_tryPostponeIfMVar(x_952, x_3, x_4, x_5, x_6, x_7, x_8, x_953); -if (lean_obj_tag(x_954) == 0) -{ -lean_object* x_955; lean_object* x_956; lean_object* x_957; lean_object* x_963; -x_955 = lean_ctor_get(x_954, 1); -lean_inc(x_955); -if (lean_is_exclusive(x_954)) { - lean_ctor_release(x_954, 0); - lean_ctor_release(x_954, 1); - x_956 = x_954; -} else { - lean_dec_ref(x_954); - x_956 = lean_box(0); -} -x_963 = l_Lean_Expr_getAppFn___main(x_952); -if (lean_obj_tag(x_963) == 4) -{ -lean_object* x_964; lean_object* x_965; -lean_dec(x_952); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_964 = lean_ctor_get(x_963, 0); -lean_inc(x_964); -lean_dec(x_963); -if (lean_is_scalar(x_956)) { - x_965 = lean_alloc_ctor(0, 2, 0); -} else { - x_965 = x_956; -} -lean_ctor_set(x_965, 0, x_964); -lean_ctor_set(x_965, 1, x_955); -return x_965; -} -else -{ -lean_object* x_966; -lean_dec(x_963); -lean_dec(x_956); -x_966 = lean_box(0); -x_957 = x_966; -goto block_962; -} -block_962: -{ -lean_object* x_958; lean_object* x_959; lean_object* x_960; lean_object* x_961; -lean_dec(x_957); -x_958 = l_Lean_indentExpr(x_952); -x_959 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -x_960 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_960, 0, x_959); -lean_ctor_set(x_960, 1, x_958); -x_961 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_960, x_3, x_4, x_5, x_6, x_7, x_8, x_955); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_961; -} -} -else -{ -lean_object* x_967; lean_object* x_968; lean_object* x_969; lean_object* x_970; -lean_dec(x_952); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_967 = lean_ctor_get(x_954, 0); -lean_inc(x_967); -x_968 = lean_ctor_get(x_954, 1); -lean_inc(x_968); -if (lean_is_exclusive(x_954)) { - lean_ctor_release(x_954, 0); - lean_ctor_release(x_954, 1); - x_969 = x_954; -} else { - lean_dec_ref(x_954); - x_969 = lean_box(0); -} -if (lean_is_scalar(x_969)) { - x_970 = lean_alloc_ctor(1, 2, 0); -} else { - x_970 = x_969; -} -lean_ctor_set(x_970, 0, x_967); -lean_ctor_set(x_970, 1, x_968); -return x_970; -} -} -else -{ -lean_object* x_971; lean_object* x_972; lean_object* x_973; lean_object* x_974; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_971 = lean_ctor_get(x_951, 0); -lean_inc(x_971); -x_972 = lean_ctor_get(x_951, 1); -lean_inc(x_972); -if (lean_is_exclusive(x_951)) { - lean_ctor_release(x_951, 0); - lean_ctor_release(x_951, 1); - x_973 = x_951; -} else { - lean_dec_ref(x_951); - x_973 = lean_box(0); -} -if (lean_is_scalar(x_973)) { - x_974 = lean_alloc_ctor(1, 2, 0); -} else { - x_974 = x_973; -} -lean_ctor_set(x_974, 0, x_971); -lean_ctor_set(x_974, 1, x_972); -return x_974; -} -} -else -{ -lean_object* x_975; lean_object* x_976; lean_object* x_977; lean_object* x_978; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_975 = lean_ctor_get(x_948, 0); -lean_inc(x_975); -x_976 = lean_ctor_get(x_948, 1); -lean_inc(x_976); -if (lean_is_exclusive(x_948)) { - lean_ctor_release(x_948, 0); - lean_ctor_release(x_948, 1); - x_977 = x_948; -} else { - lean_dec_ref(x_948); - x_977 = lean_box(0); -} -if (lean_is_scalar(x_977)) { - x_978 = lean_alloc_ctor(1, 2, 0); -} else { - x_978 = x_977; -} -lean_ctor_set(x_978, 0, x_975); -lean_ctor_set(x_978, 1, x_976); -return x_978; -} -} -else -{ -lean_object* x_979; -lean_dec(x_2); -x_979 = lean_box(0); -x_608 = x_979; -goto block_613; -} -} -default: -{ -lean_dec(x_614); -if (lean_obj_tag(x_2) == 2) -{ -lean_object* x_980; lean_object* x_981; -lean_dec(x_65); -x_980 = lean_ctor_get(x_2, 1); -lean_inc(x_980); -lean_dec(x_2); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_981 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_980, x_3, x_4, x_5, x_6, x_7, x_8, x_607); -if (lean_obj_tag(x_981) == 0) -{ -lean_object* x_982; lean_object* x_983; lean_object* x_984; -x_982 = lean_ctor_get(x_981, 0); -lean_inc(x_982); -x_983 = lean_ctor_get(x_981, 1); -lean_inc(x_983); -lean_dec(x_981); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_984 = l_Lean_Meta_whnf___at___private_Lean_Elab_Term_6__isTypeApp_x3f___spec__1(x_982, x_3, x_4, x_5, x_6, x_7, x_8, x_983); -if (lean_obj_tag(x_984) == 0) -{ -lean_object* x_985; lean_object* x_986; lean_object* x_987; -x_985 = lean_ctor_get(x_984, 0); -lean_inc(x_985); -x_986 = lean_ctor_get(x_984, 1); -lean_inc(x_986); -lean_dec(x_984); -lean_inc(x_985); -x_987 = l_Lean_Elab_Term_tryPostponeIfMVar(x_985, x_3, x_4, x_5, x_6, x_7, x_8, x_986); -if (lean_obj_tag(x_987) == 0) -{ -lean_object* x_988; lean_object* x_989; lean_object* x_990; lean_object* x_996; -x_988 = lean_ctor_get(x_987, 1); -lean_inc(x_988); -if (lean_is_exclusive(x_987)) { - lean_ctor_release(x_987, 0); - lean_ctor_release(x_987, 1); - x_989 = x_987; -} else { - lean_dec_ref(x_987); - x_989 = lean_box(0); -} -x_996 = l_Lean_Expr_getAppFn___main(x_985); -if (lean_obj_tag(x_996) == 4) -{ -lean_object* x_997; lean_object* x_998; -lean_dec(x_985); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_997 = lean_ctor_get(x_996, 0); -lean_inc(x_997); -lean_dec(x_996); -if (lean_is_scalar(x_989)) { - x_998 = lean_alloc_ctor(0, 2, 0); -} else { - x_998 = x_989; -} -lean_ctor_set(x_998, 0, x_997); -lean_ctor_set(x_998, 1, x_988); -return x_998; -} -else -{ -lean_object* x_999; -lean_dec(x_996); -lean_dec(x_989); -x_999 = lean_box(0); -x_990 = x_999; -goto block_995; -} -block_995: -{ -lean_object* x_991; lean_object* x_992; lean_object* x_993; lean_object* x_994; -lean_dec(x_990); -x_991 = l_Lean_indentExpr(x_985); -x_992 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9; -x_993 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_993, 0, x_992); -lean_ctor_set(x_993, 1, x_991); -x_994 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_993, x_3, x_4, x_5, x_6, x_7, x_8, x_988); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_994; -} -} -else -{ -lean_object* x_1000; lean_object* x_1001; lean_object* x_1002; lean_object* x_1003; -lean_dec(x_985); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_1000 = lean_ctor_get(x_987, 0); -lean_inc(x_1000); -x_1001 = lean_ctor_get(x_987, 1); -lean_inc(x_1001); -if (lean_is_exclusive(x_987)) { - lean_ctor_release(x_987, 0); - lean_ctor_release(x_987, 1); - x_1002 = x_987; -} else { - lean_dec_ref(x_987); - x_1002 = lean_box(0); -} -if (lean_is_scalar(x_1002)) { - x_1003 = lean_alloc_ctor(1, 2, 0); -} else { - x_1003 = x_1002; -} -lean_ctor_set(x_1003, 0, x_1000); -lean_ctor_set(x_1003, 1, x_1001); -return x_1003; -} -} -else -{ -lean_object* x_1004; lean_object* x_1005; lean_object* x_1006; lean_object* x_1007; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_1004 = lean_ctor_get(x_984, 0); -lean_inc(x_1004); -x_1005 = lean_ctor_get(x_984, 1); -lean_inc(x_1005); -if (lean_is_exclusive(x_984)) { - lean_ctor_release(x_984, 0); - lean_ctor_release(x_984, 1); - x_1006 = x_984; -} else { - lean_dec_ref(x_984); - x_1006 = lean_box(0); -} -if (lean_is_scalar(x_1006)) { - x_1007 = lean_alloc_ctor(1, 2, 0); -} else { - x_1007 = x_1006; -} -lean_ctor_set(x_1007, 0, x_1004); -lean_ctor_set(x_1007, 1, x_1005); -return x_1007; -} -} -else -{ -lean_object* x_1008; lean_object* x_1009; lean_object* x_1010; lean_object* x_1011; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_1008 = lean_ctor_get(x_981, 0); -lean_inc(x_1008); -x_1009 = lean_ctor_get(x_981, 1); -lean_inc(x_1009); -if (lean_is_exclusive(x_981)) { - lean_ctor_release(x_981, 0); - lean_ctor_release(x_981, 1); - x_1010 = x_981; -} else { - lean_dec_ref(x_981); - x_1010 = lean_box(0); -} -if (lean_is_scalar(x_1010)) { - x_1011 = lean_alloc_ctor(1, 2, 0); -} else { - x_1011 = x_1010; -} -lean_ctor_set(x_1011, 0, x_1008); -lean_ctor_set(x_1011, 1, x_1009); -return x_1011; -} -} -else -{ -lean_object* x_1012; -lean_dec(x_2); -x_1012 = lean_box(0); -x_608 = x_1012; -goto block_613; -} -} -} -block_613: -{ -lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; -lean_dec(x_608); -x_609 = l_Lean_indentExpr(x_65); -x_610 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; -x_611 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_611, 0, x_610); -lean_ctor_set(x_611, 1, x_609); -x_612 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_611, x_3, x_4, x_5, x_6, x_7, x_8, x_607); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_612; -} -} -} -else -{ -uint8_t x_1013; -lean_dec(x_65); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_1013 = !lean_is_exclusive(x_66); -if (x_1013 == 0) -{ -return x_66; -} -else -{ -lean_object* x_1014; lean_object* x_1015; lean_object* x_1016; -x_1014 = lean_ctor_get(x_66, 0); -x_1015 = lean_ctor_get(x_66, 1); -lean_inc(x_1015); -lean_inc(x_1014); -lean_dec(x_66); -x_1016 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1016, 0, x_1014); -lean_ctor_set(x_1016, 1, x_1015); -return x_1016; -} -} -} -block_20: -{ -lean_dec(x_12); -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_13; lean_object* x_14; -x_13 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__3; -x_14 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_11); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(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; -x_15 = lean_ctor_get(x_1, 0); -lean_inc(x_15); -lean_dec(x_1); -x_16 = l_Lean_indentExpr(x_15); -x_17 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; -x_18 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_16); -x_19 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_11); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_19; -} -} } else { -uint8_t x_1017; +uint8_t x_157; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -8837,49 +4544,49 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_1017 = !lean_is_exclusive(x_10); -if (x_1017 == 0) +x_157 = !lean_is_exclusive(x_10); +if (x_157 == 0) { return x_10; } else { -lean_object* x_1018; lean_object* x_1019; lean_object* x_1020; -x_1018 = lean_ctor_get(x_10, 0); -x_1019 = lean_ctor_get(x_10, 1); -lean_inc(x_1019); -lean_inc(x_1018); +lean_object* x_158; lean_object* x_159; lean_object* x_160; +x_158 = lean_ctor_get(x_10, 0); +x_159 = lean_ctor_get(x_10, 1); +lean_inc(x_159); +lean_inc(x_158); lean_dec(x_10); -x_1020 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1020, 0, x_1018); -lean_ctor_set(x_1020, 1, x_1019); -return x_1020; +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; } } } } -lean_object* l___private_Lean_Elab_StructInst_5__getStructName(lean_object* x_1) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_5__getStructName___rarg___boxed), 9, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___boxed), 9, 0); return x_2; } } -lean_object* l___private_Lean_Elab_StructInst_5__getStructName___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* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l___private_Lean_Elab_StructInst_5__getStructName___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_4); return x_10; } } -lean_object* l___private_Lean_Elab_StructInst_5__getStructName___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l___private_Lean_Elab_StructInst_5__getStructName(x_1); +x_2 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName(x_1); lean_dec(x_1); return x_2; } @@ -8904,6 +4611,60 @@ x_1 = l_Lean_Elab_Term_StructInst_FieldLHS_inhabited___closed__1; return x_1; } } +lean_object* l_Lean_Elab_Term_StructInst_FieldLHS_hasFormat_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 0: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +lean_dec(x_4); +lean_dec(x_3); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_2(x_2, x_5, x_6); +return x_7; +} +case 1: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_4); +lean_dec(x_2); +x_8 = lean_ctor_get(x_1, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_1, 1); +lean_inc(x_9); +lean_dec(x_1); +x_10 = lean_apply_2(x_3, x_8, x_9); +return x_10; +} +default: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_3); +lean_dec(x_2); +x_11 = lean_ctor_get(x_1, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_1, 1); +lean_inc(x_12); +lean_dec(x_1); +x_13 = lean_apply_2(x_4, x_11, x_12); +return x_13; +} +} +} +} +lean_object* l_Lean_Elab_Term_StructInst_FieldLHS_hasFormat_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_FieldLHS_hasFormat_match__1___rarg), 4, 0); +return x_2; +} +} lean_object* l_Lean_Elab_Term_StructInst_FieldLHS_hasFormat(lean_object* x_1) { _start: { @@ -8946,6 +4707,14 @@ return x_11; } } } +static lean_object* _init_l_Lean_Elab_Term_StructInst_Field_expr_x3f___default() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} static lean_object* _init_l_Lean_Elab_Term_StructInst_Field_inhabited___closed__1() { _start: { @@ -8980,6 +4749,61 @@ x_2 = l_Lean_Elab_Term_StructInst_Field_inhabited___closed__2; return x_2; } } +lean_object* l_Lean_Elab_Term_StructInst_Field_isSimple_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_5; +lean_dec(x_2); +x_5 = lean_apply_1(x_3, x_1); +return x_5; +} +else +{ +lean_object* x_6; +x_6 = lean_ctor_get(x_4, 1); +lean_inc(x_6); +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +lean_dec(x_3); +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_1, 2); +lean_inc(x_8); +x_9 = lean_ctor_get(x_1, 3); +lean_inc(x_9); +lean_dec(x_1); +x_10 = lean_ctor_get(x_4, 0); +lean_inc(x_10); +lean_dec(x_4); +x_11 = lean_apply_4(x_2, x_10, x_7, x_8, x_9); +return x_11; +} +else +{ +lean_object* x_12; +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +x_12 = lean_apply_1(x_3, x_1); +return x_12; +} +} +} +} +lean_object* l_Lean_Elab_Term_StructInst_Field_isSimple_match__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_Field_isSimple_match__1___rarg), 3, 0); +return x_3; +} +} uint8_t l_Lean_Elab_Term_StructInst_Field_isSimple___rarg(lean_object* x_1) { _start: { @@ -9052,7 +4876,103 @@ x_1 = l_Lean_Elab_Term_StructInst_Struct_inhabited___closed__1; return x_1; } } -uint8_t l_List_foldr___main___at_Lean_Elab_Term_StructInst_Struct_allDefault___main___spec__1(uint8_t x_1, lean_object* x_2) { +lean_object* l_Lean_Elab_Term_StructInst_Struct_allDefault_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 0: +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_4); +lean_dec(x_3); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_1(x_2, x_5); +return x_6; +} +case 1: +{ +lean_object* x_7; lean_object* x_8; +lean_dec(x_3); +lean_dec(x_2); +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_apply_1(x_4, x_7); +return x_8; +} +default: +{ +lean_object* x_9; lean_object* x_10; +lean_dec(x_4); +lean_dec(x_2); +x_9 = lean_box(0); +x_10 = lean_apply_1(x_3, x_9); +return x_10; +} +} +} +} +lean_object* l_Lean_Elab_Term_StructInst_Struct_allDefault_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_Struct_allDefault_match__1___rarg), 4, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_StructInst_Struct_allDefault_match__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; lean_object* x_7; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 2); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 3); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_4(x_2, x_3, x_4, x_5, x_6); +return x_7; +} +} +lean_object* l_Lean_Elab_Term_StructInst_Struct_allDefault_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_Struct_allDefault_match__2___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_StructInst_Struct_allDefault_match__3___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; lean_object* x_7; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 2); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 3); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_4(x_2, x_3, x_4, x_5, x_6); +return x_7; +} +} +lean_object* l_Lean_Elab_Term_StructInst_Struct_allDefault_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_Struct_allDefault_match__3___rarg), 2, 0); +return x_2; +} +} +uint8_t l_List_foldr___main___at_Lean_Elab_Term_StructInst_Struct_allDefault___spec__1(uint8_t x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -9064,7 +4984,7 @@ else lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; x_3 = lean_ctor_get(x_2, 0); x_4 = lean_ctor_get(x_2, 1); -x_5 = l_List_foldr___main___at_Lean_Elab_Term_StructInst_Struct_allDefault___main___spec__1(x_1, x_4); +x_5 = l_List_foldr___main___at_Lean_Elab_Term_StructInst_Struct_allDefault___spec__1(x_1, x_4); x_6 = lean_ctor_get(x_3, 2); switch (lean_obj_tag(x_6)) { case 0: @@ -9077,7 +4997,7 @@ case 1: { lean_object* x_8; uint8_t x_9; x_8 = lean_ctor_get(x_6, 0); -x_9 = l_Lean_Elab_Term_StructInst_Struct_allDefault___main(x_8); +x_9 = l_Lean_Elab_Term_StructInst_Struct_allDefault(x_8); if (x_9 == 0) { uint8_t x_10; @@ -9097,46 +5017,28 @@ return x_5; } } } -uint8_t l_Lean_Elab_Term_StructInst_Struct_allDefault___main(lean_object* x_1) { +uint8_t l_Lean_Elab_Term_StructInst_Struct_allDefault(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; uint8_t x_4; x_2 = lean_ctor_get(x_1, 2); x_3 = 1; -x_4 = l_List_foldr___main___at_Lean_Elab_Term_StructInst_Struct_allDefault___main___spec__1(x_3, x_2); +x_4 = l_List_foldr___main___at_Lean_Elab_Term_StructInst_Struct_allDefault___spec__1(x_3, x_2); return x_4; } } -lean_object* l_List_foldr___main___at_Lean_Elab_Term_StructInst_Struct_allDefault___main___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldr___main___at_Lean_Elab_Term_StructInst_Struct_allDefault___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; uint8_t x_4; lean_object* x_5; x_3 = lean_unbox(x_1); lean_dec(x_1); -x_4 = l_List_foldr___main___at_Lean_Elab_Term_StructInst_Struct_allDefault___main___spec__1(x_3, x_2); +x_4 = l_List_foldr___main___at_Lean_Elab_Term_StructInst_Struct_allDefault___spec__1(x_3, x_2); lean_dec(x_2); x_5 = lean_box(x_4); return x_5; } } -lean_object* l_Lean_Elab_Term_StructInst_Struct_allDefault___main___boxed(lean_object* x_1) { -_start: -{ -uint8_t x_2; lean_object* x_3; -x_2 = l_Lean_Elab_Term_StructInst_Struct_allDefault___main(x_1); -lean_dec(x_1); -x_3 = lean_box(x_2); -return x_3; -} -} -uint8_t l_Lean_Elab_Term_StructInst_Struct_allDefault(lean_object* x_1) { -_start: -{ -uint8_t x_2; -x_2 = l_Lean_Elab_Term_StructInst_Struct_allDefault___main(x_1); -return x_2; -} -} lean_object* l_Lean_Elab_Term_StructInst_Struct_allDefault___boxed(lean_object* x_1) { _start: { @@ -9147,6 +5049,31 @@ x_3 = lean_box(x_2); return x_3; } } +lean_object* l_Lean_Elab_Term_StructInst_Struct_ref_match__1___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; lean_object* x_7; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 2); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 3); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_4(x_2, x_3, x_4, x_5, x_6); +return x_7; +} +} +lean_object* l_Lean_Elab_Term_StructInst_Struct_ref_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_Struct_ref_match__1___rarg), 2, 0); +return x_2; +} +} lean_object* l_Lean_Elab_Term_StructInst_Struct_ref(lean_object* x_1) { _start: { @@ -9165,6 +5092,31 @@ lean_dec(x_1); return x_2; } } +lean_object* l_Lean_Elab_Term_StructInst_Struct_structName_match__1___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; lean_object* x_7; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 2); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 3); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_4(x_2, x_3, x_4, x_5, x_6); +return x_7; +} +} +lean_object* l_Lean_Elab_Term_StructInst_Struct_structName_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_Struct_structName_match__1___rarg), 2, 0); +return x_2; +} +} lean_object* l_Lean_Elab_Term_StructInst_Struct_structName(lean_object* x_1) { _start: { @@ -9183,6 +5135,31 @@ lean_dec(x_1); return x_2; } } +lean_object* l_Lean_Elab_Term_StructInst_Struct_fields_match__1___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; lean_object* x_7; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 2); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 3); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_4(x_2, x_3, x_4, x_5, x_6); +return x_7; +} +} +lean_object* l_Lean_Elab_Term_StructInst_Struct_fields_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_Struct_fields_match__1___rarg), 2, 0); +return x_2; +} +} lean_object* l_Lean_Elab_Term_StructInst_Struct_fields(lean_object* x_1) { _start: { @@ -9201,6 +5178,31 @@ lean_dec(x_1); return x_2; } } +lean_object* l_Lean_Elab_Term_StructInst_Struct_source_match__1___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; lean_object* x_7; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 2); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 3); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_4(x_2, x_3, x_4, x_5, x_6); +return x_7; +} +} +lean_object* l_Lean_Elab_Term_StructInst_Struct_source_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_Struct_source_match__1___rarg), 2, 0); +return x_2; +} +} lean_object* l_Lean_Elab_Term_StructInst_Struct_source(lean_object* x_1) { _start: { @@ -9219,6 +5221,52 @@ lean_dec(x_1); return x_2; } } +lean_object* l_Lean_Elab_Term_StructInst_formatField_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 0: +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_4); +lean_dec(x_3); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_1(x_2, x_5); +return x_6; +} +case 1: +{ +lean_object* x_7; lean_object* x_8; +lean_dec(x_4); +lean_dec(x_2); +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_apply_1(x_3, x_7); +return x_8; +} +default: +{ +lean_object* x_9; lean_object* x_10; +lean_dec(x_3); +lean_dec(x_2); +x_9 = lean_box(0); +x_10 = lean_apply_1(x_4, x_9); +return x_10; +} +} +} +} +lean_object* l_Lean_Elab_Term_StructInst_formatField_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_formatField_match__1___rarg), 4, 0); +return x_2; +} +} lean_object* l_Lean_Format_joinSep___main___at_Lean_Elab_Term_StructInst_formatField___spec__1(lean_object* x_1, lean_object* x_2) { _start: { @@ -9436,15 +5484,88 @@ return x_16; } } } -static lean_object* _init_l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___main___spec__1___closed__1() { +lean_object* l_Lean_Elab_Term_StructInst_formatStruct_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 0: +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_4); +lean_dec(x_3); +x_5 = lean_box(0); +x_6 = lean_apply_1(x_2, x_5); +return x_6; +} +case 1: +{ +lean_object* x_7; lean_object* x_8; +lean_dec(x_4); +lean_dec(x_2); +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_apply_1(x_3, x_7); +return x_8; +} +default: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +lean_dec(x_3); +lean_dec(x_2); +x_9 = lean_ctor_get(x_1, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_1, 1); +lean_inc(x_10); +lean_dec(x_1); +x_11 = lean_apply_2(x_4, x_9, x_10); +return x_11; +} +} +} +} +lean_object* l_Lean_Elab_Term_StructInst_formatStruct_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_formatStruct_match__1___rarg), 4, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_StructInst_formatStruct_match__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; lean_object* x_7; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 2); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 3); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_4(x_2, x_3, x_4, x_5, x_6); +return x_7; +} +} +lean_object* l_Lean_Elab_Term_StructInst_formatStruct_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_formatStruct_match__2___rarg), 2, 0); +return x_2; +} +} +static lean_object* _init_l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___spec__1___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_formatStruct___main), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_formatStruct), 1, 0); return x_1; } } -lean_object* l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___main___spec__1(lean_object* x_1) { +lean_object* l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -9462,9 +5583,9 @@ if (x_3 == 0) lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); -x_6 = l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___main___spec__1___closed__1; +x_6 = l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___spec__1___closed__1; x_7 = l_Lean_Elab_Term_StructInst_formatField(x_6, x_4); -x_8 = l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___main___spec__1(x_5); +x_8 = l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___spec__1(x_5); lean_ctor_set(x_1, 1, x_8); lean_ctor_set(x_1, 0, x_7); return x_1; @@ -9477,9 +5598,9 @@ x_10 = lean_ctor_get(x_1, 1); lean_inc(x_10); lean_inc(x_9); lean_dec(x_1); -x_11 = l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___main___spec__1___closed__1; +x_11 = l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___spec__1___closed__1; x_12 = l_Lean_Elab_Term_StructInst_formatField(x_11, x_9); -x_13 = l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___main___spec__1(x_10); +x_13 = l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___spec__1(x_10); x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); @@ -9488,7 +5609,7 @@ return x_14; } } } -static lean_object* _init_l_Lean_Elab_Term_StructInst_formatStruct___main___closed__1() { +static lean_object* _init_l_Lean_Elab_Term_StructInst_formatStruct___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -9498,7 +5619,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_StructInst_formatStruct___main___closed__2() { +static lean_object* _init_l_Lean_Elab_Term_StructInst_formatStruct___closed__2() { _start: { lean_object* x_1; lean_object* x_2; @@ -9508,7 +5629,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_StructInst_formatStruct___main___closed__3() { +static lean_object* _init_l_Lean_Elab_Term_StructInst_formatStruct___closed__3() { _start: { lean_object* x_1; @@ -9516,17 +5637,17 @@ x_1 = lean_mk_string(" .. }"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_StructInst_formatStruct___main___closed__4() { +static lean_object* _init_l_Lean_Elab_Term_StructInst_formatStruct___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_StructInst_formatStruct___main___closed__3; +x_1 = l_Lean_Elab_Term_StructInst_formatStruct___closed__3; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_StructInst_formatStruct___main___closed__5() { +static lean_object* _init_l_Lean_Elab_Term_StructInst_formatStruct___closed__5() { _start: { lean_object* x_1; lean_object* x_2; @@ -9536,7 +5657,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Lean_Elab_Term_StructInst_formatStruct___main(lean_object* x_1) { +lean_object* l_Lean_Elab_Term_StructInst_formatStruct(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; @@ -9545,7 +5666,7 @@ lean_inc(x_2); x_3 = lean_ctor_get(x_1, 3); lean_inc(x_3); lean_dec(x_1); -x_4 = l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___main___spec__1(x_2); +x_4 = l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___spec__1(x_2); x_5 = l_Lean_formatKVMap___closed__1; x_6 = l_Lean_Format_joinSep___main___at___private_Lean_Data_Trie_6__toStringAux___main___spec__1(x_4, x_5); lean_dec(x_4); @@ -9553,11 +5674,11 @@ switch (lean_obj_tag(x_3)) { case 0: { lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_7 = l_Lean_Elab_Term_StructInst_formatStruct___main___closed__1; +x_7 = l_Lean_Elab_Term_StructInst_formatStruct___closed__1; x_8 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_8, 0, x_7); lean_ctor_set(x_8, 1, x_6); -x_9 = l_Lean_Elab_Term_StructInst_formatStruct___main___closed__2; +x_9 = l_Lean_Elab_Term_StructInst_formatStruct___closed__2; x_10 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_10, 0, x_8); lean_ctor_set(x_10, 1, x_9); @@ -9567,11 +5688,11 @@ case 1: { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_dec(x_3); -x_11 = l_Lean_Elab_Term_StructInst_formatStruct___main___closed__1; +x_11 = l_Lean_Elab_Term_StructInst_formatStruct___closed__1; x_12 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_12, 0, x_11); lean_ctor_set(x_12, 1, x_6); -x_13 = l_Lean_Elab_Term_StructInst_formatStruct___main___closed__4; +x_13 = l_Lean_Elab_Term_StructInst_formatStruct___closed__4; x_14 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); @@ -9587,18 +5708,18 @@ x_16 = lean_expr_dbg_to_string(x_15); lean_dec(x_15); x_17 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_17, 0, x_16); -x_18 = l_Lean_Elab_Term_StructInst_formatStruct___main___closed__1; +x_18 = l_Lean_Elab_Term_StructInst_formatStruct___closed__1; x_19 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_19, 0, x_18); lean_ctor_set(x_19, 1, x_17); -x_20 = l_Lean_Elab_Term_StructInst_formatStruct___main___closed__5; +x_20 = l_Lean_Elab_Term_StructInst_formatStruct___closed__5; x_21 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_21, 0, x_19); lean_ctor_set(x_21, 1, x_20); x_22 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_22, 0, x_21); lean_ctor_set(x_22, 1, x_6); -x_23 = l_Lean_Elab_Term_StructInst_formatStruct___main___closed__2; +x_23 = l_Lean_Elab_Term_StructInst_formatStruct___closed__2; x_24 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_24, 0, x_22); lean_ctor_set(x_24, 1, x_23); @@ -9607,27 +5728,11 @@ return x_24; } } } -lean_object* l_Lean_Elab_Term_StructInst_formatStruct(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Lean_Elab_Term_StructInst_formatStruct___main(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Term_StructInst_Struct_hasFormat___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_formatStruct), 1, 0); -return x_1; -} -} static lean_object* _init_l_Lean_Elab_Term_StructInst_Struct_hasFormat() { _start: { lean_object* x_1; -x_1 = l_Lean_Elab_Term_StructInst_Struct_hasFormat___closed__1; +x_1 = l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___spec__1___closed__1; return x_1; } } @@ -9636,7 +5741,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_HasRepr___closed__1; -x_2 = l_Lean_Elab_Term_StructInst_Struct_hasFormat___closed__1; +x_2 = l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___spec__1___closed__1; x_3 = lean_alloc_closure((void*)(l_Function_comp___rarg), 3, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); @@ -9655,7 +5760,7 @@ static lean_object* _init_l_Lean_Elab_Term_StructInst_Field_hasFormat___closed__ _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_StructInst_Struct_hasFormat___closed__1; +x_1 = l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___spec__1___closed__1; x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_formatField), 2, 1); lean_closure_set(x_2, 0, x_1); return x_2; @@ -9689,6 +5794,60 @@ x_1 = l_Lean_Elab_Term_StructInst_Field_hasToString___closed__1; return x_1; } } +lean_object* l_Lean_Elab_Term_StructInst_FieldLHS_toSyntax_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 0: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +lean_dec(x_4); +lean_dec(x_2); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_2(x_3, x_5, x_6); +return x_7; +} +case 1: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_3); +lean_dec(x_2); +x_8 = lean_ctor_get(x_1, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_1, 1); +lean_inc(x_9); +lean_dec(x_1); +x_10 = lean_apply_2(x_4, x_8, x_9); +return x_10; +} +default: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_4); +lean_dec(x_3); +x_11 = lean_ctor_get(x_1, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_1, 1); +lean_inc(x_12); +lean_dec(x_1); +x_13 = lean_apply_2(x_2, x_11, x_12); +return x_13; +} +} +} +} +lean_object* l_Lean_Elab_Term_StructInst_FieldLHS_toSyntax_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_FieldLHS_toSyntax_match__1___rarg), 4, 0); +return x_2; +} +} lean_object* l_Lean_Elab_Term_StructInst_FieldLHS_toSyntax(uint8_t x_1, lean_object* x_2) { _start: { @@ -9778,6 +5937,57 @@ x_4 = l_Lean_Elab_Term_StructInst_FieldLHS_toSyntax(x_3, x_2); return x_4; } } +lean_object* l_Lean_Elab_Term_StructInst_FieldVal_toSyntax_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = lean_apply_1(x_3, x_1); +return x_6; +} +} +} +lean_object* l_Lean_Elab_Term_StructInst_FieldVal_toSyntax_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_FieldVal_toSyntax_match__1___rarg), 3, 0); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Term_StructInst_FieldVal_toSyntax___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Lean.Elab.Term.StructInst.FieldVal.toSyntax"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_StructInst_FieldVal_toSyntax___closed__2() { +_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_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__4; +x_2 = l_Lean_Elab_Term_StructInst_FieldVal_toSyntax___closed__1; +x_3 = lean_unsigned_to_nat(255u); +x_4 = lean_unsigned_to_nat(23u); +x_5 = l_Lean_ResolveName_resolveNamespaceUsingScope___closed__3; +x_6 = l___private_Init_Util_2__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} lean_object* l_Lean_Elab_Term_StructInst_FieldVal_toSyntax(lean_object* x_1) { _start: { @@ -9790,10 +6000,11 @@ return x_2; } else { -lean_object* x_3; lean_object* x_4; +lean_object* x_3; lean_object* x_4; lean_object* x_5; x_3 = l_Lean_Syntax_inhabited; -x_4 = l_unreachable_x21___rarg(x_3); -return x_4; +x_4 = l_Lean_Elab_Term_StructInst_FieldVal_toSyntax___closed__2; +x_5 = lean_panic_fn(x_3, x_4); +return x_5; } } } @@ -9806,6 +6017,54 @@ lean_dec(x_1); return x_2; } } +lean_object* l_Lean_Elab_Term_StructInst_Field_toSyntax_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_apply_1(x_3, x_1); +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_2(x_2, x_5, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Elab_Term_StructInst_Field_toSyntax_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_Field_toSyntax_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_StructInst_Field_toSyntax_match__2___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_apply_1(x_2, x_1); +return x_3; +} +} +lean_object* l_Lean_Elab_Term_StructInst_Field_toSyntax_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_Field_toSyntax_match__2___rarg), 2, 0); +return x_2; +} +} lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_Field_toSyntax___spec__1(lean_object* x_1, lean_object* x_2) { _start: { @@ -9840,6 +6099,27 @@ goto _start; } } } +static lean_object* _init_l_Lean_Elab_Term_StructInst_Field_toSyntax___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Lean.Elab.Term.StructInst.Field.toSyntax"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_StructInst_Field_toSyntax___closed__2() { +_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_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__4; +x_2 = l_Lean_Elab_Term_StructInst_Field_toSyntax___closed__1; +x_3 = lean_unsigned_to_nat(266u); +x_4 = lean_unsigned_to_nat(9u); +x_5 = l_Lean_ResolveName_resolveNamespaceUsingScope___closed__3; +x_6 = l___private_Init_Util_2__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} lean_object* l_Lean_Elab_Term_StructInst_Field_toSyntax(lean_object* x_1) { _start: { @@ -9848,51 +6128,83 @@ x_2 = lean_ctor_get(x_1, 1); lean_inc(x_2); if (lean_obj_tag(x_2) == 0) { -lean_object* x_3; lean_object* x_4; +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_dec(x_1); x_3 = l_Lean_Syntax_inhabited; -x_4 = l_unreachable_x21___rarg(x_3); -return x_4; +x_4 = l_Lean_Elab_Term_StructInst_Field_toSyntax___closed__2; +x_5 = lean_panic_fn(x_3, x_4); +return x_5; } else { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_5 = lean_ctor_get(x_2, 0); -lean_inc(x_5); -x_6 = lean_ctor_get(x_2, 1); +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 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_6 = lean_ctor_get(x_2, 0); lean_inc(x_6); -lean_dec(x_2); -x_7 = lean_ctor_get(x_1, 0); +x_7 = lean_ctor_get(x_2, 1); lean_inc(x_7); -x_8 = lean_ctor_get(x_1, 2); +lean_dec(x_2); +x_8 = lean_ctor_get(x_1, 0); lean_inc(x_8); +x_9 = lean_ctor_get(x_1, 2); +lean_inc(x_9); lean_dec(x_1); -x_9 = l_Lean_Elab_Term_StructInst_FieldVal_toSyntax(x_8); -lean_dec(x_8); -x_10 = lean_unsigned_to_nat(3u); -x_11 = l_Lean_Syntax_setArg(x_7, x_10, x_9); -x_12 = 1; -x_13 = l_Lean_Elab_Term_StructInst_FieldLHS_toSyntax(x_12, x_5); -x_14 = lean_unsigned_to_nat(0u); -x_15 = l_Lean_Syntax_setArg(x_11, x_14, x_13); -x_16 = l_List_redLength___main___rarg(x_6); -x_17 = lean_mk_empty_array_with_capacity(x_16); -lean_dec(x_16); -x_18 = l_List_toArrayAux___main___rarg(x_6, x_17); -x_19 = x_18; -x_20 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_Field_toSyntax___spec__1(x_14, x_19); -x_21 = x_20; -x_22 = l_Lean_nullKind; -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_21); -x_24 = lean_unsigned_to_nat(1u); -x_25 = l_Lean_Syntax_setArg(x_15, x_24, x_23); -return x_25; +x_10 = l_Lean_Elab_Term_StructInst_FieldVal_toSyntax(x_9); +lean_dec(x_9); +x_11 = lean_unsigned_to_nat(3u); +x_12 = l_Lean_Syntax_setArg(x_8, x_11, x_10); +x_13 = 1; +x_14 = l_Lean_Elab_Term_StructInst_FieldLHS_toSyntax(x_13, x_6); +x_15 = lean_unsigned_to_nat(0u); +x_16 = l_Lean_Syntax_setArg(x_12, x_15, x_14); +x_17 = l_List_redLength___main___rarg(x_7); +x_18 = lean_mk_empty_array_with_capacity(x_17); +lean_dec(x_17); +x_19 = l_List_toArrayAux___main___rarg(x_7, x_18); +x_20 = x_19; +x_21 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_Field_toSyntax___spec__1(x_15, x_20); +x_22 = x_21; +x_23 = l_Lean_nullKind; +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_22); +x_25 = lean_unsigned_to_nat(1u); +x_26 = l_Lean_Syntax_setArg(x_16, x_25, x_24); +return x_26; } } } -static lean_object* _init_l___private_Lean_Elab_StructInst_6__toFieldLHS___closed__1() { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_toFieldLHS_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_toFieldLHS_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_toFieldLHS_match__1___rarg), 3, 0); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_toFieldLHS___closed__1() { _start: { lean_object* x_1; @@ -9900,23 +6212,23 @@ x_1 = lean_mk_string("unexpected structure syntax"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_6__toFieldLHS___closed__2() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_toFieldLHS___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_StructInst_6__toFieldLHS___closed__1; +x_1 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_toFieldLHS___closed__1; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_StructInst_6__toFieldLHS(lean_object* x_1) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_toFieldLHS(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_inc(x_1); x_2 = l_Lean_Syntax_getKind(x_1); -x_3 = l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__2; +x_3 = l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__2; x_4 = lean_name_eq(x_2, x_3); if (x_4 == 0) { @@ -9937,7 +6249,7 @@ if (lean_obj_tag(x_9) == 0) { lean_object* x_10; lean_dec(x_1); -x_10 = l___private_Lean_Elab_StructInst_6__toFieldLHS___closed__2; +x_10 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_toFieldLHS___closed__2; return x_10; } else @@ -9983,7 +6295,7 @@ if (lean_obj_tag(x_22) == 0) { lean_object* x_23; lean_dec(x_19); -x_23 = l___private_Lean_Elab_StructInst_6__toFieldLHS___closed__2; +x_23 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_toFieldLHS___closed__2; return x_23; } else @@ -10029,7 +6341,7 @@ return x_34; } } } -lean_object* l_Array_filterAux___main___at___private_Lean_Elab_StructInst_7__mkStructView___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_filterAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkStructView___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -10095,7 +6407,7 @@ goto _start; } } } -static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_7__mkStructView___spec__2___closed__1() { +static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkStructView___spec__2___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -10105,13 +6417,13 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_7__mkStructView___spec__2(lean_object* x_1) { +lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkStructView___spec__2(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) { lean_object* x_2; -x_2 = l_List_mapM___main___at___private_Lean_Elab_StructInst_7__mkStructView___spec__2___closed__1; +x_2 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkStructView___spec__2___closed__1; return x_2; } else @@ -10123,7 +6435,7 @@ if (x_3 == 0) lean_object* x_4; lean_object* x_5; lean_object* x_6; x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); -x_6 = l___private_Lean_Elab_StructInst_6__toFieldLHS(x_4); +x_6 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_toFieldLHS(x_4); if (lean_obj_tag(x_6) == 0) { uint8_t x_7; @@ -10151,7 +6463,7 @@ lean_object* x_10; lean_object* x_11; x_10 = lean_ctor_get(x_6, 0); lean_inc(x_10); lean_dec(x_6); -x_11 = l_List_mapM___main___at___private_Lean_Elab_StructInst_7__mkStructView___spec__2(x_5); +x_11 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkStructView___spec__2(x_5); if (lean_obj_tag(x_11) == 0) { uint8_t x_12; @@ -10209,7 +6521,7 @@ x_20 = lean_ctor_get(x_1, 1); lean_inc(x_20); lean_inc(x_19); lean_dec(x_1); -x_21 = l___private_Lean_Elab_StructInst_6__toFieldLHS(x_19); +x_21 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_toFieldLHS(x_19); if (lean_obj_tag(x_21) == 0) { lean_object* x_22; lean_object* x_23; lean_object* x_24; @@ -10237,7 +6549,7 @@ lean_object* x_25; lean_object* x_26; x_25 = lean_ctor_get(x_21, 0); lean_inc(x_25); lean_dec(x_21); -x_26 = l_List_mapM___main___at___private_Lean_Elab_StructInst_7__mkStructView___spec__2(x_20); +x_26 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkStructView___spec__2(x_20); if (lean_obj_tag(x_26) == 0) { lean_object* x_27; lean_object* x_28; lean_object* x_29; @@ -10287,13 +6599,13 @@ return x_33; } } } -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_7__mkStructView___spec__3(lean_object* x_1) { +lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkStructView___spec__3(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) { lean_object* x_2; -x_2 = l_List_mapM___main___at___private_Lean_Elab_StructInst_7__mkStructView___spec__2___closed__1; +x_2 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkStructView___spec__2___closed__1; return x_2; } else @@ -10309,7 +6621,7 @@ x_6 = lean_unsigned_to_nat(3u); x_7 = l_Lean_Syntax_getArg(x_4, x_6); x_8 = lean_unsigned_to_nat(0u); x_9 = l_Lean_Syntax_getArg(x_4, x_8); -x_10 = l___private_Lean_Elab_StructInst_6__toFieldLHS(x_9); +x_10 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_toFieldLHS(x_9); if (lean_obj_tag(x_10) == 0) { uint8_t x_11; @@ -10345,7 +6657,7 @@ x_17 = l_Lean_Syntax_getArgs(x_16); lean_dec(x_16); x_18 = l_Array_toList___rarg(x_17); lean_dec(x_17); -x_19 = l_List_mapM___main___at___private_Lean_Elab_StructInst_7__mkStructView___spec__2(x_18); +x_19 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkStructView___spec__2(x_18); if (lean_obj_tag(x_19) == 0) { uint8_t x_20; @@ -10386,7 +6698,7 @@ lean_ctor_set(x_26, 0, x_4); lean_ctor_set(x_26, 1, x_1); lean_ctor_set(x_26, 2, x_24); lean_ctor_set(x_26, 3, x_25); -x_27 = l_List_mapM___main___at___private_Lean_Elab_StructInst_7__mkStructView___spec__3(x_5); +x_27 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkStructView___spec__3(x_5); if (lean_obj_tag(x_27) == 0) { uint8_t x_28; @@ -10450,7 +6762,7 @@ x_39 = lean_unsigned_to_nat(3u); x_40 = l_Lean_Syntax_getArg(x_37, x_39); x_41 = lean_unsigned_to_nat(0u); x_42 = l_Lean_Syntax_getArg(x_37, x_41); -x_43 = l___private_Lean_Elab_StructInst_6__toFieldLHS(x_42); +x_43 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_toFieldLHS(x_42); if (lean_obj_tag(x_43) == 0) { lean_object* x_44; lean_object* x_45; lean_object* x_46; @@ -10486,7 +6798,7 @@ x_50 = l_Lean_Syntax_getArgs(x_49); lean_dec(x_49); x_51 = l_Array_toList___rarg(x_50); lean_dec(x_50); -x_52 = l_List_mapM___main___at___private_Lean_Elab_StructInst_7__mkStructView___spec__2(x_51); +x_52 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkStructView___spec__2(x_51); if (lean_obj_tag(x_52) == 0) { lean_object* x_53; lean_object* x_54; lean_object* x_55; @@ -10528,7 +6840,7 @@ lean_ctor_set(x_60, 0, x_37); lean_ctor_set(x_60, 1, x_57); lean_ctor_set(x_60, 2, x_58); lean_ctor_set(x_60, 3, x_59); -x_61 = l_List_mapM___main___at___private_Lean_Elab_StructInst_7__mkStructView___spec__3(x_38); +x_61 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkStructView___spec__3(x_38); if (lean_obj_tag(x_61) == 0) { lean_object* x_62; lean_object* x_63; lean_object* x_64; @@ -10579,7 +6891,7 @@ return x_68; } } } -lean_object* l___private_Lean_Elab_StructInst_7__mkStructView(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkStructView(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; @@ -10588,10 +6900,10 @@ x_5 = l_Lean_Syntax_getArg(x_1, x_4); x_6 = l_Lean_Syntax_getArgs(x_5); lean_dec(x_5); x_7 = lean_unsigned_to_nat(0u); -x_8 = l_Array_filterAux___main___at___private_Lean_Elab_StructInst_7__mkStructView___spec__1(x_6, x_7, x_7); +x_8 = l_Array_filterAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkStructView___spec__1(x_6, x_7, x_7); x_9 = l_Array_toList___rarg(x_8); lean_dec(x_8); -x_10 = l_List_mapM___main___at___private_Lean_Elab_StructInst_7__mkStructView___spec__3(x_9); +x_10 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkStructView___spec__3(x_9); if (lean_obj_tag(x_10) == 0) { uint8_t x_11; @@ -10648,6 +6960,31 @@ return x_19; } } } +lean_object* l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM_match__1___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; lean_object* x_7; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 2); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 3); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_4(x_2, x_3, x_4, x_5, x_6); +return x_7; +} +} +lean_object* l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM_match__1___rarg), 2, 0); +return x_2; +} +} lean_object* l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { @@ -10753,7 +7090,120 @@ x_4 = l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___at_Lean_Elab_Term_Struc return x_4; } } -lean_object* l_List_map___main___at___private_Lean_Elab_StructInst_8__expandCompositeFields___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_6; +lean_dec(x_3); +lean_dec(x_2); +x_6 = lean_apply_1(x_4, x_1); +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_ctor_get(x_5, 0); +lean_inc(x_7); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; +x_8 = lean_ctor_get(x_7, 1); +lean_inc(x_8); +if (lean_obj_tag(x_8) == 1) +{ +lean_object* x_9; +lean_dec(x_4); +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; size_t x_16; lean_object* x_17; lean_object* x_18; +lean_dec(x_3); +x_10 = lean_ctor_get(x_1, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_1, 2); +lean_inc(x_11); +x_12 = lean_ctor_get(x_1, 3); +lean_inc(x_12); +lean_dec(x_1); +x_13 = lean_ctor_get(x_5, 1); +lean_inc(x_13); +lean_dec(x_5); +x_14 = lean_ctor_get(x_7, 0); +lean_inc(x_14); +lean_dec(x_7); +x_15 = lean_ctor_get(x_8, 1); +lean_inc(x_15); +x_16 = lean_ctor_get_usize(x_8, 2); +lean_dec(x_8); +x_17 = lean_box_usize(x_16); +x_18 = lean_apply_7(x_2, x_14, x_15, x_17, x_13, x_10, x_11, x_12); +return x_18; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; size_t x_25; lean_object* x_26; lean_object* x_27; +lean_dec(x_2); +x_19 = lean_ctor_get(x_1, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_1, 2); +lean_inc(x_20); +x_21 = lean_ctor_get(x_1, 3); +lean_inc(x_21); +lean_dec(x_1); +x_22 = lean_ctor_get(x_5, 1); +lean_inc(x_22); +lean_dec(x_5); +x_23 = lean_ctor_get(x_7, 0); +lean_inc(x_23); +lean_dec(x_7); +x_24 = lean_ctor_get(x_8, 1); +lean_inc(x_24); +x_25 = lean_ctor_get_usize(x_8, 2); +x_26 = lean_box_usize(x_25); +x_27 = lean_apply_9(x_3, x_23, x_8, x_9, x_24, x_26, x_22, x_19, x_20, x_21); +return x_27; +} +} +else +{ +lean_object* x_28; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_28 = lean_apply_1(x_4, x_1); +return x_28; +} +} +else +{ +lean_object* x_29; +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_29 = lean_apply_1(x_4, x_1); +return x_29; +} +} +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields_match__1___rarg), 4, 0); +return x_2; +} +} +lean_object* l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -10776,7 +7226,7 @@ lean_inc(x_1); x_7 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_7, 0, x_1); lean_ctor_set(x_7, 1, x_5); -x_8 = l_List_map___main___at___private_Lean_Elab_StructInst_8__expandCompositeFields___spec__1(x_1, x_6); +x_8 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__1(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -10793,7 +7243,7 @@ lean_inc(x_1); x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_1); lean_ctor_set(x_11, 1, x_9); -x_12 = l_List_map___main___at___private_Lean_Elab_StructInst_8__expandCompositeFields___spec__1(x_1, x_10); +x_12 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__1(x_1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -10802,7 +7252,56 @@ return x_13; } } } -lean_object* l_List_map___main___at___private_Lean_Elab_StructInst_8__expandCompositeFields___spec__2(lean_object* x_1) { +lean_object* l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; +lean_dec(x_1); +x_3 = lean_box(0); +return x_3; +} +else +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_2); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_5 = lean_ctor_get(x_2, 0); +x_6 = lean_ctor_get(x_2, 1); +lean_inc(x_1); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_1); +lean_ctor_set(x_7, 1, x_5); +x_8 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__2(x_1, x_6); +lean_ctor_set(x_2, 1, x_8); +lean_ctor_set(x_2, 0, x_7); +return x_2; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_9 = lean_ctor_get(x_2, 0); +x_10 = lean_ctor_get(x_2, 1); +lean_inc(x_10); +lean_inc(x_9); +lean_dec(x_2); +lean_inc(x_1); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_1); +lean_ctor_set(x_11, 1, x_9); +x_12 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__2(x_1, x_10); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_12); +return x_13; +} +} +} +} +lean_object* l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__3(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -10820,7 +7319,7 @@ if (x_3 == 0) lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); -x_6 = l_List_map___main___at___private_Lean_Elab_StructInst_8__expandCompositeFields___spec__2(x_5); +x_6 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__3(x_5); x_7 = lean_ctor_get(x_4, 1); lean_inc(x_7); if (lean_obj_tag(x_7) == 0) @@ -10831,282 +7330,575 @@ return x_1; else { lean_object* x_8; +lean_free_object(x_1); x_8 = lean_ctor_get(x_7, 0); lean_inc(x_8); if (lean_obj_tag(x_8) == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_9 = lean_ctor_get(x_4, 0); +lean_object* x_9; +x_9 = lean_ctor_get(x_8, 1); lean_inc(x_9); -x_10 = lean_ctor_get(x_4, 2); +if (lean_obj_tag(x_9) == 1) +{ +lean_object* x_10; +x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); -x_11 = lean_ctor_get(x_4, 3); -lean_inc(x_11); +switch (lean_obj_tag(x_10)) { +case 0: +{ +uint8_t x_11; +lean_dec(x_9); +lean_dec(x_8); +x_11 = !lean_is_exclusive(x_7); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; x_12 = lean_ctor_get(x_7, 1); -lean_inc(x_12); -if (lean_is_exclusive(x_7)) { - lean_ctor_release(x_7, 0); - lean_ctor_release(x_7, 1); - x_13 = x_7; -} else { - lean_dec_ref(x_7); - x_13 = lean_box(0); -} -x_14 = lean_ctor_get(x_8, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_8, 1); -lean_inc(x_15); -lean_dec(x_8); -if (lean_obj_tag(x_15) == 1) -{ -lean_object* x_23; -x_23 = lean_ctor_get(x_15, 0); -lean_inc(x_23); -if (lean_obj_tag(x_23) == 0) -{ -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_ctor_set(x_1, 1, x_6); -return x_1; -} -else -{ -lean_object* x_24; -lean_dec(x_23); -lean_free_object(x_1); -lean_dec(x_4); -x_24 = lean_box(0); -x_16 = x_24; -goto block_22; -} -} -else -{ -lean_dec(x_15); -lean_dec(x_14); +x_13 = lean_ctor_get(x_7, 0); lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_ctor_set(x_1, 1, x_6); -return x_1; -} -block_22: -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -lean_dec(x_16); -x_17 = l_Lean_Name_components(x_15); -x_18 = l_List_map___main___at___private_Lean_Elab_StructInst_8__expandCompositeFields___spec__1(x_14, x_17); -x_19 = l_List_append___rarg(x_18, x_12); -x_20 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_20, 0, x_9); -lean_ctor_set(x_20, 1, x_19); -lean_ctor_set(x_20, 2, x_10); -lean_ctor_set(x_20, 3, x_11); -if (lean_is_scalar(x_13)) { - x_21 = lean_alloc_ctor(1, 2, 0); -} else { - x_21 = x_13; -} -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_6); -return x_21; -} -} -else -{ -uint8_t x_25; -lean_dec(x_8); -lean_free_object(x_1); -x_25 = !lean_is_exclusive(x_7); -if (x_25 == 0) -{ -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_7, 1); -lean_dec(x_26); -x_27 = lean_ctor_get(x_7, 0); -lean_dec(x_27); lean_ctor_set(x_7, 1, x_6); lean_ctor_set(x_7, 0, x_4); return x_7; } else { -lean_object* x_28; +lean_object* x_14; lean_dec(x_7); -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_4); -lean_ctor_set(x_28, 1, x_6); -return x_28; +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_4); +lean_ctor_set(x_14, 1, x_6); +return x_14; } } +case 1: +{ +uint8_t x_15; +lean_dec(x_10); +x_15 = !lean_is_exclusive(x_4); +if (x_15 == 0) +{ +lean_object* x_16; uint8_t x_17; +x_16 = lean_ctor_get(x_4, 1); +lean_dec(x_16); +x_17 = !lean_is_exclusive(x_7); +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; +x_18 = lean_ctor_get(x_7, 1); +x_19 = lean_ctor_get(x_7, 0); +lean_dec(x_19); +x_20 = lean_ctor_get(x_8, 0); +lean_inc(x_20); +lean_dec(x_8); +x_21 = l_Lean_Name_components(x_9); +x_22 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__1(x_20, x_21); +x_23 = l_List_append___rarg(x_22, x_18); +lean_ctor_set(x_4, 1, x_23); +lean_ctor_set(x_7, 1, x_6); +lean_ctor_set(x_7, 0, x_4); +return x_7; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_24 = lean_ctor_get(x_7, 1); +lean_inc(x_24); +lean_dec(x_7); +x_25 = lean_ctor_get(x_8, 0); +lean_inc(x_25); +lean_dec(x_8); +x_26 = l_Lean_Name_components(x_9); +x_27 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__1(x_25, x_26); +x_28 = l_List_append___rarg(x_27, x_24); +lean_ctor_set(x_4, 1, x_28); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_4); +lean_ctor_set(x_29, 1, x_6); +return x_29; } } else { -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_29 = lean_ctor_get(x_1, 0); -x_30 = lean_ctor_get(x_1, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_1); -x_31 = l_List_map___main___at___private_Lean_Elab_StructInst_8__expandCompositeFields___spec__2(x_30); -x_32 = lean_ctor_get(x_29, 1); +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_30 = lean_ctor_get(x_4, 0); +x_31 = lean_ctor_get(x_4, 2); +x_32 = lean_ctor_get(x_4, 3); lean_inc(x_32); -if (lean_obj_tag(x_32) == 0) -{ -lean_object* x_33; -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_29); -lean_ctor_set(x_33, 1, x_31); -return x_33; +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_4); +x_33 = lean_ctor_get(x_7, 1); +lean_inc(x_33); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + x_34 = x_7; +} else { + lean_dec_ref(x_7); + x_34 = lean_box(0); } -else -{ -lean_object* x_34; -x_34 = lean_ctor_get(x_32, 0); -lean_inc(x_34); -if (lean_obj_tag(x_34) == 0) -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_35 = lean_ctor_get(x_29, 0); +x_35 = lean_ctor_get(x_8, 0); lean_inc(x_35); -x_36 = lean_ctor_get(x_29, 2); -lean_inc(x_36); -x_37 = lean_ctor_get(x_29, 3); -lean_inc(x_37); -x_38 = lean_ctor_get(x_32, 1); -lean_inc(x_38); -if (lean_is_exclusive(x_32)) { - lean_ctor_release(x_32, 0); - lean_ctor_release(x_32, 1); - x_39 = x_32; +lean_dec(x_8); +x_36 = l_Lean_Name_components(x_9); +x_37 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__1(x_35, x_36); +x_38 = l_List_append___rarg(x_37, x_33); +x_39 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_39, 0, x_30); +lean_ctor_set(x_39, 1, x_38); +lean_ctor_set(x_39, 2, x_31); +lean_ctor_set(x_39, 3, x_32); +if (lean_is_scalar(x_34)) { + x_40 = lean_alloc_ctor(1, 2, 0); } else { - lean_dec_ref(x_32); - x_39 = lean_box(0); + x_40 = x_34; } -x_40 = lean_ctor_get(x_34, 0); -lean_inc(x_40); -x_41 = lean_ctor_get(x_34, 1); -lean_inc(x_41); -lean_dec(x_34); -if (lean_obj_tag(x_41) == 1) -{ -lean_object* x_49; -x_49 = lean_ctor_get(x_41, 0); -lean_inc(x_49); -if (lean_obj_tag(x_49) == 0) -{ -lean_object* x_50; -lean_dec(x_41); -lean_dec(x_40); -lean_dec(x_39); -lean_dec(x_38); -lean_dec(x_37); -lean_dec(x_36); -lean_dec(x_35); -x_50 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_50, 0, x_29); -lean_ctor_set(x_50, 1, x_31); -return x_50; -} -else -{ -lean_object* x_51; -lean_dec(x_49); -lean_dec(x_29); -x_51 = lean_box(0); -x_42 = x_51; -goto block_48; +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_6); +return x_40; } } -else +default: { -lean_object* x_52; -lean_dec(x_41); -lean_dec(x_40); -lean_dec(x_39); -lean_dec(x_38); -lean_dec(x_37); -lean_dec(x_36); -lean_dec(x_35); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_29); -lean_ctor_set(x_52, 1, x_31); -return x_52; -} -block_48: +uint8_t x_41; +lean_dec(x_10); +x_41 = !lean_is_exclusive(x_4); +if (x_41 == 0) { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +lean_object* x_42; uint8_t x_43; +x_42 = lean_ctor_get(x_4, 1); lean_dec(x_42); -x_43 = l_Lean_Name_components(x_41); -x_44 = l_List_map___main___at___private_Lean_Elab_StructInst_8__expandCompositeFields___spec__1(x_40, x_43); -x_45 = l_List_append___rarg(x_44, x_38); -x_46 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_46, 0, x_35); -lean_ctor_set(x_46, 1, x_45); -lean_ctor_set(x_46, 2, x_36); -lean_ctor_set(x_46, 3, x_37); -if (lean_is_scalar(x_39)) { - x_47 = lean_alloc_ctor(1, 2, 0); -} else { - x_47 = x_39; +x_43 = !lean_is_exclusive(x_7); +if (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; +x_44 = lean_ctor_get(x_7, 1); +x_45 = lean_ctor_get(x_7, 0); +lean_dec(x_45); +x_46 = lean_ctor_get(x_8, 0); +lean_inc(x_46); +lean_dec(x_8); +x_47 = l_Lean_Name_components(x_9); +x_48 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__2(x_46, x_47); +x_49 = l_List_append___rarg(x_48, x_44); +lean_ctor_set(x_4, 1, x_49); +lean_ctor_set(x_7, 1, x_6); +lean_ctor_set(x_7, 0, x_4); +return x_7; } -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_31); -return x_47; +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_50 = lean_ctor_get(x_7, 1); +lean_inc(x_50); +lean_dec(x_7); +x_51 = lean_ctor_get(x_8, 0); +lean_inc(x_51); +lean_dec(x_8); +x_52 = l_Lean_Name_components(x_9); +x_53 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__2(x_51, x_52); +x_54 = l_List_append___rarg(x_53, x_50); +lean_ctor_set(x_4, 1, x_54); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_4); +lean_ctor_set(x_55, 1, x_6); +return x_55; } } else { -lean_object* x_53; lean_object* x_54; -lean_dec(x_34); -if (lean_is_exclusive(x_32)) { - lean_ctor_release(x_32, 0); - lean_ctor_release(x_32, 1); - x_53 = x_32; +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_56 = lean_ctor_get(x_4, 0); +x_57 = lean_ctor_get(x_4, 2); +x_58 = lean_ctor_get(x_4, 3); +lean_inc(x_58); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_4); +x_59 = lean_ctor_get(x_7, 1); +lean_inc(x_59); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + x_60 = x_7; } else { - lean_dec_ref(x_32); - x_53 = lean_box(0); + lean_dec_ref(x_7); + x_60 = lean_box(0); } -if (lean_is_scalar(x_53)) { - x_54 = lean_alloc_ctor(1, 2, 0); +x_61 = lean_ctor_get(x_8, 0); +lean_inc(x_61); +lean_dec(x_8); +x_62 = l_Lean_Name_components(x_9); +x_63 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__2(x_61, x_62); +x_64 = l_List_append___rarg(x_63, x_59); +x_65 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_65, 0, x_56); +lean_ctor_set(x_65, 1, x_64); +lean_ctor_set(x_65, 2, x_57); +lean_ctor_set(x_65, 3, x_58); +if (lean_is_scalar(x_60)) { + x_66 = lean_alloc_ctor(1, 2, 0); } else { - x_54 = x_53; + x_66 = x_60; } -lean_ctor_set(x_54, 0, x_29); -lean_ctor_set(x_54, 1, x_31); -return x_54; +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_6); +return x_66; +} +} +} +} +else +{ +uint8_t x_67; +lean_dec(x_9); +lean_dec(x_8); +x_67 = !lean_is_exclusive(x_7); +if (x_67 == 0) +{ +lean_object* x_68; lean_object* x_69; +x_68 = lean_ctor_get(x_7, 1); +lean_dec(x_68); +x_69 = lean_ctor_get(x_7, 0); +lean_dec(x_69); +lean_ctor_set(x_7, 1, x_6); +lean_ctor_set(x_7, 0, x_4); +return x_7; +} +else +{ +lean_object* x_70; +lean_dec(x_7); +x_70 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_70, 0, x_4); +lean_ctor_set(x_70, 1, x_6); +return x_70; +} +} +} +else +{ +uint8_t x_71; +lean_dec(x_8); +x_71 = !lean_is_exclusive(x_7); +if (x_71 == 0) +{ +lean_object* x_72; lean_object* x_73; +x_72 = lean_ctor_get(x_7, 1); +lean_dec(x_72); +x_73 = lean_ctor_get(x_7, 0); +lean_dec(x_73); +lean_ctor_set(x_7, 1, x_6); +lean_ctor_set(x_7, 0, x_4); +return x_7; +} +else +{ +lean_object* x_74; +lean_dec(x_7); +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_4); +lean_ctor_set(x_74, 1, x_6); +return x_74; +} +} +} +} +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_75 = lean_ctor_get(x_1, 0); +x_76 = lean_ctor_get(x_1, 1); +lean_inc(x_76); +lean_inc(x_75); +lean_dec(x_1); +x_77 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__3(x_76); +x_78 = lean_ctor_get(x_75, 1); +lean_inc(x_78); +if (lean_obj_tag(x_78) == 0) +{ +lean_object* x_79; +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_75); +lean_ctor_set(x_79, 1, x_77); +return x_79; +} +else +{ +lean_object* x_80; +x_80 = lean_ctor_get(x_78, 0); +lean_inc(x_80); +if (lean_obj_tag(x_80) == 0) +{ +lean_object* x_81; +x_81 = lean_ctor_get(x_80, 1); +lean_inc(x_81); +if (lean_obj_tag(x_81) == 1) +{ +lean_object* x_82; +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +switch (lean_obj_tag(x_82)) { +case 0: +{ +lean_object* x_83; lean_object* x_84; +lean_dec(x_81); +lean_dec(x_80); +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + lean_ctor_release(x_78, 1); + x_83 = x_78; +} else { + lean_dec_ref(x_78); + x_83 = lean_box(0); +} +if (lean_is_scalar(x_83)) { + x_84 = lean_alloc_ctor(1, 2, 0); +} else { + x_84 = x_83; +} +lean_ctor_set(x_84, 0, x_75); +lean_ctor_set(x_84, 1, x_77); +return x_84; +} +case 1: +{ +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_dec(x_82); +x_85 = lean_ctor_get(x_75, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_75, 2); +lean_inc(x_86); +x_87 = lean_ctor_get(x_75, 3); +lean_inc(x_87); +if (lean_is_exclusive(x_75)) { + lean_ctor_release(x_75, 0); + lean_ctor_release(x_75, 1); + lean_ctor_release(x_75, 2); + lean_ctor_release(x_75, 3); + x_88 = x_75; +} else { + lean_dec_ref(x_75); + x_88 = lean_box(0); +} +x_89 = lean_ctor_get(x_78, 1); +lean_inc(x_89); +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + lean_ctor_release(x_78, 1); + x_90 = x_78; +} else { + lean_dec_ref(x_78); + x_90 = lean_box(0); +} +x_91 = lean_ctor_get(x_80, 0); +lean_inc(x_91); +lean_dec(x_80); +x_92 = l_Lean_Name_components(x_81); +x_93 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__1(x_91, x_92); +x_94 = l_List_append___rarg(x_93, x_89); +if (lean_is_scalar(x_88)) { + x_95 = lean_alloc_ctor(0, 4, 0); +} else { + x_95 = x_88; +} +lean_ctor_set(x_95, 0, x_85); +lean_ctor_set(x_95, 1, x_94); +lean_ctor_set(x_95, 2, x_86); +lean_ctor_set(x_95, 3, x_87); +if (lean_is_scalar(x_90)) { + x_96 = lean_alloc_ctor(1, 2, 0); +} else { + x_96 = x_90; +} +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_77); +return x_96; +} +default: +{ +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_dec(x_82); +x_97 = lean_ctor_get(x_75, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_75, 2); +lean_inc(x_98); +x_99 = lean_ctor_get(x_75, 3); +lean_inc(x_99); +if (lean_is_exclusive(x_75)) { + lean_ctor_release(x_75, 0); + lean_ctor_release(x_75, 1); + lean_ctor_release(x_75, 2); + lean_ctor_release(x_75, 3); + x_100 = x_75; +} else { + lean_dec_ref(x_75); + x_100 = lean_box(0); +} +x_101 = lean_ctor_get(x_78, 1); +lean_inc(x_101); +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + lean_ctor_release(x_78, 1); + x_102 = x_78; +} else { + lean_dec_ref(x_78); + x_102 = lean_box(0); +} +x_103 = lean_ctor_get(x_80, 0); +lean_inc(x_103); +lean_dec(x_80); +x_104 = l_Lean_Name_components(x_81); +x_105 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__2(x_103, x_104); +x_106 = l_List_append___rarg(x_105, x_101); +if (lean_is_scalar(x_100)) { + x_107 = lean_alloc_ctor(0, 4, 0); +} else { + x_107 = x_100; +} +lean_ctor_set(x_107, 0, x_97); +lean_ctor_set(x_107, 1, x_106); +lean_ctor_set(x_107, 2, x_98); +lean_ctor_set(x_107, 3, x_99); +if (lean_is_scalar(x_102)) { + x_108 = lean_alloc_ctor(1, 2, 0); +} else { + x_108 = x_102; +} +lean_ctor_set(x_108, 0, x_107); +lean_ctor_set(x_108, 1, x_77); +return x_108; +} +} +} +else +{ +lean_object* x_109; lean_object* x_110; +lean_dec(x_81); +lean_dec(x_80); +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + lean_ctor_release(x_78, 1); + x_109 = x_78; +} else { + lean_dec_ref(x_78); + x_109 = lean_box(0); +} +if (lean_is_scalar(x_109)) { + x_110 = lean_alloc_ctor(1, 2, 0); +} else { + x_110 = x_109; +} +lean_ctor_set(x_110, 0, x_75); +lean_ctor_set(x_110, 1, x_77); +return x_110; +} +} +else +{ +lean_object* x_111; lean_object* x_112; +lean_dec(x_80); +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + lean_ctor_release(x_78, 1); + x_111 = x_78; +} else { + lean_dec_ref(x_78); + x_111 = lean_box(0); +} +if (lean_is_scalar(x_111)) { + x_112 = lean_alloc_ctor(1, 2, 0); +} else { + x_112 = x_111; +} +lean_ctor_set(x_112, 0, x_75); +lean_ctor_set(x_112, 1, x_77); +return x_112; } } } } } } -static lean_object* _init_l___private_Lean_Elab_StructInst_8__expandCompositeFields___closed__1() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_List_map___main___at___private_Lean_Elab_StructInst_8__expandCompositeFields___spec__2), 1, 0); +x_1 = lean_alloc_closure((void*)(l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__3), 1, 0); return x_1; } } -lean_object* l___private_Lean_Elab_StructInst_8__expandCompositeFields(lean_object* x_1) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l___private_Lean_Elab_StructInst_8__expandCompositeFields___closed__1; +x_2 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___closed__1; x_3 = l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___at_Lean_Elab_Term_StructInst_Struct_modifyFields___spec__1(x_1, x_2); return x_3; } } -static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__1() { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_5; +lean_dec(x_2); +x_5 = lean_apply_1(x_3, x_1); +return x_5; +} +else +{ +lean_object* x_6; +x_6 = lean_ctor_get(x_4, 0); +lean_inc(x_6); +if (lean_obj_tag(x_6) == 1) +{ +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_dec(x_3); +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_1, 2); +lean_inc(x_8); +x_9 = lean_ctor_get(x_1, 3); +lean_inc(x_9); +lean_dec(x_1); +x_10 = lean_ctor_get(x_4, 1); +lean_inc(x_10); +lean_dec(x_4); +x_11 = lean_ctor_get(x_6, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_6, 1); +lean_inc(x_12); +lean_dec(x_6); +x_13 = lean_apply_6(x_2, x_11, x_12, x_10, x_7, x_8, x_9); +return x_13; +} +else +{ +lean_object* x_14; +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +x_14 = lean_apply_1(x_3, x_1); +return x_14; +} +} +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields_match__1___rarg), 3, 0); +return x_2; +} +} +static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__1() { _start: { lean_object* x_1; @@ -11114,27 +7906,16 @@ x_1 = lean_mk_string("invalid field index, structure has only #"); return x_1; } } -static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__2() { +static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__4() { +static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__3() { _start: { lean_object* x_1; @@ -11142,27 +7923,16 @@ x_1 = lean_mk_string(" fields"); return x_1; } } -static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__5() { +static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__4; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__5; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__7() { +static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__5() { _start: { lean_object* x_1; @@ -11170,27 +7940,27 @@ x_1 = lean_mk_string("invalid field index, index must be greater than 0"); return x_1; } } -static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__8() { +static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__7; +x_1 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___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_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__9() { +static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__7() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__8; +x_1 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__6; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___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* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___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: { if (lean_obj_tag(x_2) == 0) @@ -11282,7 +8052,7 @@ goto block_29; } else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; lean_free_object(x_31); lean_dec(x_42); lean_free_object(x_30); @@ -11293,44 +8063,42 @@ lean_dec(x_34); lean_dec(x_33); lean_dec(x_14); lean_dec(x_13); -x_51 = l_Nat_repr(x_45); -x_52 = lean_alloc_ctor(2, 1, 0); +x_51 = l_Lean_fmt___at_Lean_Position_Lean_HasFormat___spec__1(x_45); +x_52 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_52, 0, x_51); -x_53 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_53, 0, x_52); -x_54 = l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__3; -x_55 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_55, 0, x_54); -lean_ctor_set(x_55, 1, x_53); -x_56 = l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__6; -x_57 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_57, 0, x_55); -lean_ctor_set(x_57, 1, x_56); -x_58 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_41, x_57, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_53 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__2; +x_54 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_55 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__4; +x_56 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_55); +x_57 = l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2___rarg(x_41, x_56, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_41); -x_59 = !lean_is_exclusive(x_58); -if (x_59 == 0) +x_58 = !lean_is_exclusive(x_57); +if (x_58 == 0) { -return x_58; +return x_57; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_58, 0); -x_61 = lean_ctor_get(x_58, 1); -lean_inc(x_61); +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_57, 0); +x_60 = lean_ctor_get(x_57, 1); lean_inc(x_60); -lean_dec(x_58); -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_inc(x_59); +lean_dec(x_57); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +return x_61; } } } else { -lean_object* x_63; lean_object* x_64; uint8_t x_65; +lean_object* x_62; lean_object* x_63; uint8_t x_64; lean_free_object(x_31); lean_dec(x_42); lean_free_object(x_30); @@ -11341,66 +8109,66 @@ lean_dec(x_34); lean_dec(x_33); lean_dec(x_14); lean_dec(x_13); -x_63 = l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__9; -x_64 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_41, x_63, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_62 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__7; +x_63 = l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2___rarg(x_41, x_62, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_41); -x_65 = !lean_is_exclusive(x_64); -if (x_65 == 0) +x_64 = !lean_is_exclusive(x_63); +if (x_64 == 0) { -return x_64; +return x_63; } else { -lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = lean_ctor_get(x_64, 0); -x_67 = lean_ctor_get(x_64, 1); -lean_inc(x_67); +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_63, 0); +x_66 = lean_ctor_get(x_63, 1); lean_inc(x_66); -lean_dec(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; +lean_inc(x_65); +lean_dec(x_63); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_66); +return x_67; } } } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_72; -x_69 = lean_ctor_get(x_31, 0); -x_70 = lean_ctor_get(x_31, 1); -lean_inc(x_70); +lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; +x_68 = lean_ctor_get(x_31, 0); +x_69 = lean_ctor_get(x_31, 1); lean_inc(x_69); +lean_inc(x_68); lean_dec(x_31); -x_71 = lean_unsigned_to_nat(0u); -x_72 = lean_nat_dec_eq(x_70, x_71); -if (x_72 == 0) +x_70 = lean_unsigned_to_nat(0u); +x_71 = lean_nat_dec_eq(x_69, x_70); +if (x_71 == 0) { -lean_object* x_73; uint8_t x_74; -x_73 = lean_array_get_size(x_1); -x_74 = lean_nat_dec_lt(x_73, x_70); -if (x_74 == 0) +lean_object* x_72; uint8_t x_73; +x_72 = lean_array_get_size(x_1); +x_73 = lean_nat_dec_lt(x_72, x_69); +if (x_73 == 0) { -lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; -lean_dec(x_73); -x_75 = lean_unsigned_to_nat(1u); -x_76 = lean_nat_sub(x_70, x_75); -lean_dec(x_70); -x_77 = l_Lean_Name_inhabited; -x_78 = lean_array_get(x_77, x_1, x_76); -lean_dec(x_76); -x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_69); -lean_ctor_set(x_79, 1, x_78); -lean_ctor_set(x_30, 0, x_79); +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +lean_dec(x_72); +x_74 = lean_unsigned_to_nat(1u); +x_75 = lean_nat_sub(x_69, x_74); +lean_dec(x_69); +x_76 = l_Lean_Name_inhabited; +x_77 = lean_array_get(x_76, x_1, x_75); +lean_dec(x_75); +x_78 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_78, 0, x_68); +lean_ctor_set(x_78, 1, x_77); +lean_ctor_set(x_30, 0, x_78); x_15 = x_12; x_16 = x_9; goto block_29; } else { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; -lean_dec(x_70); +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_dec(x_69); lean_free_object(x_30); lean_dec(x_38); lean_free_object(x_12); @@ -11409,47 +8177,45 @@ lean_dec(x_34); lean_dec(x_33); lean_dec(x_14); lean_dec(x_13); -x_80 = l_Nat_repr(x_73); -x_81 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_81, 0, x_80); -x_82 = lean_alloc_ctor(0, 1, 0); +x_79 = l_Lean_fmt___at_Lean_Position_Lean_HasFormat___spec__1(x_72); +x_80 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_80, 0, x_79); +x_81 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__2; +x_82 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_82, 0, x_81); -x_83 = l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__3; +lean_ctor_set(x_82, 1, x_80); +x_83 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__4; x_84 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_82); -x_85 = l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__6; -x_86 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_86, 0, x_84); -lean_ctor_set(x_86, 1, x_85); -x_87 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_69, x_86, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_69); -x_88 = lean_ctor_get(x_87, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_87, 1); -lean_inc(x_89); -if (lean_is_exclusive(x_87)) { - lean_ctor_release(x_87, 0); - lean_ctor_release(x_87, 1); - x_90 = x_87; +lean_ctor_set(x_84, 0, x_82); +lean_ctor_set(x_84, 1, x_83); +x_85 = l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2___rarg(x_68, x_84, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_68); +x_86 = lean_ctor_get(x_85, 0); +lean_inc(x_86); +x_87 = lean_ctor_get(x_85, 1); +lean_inc(x_87); +if (lean_is_exclusive(x_85)) { + lean_ctor_release(x_85, 0); + lean_ctor_release(x_85, 1); + x_88 = x_85; } else { - lean_dec_ref(x_87); - x_90 = lean_box(0); + lean_dec_ref(x_85); + x_88 = lean_box(0); } -if (lean_is_scalar(x_90)) { - x_91 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_88)) { + x_89 = lean_alloc_ctor(1, 2, 0); } else { - x_91 = x_90; + x_89 = x_88; } -lean_ctor_set(x_91, 0, x_88); -lean_ctor_set(x_91, 1, x_89); -return x_91; +lean_ctor_set(x_89, 0, x_86); +lean_ctor_set(x_89, 1, x_87); +return x_89; } } else { -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_dec(x_70); +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_dec(x_69); lean_free_object(x_30); lean_dec(x_38); lean_free_object(x_12); @@ -11458,327 +8224,323 @@ lean_dec(x_34); lean_dec(x_33); lean_dec(x_14); lean_dec(x_13); -x_92 = l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__9; -x_93 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_69, x_92, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_69); -x_94 = lean_ctor_get(x_93, 0); -lean_inc(x_94); -x_95 = lean_ctor_get(x_93, 1); -lean_inc(x_95); -if (lean_is_exclusive(x_93)) { - lean_ctor_release(x_93, 0); - lean_ctor_release(x_93, 1); - x_96 = x_93; +x_90 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__7; +x_91 = l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2___rarg(x_68, x_90, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_68); +x_92 = lean_ctor_get(x_91, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_91, 1); +lean_inc(x_93); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + x_94 = x_91; } else { - lean_dec_ref(x_93); - x_96 = lean_box(0); + lean_dec_ref(x_91); + x_94 = lean_box(0); } -if (lean_is_scalar(x_96)) { - x_97 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_94)) { + x_95 = lean_alloc_ctor(1, 2, 0); } else { - x_97 = x_96; + x_95 = x_94; } -lean_ctor_set(x_97, 0, x_94); -lean_ctor_set(x_97, 1, x_95); -return x_97; +lean_ctor_set(x_95, 0, x_92); +lean_ctor_set(x_95, 1, x_93); +return x_95; } } } else { -lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; -x_98 = lean_ctor_get(x_30, 1); -lean_inc(x_98); +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; +x_96 = lean_ctor_get(x_30, 1); +lean_inc(x_96); lean_dec(x_30); -x_99 = lean_ctor_get(x_31, 0); -lean_inc(x_99); -x_100 = lean_ctor_get(x_31, 1); -lean_inc(x_100); +x_97 = lean_ctor_get(x_31, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_31, 1); +lean_inc(x_98); if (lean_is_exclusive(x_31)) { lean_ctor_release(x_31, 0); lean_ctor_release(x_31, 1); - x_101 = x_31; + x_99 = x_31; } else { lean_dec_ref(x_31); - x_101 = lean_box(0); + x_99 = lean_box(0); } -x_102 = lean_unsigned_to_nat(0u); -x_103 = lean_nat_dec_eq(x_100, x_102); +x_100 = lean_unsigned_to_nat(0u); +x_101 = lean_nat_dec_eq(x_98, x_100); +if (x_101 == 0) +{ +lean_object* x_102; uint8_t x_103; +x_102 = lean_array_get_size(x_1); +x_103 = lean_nat_dec_lt(x_102, x_98); if (x_103 == 0) { -lean_object* x_104; uint8_t x_105; -x_104 = lean_array_get_size(x_1); -x_105 = lean_nat_dec_lt(x_104, x_100); -if (x_105 == 0) -{ -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_dec(x_104); -x_106 = lean_unsigned_to_nat(1u); -x_107 = lean_nat_sub(x_100, x_106); -lean_dec(x_100); -x_108 = l_Lean_Name_inhabited; -x_109 = lean_array_get(x_108, x_1, x_107); -lean_dec(x_107); -if (lean_is_scalar(x_101)) { - x_110 = lean_alloc_ctor(0, 2, 0); +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_dec(x_102); +x_104 = lean_unsigned_to_nat(1u); +x_105 = lean_nat_sub(x_98, x_104); +lean_dec(x_98); +x_106 = l_Lean_Name_inhabited; +x_107 = lean_array_get(x_106, x_1, x_105); +lean_dec(x_105); +if (lean_is_scalar(x_99)) { + x_108 = lean_alloc_ctor(0, 2, 0); } else { - x_110 = x_101; - lean_ctor_set_tag(x_110, 0); + x_108 = x_99; + lean_ctor_set_tag(x_108, 0); } -lean_ctor_set(x_110, 0, x_99); -lean_ctor_set(x_110, 1, x_109); -x_111 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_111, 0, x_110); -lean_ctor_set(x_111, 1, x_98); -lean_ctor_set(x_12, 1, x_111); +lean_ctor_set(x_108, 0, x_97); +lean_ctor_set(x_108, 1, x_107); +x_109 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_96); +lean_ctor_set(x_12, 1, x_109); x_15 = x_12; x_16 = x_9; goto block_29; } else { -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_dec(x_101); -lean_dec(x_100); +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_dec(x_99); lean_dec(x_98); +lean_dec(x_96); lean_free_object(x_12); lean_dec(x_35); lean_dec(x_34); lean_dec(x_33); lean_dec(x_14); lean_dec(x_13); -x_112 = l_Nat_repr(x_104); -x_113 = lean_alloc_ctor(2, 1, 0); +x_110 = l_Lean_fmt___at_Lean_Position_Lean_HasFormat___spec__1(x_102); +x_111 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_111, 0, x_110); +x_112 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__2; +x_113 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_113, 0, x_112); -x_114 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_114, 0, x_113); -x_115 = l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__3; -x_116 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_116, 0, x_115); -lean_ctor_set(x_116, 1, x_114); -x_117 = l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__6; -x_118 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_118, 0, x_116); -lean_ctor_set(x_118, 1, x_117); -x_119 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_99, x_118, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_99); -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; +lean_ctor_set(x_113, 1, x_111); +x_114 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__4; +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_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2___rarg(x_97, x_115, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_97); +x_117 = lean_ctor_get(x_116, 0); +lean_inc(x_117); +x_118 = lean_ctor_get(x_116, 1); +lean_inc(x_118); +if (lean_is_exclusive(x_116)) { + lean_ctor_release(x_116, 0); + lean_ctor_release(x_116, 1); + x_119 = x_116; } else { - lean_dec_ref(x_119); - x_122 = lean_box(0); + lean_dec_ref(x_116); + x_119 = lean_box(0); } -if (lean_is_scalar(x_122)) { - x_123 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_119)) { + x_120 = lean_alloc_ctor(1, 2, 0); } else { - x_123 = x_122; + x_120 = x_119; } -lean_ctor_set(x_123, 0, x_120); -lean_ctor_set(x_123, 1, x_121); -return x_123; +lean_ctor_set(x_120, 0, x_117); +lean_ctor_set(x_120, 1, x_118); +return x_120; } } else { -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_dec(x_101); -lean_dec(x_100); +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_dec(x_99); lean_dec(x_98); +lean_dec(x_96); lean_free_object(x_12); lean_dec(x_35); lean_dec(x_34); lean_dec(x_33); lean_dec(x_14); lean_dec(x_13); -x_124 = l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__9; -x_125 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_99, x_124, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_99); -x_126 = lean_ctor_get(x_125, 0); -lean_inc(x_126); -x_127 = lean_ctor_get(x_125, 1); -lean_inc(x_127); -if (lean_is_exclusive(x_125)) { - lean_ctor_release(x_125, 0); - lean_ctor_release(x_125, 1); - x_128 = x_125; +x_121 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__7; +x_122 = l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2___rarg(x_97, x_121, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_97); +x_123 = lean_ctor_get(x_122, 0); +lean_inc(x_123); +x_124 = lean_ctor_get(x_122, 1); +lean_inc(x_124); +if (lean_is_exclusive(x_122)) { + lean_ctor_release(x_122, 0); + lean_ctor_release(x_122, 1); + x_125 = x_122; } else { - lean_dec_ref(x_125); - x_128 = lean_box(0); + lean_dec_ref(x_122); + x_125 = lean_box(0); } -if (lean_is_scalar(x_128)) { - x_129 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_125)) { + x_126 = lean_alloc_ctor(1, 2, 0); } else { - x_129 = x_128; + x_126 = x_125; } -lean_ctor_set(x_129, 0, x_126); -lean_ctor_set(x_129, 1, x_127); -return x_129; +lean_ctor_set(x_126, 0, x_123); +lean_ctor_set(x_126, 1, x_124); +return x_126; } } } else { -lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; uint8_t x_139; -x_130 = lean_ctor_get(x_12, 0); -x_131 = lean_ctor_get(x_12, 2); -x_132 = lean_ctor_get(x_12, 3); -lean_inc(x_132); -lean_inc(x_131); -lean_inc(x_130); +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; uint8_t x_136; +x_127 = lean_ctor_get(x_12, 0); +x_128 = lean_ctor_get(x_12, 2); +x_129 = lean_ctor_get(x_12, 3); +lean_inc(x_129); +lean_inc(x_128); +lean_inc(x_127); lean_dec(x_12); -x_133 = lean_ctor_get(x_30, 1); -lean_inc(x_133); +x_130 = lean_ctor_get(x_30, 1); +lean_inc(x_130); if (lean_is_exclusive(x_30)) { lean_ctor_release(x_30, 0); lean_ctor_release(x_30, 1); - x_134 = x_30; + x_131 = x_30; } else { lean_dec_ref(x_30); - x_134 = lean_box(0); + x_131 = lean_box(0); } -x_135 = lean_ctor_get(x_31, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_31, 1); -lean_inc(x_136); +x_132 = lean_ctor_get(x_31, 0); +lean_inc(x_132); +x_133 = lean_ctor_get(x_31, 1); +lean_inc(x_133); if (lean_is_exclusive(x_31)) { lean_ctor_release(x_31, 0); lean_ctor_release(x_31, 1); - x_137 = x_31; + x_134 = x_31; } else { lean_dec_ref(x_31); - x_137 = lean_box(0); + x_134 = lean_box(0); } -x_138 = lean_unsigned_to_nat(0u); -x_139 = lean_nat_dec_eq(x_136, x_138); -if (x_139 == 0) +x_135 = lean_unsigned_to_nat(0u); +x_136 = lean_nat_dec_eq(x_133, x_135); +if (x_136 == 0) { -lean_object* x_140; uint8_t x_141; -x_140 = lean_array_get_size(x_1); -x_141 = lean_nat_dec_lt(x_140, x_136); -if (x_141 == 0) +lean_object* x_137; uint8_t x_138; +x_137 = lean_array_get_size(x_1); +x_138 = lean_nat_dec_lt(x_137, x_133); +if (x_138 == 0) { -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_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_dec(x_137); +x_139 = lean_unsigned_to_nat(1u); +x_140 = lean_nat_sub(x_133, x_139); +lean_dec(x_133); +x_141 = l_Lean_Name_inhabited; +x_142 = lean_array_get(x_141, x_1, x_140); lean_dec(x_140); -x_142 = lean_unsigned_to_nat(1u); -x_143 = lean_nat_sub(x_136, x_142); -lean_dec(x_136); -x_144 = l_Lean_Name_inhabited; -x_145 = lean_array_get(x_144, x_1, x_143); -lean_dec(x_143); -if (lean_is_scalar(x_137)) { - x_146 = lean_alloc_ctor(0, 2, 0); -} else { - x_146 = x_137; - lean_ctor_set_tag(x_146, 0); -} -lean_ctor_set(x_146, 0, x_135); -lean_ctor_set(x_146, 1, x_145); if (lean_is_scalar(x_134)) { - x_147 = lean_alloc_ctor(1, 2, 0); + x_143 = lean_alloc_ctor(0, 2, 0); } else { - x_147 = x_134; + x_143 = x_134; + lean_ctor_set_tag(x_143, 0); } -lean_ctor_set(x_147, 0, x_146); -lean_ctor_set(x_147, 1, x_133); -x_148 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_148, 0, x_130); -lean_ctor_set(x_148, 1, x_147); -lean_ctor_set(x_148, 2, x_131); -lean_ctor_set(x_148, 3, x_132); -x_15 = x_148; +lean_ctor_set(x_143, 0, x_132); +lean_ctor_set(x_143, 1, x_142); +if (lean_is_scalar(x_131)) { + x_144 = lean_alloc_ctor(1, 2, 0); +} else { + x_144 = x_131; +} +lean_ctor_set(x_144, 0, x_143); +lean_ctor_set(x_144, 1, x_130); +x_145 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_145, 0, x_127); +lean_ctor_set(x_145, 1, x_144); +lean_ctor_set(x_145, 2, x_128); +lean_ctor_set(x_145, 3, x_129); +x_15 = x_145; x_16 = x_9; goto block_29; } else { -lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; -lean_dec(x_137); -lean_dec(x_136); +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_dec(x_134); lean_dec(x_133); -lean_dec(x_132); lean_dec(x_131); lean_dec(x_130); +lean_dec(x_129); +lean_dec(x_128); +lean_dec(x_127); lean_dec(x_14); lean_dec(x_13); -x_149 = l_Nat_repr(x_140); -x_150 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_150, 0, x_149); -x_151 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_151, 0, x_150); -x_152 = l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__3; -x_153 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_153, 0, x_152); -lean_ctor_set(x_153, 1, x_151); -x_154 = l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__6; -x_155 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_155, 0, x_153); -lean_ctor_set(x_155, 1, x_154); -x_156 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_135, x_155, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_135); -x_157 = lean_ctor_get(x_156, 0); -lean_inc(x_157); -x_158 = lean_ctor_get(x_156, 1); -lean_inc(x_158); -if (lean_is_exclusive(x_156)) { - lean_ctor_release(x_156, 0); - lean_ctor_release(x_156, 1); - x_159 = x_156; +x_146 = l_Lean_fmt___at_Lean_Position_Lean_HasFormat___spec__1(x_137); +x_147 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_147, 0, x_146); +x_148 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__2; +x_149 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_147); +x_150 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__4; +x_151 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_151, 0, x_149); +lean_ctor_set(x_151, 1, x_150); +x_152 = l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2___rarg(x_132, x_151, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_132); +x_153 = lean_ctor_get(x_152, 0); +lean_inc(x_153); +x_154 = lean_ctor_get(x_152, 1); +lean_inc(x_154); +if (lean_is_exclusive(x_152)) { + lean_ctor_release(x_152, 0); + lean_ctor_release(x_152, 1); + x_155 = x_152; } else { - lean_dec_ref(x_156); - x_159 = lean_box(0); + lean_dec_ref(x_152); + x_155 = lean_box(0); } -if (lean_is_scalar(x_159)) { - x_160 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_155)) { + x_156 = lean_alloc_ctor(1, 2, 0); } else { - x_160 = x_159; + x_156 = x_155; } -lean_ctor_set(x_160, 0, x_157); -lean_ctor_set(x_160, 1, x_158); -return x_160; +lean_ctor_set(x_156, 0, x_153); +lean_ctor_set(x_156, 1, x_154); +return x_156; } } else { -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_dec(x_137); -lean_dec(x_136); +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_dec(x_134); lean_dec(x_133); -lean_dec(x_132); lean_dec(x_131); lean_dec(x_130); +lean_dec(x_129); +lean_dec(x_128); +lean_dec(x_127); lean_dec(x_14); lean_dec(x_13); -x_161 = l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__9; -x_162 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_135, x_161, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_135); -x_163 = lean_ctor_get(x_162, 0); -lean_inc(x_163); -x_164 = lean_ctor_get(x_162, 1); -lean_inc(x_164); -if (lean_is_exclusive(x_162)) { - lean_ctor_release(x_162, 0); - lean_ctor_release(x_162, 1); - x_165 = x_162; +x_157 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__7; +x_158 = l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2___rarg(x_132, x_157, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_132); +x_159 = lean_ctor_get(x_158, 0); +lean_inc(x_159); +x_160 = lean_ctor_get(x_158, 1); +lean_inc(x_160); +if (lean_is_exclusive(x_158)) { + lean_ctor_release(x_158, 0); + lean_ctor_release(x_158, 1); + x_161 = x_158; } else { - lean_dec_ref(x_162); - x_165 = lean_box(0); + lean_dec_ref(x_158); + x_161 = lean_box(0); } -if (lean_is_scalar(x_165)) { - x_166 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_161)) { + x_162 = lean_alloc_ctor(1, 2, 0); } else { - x_166 = x_165; + x_162 = x_161; } -lean_ctor_set(x_166, 0, x_163); -lean_ctor_set(x_166, 1, x_164); -return x_166; +lean_ctor_set(x_162, 0, x_159); +lean_ctor_set(x_162, 1, x_160); +return x_162; } } } @@ -11794,7 +8556,7 @@ goto block_29; block_29: { lean_object* x_17; -x_17 = l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1(x_1, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_16); +x_17 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1(x_1, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_16); if (lean_obj_tag(x_17) == 0) { uint8_t x_18; @@ -11862,7 +8624,7 @@ return x_28; } } } -lean_object* l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___at___private_Lean_Elab_StructInst_9__expandNumLitFields___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* l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___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: { uint8_t x_10; @@ -12001,7 +8763,7 @@ return x_38; } } } -lean_object* l___private_Lean_Elab_StructInst_9__expandNumLitFields___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* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; @@ -12016,27 +8778,27 @@ lean_inc(x_13); lean_dec(x_11); x_14 = l_Lean_Elab_Term_StructInst_Struct_structName(x_1); x_15 = l_Lean_getStructureFields(x_13, x_14); -x_16 = l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +x_16 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_12); lean_dec(x_15); return x_16; } } -lean_object* l___private_Lean_Elab_StructInst_9__expandNumLitFields(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields(lean_object* x_1, lean_object* x_2, 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_inc(x_1); -x_9 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_9__expandNumLitFields___lambda__1___boxed), 9, 1); +x_9 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___lambda__1___boxed), 9, 1); lean_closure_set(x_9, 0, x_1); -x_10 = l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__2(x_1, x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_10 = l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__2(x_1, x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); return x_10; } } -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___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* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___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_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___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_6); lean_dec(x_5); @@ -12045,11 +8807,11 @@ lean_dec(x_1); return x_10; } } -lean_object* l___private_Lean_Elab_StructInst_9__expandNumLitFields___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* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l___private_Lean_Elab_StructInst_9__expandNumLitFields___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___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_6); lean_dec(x_5); @@ -12058,7 +8820,183 @@ lean_dec(x_1); return x_10; } } -lean_object* l_List_map___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_4; lean_object* x_5; size_t x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +x_6 = lean_ctor_get_usize(x_1, 2); +lean_dec(x_1); +x_7 = lean_box_usize(x_6); +x_8 = lean_apply_3(x_2, x_4, x_5, x_7); +return x_8; +} +else +{ +lean_object* x_9; +lean_dec(x_2); +x_9 = lean_apply_1(x_3, x_1); +return x_9; +} +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_apply_1(x_3, x_1); +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_3); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_1(x_2, x_5); +return x_6; +} +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields_match__3___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields_match__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_5; +lean_dec(x_2); +x_5 = lean_apply_1(x_3, x_1); +return x_5; +} +else +{ +lean_object* x_6; +x_6 = lean_ctor_get(x_4, 0); +lean_inc(x_6); +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_3); +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_1, 2); +lean_inc(x_8); +x_9 = lean_ctor_get(x_1, 3); +lean_inc(x_9); +lean_dec(x_1); +x_10 = lean_ctor_get(x_4, 1); +lean_inc(x_10); +lean_dec(x_4); +x_11 = lean_ctor_get(x_6, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_6, 1); +lean_inc(x_12); +lean_dec(x_6); +x_13 = lean_apply_6(x_2, x_11, x_12, x_10, x_7, x_8, x_9); +return x_13; +} +else +{ +lean_object* x_14; +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +x_14 = lean_apply_1(x_3, x_1); +return x_14; +} +} +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields_match__4(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields_match__4___rarg), 3, 0); +return x_2; +} +} +static lean_object* _init_l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("_private.Lean.Elab.StructInst.0.Lean.Elab.Term.StructInst.expandParentFields"); +return x_1; +} +} +static lean_object* _init_l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__2() { +_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_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__4; +x_2 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__1; +x_3 = lean_unsigned_to_nat(345u); +x_4 = lean_unsigned_to_nat(32u); +x_5 = l_Lean_ResolveName_resolveNamespaceUsingScope___closed__3; +x_6 = l___private_Init_Util_2__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +lean_object* l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -12078,7 +9016,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); lean_inc(x_1); -x_7 = l_List_map___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__1(x_1, x_6); +x_7 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1(x_1, x_6); if (lean_obj_tag(x_5) == 1) { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; @@ -12096,59 +9034,61 @@ return x_2; } else { -lean_object* x_12; lean_object* x_13; +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_dec(x_5); lean_dec(x_1); x_12 = l_Lean_Elab_Term_StructInst_FieldLHS_inhabited; -x_13 = l_unreachable_x21___rarg(x_12); +x_13 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__2; +x_14 = lean_panic_fn(x_12, x_13); lean_ctor_set(x_2, 1, x_7); -lean_ctor_set(x_2, 0, x_13); +lean_ctor_set(x_2, 0, x_14); return x_2; } } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_2, 0); -x_15 = lean_ctor_get(x_2, 1); +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_2, 0); +x_16 = lean_ctor_get(x_2, 1); +lean_inc(x_16); lean_inc(x_15); -lean_inc(x_14); lean_dec(x_2); lean_inc(x_1); -x_16 = l_List_map___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__1(x_1, x_15); -if (lean_obj_tag(x_14) == 1) +x_17 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1(x_1, x_16); +if (lean_obj_tag(x_15) == 1) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_17 = lean_ctor_get(x_14, 1); -lean_inc(x_17); -lean_dec(x_14); -x_18 = lean_box(0); -x_19 = lean_name_mk_string(x_18, x_17); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_1); -lean_ctor_set(x_20, 1, x_19); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_16); -return x_21; +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_dec(x_15); +x_19 = lean_box(0); +x_20 = lean_name_mk_string(x_19, x_18); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_1); +lean_ctor_set(x_21, 1, x_20); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_17); +return x_22; } else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -lean_dec(x_14); +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +lean_dec(x_15); lean_dec(x_1); -x_22 = l_Lean_Elab_Term_StructInst_FieldLHS_inhabited; -x_23 = l_unreachable_x21___rarg(x_22); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_16); -return x_24; +x_23 = l_Lean_Elab_Term_StructInst_FieldLHS_inhabited; +x_24 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__2; +x_25 = lean_panic_fn(x_23, x_24); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_17); +return x_26; } } } } } -static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__1() { +static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__1() { _start: { lean_object* x_1; @@ -12156,27 +9096,16 @@ x_1 = lean_mk_string("' is not a field of structure '"); return x_1; } } -static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__2() { +static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__4() { +static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__3() { _start: { lean_object* x_1; @@ -12184,27 +9113,16 @@ x_1 = lean_mk_string("failed to access field '"); return x_1; } } -static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__5() { +static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__4; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__5; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__7() { +static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__5() { _start: { lean_object* x_1; @@ -12212,27 +9130,16 @@ x_1 = lean_mk_string("' in parent structure"); return x_1; } } -static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__8() { +static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__7; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__8; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___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* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___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: { if (lean_obj_tag(x_3) == 0) @@ -12306,11 +9213,11 @@ lean_dec(x_13); lean_dec(x_2); x_40 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_40, 0, x_37); -x_41 = l_Lean_throwUnknownConstant___rarg___closed__5; +x_41 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; 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_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__3; +x_43 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__2; x_44 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_44, 0, x_42); lean_ctor_set(x_44, 1, x_43); @@ -12322,7 +9229,7 @@ lean_ctor_set(x_46, 1, x_45); x_47 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_47, 0, x_46); lean_ctor_set(x_47, 1, x_41); -x_48 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_36, x_47, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_48 = l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2___rarg(x_36, x_47, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_36); x_49 = !lean_is_exclusive(x_48); if (x_49 == 0) @@ -12381,15 +9288,15 @@ lean_dec(x_14); lean_dec(x_2); x_61 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_61, 0, x_37); -x_62 = l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__6; +x_62 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__4; x_63 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_63, 0, x_62); lean_ctor_set(x_63, 1, x_61); -x_64 = l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__9; +x_64 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__6; x_65 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_65, 0, x_63); lean_ctor_set(x_65, 1, x_64); -x_66 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_36, x_65, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_66 = l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2___rarg(x_36, x_65, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_36); x_67 = !lean_is_exclusive(x_66); if (x_67 == 0) @@ -12417,7 +9324,7 @@ lean_dec(x_37); x_71 = lean_ctor_get(x_60, 0); lean_inc(x_71); lean_dec(x_60); -x_72 = l_List_map___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__1(x_36, x_71); +x_72 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1(x_36, x_71); x_73 = l_List_append___rarg(x_72, x_31); lean_ctor_set(x_13, 1, x_73); x_16 = x_13; @@ -12444,15 +9351,15 @@ lean_dec(x_14); lean_dec(x_2); x_75 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_75, 0, x_37); -x_76 = l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__6; +x_76 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___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_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__9; +x_78 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___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_80 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_36, x_79, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_80 = l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2___rarg(x_36, x_79, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_36); x_81 = lean_ctor_get(x_80, 0); lean_inc(x_81); @@ -12482,7 +9389,7 @@ lean_dec(x_37); x_85 = lean_ctor_get(x_74, 0); lean_inc(x_85); lean_dec(x_74); -x_86 = l_List_map___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__1(x_36, x_85); +x_86 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1(x_36, x_85); x_87 = l_List_append___rarg(x_86, x_31); x_88 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_88, 0, x_33); @@ -12523,7 +9430,7 @@ goto block_30; block_30: { lean_object* x_18; -x_18 = l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2(x_1, x_2, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_17); +x_18 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2(x_1, x_2, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_17); if (lean_obj_tag(x_18) == 0) { uint8_t x_19; @@ -12591,7 +9498,146 @@ return x_29; } } } -lean_object* l___private_Lean_Elab_StructInst_10__expandParentFields(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_1); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_11 = lean_ctor_get(x_1, 0); +x_12 = lean_ctor_get(x_1, 1); +x_13 = lean_ctor_get(x_1, 2); +x_14 = lean_ctor_get(x_1, 3); +x_15 = lean_apply_8(x_2, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +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; +x_17 = lean_ctor_get(x_15, 0); +lean_ctor_set(x_1, 2, x_17); +lean_ctor_set(x_15, 0, x_1); +return x_15; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_15, 0); +x_19 = lean_ctor_get(x_15, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_15); +lean_ctor_set(x_1, 2, x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_1); +lean_ctor_set(x_20, 1, x_19); +return x_20; +} +} +else +{ +uint8_t x_21; +lean_free_object(x_1); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_11); +x_21 = !lean_is_exclusive(x_15); +if (x_21 == 0) +{ +return x_15; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +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_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_25 = lean_ctor_get(x_1, 0); +x_26 = lean_ctor_get(x_1, 1); +x_27 = lean_ctor_get(x_1, 2); +x_28 = lean_ctor_get(x_1, 3); +lean_inc(x_28); +lean_inc(x_27); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_1); +x_29 = lean_apply_8(x_2, x_27, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +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; +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +if (lean_is_exclusive(x_29)) { + lean_ctor_release(x_29, 0); + lean_ctor_release(x_29, 1); + x_32 = x_29; +} else { + lean_dec_ref(x_29); + x_32 = lean_box(0); +} +x_33 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_33, 0, x_25); +lean_ctor_set(x_33, 1, x_26); +lean_ctor_set(x_33, 2, x_30); +lean_ctor_set(x_33, 3, x_28); +if (lean_is_scalar(x_32)) { + x_34 = lean_alloc_ctor(0, 2, 0); +} else { + x_34 = x_32; +} +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_31); +return x_34; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +lean_dec(x_28); +lean_dec(x_26); +lean_dec(x_25); +x_35 = lean_ctor_get(x_29, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_29, 1); +lean_inc(x_36); +if (lean_is_exclusive(x_29)) { + lean_ctor_release(x_29, 0); + lean_ctor_release(x_29, 1); + x_37 = x_29; +} else { + lean_dec_ref(x_29); + x_37 = lean_box(0); +} +if (lean_is_scalar(x_37)) { + x_38 = lean_alloc_ctor(1, 2, 0); +} else { + x_38 = x_37; +} +lean_ctor_set(x_38, 0, x_35); +lean_ctor_set(x_38, 1, x_36); +return x_38; +} +} +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields(lean_object* x_1, lean_object* x_2, 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; @@ -12605,18 +9651,18 @@ x_12 = lean_ctor_get(x_10, 0); lean_inc(x_12); lean_dec(x_10); lean_inc(x_1); -x_13 = lean_alloc_closure((void*)(l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___boxed), 10, 2); +x_13 = lean_alloc_closure((void*)(l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___boxed), 10, 2); lean_closure_set(x_13, 0, x_1); lean_closure_set(x_13, 1, x_12); -x_14 = l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__2(x_1, x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_11); +x_14 = l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__3(x_1, x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_11); return x_14; } } -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___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* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___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_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___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_7); lean_dec(x_6); @@ -12625,7 +9671,102 @@ lean_dec(x_1); return x_11; } } -lean_object* l_Std_AssocList_find_x3f___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_apply_1(x_3, x_1); +return x_4; +} +else +{ +lean_object* x_5; +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = lean_apply_1(x_3, x_1); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +lean_dec(x_1); +x_7 = lean_ctor_get(x_5, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_5, 1); +lean_inc(x_8); +lean_dec(x_5); +x_9 = lean_apply_2(x_2, x_7, x_8); +return x_9; +} +} +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_apply_1(x_3, x_1); +return x_4; +} +else +{ +lean_object* x_5; +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_ctor_get(x_5, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_5, 1); +lean_inc(x_8); +lean_dec(x_5); +x_9 = lean_apply_3(x_2, x_7, x_8, x_6); +return x_9; +} +else +{ +lean_object* x_10; +lean_dec(x_5); +lean_dec(x_2); +x_10 = lean_apply_1(x_3, x_1); +return x_10; +} +} +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Std_AssocList_find_x3f___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -12657,7 +9798,7 @@ return x_9; } } } -lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; size_t x_5; size_t x_6; lean_object* x_7; lean_object* x_8; @@ -12667,12 +9808,12 @@ x_5 = l_Lean_Name_hash(x_2); x_6 = lean_usize_modn(x_5, x_4); lean_dec(x_4); x_7 = lean_array_uget(x_3, x_6); -x_8 = l_Std_AssocList_find_x3f___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__2(x_2, x_7); +x_8 = l_Std_AssocList_find_x3f___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__2(x_2, x_7); lean_dec(x_7); return x_8; } } -uint8_t l_Std_AssocList_contains___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__4(lean_object* x_1, lean_object* x_2) { +uint8_t l_Std_AssocList_contains___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__4(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -12701,7 +9842,7 @@ return x_8; } } } -lean_object* l_Std_AssocList_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__7(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_AssocList_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__7(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -12755,7 +9896,7 @@ goto _start; } } } -lean_object* l_Std_HashMapImp_moveEntries___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_HashMapImp_moveEntries___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -12774,7 +9915,7 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_obj x_6 = lean_array_fget(x_2, x_1); x_7 = lean_box(0); x_8 = lean_array_fset(x_2, x_1, x_7); -x_9 = l_Std_AssocList_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__7(x_3, x_6); +x_9 = l_Std_AssocList_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__7(x_3, x_6); x_10 = lean_unsigned_to_nat(1u); x_11 = lean_nat_add(x_1, x_10); lean_dec(x_1); @@ -12785,7 +9926,7 @@ goto _start; } } } -lean_object* l_Std_HashMapImp_expand___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__5(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_HashMapImp_expand___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__5(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; @@ -12796,14 +9937,14 @@ lean_dec(x_3); x_6 = lean_box(0); x_7 = lean_mk_array(x_5, x_6); x_8 = lean_unsigned_to_nat(0u); -x_9 = l_Std_HashMapImp_moveEntries___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__6(x_8, x_2, x_7); +x_9 = l_Std_HashMapImp_moveEntries___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__6(x_8, x_2, x_7); x_10 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_10, 0, x_1); lean_ctor_set(x_10, 1, x_9); return x_10; } } -lean_object* l_Std_AssocList_replace___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_AssocList_replace___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -12826,7 +9967,7 @@ x_8 = lean_name_eq(x_5, x_1); if (x_8 == 0) { lean_object* x_9; -x_9 = l_Std_AssocList_replace___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__8(x_1, x_2, x_7); +x_9 = l_Std_AssocList_replace___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__8(x_1, x_2, x_7); lean_ctor_set(x_3, 2, x_9); return x_3; } @@ -12853,7 +9994,7 @@ x_13 = lean_name_eq(x_10, x_1); if (x_13 == 0) { lean_object* x_14; lean_object* x_15; -x_14 = l_Std_AssocList_replace___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__8(x_1, x_2, x_12); +x_14 = l_Std_AssocList_replace___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__8(x_1, x_2, x_12); x_15 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_15, 0, x_10); lean_ctor_set(x_15, 1, x_11); @@ -12875,7 +10016,7 @@ return x_16; } } } -lean_object* l_Std_HashMapImp_insert___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_HashMapImp_insert___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -12889,7 +10030,7 @@ x_7 = lean_array_get_size(x_6); x_8 = l_Lean_Name_hash(x_2); x_9 = lean_usize_modn(x_8, x_7); x_10 = lean_array_uget(x_6, x_9); -x_11 = l_Std_AssocList_contains___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__4(x_2, x_10); +x_11 = l_Std_AssocList_contains___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__4(x_2, x_10); if (x_11 == 0) { lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; @@ -12907,7 +10048,7 @@ if (x_16 == 0) { lean_object* x_17; lean_free_object(x_1); -x_17 = l_Std_HashMapImp_expand___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__5(x_13, x_15); +x_17 = l_Std_HashMapImp_expand___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__5(x_13, x_15); return x_17; } else @@ -12921,7 +10062,7 @@ else { lean_object* x_18; lean_object* x_19; lean_dec(x_7); -x_18 = l_Std_AssocList_replace___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__8(x_2, x_3, x_10); +x_18 = l_Std_AssocList_replace___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__8(x_2, x_3, x_10); x_19 = lean_array_uset(x_6, x_9, x_18); lean_ctor_set(x_1, 1, x_19); return x_1; @@ -12939,7 +10080,7 @@ x_22 = lean_array_get_size(x_21); x_23 = l_Lean_Name_hash(x_2); x_24 = lean_usize_modn(x_23, x_22); x_25 = lean_array_uget(x_21, x_24); -x_26 = l_Std_AssocList_contains___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__4(x_2, x_25); +x_26 = l_Std_AssocList_contains___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__4(x_2, x_25); if (x_26 == 0) { lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; @@ -12956,7 +10097,7 @@ lean_dec(x_22); if (x_31 == 0) { lean_object* x_32; -x_32 = l_Std_HashMapImp_expand___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__5(x_28, x_30); +x_32 = l_Std_HashMapImp_expand___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__5(x_28, x_30); return x_32; } else @@ -12972,7 +10113,7 @@ else { lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_dec(x_22); -x_34 = l_Std_AssocList_replace___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__8(x_2, x_3, x_25); +x_34 = l_Std_AssocList_replace___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__8(x_2, x_3, x_25); x_35 = lean_array_uset(x_21, x_24, x_34); x_36 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_36, 0, x_20); @@ -12982,7 +10123,7 @@ return x_36; } } } -lean_object* l_Std_mkHashMap___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__9(lean_object* x_1) { +lean_object* l_Std_mkHashMap___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__9(lean_object* x_1) { _start: { lean_object* x_2; @@ -12990,7 +10131,28 @@ x_2 = l_Std_mkHashMapImp___rarg(x_1); return x_2; } } -static lean_object* _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__1() { +static lean_object* _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("_private.Lean.Elab.StructInst.0.Lean.Elab.Term.StructInst.mkFieldMap"); +return x_1; +} +} +static lean_object* _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__2() { +_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_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__4; +x_2 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__1; +x_3 = lean_unsigned_to_nat(363u); +x_4 = lean_unsigned_to_nat(9u); +x_5 = l_Lean_ResolveName_resolveNamespaceUsingScope___closed__3; +x_6 = l___private_Init_Util_2__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +static lean_object* _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__3() { _start: { lean_object* x_1; @@ -12998,27 +10160,16 @@ x_1 = lean_mk_string("field '"); return x_1; } } -static lean_object* _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__2() { +static lean_object* _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__4() { +static lean_object* _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__5() { _start: { lean_object* x_1; @@ -13026,27 +10177,16 @@ x_1 = lean_mk_string("' has already beed specified"); return x_1; } } -static lean_object* _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__5() { +static lean_object* _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__4; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__5; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { if (lean_obj_tag(x_2) == 0) @@ -13072,37 +10212,38 @@ x_12 = lean_ctor_get(x_11, 1); lean_inc(x_12); if (lean_obj_tag(x_12) == 0) { -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_dec(x_11); lean_dec(x_1); x_13 = lean_ctor_get(x_2, 1); lean_inc(x_13); lean_dec(x_2); x_14 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -x_15 = l_unreachable_x21___rarg(x_14); +x_15 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__2; +x_16 = lean_panic_fn(x_14, x_15); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_16 = lean_apply_7(x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_16) == 0) +x_17 = lean_apply_7(x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_17) == 0) { -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_16, 1); +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_17, 0); lean_inc(x_18); -lean_dec(x_16); -x_1 = x_17; +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_1 = x_18; x_2 = x_13; -x_9 = x_18; +x_9 = x_19; goto _start; } else { -uint8_t x_20; +uint8_t x_21; lean_dec(x_13); lean_dec(x_8); lean_dec(x_7); @@ -13110,36 +10251,39 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_20 = !lean_is_exclusive(x_16); -if (x_20 == 0) +x_21 = !lean_is_exclusive(x_17); +if (x_21 == 0) { -return x_16; +return x_17; } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_16, 0); -x_22 = lean_ctor_get(x_16, 1); +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_inc(x_21); -lean_dec(x_16); -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_21); -lean_ctor_set(x_23, 1, x_22); -return x_23; +lean_dec(x_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_24; -x_24 = !lean_is_exclusive(x_12); -if (x_24 == 0) -{ lean_object* x_25; lean_object* x_26; x_25 = lean_ctor_get(x_12, 0); -x_26 = lean_ctor_get(x_12, 1); -lean_dec(x_26); +lean_inc(x_25); +if (lean_is_exclusive(x_12)) { + lean_ctor_release(x_12, 0); + lean_ctor_release(x_12, 1); + x_26 = x_12; +} else { + lean_dec_ref(x_12); + x_26 = lean_box(0); +} if (lean_obj_tag(x_25) == 0) { lean_object* x_27; lean_object* x_28; lean_object* x_29; @@ -13149,145 +10293,145 @@ lean_dec(x_2); x_28 = lean_ctor_get(x_25, 1); lean_inc(x_28); lean_dec(x_25); -x_29 = l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__1(x_1, x_28); +x_29 = l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__1(x_1, x_28); if (lean_obj_tag(x_29) == 0) { -lean_object* x_30; lean_object* x_31; +lean_object* x_30; lean_object* x_31; lean_object* x_32; x_30 = lean_box(0); -lean_ctor_set(x_12, 1, x_30); -lean_ctor_set(x_12, 0, x_11); -x_31 = l_Std_HashMapImp_insert___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__3(x_1, x_28, x_12); -x_1 = x_31; +if (lean_is_scalar(x_26)) { + x_31 = lean_alloc_ctor(1, 2, 0); +} else { + x_31 = x_26; +} +lean_ctor_set(x_31, 0, x_11); +lean_ctor_set(x_31, 1, x_30); +x_32 = l_Std_HashMapImp_insert___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__3(x_1, x_28, x_31); +x_1 = x_32; x_2 = x_27; goto _start; } else { -lean_object* x_33; -x_33 = lean_ctor_get(x_29, 0); -lean_inc(x_33); -lean_dec(x_29); -if (lean_obj_tag(x_33) == 0) -{ lean_object* x_34; -lean_ctor_set(x_12, 1, x_33); -lean_ctor_set(x_12, 0, x_11); -x_34 = l_Std_HashMapImp_insert___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__3(x_1, x_28, x_12); -x_1 = x_34; +x_34 = lean_ctor_get(x_29, 0); +lean_inc(x_34); +lean_dec(x_29); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_box(0); +if (lean_is_scalar(x_26)) { + x_36 = lean_alloc_ctor(1, 2, 0); +} else { + x_36 = x_26; +} +lean_ctor_set(x_36, 0, x_11); +lean_ctor_set(x_36, 1, x_35); +x_37 = l_Std_HashMapImp_insert___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__3(x_1, x_28, x_36); +x_1 = x_37; x_2 = x_27; goto _start; } else { -lean_object* x_36; uint8_t x_37; -x_36 = lean_ctor_get(x_33, 0); -lean_inc(x_36); -x_37 = l_Lean_Elab_Term_StructInst_Field_isSimple___rarg(x_11); -if (x_37 == 0) -{ -uint8_t x_38; -x_38 = l_Lean_Elab_Term_StructInst_Field_isSimple___rarg(x_36); -lean_dec(x_36); -if (x_38 == 0) -{ -lean_object* x_39; -lean_ctor_set(x_12, 1, x_33); -lean_ctor_set(x_12, 0, x_11); -x_39 = l_Std_HashMapImp_insert___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__3(x_1, x_28, x_12); -x_1 = x_39; -x_2 = x_27; -goto _start; +lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; uint8_t x_59; +x_39 = lean_ctor_get(x_34, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_34, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_34)) { + lean_ctor_release(x_34, 0); + lean_ctor_release(x_34, 1); + x_41 = x_34; +} else { + lean_dec_ref(x_34); + x_41 = lean_box(0); } -else -{ -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; -lean_dec(x_33); -lean_dec(x_27); -lean_free_object(x_12); -lean_dec(x_1); -x_41 = lean_ctor_get(x_11, 0); -lean_inc(x_41); -lean_dec(x_11); -x_42 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_42, 0, x_28); -x_43 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__3; -x_44 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_42); -x_45 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__6; -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_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_41, x_46, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_41); -x_48 = !lean_is_exclusive(x_47); -if (x_48 == 0) -{ -return x_47; -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_47, 0); -x_50 = lean_ctor_get(x_47, 1); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_47); -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; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; -lean_dec(x_36); -lean_dec(x_33); -lean_dec(x_27); -lean_free_object(x_12); -lean_dec(x_1); -x_52 = lean_ctor_get(x_11, 0); -lean_inc(x_52); -lean_dec(x_11); -x_53 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_53, 0, x_28); -x_54 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__3; -x_55 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_55, 0, x_54); -lean_ctor_set(x_55, 1, x_53); -x_56 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__6; -x_57 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_57, 0, x_55); -lean_ctor_set(x_57, 1, x_56); -x_58 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_52, x_57, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_52); -x_59 = !lean_is_exclusive(x_58); +x_59 = l_Lean_Elab_Term_StructInst_Field_isSimple___rarg(x_11); if (x_59 == 0) { -return x_58; +uint8_t x_60; +x_60 = l_Lean_Elab_Term_StructInst_Field_isSimple___rarg(x_39); +x_42 = x_60; +goto block_58; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_58, 0); -x_61 = lean_ctor_get(x_58, 1); -lean_inc(x_61); -lean_inc(x_60); -lean_dec(x_58); -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; +uint8_t x_61; +x_61 = 1; +x_42 = x_61; +goto block_58; +} +block_58: +{ +if (x_42 == 0) +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +if (lean_is_scalar(x_41)) { + x_43 = lean_alloc_ctor(1, 2, 0); +} else { + x_43 = x_41; +} +lean_ctor_set(x_43, 0, x_39); +lean_ctor_set(x_43, 1, x_40); +if (lean_is_scalar(x_26)) { + x_44 = lean_alloc_ctor(1, 2, 0); +} else { + x_44 = x_26; +} +lean_ctor_set(x_44, 0, x_11); +lean_ctor_set(x_44, 1, x_43); +x_45 = l_Std_HashMapImp_insert___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__3(x_1, x_28, x_44); +x_1 = x_45; +x_2 = x_27; +goto _start; +} +else +{ +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; uint8_t x_54; +lean_dec(x_41); +lean_dec(x_40); +lean_dec(x_39); +lean_dec(x_27); +lean_dec(x_26); +lean_dec(x_1); +x_47 = lean_ctor_get(x_11, 0); +lean_inc(x_47); +lean_dec(x_11); +x_48 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_48, 0, x_28); +x_49 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___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_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___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); +x_53 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_47, x_52, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_47); +x_54 = !lean_is_exclusive(x_53); +if (x_54 == 0) +{ +return x_53; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_53, 0); +x_56 = lean_ctor_get(x_53, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_53); +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; +} } } } @@ -13295,16 +10439,17 @@ return x_62; } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -lean_free_object(x_12); +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +lean_dec(x_26); lean_dec(x_25); lean_dec(x_11); lean_dec(x_1); -x_63 = lean_ctor_get(x_2, 1); -lean_inc(x_63); +x_62 = lean_ctor_get(x_2, 1); +lean_inc(x_62); lean_dec(x_2); -x_64 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -x_65 = l_unreachable_x21___rarg(x_64); +x_63 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; +x_64 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__2; +x_65 = lean_panic_fn(x_63, x_64); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); @@ -13321,14 +10466,14 @@ x_68 = lean_ctor_get(x_66, 1); lean_inc(x_68); lean_dec(x_66); x_1 = x_67; -x_2 = x_63; +x_2 = x_62; x_9 = x_68; goto _start; } else { uint8_t x_70; -lean_dec(x_63); +lean_dec(x_62); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -13356,239 +10501,10 @@ return x_73; } } } -else -{ -lean_object* x_74; -x_74 = lean_ctor_get(x_12, 0); -lean_inc(x_74); -lean_dec(x_12); -if (lean_obj_tag(x_74) == 0) -{ -lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_75 = lean_ctor_get(x_2, 1); -lean_inc(x_75); -lean_dec(x_2); -x_76 = lean_ctor_get(x_74, 1); -lean_inc(x_76); -lean_dec(x_74); -x_77 = l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__1(x_1, x_76); -if (lean_obj_tag(x_77) == 0) -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_box(0); -x_79 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_79, 0, x_11); -lean_ctor_set(x_79, 1, x_78); -x_80 = l_Std_HashMapImp_insert___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__3(x_1, x_76, x_79); -x_1 = x_80; -x_2 = x_75; -goto _start; -} -else -{ -lean_object* x_82; -x_82 = lean_ctor_get(x_77, 0); -lean_inc(x_82); -lean_dec(x_77); -if (lean_obj_tag(x_82) == 0) -{ -lean_object* x_83; lean_object* x_84; -x_83 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_83, 0, x_11); -lean_ctor_set(x_83, 1, x_82); -x_84 = l_Std_HashMapImp_insert___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__3(x_1, x_76, x_83); -x_1 = x_84; -x_2 = x_75; -goto _start; -} -else -{ -lean_object* x_86; uint8_t x_87; -x_86 = lean_ctor_get(x_82, 0); -lean_inc(x_86); -x_87 = l_Lean_Elab_Term_StructInst_Field_isSimple___rarg(x_11); -if (x_87 == 0) -{ -uint8_t x_88; -x_88 = l_Lean_Elab_Term_StructInst_Field_isSimple___rarg(x_86); -lean_dec(x_86); -if (x_88 == 0) -{ -lean_object* x_89; lean_object* x_90; -x_89 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_89, 0, x_11); -lean_ctor_set(x_89, 1, x_82); -x_90 = l_Std_HashMapImp_insert___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__3(x_1, x_76, x_89); -x_1 = x_90; -x_2 = x_75; -goto _start; -} -else -{ -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_dec(x_82); -lean_dec(x_75); -lean_dec(x_1); -x_92 = lean_ctor_get(x_11, 0); -lean_inc(x_92); -lean_dec(x_11); -x_93 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_93, 0, x_76); -x_94 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__3; -x_95 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_95, 0, x_94); -lean_ctor_set(x_95, 1, x_93); -x_96 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__6; -x_97 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_97, 0, x_95); -lean_ctor_set(x_97, 1, x_96); -x_98 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_92, x_97, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_92); -x_99 = lean_ctor_get(x_98, 0); -lean_inc(x_99); -x_100 = lean_ctor_get(x_98, 1); -lean_inc(x_100); -if (lean_is_exclusive(x_98)) { - lean_ctor_release(x_98, 0); - lean_ctor_release(x_98, 1); - x_101 = x_98; -} else { - lean_dec_ref(x_98); - x_101 = lean_box(0); -} -if (lean_is_scalar(x_101)) { - x_102 = lean_alloc_ctor(1, 2, 0); -} else { - x_102 = x_101; -} -lean_ctor_set(x_102, 0, x_99); -lean_ctor_set(x_102, 1, x_100); -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_dec(x_86); -lean_dec(x_82); -lean_dec(x_75); -lean_dec(x_1); -x_103 = lean_ctor_get(x_11, 0); -lean_inc(x_103); -lean_dec(x_11); -x_104 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_104, 0, x_76); -x_105 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__3; -x_106 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_106, 0, x_105); -lean_ctor_set(x_106, 1, x_104); -x_107 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__6; -x_108 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_108, 0, x_106); -lean_ctor_set(x_108, 1, x_107); -x_109 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_103, x_108, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_103); -x_110 = lean_ctor_get(x_109, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_109, 1); -lean_inc(x_111); -if (lean_is_exclusive(x_109)) { - lean_ctor_release(x_109, 0); - lean_ctor_release(x_109, 1); - x_112 = x_109; -} else { - lean_dec_ref(x_109); - x_112 = lean_box(0); -} -if (lean_is_scalar(x_112)) { - x_113 = lean_alloc_ctor(1, 2, 0); -} else { - x_113 = x_112; -} -lean_ctor_set(x_113, 0, x_110); -lean_ctor_set(x_113, 1, x_111); -return x_113; } } } -} -else -{ -lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; -lean_dec(x_74); -lean_dec(x_11); -lean_dec(x_1); -x_114 = lean_ctor_get(x_2, 1); -lean_inc(x_114); -lean_dec(x_2); -x_115 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -x_116 = l_unreachable_x21___rarg(x_115); -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_117 = lean_apply_7(x_116, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_117) == 0) -{ -lean_object* x_118; lean_object* x_119; -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_1 = x_118; -x_2 = x_114; -x_9 = x_119; -goto _start; -} -else -{ -lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; -lean_dec(x_114); -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_121 = lean_ctor_get(x_117, 0); -lean_inc(x_121); -x_122 = lean_ctor_get(x_117, 1); -lean_inc(x_122); -if (lean_is_exclusive(x_117)) { - lean_ctor_release(x_117, 0); - lean_ctor_release(x_117, 1); - x_123 = x_117; -} else { - lean_dec_ref(x_117); - x_123 = lean_box(0); -} -if (lean_is_scalar(x_123)) { - x_124 = lean_alloc_ctor(1, 2, 0); -} else { - x_124 = x_123; -} -lean_ctor_set(x_124, 0, x_121); -lean_ctor_set(x_124, 1, x_122); -return x_124; -} -} -} -} -} -} -} -static lean_object* _init_l___private_Lean_Elab_StructInst_12__mkFieldMap___closed__1() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -13597,47 +10513,91 @@ x_2 = l_Std_mkHashMapImp___rarg(x_1); return x_2; } } -lean_object* l___private_Lean_Elab_StructInst_12__mkFieldMap(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; -x_9 = l___private_Lean_Elab_StructInst_12__mkFieldMap___closed__1; -x_10 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10(x_9, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___closed__1; +x_10 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10(x_9, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); return x_10; } } -lean_object* l_Std_AssocList_find_x3f___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_AssocList_find_x3f___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Std_AssocList_find_x3f___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__2(x_1, x_2); +x_3 = l_Std_AssocList_find_x3f___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__2(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__1(x_1, x_2); +x_3 = l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Std_AssocList_contains___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__4___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_AssocList_contains___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__4___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_Std_AssocList_contains___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__4(x_1, x_2); +x_3 = l_Std_AssocList_contains___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__4(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } -lean_object* l___private_Lean_Elab_StructInst_13__isSimpleField_x3f(lean_object* x_1) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isSimpleField_x3f_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_apply_1(x_3, x_1); +return x_4; +} +else +{ +lean_object* x_5; +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +else +{ +lean_object* x_8; +lean_dec(x_5); +lean_dec(x_2); +x_8 = lean_apply_1(x_3, x_1); +return x_8; +} +} +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isSimpleField_x3f_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isSimpleField_x3f_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isSimpleField_x3f(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -13679,16 +10639,47 @@ return x_8; } } } -lean_object* l___private_Lean_Elab_StructInst_13__isSimpleField_x3f___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isSimpleField_x3f___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l___private_Lean_Elab_StructInst_13__isSimpleField_x3f(x_1); +x_2 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isSimpleField_x3f(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_StructInst_14__getFieldIdx___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldIdx_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldIdx_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldIdx_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldIdx___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -13727,7 +10718,7 @@ return x_12; } } } -static lean_object* _init_l___private_Lean_Elab_StructInst_14__getFieldIdx___closed__1() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldIdx___closed__1() { _start: { lean_object* x_1; @@ -13735,42 +10726,31 @@ x_1 = lean_mk_string("' is not a valid field of '"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_14__getFieldIdx___closed__2() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldIdx___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_StructInst_14__getFieldIdx___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldIdx___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_14__getFieldIdx___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_StructInst_14__getFieldIdx___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l___private_Lean_Elab_StructInst_14__getFieldIdx(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldIdx(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; lean_object* x_12; x_11 = lean_unsigned_to_nat(0u); -x_12 = l_Array_findIdxAux___main___at___private_Lean_Elab_StructInst_14__getFieldIdx___spec__1(x_3, x_2, x_11); +x_12 = l_Array_findIdxAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldIdx___spec__1(x_3, x_2, x_11); if (lean_obj_tag(x_12) == 0) { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 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_13 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_13, 0, x_3); -x_14 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__3; +x_14 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__4; x_15 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_15, 0, x_14); lean_ctor_set(x_15, 1, x_13); -x_16 = l___private_Lean_Elab_StructInst_14__getFieldIdx___closed__3; +x_16 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldIdx___closed__2; x_17 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_17, 0, x_15); lean_ctor_set(x_17, 1, x_16); @@ -13779,11 +10759,11 @@ lean_ctor_set(x_18, 0, x_1); 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_throwUnknownConstant___rarg___closed__5; +x_20 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; 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 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_21, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_22 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(x_21, x_4, x_5, x_6, x_7, x_8, x_9, x_10); return x_22; } else @@ -13802,21 +10782,21 @@ return x_24; } } } -lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_StructInst_14__getFieldIdx___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldIdx___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Array_findIdxAux___main___at___private_Lean_Elab_StructInst_14__getFieldIdx___spec__1(x_1, x_2, x_3); +x_4 = l_Array_findIdxAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldIdx___spec__1(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l___private_Lean_Elab_StructInst_14__getFieldIdx___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldIdx___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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_StructInst_14__getFieldIdx(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldIdx(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); @@ -13826,7 +10806,7 @@ lean_dec(x_2); return x_11; } } -lean_object* l___private_Lean_Elab_StructInst_15__mkProjStx(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkProjStx(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; @@ -13844,7 +10824,39 @@ lean_ctor_set(x_11, 1, x_9); return x_11; } } -lean_object* l___private_Lean_Elab_StructInst_16__mkSubstructSource(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkSubstructSource_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 2) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_2(x_2, x_4, x_5); +return x_6; +} +else +{ +lean_object* x_7; +lean_dec(x_2); +x_7 = lean_apply_1(x_3, x_1); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkSubstructSource_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkSubstructSource_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkSubstructSource(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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_4) == 2) @@ -13858,7 +10870,7 @@ x_13 = lean_ctor_get(x_4, 0); x_14 = lean_ctor_get(x_4, 1); lean_inc(x_3); lean_inc(x_1); -x_15 = l___private_Lean_Elab_StructInst_14__getFieldIdx(x_1, x_2, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_15 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldIdx(x_1, x_2, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_15) == 0) { uint8_t x_16; @@ -13893,7 +10905,7 @@ lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean x_24 = lean_array_fget(x_20, x_22); x_25 = lean_box(0); x_26 = lean_array_fset(x_20, x_22, x_25); -x_27 = l___private_Lean_Elab_StructInst_15__mkProjStx(x_24, x_3); +x_27 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkProjStx(x_24, x_3); x_28 = lean_array_fset(x_26, x_22, x_27); lean_ctor_set(x_13, 1, x_28); lean_ctor_set(x_4, 1, x_18); @@ -13931,7 +10943,7 @@ lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean x_35 = lean_array_fget(x_30, x_32); x_36 = lean_box(0); x_37 = lean_array_fset(x_30, x_32, x_36); -x_38 = l___private_Lean_Elab_StructInst_15__mkProjStx(x_35, x_3); +x_38 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkProjStx(x_35, x_3); x_39 = lean_array_fset(x_37, x_32, x_38); x_40 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_40, 0, x_29); @@ -14003,7 +11015,7 @@ lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean x_52 = lean_array_fget(x_45, x_48); x_53 = lean_box(0); x_54 = lean_array_fset(x_45, x_48, x_53); -x_55 = l___private_Lean_Elab_StructInst_15__mkProjStx(x_52, x_3); +x_55 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkProjStx(x_52, x_3); x_56 = lean_array_fset(x_54, x_48, x_55); if (lean_is_scalar(x_46)) { x_57 = lean_alloc_ctor(1, 2, 0); @@ -14070,7 +11082,7 @@ lean_inc(x_64); lean_dec(x_4); lean_inc(x_3); lean_inc(x_1); -x_66 = l___private_Lean_Elab_StructInst_14__getFieldIdx(x_1, x_2, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_66 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldIdx(x_1, x_2, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_66) == 0) { lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; @@ -14135,7 +11147,7 @@ lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean x_80 = lean_array_fget(x_72, x_75); x_81 = lean_box(0); x_82 = lean_array_fset(x_72, x_75, x_81); -x_83 = l___private_Lean_Elab_StructInst_15__mkProjStx(x_80, x_3); +x_83 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkProjStx(x_80, x_3); x_84 = lean_array_fset(x_82, x_75, x_83); if (lean_is_scalar(x_73)) { x_85 = lean_alloc_ctor(1, 2, 0); @@ -14217,11 +11229,11 @@ return x_94; } } } -lean_object* l___private_Lean_Elab_StructInst_16__mkSubstructSource___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkSubstructSource___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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_StructInst_16__mkSubstructSource(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___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkSubstructSource(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); @@ -14231,7 +11243,90 @@ lean_dec(x_2); return x_12; } } -lean_object* l___private_Lean_Elab_StructInst_17__groupFields___lambda__1(lean_object* x_1) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields_match__3___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields_match__3___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__1(lean_object* x_1) { _start: { uint8_t x_2; @@ -14268,7 +11363,7 @@ return x_10; } } } -lean_object* l___private_Lean_Elab_StructInst_17__groupFields___lambda__2(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__2(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; @@ -14276,15 +11371,15 @@ x_3 = l_Lean_Elab_Term_StructInst_Field_toSyntax(x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_17__groupFields___lambda__3___closed__1() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__3___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_17__groupFields___lambda__1), 1, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__1), 1, 0); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_17__groupFields___lambda__3___closed__2() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__3___closed__2() { _start: { lean_object* x_1; @@ -14292,15 +11387,15 @@ x_1 = l_Lean_Elab_Term_StructInst_Field_inhabited(lean_box(0)); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_17__groupFields___lambda__3___closed__3() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__3___closed__3() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_17__groupFields___lambda__2___boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__2___boxed), 2, 0); return x_1; } } -lean_object* l___private_Lean_Elab_StructInst_17__groupFields___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* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___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) { _start: { lean_object* x_15; lean_object* x_16; lean_object* x_17; @@ -14309,18 +11404,18 @@ lean_inc(x_15); x_16 = lean_ctor_get(x_7, 1); lean_inc(x_16); lean_dec(x_7); -x_17 = l___private_Lean_Elab_StructInst_13__isSimpleField_x3f(x_16); +x_17 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isSimpleField_x3f(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; -x_18 = l___private_Lean_Elab_StructInst_17__groupFields___lambda__3___closed__1; +x_18 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__3___closed__1; lean_inc(x_16); x_19 = l_List_map___main___rarg(x_18, x_16); x_20 = l_Lean_Elab_Term_StructInst_Struct_source(x_1); lean_inc(x_8); lean_inc(x_15); lean_inc(x_2); -x_21 = l___private_Lean_Elab_StructInst_16__mkSubstructSource(x_2, x_3, x_15, x_20, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +x_21 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkSubstructSource(x_2, x_3, x_15, x_20, x_8, x_9, x_10, x_11, x_12, x_13, x_14); if (lean_obj_tag(x_21) == 0) { uint8_t x_22; @@ -14330,7 +11425,7 @@ if (x_22 == 0) lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; x_23 = lean_ctor_get(x_21, 0); x_24 = lean_ctor_get(x_21, 1); -x_25 = l___private_Lean_Elab_StructInst_17__groupFields___lambda__3___closed__2; +x_25 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__3___closed__2; x_26 = l_List_head_x21___rarg(x_25, x_16); lean_dec(x_16); x_27 = l_Lean_isSubobjectField_x3f(x_4, x_2, x_15); @@ -14354,7 +11449,7 @@ lean_dec(x_31); x_33 = l_List_toArrayAux___main___rarg(x_19, x_32); x_34 = x_33; x_35 = l_Id_Monad; -x_36 = l___private_Lean_Elab_StructInst_17__groupFields___lambda__3___closed__3; +x_36 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__3___closed__3; x_37 = lean_unsigned_to_nat(0u); x_38 = l_Array_umapMAux___main___rarg(x_35, lean_box(0), x_36, x_37, x_34); x_39 = x_38; @@ -14567,7 +11662,7 @@ x_104 = lean_ctor_get(x_21, 1); lean_inc(x_104); lean_inc(x_103); lean_dec(x_21); -x_105 = l___private_Lean_Elab_StructInst_17__groupFields___lambda__3___closed__2; +x_105 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__3___closed__2; x_106 = l_List_head_x21___rarg(x_105, x_16); lean_dec(x_16); x_107 = l_Lean_isSubobjectField_x3f(x_4, x_2, x_15); @@ -14591,7 +11686,7 @@ lean_dec(x_111); x_113 = l_List_toArrayAux___main___rarg(x_19, x_112); x_114 = x_113; x_115 = l_Id_Monad; -x_116 = l___private_Lean_Elab_StructInst_17__groupFields___lambda__3___closed__3; +x_116 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__3___closed__3; x_117 = lean_unsigned_to_nat(0u); x_118 = l_Array_umapMAux___main___rarg(x_115, lean_box(0), x_116, x_117, x_114); x_119 = x_118; @@ -14801,7 +11896,7 @@ return x_163; } } } -lean_object* l___private_Lean_Elab_StructInst_17__groupFields___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) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___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; @@ -14811,7 +11906,7 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_16 = l___private_Lean_Elab_StructInst_12__mkFieldMap(x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +x_16 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap(x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); if (lean_obj_tag(x_16) == 0) { lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; @@ -14820,7 +11915,7 @@ lean_inc(x_17); x_18 = lean_ctor_get(x_16, 1); lean_inc(x_18); lean_dec(x_16); -x_19 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_17__groupFields___lambda__3___boxed), 14, 6); +x_19 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__3___boxed), 14, 6); lean_closure_set(x_19, 0, x_1); lean_closure_set(x_19, 1, x_2); lean_closure_set(x_19, 2, x_3); @@ -14870,7 +11965,7 @@ return x_26; } } } -lean_object* l___private_Lean_Elab_StructInst_17__groupFields(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; @@ -14891,7 +11986,7 @@ x_16 = l_Lean_Elab_Term_StructInst_Struct_ref(x_2); x_17 = l_Lean_Meta_CheckAssignment_checkFVar___closed__1; lean_inc(x_16); lean_inc(x_2); -x_18 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_17__groupFields___lambda__4), 15, 7); +x_18 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__4), 15, 7); lean_closure_set(x_18, 0, x_2); lean_closure_set(x_18, 1, x_14); lean_closure_set(x_18, 2, x_15); @@ -14946,25 +12041,87 @@ return x_35; } } } -lean_object* l___private_Lean_Elab_StructInst_17__groupFields___lambda__2___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l___private_Lean_Elab_StructInst_17__groupFields___lambda__2(x_1, x_2); +x_3 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__2(x_1, x_2); lean_dec(x_1); return x_3; } } -lean_object* l___private_Lean_Elab_StructInst_17__groupFields___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* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___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) { _start: { lean_object* x_15; -x_15 = l___private_Lean_Elab_StructInst_17__groupFields___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +x_15 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); lean_dec(x_3); lean_dec(x_1); return x_15; } } +lean_object* l_Lean_Elab_Term_StructInst_findField_x3f_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_apply_1(x_3, x_1); +return x_4; +} +else +{ +lean_object* x_5; +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_6; +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +lean_dec(x_1); +x_7 = lean_ctor_get(x_5, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_5, 1); +lean_inc(x_8); +lean_dec(x_5); +x_9 = lean_apply_2(x_2, x_7, x_8); +return x_9; +} +else +{ +lean_object* x_10; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +x_10 = lean_apply_1(x_3, x_1); +return x_10; +} +} +else +{ +lean_object* x_11; +lean_dec(x_5); +lean_dec(x_2); +x_11 = lean_apply_1(x_3, x_1); +return x_11; +} +} +} +} +lean_object* l_Lean_Elab_Term_StructInst_findField_x3f_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_findField_x3f_match__1___rarg), 3, 0); +return x_2; +} +} uint8_t l_Lean_Elab_Term_StructInst_findField_x3f___lambda__1(lean_object* x_1, lean_object* x_2) { _start: { @@ -15028,7 +12185,117 @@ x_4 = lean_box(x_3); return x_4; } } -lean_object* l___private_Lean_Elab_StructInst_18__addMissingFields___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 0: +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_4); +lean_dec(x_3); +x_5 = lean_box(0); +x_6 = lean_apply_1(x_2, x_5); +return x_6; +} +case 1: +{ +lean_object* x_7; lean_object* x_8; +lean_dec(x_4); +lean_dec(x_2); +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_apply_1(x_3, x_7); +return x_8; +} +default: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +lean_dec(x_3); +lean_dec(x_2); +x_9 = lean_ctor_get(x_1, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_1, 1); +lean_inc(x_10); +lean_dec(x_1); +x_11 = lean_apply_2(x_4, x_9, x_10); +return x_11; +} +} +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields_match__1___rarg), 4, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields_match__3___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17) { _start: { lean_object* x_18; lean_object* x_19; @@ -15117,7 +12384,7 @@ x_38 = lean_unsigned_to_nat(0u); x_39 = l_Lean_Syntax_getArg(x_37, x_38); lean_dec(x_37); lean_inc(x_9); -x_40 = l___private_Lean_Elab_StructInst_15__mkProjStx(x_39, x_9); +x_40 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkProjStx(x_39, x_9); x_41 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_41, 0, x_40); lean_inc(x_4); @@ -15152,7 +12419,7 @@ lean_dec(x_20); x_49 = l_Lean_Elab_Term_StructInst_Struct_source(x_1); lean_inc(x_11); lean_inc(x_9); -x_50 = l___private_Lean_Elab_StructInst_16__mkSubstructSource(x_3, x_6, x_9, x_49, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +x_50 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkSubstructSource(x_3, x_6, x_9, x_49, x_11, x_12, x_13, x_14, x_15, x_16, x_17); if (lean_obj_tag(x_50) == 0) { lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; @@ -15321,7 +12588,7 @@ return x_82; } } } -lean_object* l___private_Lean_Elab_StructInst_18__addMissingFields(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; @@ -15343,7 +12610,7 @@ x_17 = lean_box(0); lean_inc(x_15); lean_inc(x_16); lean_inc(x_2); -x_18 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_18__addMissingFields___lambda__1___boxed), 17, 7); +x_18 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields___lambda__1___boxed), 17, 7); lean_closure_set(x_18, 0, x_2); lean_closure_set(x_18, 1, x_13); lean_closure_set(x_18, 2, x_14); @@ -15503,7 +12770,7 @@ return x_62; } } } -lean_object* l___private_Lean_Elab_StructInst_18__addMissingFields___lambda__1___boxed(lean_object** _args) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields___lambda__1___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; lean_object* x_3 = _args[2]; @@ -15524,14 +12791,30 @@ lean_object* x_17 = _args[16]; _start: { lean_object* x_18; -x_18 = l___private_Lean_Elab_StructInst_18__addMissingFields___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +x_18 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); lean_dec(x_8); lean_dec(x_6); lean_dec(x_1); return x_18; } } -lean_object* l_List_map___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__2(lean_object* x_1) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_apply_1(x_2, x_1); +return x_3; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__2(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -15557,7 +12840,7 @@ x_7 = lean_ctor_get(x_4, 1); x_8 = l_List_tail_x21___rarg(x_7); lean_dec(x_7); lean_ctor_set(x_4, 1, x_8); -x_9 = l_List_map___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__2(x_6); +x_9 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__2(x_6); lean_ctor_set(x_1, 1, x_9); return x_1; } @@ -15581,7 +12864,7 @@ lean_ctor_set(x_16, 0, x_11); lean_ctor_set(x_16, 1, x_15); lean_ctor_set(x_16, 2, x_13); lean_ctor_set(x_16, 3, x_14); -x_17 = l_List_map___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__2(x_10); +x_17 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__2(x_10); lean_ctor_set(x_1, 1, x_17); lean_ctor_set(x_1, 0, x_16); return x_1; @@ -15624,7 +12907,7 @@ lean_ctor_set(x_26, 0, x_20); lean_ctor_set(x_26, 1, x_25); lean_ctor_set(x_26, 2, x_22); lean_ctor_set(x_26, 3, x_23); -x_27 = l_List_map___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__2(x_19); +x_27 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__2(x_19); x_28 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_28, 0, x_26); lean_ctor_set(x_28, 1, x_27); @@ -15633,13 +12916,13 @@ return x_28; } } } -lean_object* l_List_head_x21___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__3(lean_object* x_1) { +lean_object* l_List_head_x21___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__3(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) { lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l___private_Lean_Elab_StructInst_17__groupFields___lambda__3___closed__2; +x_2 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__3___closed__2; x_3 = l_List_head_x21___rarg___closed__2; x_4 = lean_panic_fn(x_2, x_3); return x_4; @@ -15653,7 +12936,7 @@ return x_5; } } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__4(lean_object* x_1, lean_object* x_2) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__4(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; @@ -15686,7 +12969,7 @@ goto _start; } } } -lean_object* l_List_head_x21___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__5(lean_object* x_1) { +lean_object* l_List_head_x21___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__5(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -15706,7 +12989,7 @@ return x_5; } } } -lean_object* l_Std_AssocList_foldlM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__7(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_AssocList_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__7(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -15733,7 +13016,7 @@ goto _start; } } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; uint8_t x_6; @@ -15749,7 +13032,7 @@ else { lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; x_7 = lean_array_fget(x_2, x_3); -x_8 = l_Std_AssocList_foldlM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__7(x_4, x_7); +x_8 = l_Std_AssocList_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__7(x_4, x_7); lean_dec(x_7); x_9 = lean_unsigned_to_nat(1u); x_10 = lean_nat_add(x_3, x_9); @@ -15760,18 +13043,18 @@ goto _start; } } } -lean_object* l_Std_HashMap_toList___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__6(lean_object* x_1) { +lean_object* l_Std_HashMap_toList___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__6(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = lean_box(0); x_3 = lean_ctor_get(x_1, 1); x_4 = lean_unsigned_to_nat(0u); -x_5 = l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__8(x_1, x_3, x_4, x_2); +x_5 = l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__8(x_1, x_3, x_4, x_2); return x_5; } } -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { if (lean_obj_tag(x_6) == 0) @@ -15806,17 +13089,17 @@ lean_inc(x_19); x_20 = lean_ctor_get(x_17, 1); lean_inc(x_20); lean_dec(x_17); -x_21 = l___private_Lean_Elab_StructInst_13__isSimpleField_x3f(x_20); +x_21 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isSimpleField_x3f(x_20); if (lean_obj_tag(x_21) == 0) { lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_inc(x_20); -x_22 = l_List_map___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__2(x_20); +x_22 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__2(x_20); x_23 = l_Lean_Elab_Term_StructInst_Struct_source(x_1); lean_inc(x_7); lean_inc(x_19); lean_inc(x_3); -x_24 = l___private_Lean_Elab_StructInst_16__mkSubstructSource(x_3, x_4, x_19, x_23, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_24 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkSubstructSource(x_3, x_4, x_19, x_23, x_7, x_8, x_9, x_10, x_11, x_12, x_13); if (lean_obj_tag(x_24) == 0) { lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; @@ -15825,7 +13108,7 @@ lean_inc(x_25); x_26 = lean_ctor_get(x_24, 1); lean_inc(x_26); lean_dec(x_24); -x_27 = l_List_head_x21___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__3(x_20); +x_27 = l_List_head_x21___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__3(x_20); lean_dec(x_20); lean_inc(x_3); lean_inc(x_2); @@ -15843,7 +13126,7 @@ lean_dec(x_32); x_34 = l_List_toArrayAux___main___rarg(x_22, x_33); x_35 = x_34; x_36 = lean_unsigned_to_nat(0u); -x_37 = l_Array_umapMAux___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__4(x_36, x_35); +x_37 = l_Array_umapMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__4(x_36, x_35); x_38 = x_37; x_39 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_530____closed__8; x_40 = l_Lean_mkAtomFrom(x_5, x_39); @@ -15859,7 +13142,7 @@ lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean x_46 = lean_ctor_get(x_27, 1); x_47 = lean_ctor_get(x_27, 2); lean_dec(x_47); -x_48 = l_List_head_x21___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__5(x_46); +x_48 = l_List_head_x21___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__5(x_46); lean_dec(x_46); x_49 = lean_box(0); lean_ctor_set(x_6, 1, x_49); @@ -15868,7 +13151,7 @@ x_50 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_50, 0, x_44); lean_ctor_set(x_27, 2, x_50); lean_ctor_set(x_27, 1, x_6); -x_51 = l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9(x_1, x_2, x_3, x_4, x_5, x_18, x_7, x_8, x_9, x_10, x_11, x_12, x_26); +x_51 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__9(x_1, x_2, x_3, x_4, x_5, x_18, x_7, x_8, x_9, x_10, x_11, x_12, x_26); if (lean_obj_tag(x_51) == 0) { uint8_t x_52; @@ -15934,7 +13217,7 @@ lean_inc(x_65); lean_inc(x_64); lean_inc(x_63); lean_dec(x_27); -x_66 = l_List_head_x21___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__5(x_64); +x_66 = l_List_head_x21___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__5(x_64); lean_dec(x_64); x_67 = lean_box(0); lean_ctor_set(x_6, 1, x_67); @@ -15946,7 +13229,7 @@ lean_ctor_set(x_69, 0, x_63); lean_ctor_set(x_69, 1, x_6); lean_ctor_set(x_69, 2, x_68); lean_ctor_set(x_69, 3, x_65); -x_70 = l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9(x_1, x_2, x_3, x_4, x_5, x_18, x_7, x_8, x_9, x_10, x_11, x_12, x_26); +x_70 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__9(x_1, x_2, x_3, x_4, x_5, x_18, x_7, x_8, x_9, x_10, x_11, x_12, x_26); if (lean_obj_tag(x_70) == 0) { lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; @@ -16019,7 +13302,7 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_82 = l___private_Lean_Elab_StructInst_19__expandStruct___main(x_81, x_7, x_8, x_9, x_10, x_11, x_12, x_26); +x_82 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct(x_81, x_7, x_8, x_9, x_10, x_11, x_12, x_26); if (lean_obj_tag(x_82) == 0) { lean_object* x_83; lean_object* x_84; uint8_t x_85; @@ -16035,7 +13318,7 @@ lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean x_86 = lean_ctor_get(x_27, 1); x_87 = lean_ctor_get(x_27, 2); lean_dec(x_87); -x_88 = l_List_head_x21___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__5(x_86); +x_88 = l_List_head_x21___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__5(x_86); lean_dec(x_86); x_89 = lean_box(0); lean_ctor_set(x_6, 1, x_89); @@ -16044,7 +13327,7 @@ x_90 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_90, 0, x_83); lean_ctor_set(x_27, 2, x_90); lean_ctor_set(x_27, 1, x_6); -x_91 = l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9(x_1, x_2, x_3, x_4, x_5, x_18, x_7, x_8, x_9, x_10, x_11, x_12, x_84); +x_91 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__9(x_1, x_2, x_3, x_4, x_5, x_18, x_7, x_8, x_9, x_10, x_11, x_12, x_84); if (lean_obj_tag(x_91) == 0) { uint8_t x_92; @@ -16110,7 +13393,7 @@ lean_inc(x_105); lean_inc(x_104); lean_inc(x_103); lean_dec(x_27); -x_106 = l_List_head_x21___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__5(x_104); +x_106 = l_List_head_x21___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__5(x_104); lean_dec(x_104); x_107 = lean_box(0); lean_ctor_set(x_6, 1, x_107); @@ -16122,7 +13405,7 @@ lean_ctor_set(x_109, 0, x_103); lean_ctor_set(x_109, 1, x_6); lean_ctor_set(x_109, 2, x_108); lean_ctor_set(x_109, 3, x_105); -x_110 = l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9(x_1, x_2, x_3, x_4, x_5, x_18, x_7, x_8, x_9, x_10, x_11, x_12, x_84); +x_110 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__9(x_1, x_2, x_3, x_4, x_5, x_18, x_7, x_8, x_9, x_10, x_11, x_12, x_84); if (lean_obj_tag(x_110) == 0) { lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; @@ -16258,7 +13541,7 @@ lean_dec(x_19); x_128 = lean_ctor_get(x_21, 0); lean_inc(x_128); lean_dec(x_21); -x_129 = l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9(x_1, x_2, x_3, x_4, x_5, x_18, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_129 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__9(x_1, x_2, x_3, x_4, x_5, x_18, x_7, x_8, x_9, x_10, x_11, x_12, x_13); if (lean_obj_tag(x_129) == 0) { uint8_t x_130; @@ -16327,17 +13610,17 @@ lean_inc(x_141); x_142 = lean_ctor_get(x_139, 1); lean_inc(x_142); lean_dec(x_139); -x_143 = l___private_Lean_Elab_StructInst_13__isSimpleField_x3f(x_142); +x_143 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isSimpleField_x3f(x_142); if (lean_obj_tag(x_143) == 0) { lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_inc(x_142); -x_144 = l_List_map___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__2(x_142); +x_144 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__2(x_142); x_145 = l_Lean_Elab_Term_StructInst_Struct_source(x_1); lean_inc(x_7); lean_inc(x_141); lean_inc(x_3); -x_146 = l___private_Lean_Elab_StructInst_16__mkSubstructSource(x_3, x_4, x_141, x_145, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_146 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkSubstructSource(x_3, x_4, x_141, x_145, x_7, x_8, x_9, x_10, x_11, x_12, x_13); if (lean_obj_tag(x_146) == 0) { lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; @@ -16346,7 +13629,7 @@ lean_inc(x_147); x_148 = lean_ctor_get(x_146, 1); lean_inc(x_148); lean_dec(x_146); -x_149 = l_List_head_x21___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__3(x_142); +x_149 = l_List_head_x21___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__3(x_142); lean_dec(x_142); lean_inc(x_3); lean_inc(x_2); @@ -16364,7 +13647,7 @@ lean_dec(x_154); x_156 = l_List_toArrayAux___main___rarg(x_144, x_155); x_157 = x_156; x_158 = lean_unsigned_to_nat(0u); -x_159 = l_Array_umapMAux___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__4(x_158, x_157); +x_159 = l_Array_umapMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__4(x_158, x_157); x_160 = x_159; x_161 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_530____closed__8; x_162 = l_Lean_mkAtomFrom(x_5, x_161); @@ -16389,7 +13672,7 @@ if (lean_is_exclusive(x_149)) { lean_dec_ref(x_149); x_170 = lean_box(0); } -x_171 = l_List_head_x21___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__5(x_168); +x_171 = l_List_head_x21___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__5(x_168); lean_dec(x_168); x_172 = lean_box(0); x_173 = lean_alloc_ctor(1, 2, 0); @@ -16406,7 +13689,7 @@ lean_ctor_set(x_175, 0, x_167); lean_ctor_set(x_175, 1, x_173); lean_ctor_set(x_175, 2, x_174); lean_ctor_set(x_175, 3, x_169); -x_176 = l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9(x_1, x_2, x_3, x_4, x_5, x_140, x_7, x_8, x_9, x_10, x_11, x_12, x_148); +x_176 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__9(x_1, x_2, x_3, x_4, x_5, x_140, x_7, x_8, x_9, x_10, x_11, x_12, x_148); if (lean_obj_tag(x_176) == 0) { lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; @@ -16478,7 +13761,7 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_188 = l___private_Lean_Elab_StructInst_19__expandStruct___main(x_187, x_7, x_8, x_9, x_10, x_11, x_12, x_148); +x_188 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct(x_187, x_7, x_8, x_9, x_10, x_11, x_12, x_148); if (lean_obj_tag(x_188) == 0) { 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; @@ -16503,7 +13786,7 @@ if (lean_is_exclusive(x_149)) { lean_dec_ref(x_149); x_194 = lean_box(0); } -x_195 = l_List_head_x21___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__5(x_192); +x_195 = l_List_head_x21___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__5(x_192); lean_dec(x_192); x_196 = lean_box(0); x_197 = lean_alloc_ctor(1, 2, 0); @@ -16520,7 +13803,7 @@ lean_ctor_set(x_199, 0, x_191); lean_ctor_set(x_199, 1, x_197); lean_ctor_set(x_199, 2, x_198); lean_ctor_set(x_199, 3, x_193); -x_200 = l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9(x_1, x_2, x_3, x_4, x_5, x_140, x_7, x_8, x_9, x_10, x_11, x_12, x_190); +x_200 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__9(x_1, x_2, x_3, x_4, x_5, x_140, x_7, x_8, x_9, x_10, x_11, x_12, x_190); if (lean_obj_tag(x_200) == 0) { lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; @@ -16657,7 +13940,7 @@ lean_dec(x_141); x_218 = lean_ctor_get(x_143, 0); lean_inc(x_218); lean_dec(x_143); -x_219 = l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9(x_1, x_2, x_3, x_4, x_5, x_140, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_219 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__9(x_1, x_2, x_3, x_4, x_5, x_140, x_7, x_8, x_9, x_10, x_11, x_12, x_13); if (lean_obj_tag(x_219) == 0) { lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; @@ -16715,7 +13998,7 @@ return x_228; } } } -lean_object* l___private_Lean_Elab_StructInst_17__groupFields___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { lean_object* x_14; @@ -16725,7 +14008,7 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_14 = l___private_Lean_Elab_StructInst_12__mkFieldMap(x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_14 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap(x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); if (lean_obj_tag(x_14) == 0) { lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; @@ -16734,9 +14017,9 @@ lean_inc(x_15); x_16 = lean_ctor_get(x_14, 1); lean_inc(x_16); lean_dec(x_14); -x_17 = l_Std_HashMap_toList___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__6(x_15); +x_17 = l_Std_HashMap_toList___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__6(x_15); lean_dec(x_15); -x_18 = l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9(x_1, x_2, x_3, x_4, x_5, x_17, x_7, x_8, x_9, x_10, x_11, x_12, x_16); +x_18 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__9(x_1, x_2, x_3, x_4, x_5, x_17, x_7, x_8, x_9, x_10, x_11, x_12, x_16); return x_18; } else @@ -16772,7 +14055,7 @@ return x_22; } } } -lean_object* l___private_Lean_Elab_StructInst_17__groupFields___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; @@ -16792,7 +14075,7 @@ x_14 = l_Lean_getStructureFields(x_12, x_13); x_15 = l_Lean_Elab_Term_StructInst_Struct_ref(x_1); lean_inc(x_15); lean_inc(x_1); -x_16 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_17__groupFields___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__1___lambda__1___boxed), 13, 5); +x_16 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__1___lambda__1___boxed), 13, 5); lean_closure_set(x_16, 0, x_1); lean_closure_set(x_16, 1, x_12); lean_closure_set(x_16, 2, x_13); @@ -16811,7 +14094,7 @@ x_21 = l_Lean_replaceRef(x_20, x_18); lean_dec(x_18); lean_dec(x_20); lean_ctor_set(x_6, 3, x_21); -x_22 = l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__2(x_1, x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_11); +x_22 = l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__3(x_1, x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_11); return x_22; } else @@ -16838,12 +14121,12 @@ lean_ctor_set(x_30, 0, x_23); lean_ctor_set(x_30, 1, x_24); lean_ctor_set(x_30, 2, x_25); lean_ctor_set(x_30, 3, x_29); -x_31 = l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__2(x_1, x_16, x_2, x_3, x_4, x_5, x_30, x_7, x_11); +x_31 = l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__3(x_1, x_16, x_2, x_3, x_4, x_5, x_30, x_7, x_11); return x_31; } } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__11(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_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* l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__11(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_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: { lean_object* x_18; uint8_t x_19; @@ -16956,7 +14239,7 @@ x_46 = lean_unsigned_to_nat(0u); x_47 = l_Lean_Syntax_getArg(x_45, x_46); lean_dec(x_45); lean_inc(x_21); -x_48 = l___private_Lean_Elab_StructInst_15__mkProjStx(x_47, x_21); +x_48 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkProjStx(x_47, x_21); x_49 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_49, 0, x_48); lean_inc(x_6); @@ -16993,7 +14276,7 @@ x_58 = l_Lean_Elab_Term_StructInst_Struct_source(x_1); lean_inc(x_11); lean_inc(x_21); lean_inc(x_4); -x_59 = l___private_Lean_Elab_StructInst_16__mkSubstructSource(x_4, x_5, x_21, x_58, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +x_59 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkSubstructSource(x_4, x_5, x_21, x_58, x_11, x_12, x_13, x_14, x_15, x_16, x_17); if (lean_obj_tag(x_59) == 0) { lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; @@ -17015,7 +14298,7 @@ lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -x_63 = l___private_Lean_Elab_StructInst_19__expandStruct___main(x_62, x_11, x_12, x_13, x_14, x_15, x_16, x_61); +x_63 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct(x_62, x_11, x_12, x_13, x_14, x_15, x_16, x_61); if (lean_obj_tag(x_63) == 0) { 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; @@ -17140,7 +14423,7 @@ goto _start; } } } -lean_object* l___private_Lean_Elab_StructInst_18__addMissingFields___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; @@ -17171,7 +14454,7 @@ lean_dec(x_18); lean_dec(x_20); lean_ctor_set(x_6, 3, x_21); x_22 = lean_unsigned_to_nat(0u); -x_23 = l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__11(x_1, x_10, x_12, x_13, x_14, x_15, x_16, x_14, x_22, x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_11); +x_23 = l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__11(x_1, x_10, x_12, x_13, x_14, x_15, x_16, x_14, x_22, x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_11); lean_dec(x_14); lean_dec(x_10); if (lean_obj_tag(x_23) == 0) @@ -17251,7 +14534,7 @@ lean_ctor_set(x_44, 1, x_38); lean_ctor_set(x_44, 2, x_39); lean_ctor_set(x_44, 3, x_43); x_45 = lean_unsigned_to_nat(0u); -x_46 = l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__11(x_1, x_10, x_12, x_13, x_14, x_15, x_16, x_14, x_45, x_16, x_2, x_3, x_4, x_5, x_44, x_7, x_11); +x_46 = l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__11(x_1, x_10, x_12, x_13, x_14, x_15, x_16, x_14, x_45, x_16, x_2, x_3, x_4, x_5, x_44, x_7, x_11); lean_dec(x_14); lean_dec(x_10); if (lean_obj_tag(x_46) == 0) @@ -17308,11 +14591,11 @@ return x_56; } } } -lean_object* l___private_Lean_Elab_StructInst_19__expandStruct___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* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = l___private_Lean_Elab_StructInst_8__expandCompositeFields___closed__1; +x_9 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___closed__1; x_10 = l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___at_Lean_Elab_Term_StructInst_Struct_modifyFields___spec__1(x_1, x_9); lean_inc(x_7); lean_inc(x_6); @@ -17320,7 +14603,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_11 = l___private_Lean_Elab_StructInst_9__expandNumLitFields(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_11 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8); if (lean_obj_tag(x_11) == 0) { lean_object* x_12; lean_object* x_13; lean_object* x_14; @@ -17335,7 +14618,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_14 = l___private_Lean_Elab_StructInst_10__expandParentFields(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_13); +x_14 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_13); if (lean_obj_tag(x_14) == 0) { lean_object* x_15; lean_object* x_16; lean_object* x_17; @@ -17350,7 +14633,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_17 = l___private_Lean_Elab_StructInst_17__groupFields___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__1(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_16); +x_17 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__1(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_16); if (lean_obj_tag(x_17) == 0) { lean_object* x_18; lean_object* x_19; lean_object* x_20; @@ -17359,7 +14642,7 @@ lean_inc(x_18); x_19 = lean_ctor_get(x_17, 1); lean_inc(x_19); lean_dec(x_17); -x_20 = l___private_Lean_Elab_StructInst_18__addMissingFields___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__10(x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_19); +x_20 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__10(x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_19); return x_20; } else @@ -17450,73 +14733,73 @@ return x_32; } } } -lean_object* l_List_head_x21___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__3___boxed(lean_object* x_1) { +lean_object* l_List_head_x21___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__3___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_List_head_x21___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__3(x_1); +x_2 = l_List_head_x21___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__3(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_List_head_x21___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__5___boxed(lean_object* x_1) { +lean_object* l_List_head_x21___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__5___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_List_head_x21___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__5(x_1); +x_2 = l_List_head_x21___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__5(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Std_AssocList_foldlM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__7___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_AssocList_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__7___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Std_AssocList_foldlM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__7(x_1, x_2); +x_3 = l_Std_AssocList_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__7(x_1, x_2); lean_dec(x_2); return x_3; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__8(x_1, x_2, x_3, x_4); +x_5 = l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__8(x_1, x_2, x_3, x_4); lean_dec(x_2); lean_dec(x_1); return x_5; } } -lean_object* l_Std_HashMap_toList___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__6___boxed(lean_object* x_1) { +lean_object* l_Std_HashMap_toList___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__6___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Std_HashMap_toList___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__6(x_1); +x_2 = l_Std_HashMap_toList___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__6(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { lean_object* x_14; -x_14 = l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_14 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__9(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_4); lean_dec(x_1); return x_14; } } -lean_object* l___private_Lean_Elab_StructInst_17__groupFields___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { lean_object* x_14; -x_14 = l___private_Lean_Elab_StructInst_17__groupFields___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_14 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_4); lean_dec(x_1); return x_14; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__11___boxed(lean_object** _args) { +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__11___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; lean_object* x_3 = _args[2]; @@ -17537,7 +14820,7 @@ lean_object* x_17 = _args[16]; _start: { lean_object* x_18; -x_18 = l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__11(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 = l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__11(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_dec(x_8); lean_dec(x_5); lean_dec(x_2); @@ -17545,15 +14828,134 @@ lean_dec(x_1); return x_18; } } -lean_object* l___private_Lean_Elab_StructInst_19__expandStruct(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +static lean_object* _init_l_Lean_Elab_Term_StructInst_CtorHeaderResult_instMVars___default() { _start: { -lean_object* x_9; -x_9 = l___private_Lean_Elab_StructInst_19__expandStruct___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_object* x_1; +x_1 = l_Array_empty___closed__1; +return x_1; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux_match__1___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_box(x_1); +if (lean_obj_tag(x_4) == 3) +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_3); +x_5 = lean_box(0); +x_6 = lean_apply_1(x_2, x_5); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; +lean_dec(x_4); +lean_dec(x_2); +x_7 = lean_box(x_1); +x_8 = lean_apply_1(x_3, x_7); +return x_8; +} +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux_match__1___rarg___boxed), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux_match__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux_match__1___rarg(x_4, x_2, x_3); +return x_5; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 7) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint64_t x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 2); +lean_inc(x_6); +x_7 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +lean_dec(x_1); +x_8 = lean_box_uint64(x_7); +x_9 = lean_apply_4(x_2, x_4, x_5, x_6, x_8); return x_9; } +else +{ +lean_object* x_10; +lean_dec(x_2); +x_10 = lean_apply_1(x_3, x_1); +return x_10; } -static lean_object* _init_l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__1() { +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_nat_dec_eq(x_1, x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +lean_dec(x_5); +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_sub(x_1, x_9); +x_11 = lean_apply_4(x_6, x_10, x_2, x_3, x_4); +return x_11; +} +else +{ +lean_object* x_12; +lean_dec(x_6); +x_12 = lean_apply_3(x_5, x_2, x_3, x_4); +return x_12; +} +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux_match__3___rarg___boxed), 6, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux_match__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux_match__3___rarg(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_1); +return x_7; +} +} +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux___closed__1() { _start: { lean_object* x_1; @@ -17561,27 +14963,27 @@ x_1 = lean_mk_string("unexpected constructor type"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__2() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__1; +x_1 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__3() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__2; +x_1 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___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, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; uint8_t x_13; @@ -17597,7 +14999,7 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_16 = l_Lean_Meta_whnfForall___at___private_Lean_Elab_Term_18__useImplicitLambda_x3f___spec__1(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_16 = l_Lean_Meta_whnfForall___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_propagateExpectedType___spec__1(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_16) == 0) { lean_object* x_17; @@ -17605,7 +15007,7 @@ x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); if (lean_obj_tag(x_17) == 7) { -lean_object* x_18; lean_object* x_19; lean_object* x_20; uint64_t x_21; lean_object* x_22; uint8_t x_33; lean_object* x_34; +lean_object* x_18; lean_object* x_19; lean_object* x_20; uint64_t x_21; uint8_t x_22; lean_object* x_23; x_18 = lean_ctor_get(x_16, 1); lean_inc(x_18); lean_dec(x_16); @@ -17615,14 +15017,43 @@ x_20 = lean_ctor_get(x_17, 2); lean_inc(x_20); x_21 = lean_ctor_get_uint64(x_17, sizeof(void*)*3); lean_dec(x_17); -x_33 = (uint8_t)((x_21 << 24) >> 61); -x_34 = lean_box(x_33); -if (lean_obj_tag(x_34) == 3) +x_22 = (uint8_t)((x_21 << 24) >> 61); +x_23 = lean_box(x_22); +if (lean_obj_tag(x_23) == 3) { -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; lean_object* x_43; lean_object* x_44; +lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_19); +x_25 = 1; +x_26 = lean_box(0); +lean_inc(x_7); +x_27 = l___private_Lean_Meta_Basic_4__mkFreshExprMVarImpl(x_24, x_25, x_26, x_7, x_8, x_9, x_10, x_18); +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec(x_27); +x_30 = lean_expr_instantiate1(x_20, x_28); +lean_dec(x_20); +lean_inc(x_28); +x_31 = l_Lean_mkApp(x_3, x_28); +x_32 = l_Lean_Expr_mvarId_x21(x_28); +lean_dec(x_28); +x_33 = lean_array_push(x_4, x_32); +x_1 = x_15; +x_2 = x_30; +x_3 = x_31; +x_4 = x_33; +x_11 = x_29; +goto _start; +} +else +{ +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; +lean_dec(x_23); x_35 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_35, 0, x_19); -x_36 = 1; +x_36 = 0; x_37 = lean_box(0); lean_inc(x_7); x_38 = l___private_Lean_Meta_Basic_4__mkFreshExprMVarImpl(x_35, x_36, x_37, x_7, x_8, x_9, x_10, x_18); @@ -17633,73 +15064,36 @@ lean_inc(x_40); lean_dec(x_38); x_41 = lean_expr_instantiate1(x_20, x_39); lean_dec(x_20); -lean_inc(x_39); x_42 = l_Lean_mkApp(x_3, x_39); -x_43 = l_Lean_Expr_mvarId_x21(x_39); -lean_dec(x_39); -x_44 = lean_array_push(x_4, x_43); x_1 = x_15; x_2 = x_41; x_3 = x_42; -x_4 = x_44; x_11 = x_40; goto _start; } -else -{ -lean_object* x_46; -lean_dec(x_34); -x_46 = lean_box(0); -x_22 = x_46; -goto block_32; -} -block_32: -{ -lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -lean_dec(x_22); -x_23 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_23, 0, x_19); -x_24 = 0; -x_25 = lean_box(0); -lean_inc(x_7); -x_26 = l___private_Lean_Meta_Basic_4__mkFreshExprMVarImpl(x_23, x_24, x_25, x_7, x_8, x_9, x_10, x_18); -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_26, 1); -lean_inc(x_28); -lean_dec(x_26); -x_29 = lean_expr_instantiate1(x_20, x_27); -lean_dec(x_20); -x_30 = l_Lean_mkApp(x_3, x_27); -x_1 = x_15; -x_2 = x_29; -x_3 = x_30; -x_11 = x_28; -goto _start; -} } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_dec(x_17); lean_dec(x_15); lean_dec(x_4); lean_dec(x_3); -x_47 = lean_ctor_get(x_16, 1); -lean_inc(x_47); +x_44 = lean_ctor_get(x_16, 1); +lean_inc(x_44); lean_dec(x_16); -x_48 = l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__3; -x_49 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_48, x_5, x_6, x_7, x_8, x_9, x_10, x_47); +x_45 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux___closed__3; +x_46 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(x_45, x_5, x_6, x_7, x_8, x_9, x_10, x_44); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -return x_49; +return x_46; } } else { -uint8_t x_50; +uint8_t x_47; lean_dec(x_15); lean_dec(x_10); lean_dec(x_9); @@ -17708,73 +15102,119 @@ lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_50 = !lean_is_exclusive(x_16); -if (x_50 == 0) +x_47 = !lean_is_exclusive(x_16); +if (x_47 == 0) { return x_16; } else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_16, 0); -x_52 = lean_ctor_get(x_16, 1); -lean_inc(x_52); -lean_inc(x_51); +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_16, 0); +x_49 = lean_ctor_get(x_16, 1); +lean_inc(x_49); +lean_inc(x_48); lean_dec(x_16); -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; +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_54; lean_object* x_55; +lean_object* x_51; lean_object* x_52; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); lean_dec(x_1); -x_54 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_54, 0, x_3); -lean_ctor_set(x_54, 1, x_2); -lean_ctor_set(x_54, 2, x_4); -x_55 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_55, 0, x_54); -lean_ctor_set(x_55, 1, x_11); -return x_55; +x_51 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_51, 0, x_3); +lean_ctor_set(x_51, 1, x_2); +lean_ctor_set(x_51, 2, x_4); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_11); +return x_52; } } } -lean_object* l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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_StructInst_20__mkCtorHeaderAux___main(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___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux(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); return x_12; } } -lean_object* l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getForallBody_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_12; -x_12 = l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_12; +lean_object* x_6; uint8_t x_7; +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_nat_dec_eq(x_1, x_6); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; +lean_dec(x_5); +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_sub(x_1, x_8); +if (lean_obj_tag(x_2) == 7) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; uint64_t x_13; lean_object* x_14; lean_object* x_15; +lean_dec(x_4); +x_10 = lean_ctor_get(x_2, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_2, 1); +lean_inc(x_11); +x_12 = lean_ctor_get(x_2, 2); +lean_inc(x_12); +x_13 = lean_ctor_get_uint64(x_2, sizeof(void*)*3); +lean_dec(x_2); +x_14 = lean_box_uint64(x_13); +x_15 = lean_apply_5(x_3, x_9, x_10, x_11, x_12, x_14); +return x_15; +} +else +{ +lean_object* x_16; +lean_dec(x_3); +x_16 = lean_apply_2(x_4, x_9, x_2); +return x_16; } } -lean_object* l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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_17; +lean_dec(x_4); +lean_dec(x_3); +x_17 = lean_apply_1(x_5, x_2); +return x_17; +} +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getForallBody_match__1(lean_object* x_1) { _start: { -lean_object* x_12; -x_12 = l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux(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); -return x_12; +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getForallBody_match__1___rarg___boxed), 5, 0); +return x_2; } } -lean_object* l___private_Lean_Elab_StructInst_21__getForallBody___main(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getForallBody_match__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getForallBody_match__1___rarg(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_1); +return x_6; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getForallBody(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; @@ -17814,15 +15254,69 @@ return x_10; } } } -lean_object* l___private_Lean_Elab_StructInst_21__getForallBody(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_propagateExpectedType_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_3; -x_3 = l___private_Lean_Elab_StructInst_21__getForallBody___main(x_1, x_2); -return x_3; +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; } } -lean_object* l___private_Lean_Elab_StructInst_22__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) { +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_propagateExpectedType_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_propagateExpectedType_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_propagateExpectedType_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_propagateExpectedType_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_propagateExpectedType_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_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: { if (lean_obj_tag(x_3) == 0) @@ -17846,7 +15340,7 @@ lean_object* x_13; lean_object* x_14; x_13 = lean_ctor_get(x_3, 0); lean_inc(x_13); lean_dec(x_3); -x_14 = l___private_Lean_Elab_StructInst_21__getForallBody___main(x_2, x_1); +x_14 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getForallBody(x_2, x_1); if (lean_obj_tag(x_14) == 0) { lean_object* x_15; lean_object* x_16; @@ -17871,7 +15365,7 @@ x_18 = l_Lean_Expr_hasLooseBVars(x_17); if (x_18 == 0) { lean_object* x_19; -x_19 = l_Lean_Meta_isExprDefEq___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_13, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_19 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_propagateExpectedType___spec__3(x_13, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10); if (lean_obj_tag(x_19) == 0) { uint8_t x_20; @@ -17940,17 +15434,17 @@ return x_31; } } } -lean_object* l___private_Lean_Elab_StructInst_22__propagateExpectedType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_propagateExpectedType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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_StructInst_22__propagateExpectedType(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_propagateExpectedType(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_5); lean_dec(x_4); return x_11; } } -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_23__mkCtorHeader___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeader___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { if (lean_obj_tag(x_1) == 0) @@ -17972,13 +15466,13 @@ lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean x_12 = lean_ctor_get(x_1, 1); x_13 = lean_ctor_get(x_1, 0); lean_dec(x_13); -x_14 = l_Lean_Meta_mkFreshLevelMVar___at_Lean_Elab_Term_ensureType___spec__2___rarg(x_5, x_6, x_7, x_8); +x_14 = l_Lean_Meta_mkFreshLevelMVar___at___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___spec__1___rarg(x_5, x_6, x_7, x_8); 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_List_mapM___main___at___private_Lean_Elab_StructInst_23__mkCtorHeader___spec__1(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_16); +x_17 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeader___spec__1(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_16); x_18 = !lean_is_exclusive(x_17); if (x_18 == 0) { @@ -18011,13 +15505,13 @@ lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean x_23 = lean_ctor_get(x_1, 1); lean_inc(x_23); lean_dec(x_1); -x_24 = l_Lean_Meta_mkFreshLevelMVar___at_Lean_Elab_Term_ensureType___spec__2___rarg(x_5, x_6, x_7, x_8); +x_24 = l_Lean_Meta_mkFreshLevelMVar___at___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___spec__1___rarg(x_5, x_6, x_7, x_8); 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_List_mapM___main___at___private_Lean_Elab_StructInst_23__mkCtorHeader___spec__1(x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_26); +x_27 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeader___spec__1(x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_26); x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); x_29 = lean_ctor_get(x_27, 1); @@ -18045,7 +15539,7 @@ return x_32; } } } -lean_object* l___private_Lean_Elab_StructInst_23__mkCtorHeader(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeader(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; lean_object* x_19; lean_object* x_20; lean_object* x_21; @@ -18053,7 +15547,7 @@ x_10 = lean_ctor_get(x_1, 0); lean_inc(x_10); x_11 = lean_ctor_get(x_10, 1); lean_inc(x_11); -x_12 = l_List_mapM___main___at___private_Lean_Elab_StructInst_23__mkCtorHeader___spec__1(x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_12 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeader___spec__1(x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9); x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); x_14 = lean_ctor_get(x_12, 1); @@ -18078,7 +15572,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_3); -x_21 = l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main(x_19, x_18, x_16, x_20, x_3, x_4, x_5, x_6, x_7, x_8, x_14); +x_21 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux(x_19, x_18, x_16, x_20, x_3, x_4, x_5, x_6, x_7, x_8, x_14); if (lean_obj_tag(x_21) == 0) { lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; @@ -18096,7 +15590,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_26 = l___private_Lean_Elab_StructInst_22__propagateExpectedType(x_24, x_25, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_23); +x_26 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_propagateExpectedType(x_24, x_25, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_23); if (lean_obj_tag(x_26) == 0) { lean_object* x_27; lean_object* x_28; lean_object* x_29; @@ -18215,11 +15709,11 @@ return x_45; } } } -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_23__mkCtorHeader___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeader___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l_List_mapM___main___at___private_Lean_Elab_StructInst_23__mkCtorHeader___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeader___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -18229,11 +15723,11 @@ lean_dec(x_2); return x_9; } } -lean_object* l___private_Lean_Elab_StructInst_23__mkCtorHeader___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeader___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_StructInst_23__mkCtorHeader(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeader(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_4); return x_10; } @@ -18296,60 +15790,38 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } static lean_object* _init_l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__3() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__4() { -_start: -{ lean_object* x_1; x_1 = lean_mk_string("' of '"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__5() { +static lean_object* _init_l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__4; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__5; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } lean_object* l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; x_11 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_11, 0, x_1); -x_12 = l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__3; +x_12 = l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__2; x_13 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_13, 0, x_12); lean_ctor_set(x_13, 1, x_11); -x_14 = l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__6; +x_14 = l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__4; x_15 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_15, 0, x_13); lean_ctor_set(x_15, 1, x_14); @@ -18358,15 +15830,19 @@ lean_ctor_set(x_16, 0, x_2); x_17 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_17, 0, x_15); lean_ctor_set(x_17, 1, x_16); -x_18 = l_Lean_MessageData_arrayExpr_toMessageData___main___closed__2; +x_18 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs___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); x_20 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_20, 0, x_19); lean_ctor_set(x_20, 1, x_3); -x_21 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_21; +x_21 = l_Lean_Elab_Term_elabLetDeclAux___closed__4; +x_22 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +x_23 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_23; } } lean_object* l_Lean_Elab_Term_StructInst_throwFailedToElabField(lean_object* x_1) { @@ -18402,7 +15878,7 @@ lean_object* l_Lean_Elab_Term_StructInst_trySynthStructInstance_x3f(lean_object* _start: { uint8_t x_10; -x_10 = l_Lean_Elab_Term_StructInst_Struct_allDefault___main(x_1); +x_10 = l_Lean_Elab_Term_StructInst_Struct_allDefault(x_1); if (x_10 == 0) { lean_object* x_11; lean_object* x_12; @@ -18476,7 +15952,294 @@ lean_dec(x_1); return x_10; } } -static lean_object* _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_24__elabStruct___main___spec__1___closed__1() { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 0: +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_4); +lean_dec(x_3); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_1(x_2, x_5); +return x_6; +} +case 1: +{ +lean_object* x_7; lean_object* x_8; +lean_dec(x_4); +lean_dec(x_2); +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_apply_1(x_3, x_7); +return x_8; +} +default: +{ +lean_object* x_9; lean_object* x_10; +lean_dec(x_3); +lean_dec(x_2); +x_9 = lean_box(0); +x_10 = lean_apply_1(x_4, x_9); +return x_10; +} +} +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__3___rarg), 4, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 7) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint64_t x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 2); +lean_inc(x_6); +x_7 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +lean_dec(x_1); +x_8 = lean_box_uint64(x_7); +x_9 = lean_apply_4(x_2, x_4, x_5, x_6, x_8); +return x_9; +} +else +{ +lean_object* x_10; +lean_dec(x_2); +x_10 = lean_apply_1(x_3, x_1); +return x_10; +} +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__4(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__4___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__5___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_apply_1(x_3, x_1); +return x_4; +} +else +{ +lean_object* x_5; +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_6; +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +lean_dec(x_1); +x_7 = lean_ctor_get(x_5, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_5, 1); +lean_inc(x_8); +lean_dec(x_5); +x_9 = lean_apply_2(x_2, x_7, x_8); +return x_9; +} +else +{ +lean_object* x_10; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +x_10 = lean_apply_1(x_3, x_1); +return x_10; +} +} +else +{ +lean_object* x_11; +lean_dec(x_5); +lean_dec(x_2); +x_11 = lean_apply_1(x_3, x_1); +return x_11; +} +} +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__5(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__5___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__6___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; lean_object* x_7; +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_3, 1); +lean_inc(x_6); +lean_dec(x_3); +x_7 = lean_apply_3(x_2, x_4, x_5, x_6); +return x_7; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__6(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__6___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__7___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; lean_object* x_7; +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_3, 1); +lean_inc(x_6); +lean_dec(x_3); +x_7 = lean_apply_3(x_2, x_4, x_5, x_6); +return x_7; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__7(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__7___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__8___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; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 2); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_3(x_2, x_3, x_4, x_5); +return x_6; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__8(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__8___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__9___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_apply_2(x_3, x_1, x_2); +return x_4; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__9(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__9___rarg), 3, 0); +return x_2; +} +} +static lean_object* _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1___closed__1() { _start: { lean_object* x_1; @@ -18484,27 +16247,36 @@ x_1 = lean_mk_string("unexpected unexpanded structure field"); return x_1; } } -static lean_object* _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_24__elabStruct___main___spec__1___closed__2() { +static lean_object* _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_24__elabStruct___main___spec__1___closed__1; +x_1 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_24__elabStruct___main___spec__1___closed__3() { +static lean_object* _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_24__elabStruct___main___spec__1___closed__2; +x_1 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_List_foldlM___main___at___private_Lean_Elab_StructInst_24__elabStruct___main___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) { +static lean_object* _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___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: { if (lean_obj_tag(x_3) == 0) @@ -18528,330 +16300,431 @@ uint8_t x_12; x_12 = !lean_is_exclusive(x_3); if (x_12 == 0) { -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_24; lean_object* x_29; lean_object* x_30; +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_24; lean_object* x_25; x_13 = lean_ctor_get(x_3, 0); x_14 = lean_ctor_get(x_3, 1); -x_29 = lean_ctor_get(x_2, 1); -lean_inc(x_29); -x_30 = lean_ctor_get(x_13, 1); -lean_inc(x_30); -if (lean_obj_tag(x_30) == 0) +x_24 = lean_ctor_get(x_2, 1); +lean_inc(x_24); +x_25 = lean_ctor_get(x_13, 1); +lean_inc(x_25); +if (lean_obj_tag(x_25) == 0) { -lean_object* x_31; -lean_dec(x_29); +lean_object* x_26; lean_object* x_27; lean_object* x_28; +lean_dec(x_24); lean_free_object(x_3); lean_dec(x_2); -x_31 = lean_box(0); -x_24 = x_31; -goto block_28; +x_26 = lean_ctor_get(x_13, 0); +lean_inc(x_26); +lean_dec(x_13); +x_27 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1___closed__3; +lean_inc(x_8); +lean_inc(x_4); +x_28 = l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2___rarg(x_26, x_27, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_26); +x_15 = x_28; +goto block_23; } else { -lean_object* x_32; -x_32 = lean_ctor_get(x_30, 0); -lean_inc(x_32); -if (lean_obj_tag(x_32) == 0) +lean_object* x_29; +x_29 = lean_ctor_get(x_25, 0); +lean_inc(x_29); +if (lean_obj_tag(x_29) == 0) { -lean_object* x_33; -x_33 = lean_ctor_get(x_30, 1); -lean_inc(x_33); -if (lean_obj_tag(x_33) == 0) +lean_object* x_30; +x_30 = lean_ctor_get(x_25, 1); +lean_inc(x_30); +if (lean_obj_tag(x_30) == 0) { -uint8_t x_34; -x_34 = !lean_is_exclusive(x_2); +uint8_t x_31; +x_31 = !lean_is_exclusive(x_2); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_32 = lean_ctor_get(x_2, 0); +x_33 = lean_ctor_get(x_2, 1); +lean_dec(x_33); +x_34 = !lean_is_exclusive(x_24); if (x_34 == 0) { -lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_35 = lean_ctor_get(x_2, 0); -x_36 = lean_ctor_get(x_2, 1); -lean_dec(x_36); -x_37 = !lean_is_exclusive(x_29); -if (x_37 == 0) +uint8_t x_35; +x_35 = !lean_is_exclusive(x_13); +if (x_35 == 0) { -uint8_t x_38; -x_38 = !lean_is_exclusive(x_13); -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; -x_39 = lean_ctor_get(x_29, 0); -x_40 = lean_ctor_get(x_29, 1); -x_41 = lean_ctor_get(x_13, 0); -x_42 = lean_ctor_get(x_13, 2); -x_43 = lean_ctor_get(x_13, 3); -lean_dec(x_43); -x_44 = lean_ctor_get(x_13, 1); -lean_dec(x_44); -x_45 = lean_ctor_get(x_32, 1); -lean_inc(x_45); -lean_dec(x_32); +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_36 = lean_ctor_get(x_24, 0); +x_37 = lean_ctor_get(x_24, 1); +x_38 = lean_ctor_get(x_13, 0); +x_39 = lean_ctor_get(x_13, 2); +x_40 = lean_ctor_get(x_13, 3); +lean_dec(x_40); +x_41 = lean_ctor_get(x_13, 1); +lean_dec(x_41); +x_42 = lean_ctor_get(x_29, 1); +lean_inc(x_42); +lean_dec(x_29); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_46 = l_Lean_Meta_whnfForall___at___private_Lean_Elab_Term_18__useImplicitLambda_x3f___spec__1(x_39, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_46) == 0) +x_43 = l_Lean_Meta_whnfForall___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_propagateExpectedType___spec__1(x_36, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_43) == 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); -if (lean_obj_tag(x_47) == 7) +lean_object* x_44; +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +if (lean_obj_tag(x_44) == 7) { -lean_dec(x_45); -switch (lean_obj_tag(x_42)) { +lean_dec(x_42); +switch (lean_obj_tag(x_39)) { case 0: { -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_ctor_get(x_47, 1); -lean_inc(x_63); -x_64 = lean_ctor_get(x_47, 2); -lean_inc(x_64); -lean_dec(x_47); -x_65 = lean_ctor_get(x_42, 0); -lean_inc(x_65); -x_66 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_66, 0, x_63); -x_67 = lean_box(0); -x_68 = 1; +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_object* x_52; +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +lean_dec(x_43); +x_46 = lean_ctor_get(x_44, 1); +lean_inc(x_46); +x_47 = lean_ctor_get(x_44, 2); +lean_inc(x_47); +lean_dec(x_44); +x_48 = lean_ctor_get(x_39, 0); +lean_inc(x_48); +x_49 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_49, 0, x_46); +x_50 = lean_box(0); +x_51 = 1; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_69 = l_Lean_Elab_Term_elabTermEnsuringType(x_65, x_66, x_68, x_67, x_4, x_5, x_6, x_7, x_8, x_9, x_48); -if (lean_obj_tag(x_69) == 0) +x_52 = l_Lean_Elab_Term_elabTermEnsuringType(x_48, x_49, x_51, x_50, x_4, x_5, x_6, x_7, x_8, x_9, x_45); +if (lean_obj_tag(x_52) == 0) { -uint8_t x_70; -x_70 = !lean_is_exclusive(x_69); -if (x_70 == 0) +uint8_t x_53; +x_53 = !lean_is_exclusive(x_52); +if (x_53 == 0) { -lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_71 = lean_ctor_get(x_69, 0); -lean_inc(x_71); -x_72 = l_Lean_mkApp(x_35, x_71); -x_73 = lean_expr_instantiate1(x_64, x_71); -lean_dec(x_64); -x_74 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_74, 0, x_71); -lean_ctor_set(x_13, 3, x_74); -lean_ctor_set(x_3, 1, x_40); -lean_ctor_set(x_29, 1, x_3); -lean_ctor_set(x_29, 0, x_73); -lean_ctor_set(x_2, 0, x_72); -lean_ctor_set(x_69, 0, x_2); -x_15 = x_69; +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_54 = lean_ctor_get(x_52, 0); +lean_inc(x_54); +x_55 = l_Lean_mkApp(x_32, x_54); +x_56 = lean_expr_instantiate1(x_47, x_54); +lean_dec(x_47); +x_57 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_57, 0, x_54); +lean_ctor_set(x_13, 3, x_57); +lean_ctor_set(x_3, 1, x_37); +lean_ctor_set(x_24, 1, x_3); +lean_ctor_set(x_24, 0, x_56); +lean_ctor_set(x_2, 0, x_55); +lean_ctor_set(x_52, 0, x_2); +x_15 = x_52; goto block_23; } else { -lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_75 = lean_ctor_get(x_69, 0); -x_76 = lean_ctor_get(x_69, 1); -lean_inc(x_76); -lean_inc(x_75); -lean_dec(x_69); -lean_inc(x_75); -x_77 = l_Lean_mkApp(x_35, x_75); -x_78 = lean_expr_instantiate1(x_64, x_75); -lean_dec(x_64); -x_79 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_79, 0, x_75); -lean_ctor_set(x_13, 3, x_79); -lean_ctor_set(x_3, 1, x_40); -lean_ctor_set(x_29, 1, x_3); -lean_ctor_set(x_29, 0, x_78); -lean_ctor_set(x_2, 0, x_77); -x_80 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_80, 0, x_2); -lean_ctor_set(x_80, 1, x_76); -x_15 = x_80; +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_58 = lean_ctor_get(x_52, 0); +x_59 = lean_ctor_get(x_52, 1); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_52); +lean_inc(x_58); +x_60 = l_Lean_mkApp(x_32, x_58); +x_61 = lean_expr_instantiate1(x_47, x_58); +lean_dec(x_47); +x_62 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_62, 0, x_58); +lean_ctor_set(x_13, 3, x_62); +lean_ctor_set(x_3, 1, x_37); +lean_ctor_set(x_24, 1, x_3); +lean_ctor_set(x_24, 0, x_61); +lean_ctor_set(x_2, 0, x_60); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_2); +lean_ctor_set(x_63, 1, x_59); +x_15 = x_63; goto block_23; } } else { -uint8_t x_81; -lean_dec(x_64); +uint8_t x_64; +lean_dec(x_47); lean_free_object(x_13); -lean_dec(x_42); -lean_dec(x_41); -lean_free_object(x_29); -lean_dec(x_40); +lean_dec(x_39); +lean_dec(x_38); +lean_free_object(x_24); +lean_dec(x_37); lean_free_object(x_2); -lean_dec(x_35); -lean_dec(x_30); +lean_dec(x_32); +lean_dec(x_25); lean_free_object(x_3); -x_81 = !lean_is_exclusive(x_69); -if (x_81 == 0) +x_64 = !lean_is_exclusive(x_52); +if (x_64 == 0) { -x_15 = x_69; +x_15 = x_52; goto block_23; } else { -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_69, 0); -x_83 = lean_ctor_get(x_69, 1); -lean_inc(x_83); -lean_inc(x_82); -lean_dec(x_69); -x_84 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_84, 0, x_82); -lean_ctor_set(x_84, 1, x_83); -x_15 = x_84; +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_52, 0); +x_66 = lean_ctor_get(x_52, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_52); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_66); +x_15 = x_67; goto block_23; } } } case 1: { -lean_object* x_85; lean_object* x_86; uint8_t x_87; -x_85 = lean_ctor_get(x_47, 1); -lean_inc(x_85); -x_86 = lean_ctor_get(x_47, 2); -lean_inc(x_86); -lean_dec(x_47); -x_87 = !lean_is_exclusive(x_42); -if (x_87 == 0) +lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; +x_68 = lean_ctor_get(x_43, 1); +lean_inc(x_68); +lean_dec(x_43); +x_69 = lean_ctor_get(x_44, 1); +lean_inc(x_69); +x_70 = lean_ctor_get(x_44, 2); +lean_inc(x_70); +lean_dec(x_44); +x_71 = !lean_is_exclusive(x_39); +if (x_71 == 0) { -lean_object* x_88; lean_object* x_89; -x_88 = lean_ctor_get(x_42, 0); +lean_object* x_72; lean_object* x_73; +x_72 = lean_ctor_get(x_39, 0); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -lean_inc(x_85); -x_89 = l_Lean_Elab_Term_StructInst_trySynthStructInstance_x3f(x_88, x_85, x_4, x_5, x_6, x_7, x_8, x_9, x_48); -if (lean_obj_tag(x_89) == 0) +lean_inc(x_69); +x_73 = l_Lean_Elab_Term_StructInst_trySynthStructInstance_x3f(x_72, x_69, x_4, x_5, x_6, x_7, x_8, x_9, x_68); +if (lean_obj_tag(x_73) == 0) { -lean_object* x_90; -x_90 = lean_ctor_get(x_89, 0); -lean_inc(x_90); -if (lean_obj_tag(x_90) == 0) +lean_object* x_74; +x_74 = lean_ctor_get(x_73, 0); +lean_inc(x_74); +if (lean_obj_tag(x_74) == 0) { -lean_object* x_91; lean_object* x_92; lean_object* x_93; +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_free_object(x_2); -x_91 = lean_ctor_get(x_89, 1); -lean_inc(x_91); -lean_dec(x_89); -x_92 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_92, 0, x_85); +x_75 = lean_ctor_get(x_73, 1); +lean_inc(x_75); +lean_dec(x_73); +x_76 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_76, 0, x_69); 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_92); -x_93 = l___private_Lean_Elab_StructInst_24__elabStruct___main(x_88, x_92, x_4, x_5, x_6, x_7, x_8, x_9, x_91); -if (lean_obj_tag(x_93) == 0) +lean_inc(x_76); +x_77 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct(x_72, x_76, x_4, x_5, x_6, x_7, x_8, x_9, x_75); +if (lean_obj_tag(x_77) == 0) { -lean_object* x_94; lean_object* x_95; uint8_t x_96; -x_94 = lean_ctor_get(x_93, 0); -lean_inc(x_94); -x_95 = lean_ctor_get(x_93, 1); -lean_inc(x_95); -lean_dec(x_93); -x_96 = !lean_is_exclusive(x_94); -if (x_96 == 0) +lean_object* x_78; lean_object* x_79; uint8_t x_80; +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_77, 1); +lean_inc(x_79); +lean_dec(x_77); +x_80 = !lean_is_exclusive(x_78); +if (x_80 == 0) { -lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; -x_97 = lean_ctor_get(x_94, 0); -x_98 = lean_ctor_get(x_94, 1); -x_99 = lean_box(0); +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_81 = lean_ctor_get(x_78, 0); +x_82 = lean_ctor_get(x_78, 1); +x_83 = lean_box(0); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_100 = l_Lean_Elab_Term_ensureHasType(x_92, x_97, x_99, x_4, x_5, x_6, x_7, x_8, x_9, x_95); -if (lean_obj_tag(x_100) == 0) +x_84 = l_Lean_Elab_Term_ensureHasType(x_76, x_81, x_83, x_4, x_5, x_6, x_7, x_8, x_9, x_79); +if (lean_obj_tag(x_84) == 0) { -uint8_t x_101; -x_101 = !lean_is_exclusive(x_100); -if (x_101 == 0) +uint8_t x_85; +x_85 = !lean_is_exclusive(x_84); +if (x_85 == 0) { -lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; -x_102 = lean_ctor_get(x_100, 0); -lean_ctor_set(x_42, 0, x_98); -lean_inc(x_102); -x_103 = l_Lean_mkApp(x_35, x_102); -x_104 = lean_expr_instantiate1(x_86, x_102); -lean_dec(x_86); -x_105 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_105, 0, x_102); -lean_ctor_set(x_13, 3, x_105); -lean_ctor_set(x_3, 1, x_40); -lean_ctor_set(x_94, 1, x_3); -lean_ctor_set(x_94, 0, x_104); -lean_ctor_set(x_29, 1, x_94); -lean_ctor_set(x_29, 0, x_103); -lean_ctor_set(x_100, 0, x_29); -x_15 = x_100; +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_86 = lean_ctor_get(x_84, 0); +lean_ctor_set(x_39, 0, x_82); +lean_inc(x_86); +x_87 = l_Lean_mkApp(x_32, x_86); +x_88 = lean_expr_instantiate1(x_70, x_86); +lean_dec(x_70); +x_89 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_89, 0, x_86); +lean_ctor_set(x_13, 3, x_89); +lean_ctor_set(x_3, 1, x_37); +lean_ctor_set(x_78, 1, x_3); +lean_ctor_set(x_78, 0, x_88); +lean_ctor_set(x_24, 1, x_78); +lean_ctor_set(x_24, 0, x_87); +lean_ctor_set(x_84, 0, x_24); +x_15 = x_84; goto block_23; } else { -lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_106 = lean_ctor_get(x_100, 0); -x_107 = lean_ctor_get(x_100, 1); -lean_inc(x_107); -lean_inc(x_106); -lean_dec(x_100); -lean_ctor_set(x_42, 0, x_98); -lean_inc(x_106); -x_108 = l_Lean_mkApp(x_35, x_106); -x_109 = lean_expr_instantiate1(x_86, x_106); -lean_dec(x_86); -x_110 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_110, 0, x_106); -lean_ctor_set(x_13, 3, x_110); -lean_ctor_set(x_3, 1, x_40); -lean_ctor_set(x_94, 1, x_3); -lean_ctor_set(x_94, 0, x_109); -lean_ctor_set(x_29, 1, x_94); -lean_ctor_set(x_29, 0, x_108); -x_111 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_111, 0, x_29); -lean_ctor_set(x_111, 1, x_107); +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_90 = lean_ctor_get(x_84, 0); +x_91 = lean_ctor_get(x_84, 1); +lean_inc(x_91); +lean_inc(x_90); +lean_dec(x_84); +lean_ctor_set(x_39, 0, x_82); +lean_inc(x_90); +x_92 = l_Lean_mkApp(x_32, x_90); +x_93 = lean_expr_instantiate1(x_70, x_90); +lean_dec(x_70); +x_94 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_94, 0, x_90); +lean_ctor_set(x_13, 3, x_94); +lean_ctor_set(x_3, 1, x_37); +lean_ctor_set(x_78, 1, x_3); +lean_ctor_set(x_78, 0, x_93); +lean_ctor_set(x_24, 1, x_78); +lean_ctor_set(x_24, 0, x_92); +x_95 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_95, 0, x_24); +lean_ctor_set(x_95, 1, x_91); +x_15 = x_95; +goto block_23; +} +} +else +{ +uint8_t x_96; +lean_free_object(x_78); +lean_dec(x_82); +lean_free_object(x_39); +lean_dec(x_70); +lean_free_object(x_13); +lean_dec(x_38); +lean_free_object(x_24); +lean_dec(x_37); +lean_dec(x_32); +lean_dec(x_25); +lean_free_object(x_3); +x_96 = !lean_is_exclusive(x_84); +if (x_96 == 0) +{ +x_15 = x_84; +goto block_23; +} +else +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_97 = lean_ctor_get(x_84, 0); +x_98 = lean_ctor_get(x_84, 1); +lean_inc(x_98); +lean_inc(x_97); +lean_dec(x_84); +x_99 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_99, 0, x_97); +lean_ctor_set(x_99, 1, x_98); +x_15 = x_99; +goto block_23; +} +} +} +else +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_100 = lean_ctor_get(x_78, 0); +x_101 = lean_ctor_get(x_78, 1); +lean_inc(x_101); +lean_inc(x_100); +lean_dec(x_78); +x_102 = lean_box(0); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_103 = l_Lean_Elab_Term_ensureHasType(x_76, x_100, x_102, x_4, x_5, x_6, x_7, x_8, x_9, x_79); +if (lean_obj_tag(x_103) == 0) +{ +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; +x_104 = lean_ctor_get(x_103, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_103, 1); +lean_inc(x_105); +if (lean_is_exclusive(x_103)) { + lean_ctor_release(x_103, 0); + lean_ctor_release(x_103, 1); + x_106 = x_103; +} else { + lean_dec_ref(x_103); + x_106 = lean_box(0); +} +lean_ctor_set(x_39, 0, x_101); +lean_inc(x_104); +x_107 = l_Lean_mkApp(x_32, x_104); +x_108 = lean_expr_instantiate1(x_70, x_104); +lean_dec(x_70); +x_109 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_109, 0, x_104); +lean_ctor_set(x_13, 3, x_109); +lean_ctor_set(x_3, 1, x_37); +x_110 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_110, 0, x_108); +lean_ctor_set(x_110, 1, x_3); +lean_ctor_set(x_24, 1, x_110); +lean_ctor_set(x_24, 0, x_107); +if (lean_is_scalar(x_106)) { + x_111 = lean_alloc_ctor(0, 2, 0); +} else { + x_111 = x_106; +} +lean_ctor_set(x_111, 0, x_24); +lean_ctor_set(x_111, 1, x_105); x_15 = x_111; goto block_23; } -} else { -uint8_t x_112; -lean_free_object(x_94); -lean_dec(x_98); -lean_free_object(x_42); -lean_dec(x_86); +lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; +lean_dec(x_101); +lean_free_object(x_39); +lean_dec(x_70); lean_free_object(x_13); -lean_dec(x_41); -lean_free_object(x_29); -lean_dec(x_40); -lean_dec(x_35); -lean_dec(x_30); +lean_dec(x_38); +lean_free_object(x_24); +lean_dec(x_37); +lean_dec(x_32); +lean_dec(x_25); lean_free_object(x_3); -x_112 = !lean_is_exclusive(x_100); -if (x_112 == 0) -{ -x_15 = x_100; -goto block_23; -} -else -{ -lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_113 = lean_ctor_get(x_100, 0); -x_114 = lean_ctor_get(x_100, 1); -lean_inc(x_114); +x_112 = lean_ctor_get(x_103, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_103, 1); lean_inc(x_113); -lean_dec(x_100); -x_115 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_115, 0, x_113); -lean_ctor_set(x_115, 1, x_114); +if (lean_is_exclusive(x_103)) { + lean_ctor_release(x_103, 0); + lean_ctor_release(x_103, 1); + x_114 = x_103; +} else { + lean_dec_ref(x_103); + x_114 = lean_box(0); +} +if (lean_is_scalar(x_114)) { + x_115 = lean_alloc_ctor(1, 2, 0); +} else { + x_115 = x_114; +} +lean_ctor_set(x_115, 0, x_112); +lean_ctor_set(x_115, 1, x_113); x_15 = x_115; goto block_23; } @@ -18859,2585 +16732,2525 @@ goto block_23; } else { -lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_116 = lean_ctor_get(x_94, 0); -x_117 = lean_ctor_get(x_94, 1); +uint8_t x_116; +lean_dec(x_76); +lean_free_object(x_39); +lean_dec(x_70); +lean_free_object(x_13); +lean_dec(x_38); +lean_free_object(x_24); +lean_dec(x_37); +lean_dec(x_32); +lean_dec(x_25); +lean_free_object(x_3); +x_116 = !lean_is_exclusive(x_77); +if (x_116 == 0) +{ +x_15 = x_77; +goto block_23; +} +else +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; +x_117 = lean_ctor_get(x_77, 0); +x_118 = lean_ctor_get(x_77, 1); +lean_inc(x_118); lean_inc(x_117); -lean_inc(x_116); -lean_dec(x_94); -x_118 = lean_box(0); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_119 = l_Lean_Elab_Term_ensureHasType(x_92, x_116, x_118, x_4, x_5, x_6, x_7, x_8, x_9, x_95); -if (lean_obj_tag(x_119) == 0) -{ -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; -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); -} -lean_ctor_set(x_42, 0, x_117); -lean_inc(x_120); -x_123 = l_Lean_mkApp(x_35, x_120); -x_124 = lean_expr_instantiate1(x_86, x_120); -lean_dec(x_86); -x_125 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_125, 0, x_120); -lean_ctor_set(x_13, 3, x_125); -lean_ctor_set(x_3, 1, x_40); -x_126 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_126, 0, x_124); -lean_ctor_set(x_126, 1, x_3); -lean_ctor_set(x_29, 1, x_126); -lean_ctor_set(x_29, 0, x_123); -if (lean_is_scalar(x_122)) { - x_127 = lean_alloc_ctor(0, 2, 0); -} else { - x_127 = x_122; -} -lean_ctor_set(x_127, 0, x_29); -lean_ctor_set(x_127, 1, x_121); -x_15 = x_127; -goto block_23; -} -else -{ -lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; -lean_dec(x_117); -lean_free_object(x_42); -lean_dec(x_86); -lean_free_object(x_13); -lean_dec(x_41); -lean_free_object(x_29); -lean_dec(x_40); -lean_dec(x_35); -lean_dec(x_30); -lean_free_object(x_3); -x_128 = lean_ctor_get(x_119, 0); -lean_inc(x_128); -x_129 = lean_ctor_get(x_119, 1); -lean_inc(x_129); -if (lean_is_exclusive(x_119)) { - lean_ctor_release(x_119, 0); - lean_ctor_release(x_119, 1); - x_130 = x_119; -} else { - lean_dec_ref(x_119); - x_130 = lean_box(0); -} -if (lean_is_scalar(x_130)) { - x_131 = lean_alloc_ctor(1, 2, 0); -} else { - x_131 = x_130; -} -lean_ctor_set(x_131, 0, x_128); -lean_ctor_set(x_131, 1, x_129); -x_15 = x_131; +lean_dec(x_77); +x_119 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_119, 0, x_117); +lean_ctor_set(x_119, 1, x_118); +x_15 = x_119; goto block_23; } } } else { -uint8_t x_132; -lean_dec(x_92); -lean_free_object(x_42); -lean_dec(x_86); -lean_free_object(x_13); -lean_dec(x_41); -lean_free_object(x_29); -lean_dec(x_40); -lean_dec(x_35); -lean_dec(x_30); -lean_free_object(x_3); -x_132 = !lean_is_exclusive(x_93); -if (x_132 == 0) +uint8_t x_120; +lean_dec(x_72); +lean_dec(x_69); +x_120 = !lean_is_exclusive(x_73); +if (x_120 == 0) { -x_15 = x_93; +lean_object* x_121; uint8_t x_122; +x_121 = lean_ctor_get(x_73, 0); +lean_dec(x_121); +x_122 = !lean_is_exclusive(x_74); +if (x_122 == 0) +{ +lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_123 = lean_ctor_get(x_74, 0); +x_124 = l_Lean_mkHole(x_38); +lean_ctor_set_tag(x_39, 0); +lean_ctor_set(x_39, 0, x_124); +lean_inc(x_123); +x_125 = l_Lean_mkApp(x_32, x_123); +x_126 = lean_expr_instantiate1(x_70, x_123); +lean_dec(x_70); +lean_ctor_set(x_13, 3, x_74); +lean_ctor_set(x_3, 1, x_37); +lean_ctor_set(x_24, 1, x_3); +lean_ctor_set(x_24, 0, x_126); +lean_ctor_set(x_2, 0, x_125); +lean_ctor_set(x_73, 0, x_2); +x_15 = x_73; goto block_23; } else { -lean_object* x_133; lean_object* x_134; lean_object* x_135; -x_133 = lean_ctor_get(x_93, 0); -x_134 = lean_ctor_get(x_93, 1); -lean_inc(x_134); +lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_127 = lean_ctor_get(x_74, 0); +lean_inc(x_127); +lean_dec(x_74); +x_128 = l_Lean_mkHole(x_38); +lean_ctor_set_tag(x_39, 0); +lean_ctor_set(x_39, 0, x_128); +lean_inc(x_127); +x_129 = l_Lean_mkApp(x_32, x_127); +x_130 = lean_expr_instantiate1(x_70, x_127); +lean_dec(x_70); +x_131 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_131, 0, x_127); +lean_ctor_set(x_13, 3, x_131); +lean_ctor_set(x_3, 1, x_37); +lean_ctor_set(x_24, 1, x_3); +lean_ctor_set(x_24, 0, x_130); +lean_ctor_set(x_2, 0, x_129); +lean_ctor_set(x_73, 0, x_2); +x_15 = x_73; +goto block_23; +} +} +else +{ +lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +x_132 = lean_ctor_get(x_73, 1); +lean_inc(x_132); +lean_dec(x_73); +x_133 = lean_ctor_get(x_74, 0); lean_inc(x_133); -lean_dec(x_93); -x_135 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_135, 0, x_133); -lean_ctor_set(x_135, 1, x_134); -x_15 = x_135; -goto block_23; -} -} -} -else -{ -uint8_t x_136; -lean_dec(x_88); -lean_dec(x_85); -x_136 = !lean_is_exclusive(x_89); -if (x_136 == 0) -{ -lean_object* x_137; uint8_t x_138; -x_137 = lean_ctor_get(x_89, 0); -lean_dec(x_137); -x_138 = !lean_is_exclusive(x_90); -if (x_138 == 0) -{ -lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; -x_139 = lean_ctor_get(x_90, 0); -x_140 = l_Lean_mkHole(x_41); -lean_ctor_set_tag(x_42, 0); -lean_ctor_set(x_42, 0, x_140); -lean_inc(x_139); -x_141 = l_Lean_mkApp(x_35, x_139); -x_142 = lean_expr_instantiate1(x_86, x_139); -lean_dec(x_86); -lean_ctor_set(x_13, 3, x_90); -lean_ctor_set(x_3, 1, x_40); -lean_ctor_set(x_29, 1, x_3); -lean_ctor_set(x_29, 0, x_142); -lean_ctor_set(x_2, 0, x_141); -lean_ctor_set(x_89, 0, x_2); -x_15 = x_89; -goto block_23; -} -else -{ -lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; -x_143 = lean_ctor_get(x_90, 0); -lean_inc(x_143); -lean_dec(x_90); -x_144 = l_Lean_mkHole(x_41); -lean_ctor_set_tag(x_42, 0); -lean_ctor_set(x_42, 0, x_144); -lean_inc(x_143); -x_145 = l_Lean_mkApp(x_35, x_143); -x_146 = lean_expr_instantiate1(x_86, x_143); -lean_dec(x_86); -x_147 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_147, 0, x_143); -lean_ctor_set(x_13, 3, x_147); -lean_ctor_set(x_3, 1, x_40); -lean_ctor_set(x_29, 1, x_3); -lean_ctor_set(x_29, 0, x_146); -lean_ctor_set(x_2, 0, x_145); -lean_ctor_set(x_89, 0, x_2); -x_15 = x_89; -goto block_23; -} -} -else -{ -lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; -x_148 = lean_ctor_get(x_89, 1); -lean_inc(x_148); -lean_dec(x_89); -x_149 = lean_ctor_get(x_90, 0); -lean_inc(x_149); -if (lean_is_exclusive(x_90)) { - lean_ctor_release(x_90, 0); - x_150 = x_90; +if (lean_is_exclusive(x_74)) { + lean_ctor_release(x_74, 0); + x_134 = x_74; } else { - lean_dec_ref(x_90); - x_150 = lean_box(0); + lean_dec_ref(x_74); + x_134 = lean_box(0); } -x_151 = l_Lean_mkHole(x_41); -lean_ctor_set_tag(x_42, 0); -lean_ctor_set(x_42, 0, x_151); -lean_inc(x_149); -x_152 = l_Lean_mkApp(x_35, x_149); -x_153 = lean_expr_instantiate1(x_86, x_149); -lean_dec(x_86); -if (lean_is_scalar(x_150)) { - x_154 = lean_alloc_ctor(1, 1, 0); +x_135 = l_Lean_mkHole(x_38); +lean_ctor_set_tag(x_39, 0); +lean_ctor_set(x_39, 0, x_135); +lean_inc(x_133); +x_136 = l_Lean_mkApp(x_32, x_133); +x_137 = lean_expr_instantiate1(x_70, x_133); +lean_dec(x_70); +if (lean_is_scalar(x_134)) { + x_138 = lean_alloc_ctor(1, 1, 0); } else { - x_154 = x_150; + x_138 = x_134; } -lean_ctor_set(x_154, 0, x_149); -lean_ctor_set(x_13, 3, x_154); -lean_ctor_set(x_3, 1, x_40); -lean_ctor_set(x_29, 1, x_3); -lean_ctor_set(x_29, 0, x_153); -lean_ctor_set(x_2, 0, x_152); -x_155 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_155, 0, x_2); -lean_ctor_set(x_155, 1, x_148); -x_15 = x_155; +lean_ctor_set(x_138, 0, x_133); +lean_ctor_set(x_13, 3, x_138); +lean_ctor_set(x_3, 1, x_37); +lean_ctor_set(x_24, 1, x_3); +lean_ctor_set(x_24, 0, x_137); +lean_ctor_set(x_2, 0, x_136); +x_139 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_139, 0, x_2); +lean_ctor_set(x_139, 1, x_132); +x_15 = x_139; goto block_23; } } } else { -uint8_t x_156; -lean_free_object(x_42); -lean_dec(x_88); -lean_dec(x_86); -lean_dec(x_85); +uint8_t x_140; +lean_free_object(x_39); +lean_dec(x_72); +lean_dec(x_70); +lean_dec(x_69); lean_free_object(x_13); -lean_dec(x_41); -lean_free_object(x_29); -lean_dec(x_40); +lean_dec(x_38); +lean_free_object(x_24); +lean_dec(x_37); lean_free_object(x_2); -lean_dec(x_35); -lean_dec(x_30); +lean_dec(x_32); +lean_dec(x_25); lean_free_object(x_3); -x_156 = !lean_is_exclusive(x_89); -if (x_156 == 0) +x_140 = !lean_is_exclusive(x_73); +if (x_140 == 0) { -x_15 = x_89; +x_15 = x_73; goto block_23; } else { -lean_object* x_157; lean_object* x_158; lean_object* x_159; -x_157 = lean_ctor_get(x_89, 0); -x_158 = lean_ctor_get(x_89, 1); -lean_inc(x_158); -lean_inc(x_157); -lean_dec(x_89); -x_159 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_159, 0, x_157); -lean_ctor_set(x_159, 1, x_158); -x_15 = x_159; +lean_object* x_141; lean_object* x_142; lean_object* x_143; +x_141 = lean_ctor_get(x_73, 0); +x_142 = lean_ctor_get(x_73, 1); +lean_inc(x_142); +lean_inc(x_141); +lean_dec(x_73); +x_143 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_143, 0, x_141); +lean_ctor_set(x_143, 1, x_142); +x_15 = x_143; goto block_23; } } } else { -lean_object* x_160; lean_object* x_161; -x_160 = lean_ctor_get(x_42, 0); -lean_inc(x_160); -lean_dec(x_42); +lean_object* x_144; lean_object* x_145; +x_144 = lean_ctor_get(x_39, 0); +lean_inc(x_144); +lean_dec(x_39); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -lean_inc(x_85); -x_161 = l_Lean_Elab_Term_StructInst_trySynthStructInstance_x3f(x_160, x_85, x_4, x_5, x_6, x_7, x_8, x_9, x_48); -if (lean_obj_tag(x_161) == 0) +lean_inc(x_69); +x_145 = l_Lean_Elab_Term_StructInst_trySynthStructInstance_x3f(x_144, x_69, x_4, x_5, x_6, x_7, x_8, x_9, x_68); +if (lean_obj_tag(x_145) == 0) { -lean_object* x_162; -x_162 = lean_ctor_get(x_161, 0); -lean_inc(x_162); -if (lean_obj_tag(x_162) == 0) +lean_object* x_146; +x_146 = lean_ctor_get(x_145, 0); +lean_inc(x_146); +if (lean_obj_tag(x_146) == 0) { -lean_object* x_163; lean_object* x_164; lean_object* x_165; +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_free_object(x_2); -x_163 = lean_ctor_get(x_161, 1); -lean_inc(x_163); -lean_dec(x_161); -x_164 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_164, 0, x_85); +x_147 = lean_ctor_get(x_145, 1); +lean_inc(x_147); +lean_dec(x_145); +x_148 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_148, 0, x_69); 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_164); -x_165 = l___private_Lean_Elab_StructInst_24__elabStruct___main(x_160, x_164, x_4, x_5, x_6, x_7, x_8, x_9, x_163); -if (lean_obj_tag(x_165) == 0) +lean_inc(x_148); +x_149 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct(x_144, x_148, x_4, x_5, x_6, x_7, x_8, x_9, x_147); +if (lean_obj_tag(x_149) == 0) { -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; -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 = lean_ctor_get(x_166, 0); -lean_inc(x_168); -x_169 = lean_ctor_get(x_166, 1); -lean_inc(x_169); -if (lean_is_exclusive(x_166)) { - lean_ctor_release(x_166, 0); - lean_ctor_release(x_166, 1); - x_170 = x_166; +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; +x_150 = lean_ctor_get(x_149, 0); +lean_inc(x_150); +x_151 = lean_ctor_get(x_149, 1); +lean_inc(x_151); +lean_dec(x_149); +x_152 = lean_ctor_get(x_150, 0); +lean_inc(x_152); +x_153 = lean_ctor_get(x_150, 1); +lean_inc(x_153); +if (lean_is_exclusive(x_150)) { + lean_ctor_release(x_150, 0); + lean_ctor_release(x_150, 1); + x_154 = x_150; } else { - lean_dec_ref(x_166); - x_170 = lean_box(0); + lean_dec_ref(x_150); + x_154 = lean_box(0); } -x_171 = lean_box(0); +x_155 = lean_box(0); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_172 = l_Lean_Elab_Term_ensureHasType(x_164, x_168, x_171, x_4, x_5, x_6, x_7, x_8, x_9, x_167); -if (lean_obj_tag(x_172) == 0) +x_156 = l_Lean_Elab_Term_ensureHasType(x_148, x_152, x_155, x_4, x_5, x_6, x_7, x_8, x_9, x_151); +if (lean_obj_tag(x_156) == 0) { -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; -x_173 = lean_ctor_get(x_172, 0); -lean_inc(x_173); -x_174 = lean_ctor_get(x_172, 1); -lean_inc(x_174); -if (lean_is_exclusive(x_172)) { - lean_ctor_release(x_172, 0); - lean_ctor_release(x_172, 1); - x_175 = x_172; +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; +x_157 = lean_ctor_get(x_156, 0); +lean_inc(x_157); +x_158 = lean_ctor_get(x_156, 1); +lean_inc(x_158); +if (lean_is_exclusive(x_156)) { + lean_ctor_release(x_156, 0); + lean_ctor_release(x_156, 1); + x_159 = x_156; } else { - lean_dec_ref(x_172); + lean_dec_ref(x_156); + x_159 = lean_box(0); +} +x_160 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_160, 0, x_153); +lean_inc(x_157); +x_161 = l_Lean_mkApp(x_32, x_157); +x_162 = lean_expr_instantiate1(x_70, x_157); +lean_dec(x_70); +x_163 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_163, 0, x_157); +lean_ctor_set(x_13, 3, x_163); +lean_ctor_set(x_13, 2, x_160); +lean_ctor_set(x_3, 1, x_37); +if (lean_is_scalar(x_154)) { + x_164 = lean_alloc_ctor(0, 2, 0); +} else { + x_164 = x_154; +} +lean_ctor_set(x_164, 0, x_162); +lean_ctor_set(x_164, 1, x_3); +lean_ctor_set(x_24, 1, x_164); +lean_ctor_set(x_24, 0, x_161); +if (lean_is_scalar(x_159)) { + x_165 = lean_alloc_ctor(0, 2, 0); +} else { + x_165 = x_159; +} +lean_ctor_set(x_165, 0, x_24); +lean_ctor_set(x_165, 1, x_158); +x_15 = x_165; +goto block_23; +} +else +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +lean_dec(x_154); +lean_dec(x_153); +lean_dec(x_70); +lean_free_object(x_13); +lean_dec(x_38); +lean_free_object(x_24); +lean_dec(x_37); +lean_dec(x_32); +lean_dec(x_25); +lean_free_object(x_3); +x_166 = lean_ctor_get(x_156, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_156, 1); +lean_inc(x_167); +if (lean_is_exclusive(x_156)) { + lean_ctor_release(x_156, 0); + lean_ctor_release(x_156, 1); + x_168 = x_156; +} else { + lean_dec_ref(x_156); + x_168 = lean_box(0); +} +if (lean_is_scalar(x_168)) { + x_169 = lean_alloc_ctor(1, 2, 0); +} else { + x_169 = x_168; +} +lean_ctor_set(x_169, 0, x_166); +lean_ctor_set(x_169, 1, x_167); +x_15 = x_169; +goto block_23; +} +} +else +{ +lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; +lean_dec(x_148); +lean_dec(x_70); +lean_free_object(x_13); +lean_dec(x_38); +lean_free_object(x_24); +lean_dec(x_37); +lean_dec(x_32); +lean_dec(x_25); +lean_free_object(x_3); +x_170 = lean_ctor_get(x_149, 0); +lean_inc(x_170); +x_171 = lean_ctor_get(x_149, 1); +lean_inc(x_171); +if (lean_is_exclusive(x_149)) { + lean_ctor_release(x_149, 0); + lean_ctor_release(x_149, 1); + x_172 = x_149; +} else { + lean_dec_ref(x_149); + x_172 = lean_box(0); +} +if (lean_is_scalar(x_172)) { + x_173 = lean_alloc_ctor(1, 2, 0); +} else { + x_173 = x_172; +} +lean_ctor_set(x_173, 0, x_170); +lean_ctor_set(x_173, 1, x_171); +x_15 = x_173; +goto block_23; +} +} +else +{ +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_dec(x_144); +lean_dec(x_69); +x_174 = lean_ctor_get(x_145, 1); +lean_inc(x_174); +if (lean_is_exclusive(x_145)) { + lean_ctor_release(x_145, 0); + lean_ctor_release(x_145, 1); + x_175 = x_145; +} else { + lean_dec_ref(x_145); x_175 = lean_box(0); } -x_176 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_176, 0, x_169); -lean_inc(x_173); -x_177 = l_Lean_mkApp(x_35, x_173); -x_178 = lean_expr_instantiate1(x_86, x_173); -lean_dec(x_86); -x_179 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_179, 0, x_173); -lean_ctor_set(x_13, 3, x_179); -lean_ctor_set(x_13, 2, x_176); -lean_ctor_set(x_3, 1, x_40); -if (lean_is_scalar(x_170)) { - x_180 = lean_alloc_ctor(0, 2, 0); +x_176 = lean_ctor_get(x_146, 0); +lean_inc(x_176); +if (lean_is_exclusive(x_146)) { + lean_ctor_release(x_146, 0); + x_177 = x_146; } else { - x_180 = x_170; + lean_dec_ref(x_146); + x_177 = lean_box(0); } -lean_ctor_set(x_180, 0, x_178); -lean_ctor_set(x_180, 1, x_3); -lean_ctor_set(x_29, 1, x_180); -lean_ctor_set(x_29, 0, x_177); +x_178 = l_Lean_mkHole(x_38); +x_179 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_179, 0, x_178); +lean_inc(x_176); +x_180 = l_Lean_mkApp(x_32, x_176); +x_181 = lean_expr_instantiate1(x_70, x_176); +lean_dec(x_70); +if (lean_is_scalar(x_177)) { + x_182 = lean_alloc_ctor(1, 1, 0); +} else { + x_182 = x_177; +} +lean_ctor_set(x_182, 0, x_176); +lean_ctor_set(x_13, 3, x_182); +lean_ctor_set(x_13, 2, x_179); +lean_ctor_set(x_3, 1, x_37); +lean_ctor_set(x_24, 1, x_3); +lean_ctor_set(x_24, 0, x_181); +lean_ctor_set(x_2, 0, x_180); if (lean_is_scalar(x_175)) { - x_181 = lean_alloc_ctor(0, 2, 0); + x_183 = lean_alloc_ctor(0, 2, 0); } else { - x_181 = x_175; + x_183 = x_175; } -lean_ctor_set(x_181, 0, x_29); -lean_ctor_set(x_181, 1, x_174); -x_15 = x_181; +lean_ctor_set(x_183, 0, x_2); +lean_ctor_set(x_183, 1, x_174); +x_15 = x_183; goto block_23; } +} else { -lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; -lean_dec(x_170); -lean_dec(x_169); -lean_dec(x_86); +lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; +lean_dec(x_144); +lean_dec(x_70); +lean_dec(x_69); lean_free_object(x_13); -lean_dec(x_41); -lean_free_object(x_29); -lean_dec(x_40); -lean_dec(x_35); -lean_dec(x_30); -lean_free_object(x_3); -x_182 = lean_ctor_get(x_172, 0); -lean_inc(x_182); -x_183 = lean_ctor_get(x_172, 1); -lean_inc(x_183); -if (lean_is_exclusive(x_172)) { - lean_ctor_release(x_172, 0); - lean_ctor_release(x_172, 1); - x_184 = x_172; -} else { - lean_dec_ref(x_172); - x_184 = lean_box(0); -} -if (lean_is_scalar(x_184)) { - x_185 = lean_alloc_ctor(1, 2, 0); -} else { - x_185 = x_184; -} -lean_ctor_set(x_185, 0, x_182); -lean_ctor_set(x_185, 1, x_183); -x_15 = x_185; -goto block_23; -} -} -else -{ -lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; -lean_dec(x_164); -lean_dec(x_86); -lean_free_object(x_13); -lean_dec(x_41); -lean_free_object(x_29); -lean_dec(x_40); -lean_dec(x_35); -lean_dec(x_30); -lean_free_object(x_3); -x_186 = lean_ctor_get(x_165, 0); -lean_inc(x_186); -x_187 = lean_ctor_get(x_165, 1); -lean_inc(x_187); -if (lean_is_exclusive(x_165)) { - lean_ctor_release(x_165, 0); - lean_ctor_release(x_165, 1); - x_188 = x_165; -} else { - lean_dec_ref(x_165); - x_188 = lean_box(0); -} -if (lean_is_scalar(x_188)) { - x_189 = lean_alloc_ctor(1, 2, 0); -} else { - x_189 = x_188; -} -lean_ctor_set(x_189, 0, x_186); -lean_ctor_set(x_189, 1, x_187); -x_15 = x_189; -goto block_23; -} -} -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_dec(x_160); -lean_dec(x_85); -x_190 = lean_ctor_get(x_161, 1); -lean_inc(x_190); -if (lean_is_exclusive(x_161)) { - lean_ctor_release(x_161, 0); - lean_ctor_release(x_161, 1); - x_191 = x_161; -} else { - lean_dec_ref(x_161); - x_191 = lean_box(0); -} -x_192 = lean_ctor_get(x_162, 0); -lean_inc(x_192); -if (lean_is_exclusive(x_162)) { - lean_ctor_release(x_162, 0); - x_193 = x_162; -} else { - lean_dec_ref(x_162); - x_193 = lean_box(0); -} -x_194 = l_Lean_mkHole(x_41); -x_195 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_195, 0, x_194); -lean_inc(x_192); -x_196 = l_Lean_mkApp(x_35, x_192); -x_197 = lean_expr_instantiate1(x_86, x_192); -lean_dec(x_86); -if (lean_is_scalar(x_193)) { - x_198 = lean_alloc_ctor(1, 1, 0); -} else { - x_198 = x_193; -} -lean_ctor_set(x_198, 0, x_192); -lean_ctor_set(x_13, 3, x_198); -lean_ctor_set(x_13, 2, x_195); -lean_ctor_set(x_3, 1, x_40); -lean_ctor_set(x_29, 1, x_3); -lean_ctor_set(x_29, 0, x_197); -lean_ctor_set(x_2, 0, x_196); -if (lean_is_scalar(x_191)) { - x_199 = lean_alloc_ctor(0, 2, 0); -} else { - x_199 = x_191; -} -lean_ctor_set(x_199, 0, x_2); -lean_ctor_set(x_199, 1, x_190); -x_15 = x_199; -goto block_23; -} -} -else -{ -lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; -lean_dec(x_160); -lean_dec(x_86); -lean_dec(x_85); -lean_free_object(x_13); -lean_dec(x_41); -lean_free_object(x_29); -lean_dec(x_40); +lean_dec(x_38); +lean_free_object(x_24); +lean_dec(x_37); lean_free_object(x_2); -lean_dec(x_35); -lean_dec(x_30); +lean_dec(x_32); +lean_dec(x_25); lean_free_object(x_3); -x_200 = lean_ctor_get(x_161, 0); -lean_inc(x_200); -x_201 = lean_ctor_get(x_161, 1); -lean_inc(x_201); -if (lean_is_exclusive(x_161)) { - lean_ctor_release(x_161, 0); - lean_ctor_release(x_161, 1); - x_202 = x_161; +x_184 = lean_ctor_get(x_145, 0); +lean_inc(x_184); +x_185 = lean_ctor_get(x_145, 1); +lean_inc(x_185); +if (lean_is_exclusive(x_145)) { + lean_ctor_release(x_145, 0); + lean_ctor_release(x_145, 1); + x_186 = x_145; } else { - lean_dec_ref(x_161); - x_202 = lean_box(0); + lean_dec_ref(x_145); + x_186 = lean_box(0); } -if (lean_is_scalar(x_202)) { - x_203 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_186)) { + x_187 = lean_alloc_ctor(1, 2, 0); } else { - x_203 = x_202; + x_187 = x_186; } -lean_ctor_set(x_203, 0, x_200); -lean_ctor_set(x_203, 1, x_201); -x_15 = x_203; +lean_ctor_set(x_187, 0, x_184); +lean_ctor_set(x_187, 1, x_185); +x_15 = x_187; goto block_23; } } } default: { -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; uint8_t x_215; lean_object* x_216; lean_object* x_217; uint8_t x_218; -x_204 = lean_ctor_get(x_47, 1); -lean_inc(x_204); -x_205 = lean_ctor_get(x_47, 2); -lean_inc(x_205); -lean_dec(x_47); -x_206 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_206, 0, x_204); -x_207 = lean_ctor_get(x_8, 0); -lean_inc(x_207); -x_208 = lean_ctor_get(x_8, 1); -lean_inc(x_208); -x_209 = lean_ctor_get(x_8, 2); -lean_inc(x_209); -x_210 = lean_ctor_get(x_8, 3); -lean_inc(x_210); -x_211 = l_Lean_replaceRef(x_41, x_210); -x_212 = l_Lean_replaceRef(x_211, x_210); -lean_dec(x_211); -x_213 = l_Lean_replaceRef(x_212, x_210); -lean_dec(x_210); -lean_dec(x_212); -x_214 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_214, 0, x_207); -lean_ctor_set(x_214, 1, x_208); -lean_ctor_set(x_214, 2, x_209); -lean_ctor_set(x_214, 3, x_213); -x_215 = 0; -x_216 = lean_box(0); +lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; uint8_t x_200; lean_object* x_201; lean_object* x_202; uint8_t x_203; +x_188 = lean_ctor_get(x_43, 1); +lean_inc(x_188); +lean_dec(x_43); +x_189 = lean_ctor_get(x_44, 1); +lean_inc(x_189); +x_190 = lean_ctor_get(x_44, 2); +lean_inc(x_190); +lean_dec(x_44); +x_191 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_191, 0, x_189); +x_192 = lean_ctor_get(x_8, 0); +lean_inc(x_192); +x_193 = lean_ctor_get(x_8, 1); +lean_inc(x_193); +x_194 = lean_ctor_get(x_8, 2); +lean_inc(x_194); +x_195 = lean_ctor_get(x_8, 3); +lean_inc(x_195); +x_196 = l_Lean_replaceRef(x_38, x_195); +x_197 = l_Lean_replaceRef(x_196, x_195); +lean_dec(x_196); +x_198 = l_Lean_replaceRef(x_197, x_195); +lean_dec(x_195); +lean_dec(x_197); +x_199 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_199, 0, x_192); +lean_ctor_set(x_199, 1, x_193); +lean_ctor_set(x_199, 2, x_194); +lean_ctor_set(x_199, 3, x_198); +x_200 = 0; +x_201 = lean_box(0); lean_inc(x_6); -x_217 = l___private_Lean_Meta_Basic_4__mkFreshExprMVarImpl(x_206, x_215, x_216, x_6, x_7, x_214, x_9, x_48); -lean_dec(x_214); -x_218 = !lean_is_exclusive(x_217); -if (x_218 == 0) +x_202 = l___private_Lean_Meta_Basic_4__mkFreshExprMVarImpl(x_191, x_200, x_201, x_6, x_7, x_199, x_9, x_188); +lean_dec(x_199); +x_203 = !lean_is_exclusive(x_202); +if (x_203 == 0) { -lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; -x_219 = lean_ctor_get(x_217, 0); -x_220 = l_Lean_Elab_Term_StructInst_markDefaultMissing(x_219); -lean_inc(x_220); -x_221 = l_Lean_mkApp(x_35, x_220); -x_222 = lean_expr_instantiate1(x_205, x_220); -lean_dec(x_205); -x_223 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_223, 0, x_220); -lean_ctor_set(x_13, 3, x_223); -lean_ctor_set(x_3, 1, x_40); -lean_ctor_set(x_29, 1, x_3); -lean_ctor_set(x_29, 0, x_222); -lean_ctor_set(x_2, 0, x_221); -lean_ctor_set(x_217, 0, x_2); -x_15 = x_217; +lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; +x_204 = lean_ctor_get(x_202, 0); +x_205 = l_Lean_Elab_Term_StructInst_markDefaultMissing(x_204); +lean_inc(x_205); +x_206 = l_Lean_mkApp(x_32, x_205); +x_207 = lean_expr_instantiate1(x_190, x_205); +lean_dec(x_190); +x_208 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_208, 0, x_205); +lean_ctor_set(x_13, 3, x_208); +lean_ctor_set(x_3, 1, x_37); +lean_ctor_set(x_24, 1, x_3); +lean_ctor_set(x_24, 0, x_207); +lean_ctor_set(x_2, 0, x_206); +lean_ctor_set(x_202, 0, x_2); +x_15 = x_202; goto block_23; } else { -lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; -x_224 = lean_ctor_get(x_217, 0); -x_225 = lean_ctor_get(x_217, 1); -lean_inc(x_225); +lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; +x_209 = lean_ctor_get(x_202, 0); +x_210 = lean_ctor_get(x_202, 1); +lean_inc(x_210); +lean_inc(x_209); +lean_dec(x_202); +x_211 = l_Lean_Elab_Term_StructInst_markDefaultMissing(x_209); +lean_inc(x_211); +x_212 = l_Lean_mkApp(x_32, x_211); +x_213 = lean_expr_instantiate1(x_190, x_211); +lean_dec(x_190); +x_214 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_214, 0, x_211); +lean_ctor_set(x_13, 3, x_214); +lean_ctor_set(x_3, 1, x_37); +lean_ctor_set(x_24, 1, x_3); +lean_ctor_set(x_24, 0, x_213); +lean_ctor_set(x_2, 0, x_212); +x_215 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_215, 0, x_2); +lean_ctor_set(x_215, 1, x_210); +x_15 = x_215; +goto block_23; +} +} +} +} +else +{ +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_free_object(x_13); +lean_dec(x_39); +lean_free_object(x_24); +lean_dec(x_37); +lean_free_object(x_2); +lean_dec(x_32); +lean_dec(x_25); +lean_free_object(x_3); +x_216 = lean_ctor_get(x_43, 1); +lean_inc(x_216); +lean_dec(x_43); +x_217 = l_Lean_indentExpr(x_44); +x_218 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1___closed__4; +x_219 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_219, 0, x_218); +lean_ctor_set(x_219, 1, x_217); +x_220 = l_Lean_Elab_Term_elabLetDeclAux___closed__4; +x_221 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_221, 0, x_219); +lean_ctor_set(x_221, 1, x_220); +x_222 = lean_ctor_get(x_8, 0); +lean_inc(x_222); +x_223 = lean_ctor_get(x_8, 1); +lean_inc(x_223); +x_224 = lean_ctor_get(x_8, 2); lean_inc(x_224); -lean_dec(x_217); -x_226 = l_Lean_Elab_Term_StructInst_markDefaultMissing(x_224); -lean_inc(x_226); -x_227 = l_Lean_mkApp(x_35, x_226); -x_228 = lean_expr_instantiate1(x_205, x_226); -lean_dec(x_205); -x_229 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_229, 0, x_226); -lean_ctor_set(x_13, 3, x_229); -lean_ctor_set(x_3, 1, x_40); -lean_ctor_set(x_29, 1, x_3); -lean_ctor_set(x_29, 0, x_228); -lean_ctor_set(x_2, 0, x_227); -x_230 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_230, 0, x_2); -lean_ctor_set(x_230, 1, x_225); +x_225 = lean_ctor_get(x_8, 3); +lean_inc(x_225); +x_226 = l_Lean_replaceRef(x_38, x_225); +lean_dec(x_38); +x_227 = l_Lean_replaceRef(x_226, x_225); +lean_dec(x_226); +x_228 = l_Lean_replaceRef(x_227, x_225); +lean_dec(x_225); +lean_dec(x_227); +x_229 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_229, 0, x_222); +lean_ctor_set(x_229, 1, x_223); +lean_ctor_set(x_229, 2, x_224); +lean_ctor_set(x_229, 3, x_228); +lean_inc(x_4); +lean_inc(x_1); +x_230 = l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg(x_42, x_1, x_221, x_4, x_5, x_6, x_7, x_229, x_9, x_216); +lean_dec(x_229); x_15 = x_230; goto block_23; } } -} -} else { -lean_object* x_231; -lean_free_object(x_13); +uint8_t x_231; lean_dec(x_42); -lean_free_object(x_29); -lean_dec(x_40); -lean_free_object(x_2); -lean_dec(x_35); -lean_dec(x_30); -lean_free_object(x_3); -x_231 = lean_box(0); -x_49 = x_231; -goto block_62; -} -block_62: -{ -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_dec(x_49); -x_50 = l_Lean_indentExpr(x_47); -x_51 = l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__3; -x_52 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_50); -x_53 = lean_ctor_get(x_8, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_8, 1); -lean_inc(x_54); -x_55 = lean_ctor_get(x_8, 2); -lean_inc(x_55); -x_56 = lean_ctor_get(x_8, 3); -lean_inc(x_56); -x_57 = l_Lean_replaceRef(x_41, x_56); -lean_dec(x_41); -x_58 = l_Lean_replaceRef(x_57, x_56); -lean_dec(x_57); -x_59 = l_Lean_replaceRef(x_58, x_56); -lean_dec(x_56); -lean_dec(x_58); -x_60 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_60, 0, x_53); -lean_ctor_set(x_60, 1, x_54); -lean_ctor_set(x_60, 2, x_55); -lean_ctor_set(x_60, 3, x_59); -lean_inc(x_4); -lean_inc(x_1); -x_61 = l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg(x_45, x_1, x_52, x_4, x_5, x_6, x_7, x_60, x_9, x_48); -lean_dec(x_60); -x_15 = x_61; -goto block_23; -} -} -else -{ -uint8_t x_232; -lean_dec(x_45); lean_free_object(x_13); -lean_dec(x_42); -lean_dec(x_41); -lean_free_object(x_29); -lean_dec(x_40); +lean_dec(x_39); +lean_dec(x_38); +lean_free_object(x_24); +lean_dec(x_37); lean_free_object(x_2); -lean_dec(x_35); -lean_dec(x_30); -lean_free_object(x_3); -x_232 = !lean_is_exclusive(x_46); -if (x_232 == 0) -{ -x_15 = x_46; -goto block_23; -} -else -{ -lean_object* x_233; lean_object* x_234; lean_object* x_235; -x_233 = lean_ctor_get(x_46, 0); -x_234 = lean_ctor_get(x_46, 1); -lean_inc(x_234); -lean_inc(x_233); -lean_dec(x_46); -x_235 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_235, 0, x_233); -lean_ctor_set(x_235, 1, x_234); -x_15 = x_235; -goto block_23; -} -} -} -else -{ -lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; -x_236 = lean_ctor_get(x_29, 0); -x_237 = lean_ctor_get(x_29, 1); -x_238 = lean_ctor_get(x_13, 0); -x_239 = lean_ctor_get(x_13, 2); -lean_inc(x_239); -lean_inc(x_238); -lean_dec(x_13); -x_240 = lean_ctor_get(x_32, 1); -lean_inc(x_240); lean_dec(x_32); +lean_dec(x_25); +lean_free_object(x_3); +x_231 = !lean_is_exclusive(x_43); +if (x_231 == 0) +{ +x_15 = x_43; +goto block_23; +} +else +{ +lean_object* x_232; lean_object* x_233; lean_object* x_234; +x_232 = lean_ctor_get(x_43, 0); +x_233 = lean_ctor_get(x_43, 1); +lean_inc(x_233); +lean_inc(x_232); +lean_dec(x_43); +x_234 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_234, 0, x_232); +lean_ctor_set(x_234, 1, x_233); +x_15 = x_234; +goto block_23; +} +} +} +else +{ +lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; +x_235 = lean_ctor_get(x_24, 0); +x_236 = lean_ctor_get(x_24, 1); +x_237 = lean_ctor_get(x_13, 0); +x_238 = lean_ctor_get(x_13, 2); +lean_inc(x_238); +lean_inc(x_237); +lean_dec(x_13); +x_239 = lean_ctor_get(x_29, 1); +lean_inc(x_239); +lean_dec(x_29); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_241 = l_Lean_Meta_whnfForall___at___private_Lean_Elab_Term_18__useImplicitLambda_x3f___spec__1(x_236, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_241) == 0) +x_240 = l_Lean_Meta_whnfForall___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_propagateExpectedType___spec__1(x_235, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_240) == 0) { -lean_object* x_242; lean_object* x_243; lean_object* x_244; -x_242 = lean_ctor_get(x_241, 0); -lean_inc(x_242); -x_243 = lean_ctor_get(x_241, 1); -lean_inc(x_243); -lean_dec(x_241); -if (lean_obj_tag(x_242) == 7) +lean_object* x_241; +x_241 = lean_ctor_get(x_240, 0); +lean_inc(x_241); +if (lean_obj_tag(x_241) == 7) { -lean_dec(x_240); -switch (lean_obj_tag(x_239)) { +lean_dec(x_239); +switch (lean_obj_tag(x_238)) { case 0: { -lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; uint8_t x_263; lean_object* x_264; -x_258 = lean_ctor_get(x_242, 1); -lean_inc(x_258); -x_259 = lean_ctor_get(x_242, 2); -lean_inc(x_259); -lean_dec(x_242); -x_260 = lean_ctor_get(x_239, 0); -lean_inc(x_260); -x_261 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_261, 0, x_258); -x_262 = lean_box(0); -x_263 = 1; +lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; uint8_t x_248; lean_object* x_249; +x_242 = lean_ctor_get(x_240, 1); +lean_inc(x_242); +lean_dec(x_240); +x_243 = lean_ctor_get(x_241, 1); +lean_inc(x_243); +x_244 = lean_ctor_get(x_241, 2); +lean_inc(x_244); +lean_dec(x_241); +x_245 = lean_ctor_get(x_238, 0); +lean_inc(x_245); +x_246 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_246, 0, x_243); +x_247 = lean_box(0); +x_248 = 1; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_264 = l_Lean_Elab_Term_elabTermEnsuringType(x_260, x_261, x_263, x_262, x_4, x_5, x_6, x_7, x_8, x_9, x_243); -if (lean_obj_tag(x_264) == 0) +x_249 = l_Lean_Elab_Term_elabTermEnsuringType(x_245, x_246, x_248, x_247, x_4, x_5, x_6, x_7, x_8, x_9, x_242); +if (lean_obj_tag(x_249) == 0) { -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; -x_265 = lean_ctor_get(x_264, 0); -lean_inc(x_265); -x_266 = lean_ctor_get(x_264, 1); -lean_inc(x_266); -if (lean_is_exclusive(x_264)) { - lean_ctor_release(x_264, 0); - lean_ctor_release(x_264, 1); - x_267 = x_264; +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; +x_250 = lean_ctor_get(x_249, 0); +lean_inc(x_250); +x_251 = lean_ctor_get(x_249, 1); +lean_inc(x_251); +if (lean_is_exclusive(x_249)) { + lean_ctor_release(x_249, 0); + lean_ctor_release(x_249, 1); + x_252 = x_249; } else { - lean_dec_ref(x_264); - x_267 = lean_box(0); + lean_dec_ref(x_249); + x_252 = lean_box(0); } -lean_inc(x_265); -x_268 = l_Lean_mkApp(x_35, x_265); -x_269 = lean_expr_instantiate1(x_259, x_265); -lean_dec(x_259); -x_270 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_270, 0, x_265); -x_271 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_271, 0, x_238); -lean_ctor_set(x_271, 1, x_30); -lean_ctor_set(x_271, 2, x_239); -lean_ctor_set(x_271, 3, x_270); -lean_ctor_set(x_3, 1, x_237); -lean_ctor_set(x_3, 0, x_271); -lean_ctor_set(x_29, 1, x_3); -lean_ctor_set(x_29, 0, x_269); -lean_ctor_set(x_2, 0, x_268); -if (lean_is_scalar(x_267)) { - x_272 = lean_alloc_ctor(0, 2, 0); +lean_inc(x_250); +x_253 = l_Lean_mkApp(x_32, x_250); +x_254 = lean_expr_instantiate1(x_244, x_250); +lean_dec(x_244); +x_255 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_255, 0, x_250); +x_256 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_256, 0, x_237); +lean_ctor_set(x_256, 1, x_25); +lean_ctor_set(x_256, 2, x_238); +lean_ctor_set(x_256, 3, x_255); +lean_ctor_set(x_3, 1, x_236); +lean_ctor_set(x_3, 0, x_256); +lean_ctor_set(x_24, 1, x_3); +lean_ctor_set(x_24, 0, x_254); +lean_ctor_set(x_2, 0, x_253); +if (lean_is_scalar(x_252)) { + x_257 = lean_alloc_ctor(0, 2, 0); } else { - x_272 = x_267; + x_257 = x_252; } -lean_ctor_set(x_272, 0, x_2); -lean_ctor_set(x_272, 1, x_266); -x_15 = x_272; +lean_ctor_set(x_257, 0, x_2); +lean_ctor_set(x_257, 1, x_251); +x_15 = x_257; goto block_23; } else { -lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; -lean_dec(x_259); -lean_dec(x_239); +lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; +lean_dec(x_244); lean_dec(x_238); -lean_free_object(x_29); lean_dec(x_237); +lean_free_object(x_24); +lean_dec(x_236); lean_free_object(x_2); -lean_dec(x_35); -lean_dec(x_30); +lean_dec(x_32); +lean_dec(x_25); lean_free_object(x_3); -x_273 = lean_ctor_get(x_264, 0); -lean_inc(x_273); -x_274 = lean_ctor_get(x_264, 1); -lean_inc(x_274); -if (lean_is_exclusive(x_264)) { - lean_ctor_release(x_264, 0); - lean_ctor_release(x_264, 1); - x_275 = x_264; +x_258 = lean_ctor_get(x_249, 0); +lean_inc(x_258); +x_259 = lean_ctor_get(x_249, 1); +lean_inc(x_259); +if (lean_is_exclusive(x_249)) { + lean_ctor_release(x_249, 0); + lean_ctor_release(x_249, 1); + x_260 = x_249; } else { - lean_dec_ref(x_264); - x_275 = lean_box(0); + lean_dec_ref(x_249); + x_260 = lean_box(0); } -if (lean_is_scalar(x_275)) { - x_276 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_260)) { + x_261 = lean_alloc_ctor(1, 2, 0); } else { - x_276 = x_275; + x_261 = x_260; } -lean_ctor_set(x_276, 0, x_273); -lean_ctor_set(x_276, 1, x_274); -x_15 = x_276; +lean_ctor_set(x_261, 0, x_258); +lean_ctor_set(x_261, 1, x_259); +x_15 = x_261; goto block_23; } } case 1: { -lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; -x_277 = lean_ctor_get(x_242, 1); -lean_inc(x_277); -x_278 = lean_ctor_get(x_242, 2); -lean_inc(x_278); -lean_dec(x_242); -x_279 = lean_ctor_get(x_239, 0); -lean_inc(x_279); -if (lean_is_exclusive(x_239)) { - lean_ctor_release(x_239, 0); - x_280 = x_239; +lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; +x_262 = lean_ctor_get(x_240, 1); +lean_inc(x_262); +lean_dec(x_240); +x_263 = lean_ctor_get(x_241, 1); +lean_inc(x_263); +x_264 = lean_ctor_get(x_241, 2); +lean_inc(x_264); +lean_dec(x_241); +x_265 = lean_ctor_get(x_238, 0); +lean_inc(x_265); +if (lean_is_exclusive(x_238)) { + lean_ctor_release(x_238, 0); + x_266 = x_238; } else { - lean_dec_ref(x_239); - x_280 = lean_box(0); + lean_dec_ref(x_238); + x_266 = lean_box(0); } lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -lean_inc(x_277); -x_281 = l_Lean_Elab_Term_StructInst_trySynthStructInstance_x3f(x_279, x_277, x_4, x_5, x_6, x_7, x_8, x_9, x_243); -if (lean_obj_tag(x_281) == 0) +lean_inc(x_263); +x_267 = l_Lean_Elab_Term_StructInst_trySynthStructInstance_x3f(x_265, x_263, x_4, x_5, x_6, x_7, x_8, x_9, x_262); +if (lean_obj_tag(x_267) == 0) { -lean_object* x_282; -x_282 = lean_ctor_get(x_281, 0); -lean_inc(x_282); -if (lean_obj_tag(x_282) == 0) +lean_object* x_268; +x_268 = lean_ctor_get(x_267, 0); +lean_inc(x_268); +if (lean_obj_tag(x_268) == 0) { -lean_object* x_283; lean_object* x_284; lean_object* x_285; +lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_free_object(x_2); -x_283 = lean_ctor_get(x_281, 1); -lean_inc(x_283); -lean_dec(x_281); -x_284 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_284, 0, x_277); +x_269 = lean_ctor_get(x_267, 1); +lean_inc(x_269); +lean_dec(x_267); +x_270 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_270, 0, x_263); 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_284); -x_285 = l___private_Lean_Elab_StructInst_24__elabStruct___main(x_279, x_284, x_4, x_5, x_6, x_7, x_8, x_9, x_283); -if (lean_obj_tag(x_285) == 0) +lean_inc(x_270); +x_271 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct(x_265, x_270, x_4, x_5, x_6, x_7, x_8, x_9, x_269); +if (lean_obj_tag(x_271) == 0) { -lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; -x_286 = lean_ctor_get(x_285, 0); -lean_inc(x_286); -x_287 = lean_ctor_get(x_285, 1); -lean_inc(x_287); -lean_dec(x_285); -x_288 = lean_ctor_get(x_286, 0); -lean_inc(x_288); -x_289 = lean_ctor_get(x_286, 1); -lean_inc(x_289); -if (lean_is_exclusive(x_286)) { - lean_ctor_release(x_286, 0); - lean_ctor_release(x_286, 1); - x_290 = x_286; +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; +x_272 = lean_ctor_get(x_271, 0); +lean_inc(x_272); +x_273 = lean_ctor_get(x_271, 1); +lean_inc(x_273); +lean_dec(x_271); +x_274 = lean_ctor_get(x_272, 0); +lean_inc(x_274); +x_275 = lean_ctor_get(x_272, 1); +lean_inc(x_275); +if (lean_is_exclusive(x_272)) { + lean_ctor_release(x_272, 0); + lean_ctor_release(x_272, 1); + x_276 = x_272; } else { - lean_dec_ref(x_286); - x_290 = lean_box(0); + lean_dec_ref(x_272); + x_276 = lean_box(0); } -x_291 = lean_box(0); +x_277 = lean_box(0); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_292 = l_Lean_Elab_Term_ensureHasType(x_284, x_288, x_291, x_4, x_5, x_6, x_7, x_8, x_9, x_287); -if (lean_obj_tag(x_292) == 0) +x_278 = l_Lean_Elab_Term_ensureHasType(x_270, x_274, x_277, x_4, x_5, x_6, x_7, x_8, x_9, x_273); +if (lean_obj_tag(x_278) == 0) { -lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; -x_293 = lean_ctor_get(x_292, 0); -lean_inc(x_293); -x_294 = lean_ctor_get(x_292, 1); -lean_inc(x_294); -if (lean_is_exclusive(x_292)) { - lean_ctor_release(x_292, 0); - lean_ctor_release(x_292, 1); - x_295 = x_292; +lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; +x_279 = lean_ctor_get(x_278, 0); +lean_inc(x_279); +x_280 = lean_ctor_get(x_278, 1); +lean_inc(x_280); +if (lean_is_exclusive(x_278)) { + lean_ctor_release(x_278, 0); + lean_ctor_release(x_278, 1); + x_281 = x_278; } else { - lean_dec_ref(x_292); + lean_dec_ref(x_278); + x_281 = lean_box(0); +} +if (lean_is_scalar(x_266)) { + x_282 = lean_alloc_ctor(1, 1, 0); +} else { + x_282 = x_266; +} +lean_ctor_set(x_282, 0, x_275); +lean_inc(x_279); +x_283 = l_Lean_mkApp(x_32, x_279); +x_284 = lean_expr_instantiate1(x_264, x_279); +lean_dec(x_264); +x_285 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_285, 0, x_279); +x_286 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_286, 0, x_237); +lean_ctor_set(x_286, 1, x_25); +lean_ctor_set(x_286, 2, x_282); +lean_ctor_set(x_286, 3, x_285); +lean_ctor_set(x_3, 1, x_236); +lean_ctor_set(x_3, 0, x_286); +if (lean_is_scalar(x_276)) { + x_287 = lean_alloc_ctor(0, 2, 0); +} else { + x_287 = x_276; +} +lean_ctor_set(x_287, 0, x_284); +lean_ctor_set(x_287, 1, x_3); +lean_ctor_set(x_24, 1, x_287); +lean_ctor_set(x_24, 0, x_283); +if (lean_is_scalar(x_281)) { + x_288 = lean_alloc_ctor(0, 2, 0); +} else { + x_288 = x_281; +} +lean_ctor_set(x_288, 0, x_24); +lean_ctor_set(x_288, 1, x_280); +x_15 = x_288; +goto block_23; +} +else +{ +lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; +lean_dec(x_276); +lean_dec(x_275); +lean_dec(x_266); +lean_dec(x_264); +lean_dec(x_237); +lean_free_object(x_24); +lean_dec(x_236); +lean_dec(x_32); +lean_dec(x_25); +lean_free_object(x_3); +x_289 = lean_ctor_get(x_278, 0); +lean_inc(x_289); +x_290 = lean_ctor_get(x_278, 1); +lean_inc(x_290); +if (lean_is_exclusive(x_278)) { + lean_ctor_release(x_278, 0); + lean_ctor_release(x_278, 1); + x_291 = x_278; +} else { + lean_dec_ref(x_278); + x_291 = lean_box(0); +} +if (lean_is_scalar(x_291)) { + x_292 = lean_alloc_ctor(1, 2, 0); +} else { + x_292 = x_291; +} +lean_ctor_set(x_292, 0, x_289); +lean_ctor_set(x_292, 1, x_290); +x_15 = x_292; +goto block_23; +} +} +else +{ +lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; +lean_dec(x_270); +lean_dec(x_266); +lean_dec(x_264); +lean_dec(x_237); +lean_free_object(x_24); +lean_dec(x_236); +lean_dec(x_32); +lean_dec(x_25); +lean_free_object(x_3); +x_293 = lean_ctor_get(x_271, 0); +lean_inc(x_293); +x_294 = lean_ctor_get(x_271, 1); +lean_inc(x_294); +if (lean_is_exclusive(x_271)) { + lean_ctor_release(x_271, 0); + lean_ctor_release(x_271, 1); + x_295 = x_271; +} else { + lean_dec_ref(x_271); x_295 = lean_box(0); } -if (lean_is_scalar(x_280)) { - x_296 = lean_alloc_ctor(1, 1, 0); -} else { - x_296 = x_280; -} -lean_ctor_set(x_296, 0, x_289); -lean_inc(x_293); -x_297 = l_Lean_mkApp(x_35, x_293); -x_298 = lean_expr_instantiate1(x_278, x_293); -lean_dec(x_278); -x_299 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_299, 0, x_293); -x_300 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_300, 0, x_238); -lean_ctor_set(x_300, 1, x_30); -lean_ctor_set(x_300, 2, x_296); -lean_ctor_set(x_300, 3, x_299); -lean_ctor_set(x_3, 1, x_237); -lean_ctor_set(x_3, 0, x_300); -if (lean_is_scalar(x_290)) { - x_301 = lean_alloc_ctor(0, 2, 0); -} else { - x_301 = x_290; -} -lean_ctor_set(x_301, 0, x_298); -lean_ctor_set(x_301, 1, x_3); -lean_ctor_set(x_29, 1, x_301); -lean_ctor_set(x_29, 0, x_297); if (lean_is_scalar(x_295)) { - x_302 = lean_alloc_ctor(0, 2, 0); + x_296 = lean_alloc_ctor(1, 2, 0); } else { - x_302 = x_295; + x_296 = x_295; } -lean_ctor_set(x_302, 0, x_29); -lean_ctor_set(x_302, 1, x_294); -x_15 = x_302; +lean_ctor_set(x_296, 0, x_293); +lean_ctor_set(x_296, 1, x_294); +x_15 = x_296; goto block_23; } +} else { -lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; -lean_dec(x_290); -lean_dec(x_289); -lean_dec(x_280); -lean_dec(x_278); -lean_dec(x_238); -lean_free_object(x_29); -lean_dec(x_237); -lean_dec(x_35); -lean_dec(x_30); -lean_free_object(x_3); -x_303 = lean_ctor_get(x_292, 0); -lean_inc(x_303); -x_304 = lean_ctor_get(x_292, 1); -lean_inc(x_304); -if (lean_is_exclusive(x_292)) { - lean_ctor_release(x_292, 0); - lean_ctor_release(x_292, 1); - x_305 = x_292; -} else { - lean_dec_ref(x_292); - x_305 = lean_box(0); -} -if (lean_is_scalar(x_305)) { - x_306 = lean_alloc_ctor(1, 2, 0); -} else { - x_306 = x_305; -} -lean_ctor_set(x_306, 0, x_303); -lean_ctor_set(x_306, 1, x_304); -x_15 = x_306; -goto block_23; -} -} -else -{ -lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; -lean_dec(x_284); -lean_dec(x_280); -lean_dec(x_278); -lean_dec(x_238); -lean_free_object(x_29); -lean_dec(x_237); -lean_dec(x_35); -lean_dec(x_30); -lean_free_object(x_3); -x_307 = lean_ctor_get(x_285, 0); -lean_inc(x_307); -x_308 = lean_ctor_get(x_285, 1); -lean_inc(x_308); -if (lean_is_exclusive(x_285)) { - lean_ctor_release(x_285, 0); - lean_ctor_release(x_285, 1); - x_309 = x_285; -} else { - lean_dec_ref(x_285); - x_309 = lean_box(0); -} -if (lean_is_scalar(x_309)) { - x_310 = lean_alloc_ctor(1, 2, 0); -} else { - x_310 = x_309; -} -lean_ctor_set(x_310, 0, x_307); -lean_ctor_set(x_310, 1, x_308); -x_15 = x_310; -goto block_23; -} -} -else -{ -lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; -lean_dec(x_279); -lean_dec(x_277); -x_311 = lean_ctor_get(x_281, 1); -lean_inc(x_311); -if (lean_is_exclusive(x_281)) { - lean_ctor_release(x_281, 0); - lean_ctor_release(x_281, 1); - x_312 = x_281; -} else { - lean_dec_ref(x_281); - x_312 = lean_box(0); -} -x_313 = lean_ctor_get(x_282, 0); -lean_inc(x_313); -if (lean_is_exclusive(x_282)) { - lean_ctor_release(x_282, 0); - x_314 = x_282; -} else { - lean_dec_ref(x_282); - x_314 = lean_box(0); -} -x_315 = l_Lean_mkHole(x_238); -if (lean_is_scalar(x_280)) { - x_316 = lean_alloc_ctor(0, 1, 0); -} else { - x_316 = x_280; - lean_ctor_set_tag(x_316, 0); -} -lean_ctor_set(x_316, 0, x_315); -lean_inc(x_313); -x_317 = l_Lean_mkApp(x_35, x_313); -x_318 = lean_expr_instantiate1(x_278, x_313); -lean_dec(x_278); -if (lean_is_scalar(x_314)) { - x_319 = lean_alloc_ctor(1, 1, 0); -} else { - x_319 = x_314; -} -lean_ctor_set(x_319, 0, x_313); -x_320 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_320, 0, x_238); -lean_ctor_set(x_320, 1, x_30); -lean_ctor_set(x_320, 2, x_316); -lean_ctor_set(x_320, 3, x_319); -lean_ctor_set(x_3, 1, x_237); -lean_ctor_set(x_3, 0, x_320); -lean_ctor_set(x_29, 1, x_3); -lean_ctor_set(x_29, 0, x_318); -lean_ctor_set(x_2, 0, x_317); -if (lean_is_scalar(x_312)) { - x_321 = lean_alloc_ctor(0, 2, 0); -} else { - x_321 = x_312; -} -lean_ctor_set(x_321, 0, x_2); -lean_ctor_set(x_321, 1, x_311); -x_15 = x_321; -goto block_23; -} -} -else -{ -lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; -lean_dec(x_280); -lean_dec(x_279); -lean_dec(x_278); -lean_dec(x_277); -lean_dec(x_238); -lean_free_object(x_29); +lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; +lean_dec(x_265); +lean_dec(x_263); +x_297 = lean_ctor_get(x_267, 1); +lean_inc(x_297); +if (lean_is_exclusive(x_267)) { + lean_ctor_release(x_267, 0); + lean_ctor_release(x_267, 1); + x_298 = x_267; +} else { + lean_dec_ref(x_267); + x_298 = lean_box(0); +} +x_299 = lean_ctor_get(x_268, 0); +lean_inc(x_299); +if (lean_is_exclusive(x_268)) { + lean_ctor_release(x_268, 0); + x_300 = x_268; +} else { + lean_dec_ref(x_268); + x_300 = lean_box(0); +} +x_301 = l_Lean_mkHole(x_237); +if (lean_is_scalar(x_266)) { + x_302 = lean_alloc_ctor(0, 1, 0); +} else { + x_302 = x_266; + lean_ctor_set_tag(x_302, 0); +} +lean_ctor_set(x_302, 0, x_301); +lean_inc(x_299); +x_303 = l_Lean_mkApp(x_32, x_299); +x_304 = lean_expr_instantiate1(x_264, x_299); +lean_dec(x_264); +if (lean_is_scalar(x_300)) { + x_305 = lean_alloc_ctor(1, 1, 0); +} else { + x_305 = x_300; +} +lean_ctor_set(x_305, 0, x_299); +x_306 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_306, 0, x_237); +lean_ctor_set(x_306, 1, x_25); +lean_ctor_set(x_306, 2, x_302); +lean_ctor_set(x_306, 3, x_305); +lean_ctor_set(x_3, 1, x_236); +lean_ctor_set(x_3, 0, x_306); +lean_ctor_set(x_24, 1, x_3); +lean_ctor_set(x_24, 0, x_304); +lean_ctor_set(x_2, 0, x_303); +if (lean_is_scalar(x_298)) { + x_307 = lean_alloc_ctor(0, 2, 0); +} else { + x_307 = x_298; +} +lean_ctor_set(x_307, 0, x_2); +lean_ctor_set(x_307, 1, x_297); +x_15 = x_307; +goto block_23; +} +} +else +{ +lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; +lean_dec(x_266); +lean_dec(x_265); +lean_dec(x_264); +lean_dec(x_263); lean_dec(x_237); +lean_free_object(x_24); +lean_dec(x_236); lean_free_object(x_2); -lean_dec(x_35); -lean_dec(x_30); +lean_dec(x_32); +lean_dec(x_25); lean_free_object(x_3); -x_322 = lean_ctor_get(x_281, 0); -lean_inc(x_322); -x_323 = lean_ctor_get(x_281, 1); -lean_inc(x_323); -if (lean_is_exclusive(x_281)) { - lean_ctor_release(x_281, 0); - lean_ctor_release(x_281, 1); - x_324 = x_281; +x_308 = lean_ctor_get(x_267, 0); +lean_inc(x_308); +x_309 = lean_ctor_get(x_267, 1); +lean_inc(x_309); +if (lean_is_exclusive(x_267)) { + lean_ctor_release(x_267, 0); + lean_ctor_release(x_267, 1); + x_310 = x_267; } else { - lean_dec_ref(x_281); - x_324 = lean_box(0); + lean_dec_ref(x_267); + x_310 = lean_box(0); } -if (lean_is_scalar(x_324)) { - x_325 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_310)) { + x_311 = lean_alloc_ctor(1, 2, 0); } else { - x_325 = x_324; + x_311 = x_310; } -lean_ctor_set(x_325, 0, x_322); -lean_ctor_set(x_325, 1, x_323); -x_15 = x_325; +lean_ctor_set(x_311, 0, x_308); +lean_ctor_set(x_311, 1, x_309); +x_15 = x_311; goto block_23; } } default: { -lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; uint8_t x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; -x_326 = lean_ctor_get(x_242, 1); -lean_inc(x_326); -x_327 = lean_ctor_get(x_242, 2); -lean_inc(x_327); -lean_dec(x_242); -x_328 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_328, 0, x_326); -x_329 = lean_ctor_get(x_8, 0); -lean_inc(x_329); -x_330 = lean_ctor_get(x_8, 1); -lean_inc(x_330); -x_331 = lean_ctor_get(x_8, 2); -lean_inc(x_331); -x_332 = lean_ctor_get(x_8, 3); -lean_inc(x_332); -x_333 = l_Lean_replaceRef(x_238, x_332); -x_334 = l_Lean_replaceRef(x_333, x_332); -lean_dec(x_333); -x_335 = l_Lean_replaceRef(x_334, x_332); -lean_dec(x_332); -lean_dec(x_334); -x_336 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_336, 0, x_329); -lean_ctor_set(x_336, 1, x_330); -lean_ctor_set(x_336, 2, x_331); -lean_ctor_set(x_336, 3, x_335); -x_337 = 0; -x_338 = lean_box(0); +lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; uint8_t x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; +x_312 = lean_ctor_get(x_240, 1); +lean_inc(x_312); +lean_dec(x_240); +x_313 = lean_ctor_get(x_241, 1); +lean_inc(x_313); +x_314 = lean_ctor_get(x_241, 2); +lean_inc(x_314); +lean_dec(x_241); +x_315 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_315, 0, x_313); +x_316 = lean_ctor_get(x_8, 0); +lean_inc(x_316); +x_317 = lean_ctor_get(x_8, 1); +lean_inc(x_317); +x_318 = lean_ctor_get(x_8, 2); +lean_inc(x_318); +x_319 = lean_ctor_get(x_8, 3); +lean_inc(x_319); +x_320 = l_Lean_replaceRef(x_237, x_319); +x_321 = l_Lean_replaceRef(x_320, x_319); +lean_dec(x_320); +x_322 = l_Lean_replaceRef(x_321, x_319); +lean_dec(x_319); +lean_dec(x_321); +x_323 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_323, 0, x_316); +lean_ctor_set(x_323, 1, x_317); +lean_ctor_set(x_323, 2, x_318); +lean_ctor_set(x_323, 3, x_322); +x_324 = 0; +x_325 = lean_box(0); lean_inc(x_6); -x_339 = l___private_Lean_Meta_Basic_4__mkFreshExprMVarImpl(x_328, x_337, x_338, x_6, x_7, x_336, x_9, x_243); -lean_dec(x_336); -x_340 = lean_ctor_get(x_339, 0); -lean_inc(x_340); -x_341 = lean_ctor_get(x_339, 1); -lean_inc(x_341); -if (lean_is_exclusive(x_339)) { - lean_ctor_release(x_339, 0); - lean_ctor_release(x_339, 1); - x_342 = x_339; +x_326 = l___private_Lean_Meta_Basic_4__mkFreshExprMVarImpl(x_315, x_324, x_325, x_6, x_7, x_323, x_9, x_312); +lean_dec(x_323); +x_327 = lean_ctor_get(x_326, 0); +lean_inc(x_327); +x_328 = lean_ctor_get(x_326, 1); +lean_inc(x_328); +if (lean_is_exclusive(x_326)) { + lean_ctor_release(x_326, 0); + lean_ctor_release(x_326, 1); + x_329 = x_326; } else { - lean_dec_ref(x_339); - x_342 = lean_box(0); + lean_dec_ref(x_326); + x_329 = lean_box(0); } -x_343 = l_Lean_Elab_Term_StructInst_markDefaultMissing(x_340); -lean_inc(x_343); -x_344 = l_Lean_mkApp(x_35, x_343); -x_345 = lean_expr_instantiate1(x_327, x_343); -lean_dec(x_327); -x_346 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_346, 0, x_343); -x_347 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_347, 0, x_238); -lean_ctor_set(x_347, 1, x_30); -lean_ctor_set(x_347, 2, x_239); -lean_ctor_set(x_347, 3, x_346); -lean_ctor_set(x_3, 1, x_237); -lean_ctor_set(x_3, 0, x_347); -lean_ctor_set(x_29, 1, x_3); -lean_ctor_set(x_29, 0, x_345); -lean_ctor_set(x_2, 0, x_344); -if (lean_is_scalar(x_342)) { - x_348 = lean_alloc_ctor(0, 2, 0); +x_330 = l_Lean_Elab_Term_StructInst_markDefaultMissing(x_327); +lean_inc(x_330); +x_331 = l_Lean_mkApp(x_32, x_330); +x_332 = lean_expr_instantiate1(x_314, x_330); +lean_dec(x_314); +x_333 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_333, 0, x_330); +x_334 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_334, 0, x_237); +lean_ctor_set(x_334, 1, x_25); +lean_ctor_set(x_334, 2, x_238); +lean_ctor_set(x_334, 3, x_333); +lean_ctor_set(x_3, 1, x_236); +lean_ctor_set(x_3, 0, x_334); +lean_ctor_set(x_24, 1, x_3); +lean_ctor_set(x_24, 0, x_332); +lean_ctor_set(x_2, 0, x_331); +if (lean_is_scalar(x_329)) { + x_335 = lean_alloc_ctor(0, 2, 0); } else { - x_348 = x_342; + x_335 = x_329; } -lean_ctor_set(x_348, 0, x_2); -lean_ctor_set(x_348, 1, x_341); -x_15 = x_348; +lean_ctor_set(x_335, 0, x_2); +lean_ctor_set(x_335, 1, x_328); +x_15 = x_335; goto block_23; } } } else { -lean_object* x_349; -lean_dec(x_239); -lean_free_object(x_29); -lean_dec(x_237); -lean_free_object(x_2); -lean_dec(x_35); -lean_dec(x_30); -lean_free_object(x_3); -x_349 = lean_box(0); -x_244 = x_349; -goto block_257; -} -block_257: -{ -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_dec(x_244); -x_245 = l_Lean_indentExpr(x_242); -x_246 = l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__3; -x_247 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_247, 0, x_246); -lean_ctor_set(x_247, 1, x_245); -x_248 = lean_ctor_get(x_8, 0); -lean_inc(x_248); -x_249 = lean_ctor_get(x_8, 1); -lean_inc(x_249); -x_250 = lean_ctor_get(x_8, 2); -lean_inc(x_250); -x_251 = lean_ctor_get(x_8, 3); -lean_inc(x_251); -x_252 = l_Lean_replaceRef(x_238, x_251); +lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_dec(x_238); -x_253 = l_Lean_replaceRef(x_252, x_251); -lean_dec(x_252); -x_254 = l_Lean_replaceRef(x_253, x_251); -lean_dec(x_251); -lean_dec(x_253); -x_255 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_255, 0, x_248); -lean_ctor_set(x_255, 1, x_249); -lean_ctor_set(x_255, 2, x_250); -lean_ctor_set(x_255, 3, x_254); +lean_free_object(x_24); +lean_dec(x_236); +lean_free_object(x_2); +lean_dec(x_32); +lean_dec(x_25); +lean_free_object(x_3); +x_336 = lean_ctor_get(x_240, 1); +lean_inc(x_336); +lean_dec(x_240); +x_337 = l_Lean_indentExpr(x_241); +x_338 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1___closed__4; +x_339 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_339, 0, x_338); +lean_ctor_set(x_339, 1, x_337); +x_340 = l_Lean_Elab_Term_elabLetDeclAux___closed__4; +x_341 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_341, 0, x_339); +lean_ctor_set(x_341, 1, x_340); +x_342 = lean_ctor_get(x_8, 0); +lean_inc(x_342); +x_343 = lean_ctor_get(x_8, 1); +lean_inc(x_343); +x_344 = lean_ctor_get(x_8, 2); +lean_inc(x_344); +x_345 = lean_ctor_get(x_8, 3); +lean_inc(x_345); +x_346 = l_Lean_replaceRef(x_237, x_345); +lean_dec(x_237); +x_347 = l_Lean_replaceRef(x_346, x_345); +lean_dec(x_346); +x_348 = l_Lean_replaceRef(x_347, x_345); +lean_dec(x_345); +lean_dec(x_347); +x_349 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_349, 0, x_342); +lean_ctor_set(x_349, 1, x_343); +lean_ctor_set(x_349, 2, x_344); +lean_ctor_set(x_349, 3, x_348); lean_inc(x_4); lean_inc(x_1); -x_256 = l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg(x_240, x_1, x_247, x_4, x_5, x_6, x_7, x_255, x_9, x_243); -lean_dec(x_255); -x_15 = x_256; +x_350 = l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg(x_239, x_1, x_341, x_4, x_5, x_6, x_7, x_349, x_9, x_336); +lean_dec(x_349); +x_15 = x_350; goto block_23; } } else { -lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; -lean_dec(x_240); +lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_dec(x_239); lean_dec(x_238); -lean_free_object(x_29); lean_dec(x_237); +lean_free_object(x_24); +lean_dec(x_236); lean_free_object(x_2); -lean_dec(x_35); -lean_dec(x_30); +lean_dec(x_32); +lean_dec(x_25); lean_free_object(x_3); -x_350 = lean_ctor_get(x_241, 0); -lean_inc(x_350); -x_351 = lean_ctor_get(x_241, 1); +x_351 = lean_ctor_get(x_240, 0); lean_inc(x_351); -if (lean_is_exclusive(x_241)) { - lean_ctor_release(x_241, 0); - lean_ctor_release(x_241, 1); - x_352 = x_241; +x_352 = lean_ctor_get(x_240, 1); +lean_inc(x_352); +if (lean_is_exclusive(x_240)) { + lean_ctor_release(x_240, 0); + lean_ctor_release(x_240, 1); + x_353 = x_240; } else { - lean_dec_ref(x_241); - x_352 = lean_box(0); + lean_dec_ref(x_240); + x_353 = lean_box(0); } -if (lean_is_scalar(x_352)) { - x_353 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_353)) { + x_354 = lean_alloc_ctor(1, 2, 0); } else { - x_353 = x_352; + x_354 = x_353; } -lean_ctor_set(x_353, 0, x_350); -lean_ctor_set(x_353, 1, x_351); -x_15 = x_353; +lean_ctor_set(x_354, 0, x_351); +lean_ctor_set(x_354, 1, x_352); +x_15 = x_354; goto block_23; } } } else { -lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; -x_354 = lean_ctor_get(x_29, 0); -x_355 = lean_ctor_get(x_29, 1); -lean_inc(x_355); -lean_inc(x_354); -lean_dec(x_29); -x_356 = lean_ctor_get(x_13, 0); +lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; +x_355 = lean_ctor_get(x_24, 0); +x_356 = lean_ctor_get(x_24, 1); lean_inc(x_356); -x_357 = lean_ctor_get(x_13, 2); +lean_inc(x_355); +lean_dec(x_24); +x_357 = lean_ctor_get(x_13, 0); lean_inc(x_357); +x_358 = lean_ctor_get(x_13, 2); +lean_inc(x_358); if (lean_is_exclusive(x_13)) { lean_ctor_release(x_13, 0); lean_ctor_release(x_13, 1); lean_ctor_release(x_13, 2); lean_ctor_release(x_13, 3); - x_358 = x_13; + x_359 = x_13; } else { lean_dec_ref(x_13); - x_358 = lean_box(0); + x_359 = lean_box(0); } -x_359 = lean_ctor_get(x_32, 1); -lean_inc(x_359); -lean_dec(x_32); +x_360 = lean_ctor_get(x_29, 1); +lean_inc(x_360); +lean_dec(x_29); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_360 = l_Lean_Meta_whnfForall___at___private_Lean_Elab_Term_18__useImplicitLambda_x3f___spec__1(x_354, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_360) == 0) +x_361 = l_Lean_Meta_whnfForall___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_propagateExpectedType___spec__1(x_355, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_361) == 0) { -lean_object* x_361; lean_object* x_362; lean_object* x_363; -x_361 = lean_ctor_get(x_360, 0); -lean_inc(x_361); -x_362 = lean_ctor_get(x_360, 1); +lean_object* x_362; +x_362 = lean_ctor_get(x_361, 0); lean_inc(x_362); -lean_dec(x_360); -if (lean_obj_tag(x_361) == 7) +if (lean_obj_tag(x_362) == 7) { -lean_dec(x_359); -switch (lean_obj_tag(x_357)) { +lean_dec(x_360); +switch (lean_obj_tag(x_358)) { case 0: { -lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; uint8_t x_382; lean_object* x_383; -x_377 = lean_ctor_get(x_361, 1); -lean_inc(x_377); -x_378 = lean_ctor_get(x_361, 2); -lean_inc(x_378); +lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; uint8_t x_369; lean_object* x_370; +x_363 = lean_ctor_get(x_361, 1); +lean_inc(x_363); lean_dec(x_361); -x_379 = lean_ctor_get(x_357, 0); -lean_inc(x_379); -x_380 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_380, 0, x_377); -x_381 = lean_box(0); -x_382 = 1; +x_364 = lean_ctor_get(x_362, 1); +lean_inc(x_364); +x_365 = lean_ctor_get(x_362, 2); +lean_inc(x_365); +lean_dec(x_362); +x_366 = lean_ctor_get(x_358, 0); +lean_inc(x_366); +x_367 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_367, 0, x_364); +x_368 = lean_box(0); +x_369 = 1; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_383 = l_Lean_Elab_Term_elabTermEnsuringType(x_379, x_380, x_382, x_381, x_4, x_5, x_6, x_7, x_8, x_9, x_362); -if (lean_obj_tag(x_383) == 0) +x_370 = l_Lean_Elab_Term_elabTermEnsuringType(x_366, x_367, x_369, x_368, x_4, x_5, x_6, x_7, x_8, x_9, x_363); +if (lean_obj_tag(x_370) == 0) { -lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; -x_384 = lean_ctor_get(x_383, 0); -lean_inc(x_384); -x_385 = lean_ctor_get(x_383, 1); -lean_inc(x_385); -if (lean_is_exclusive(x_383)) { - lean_ctor_release(x_383, 0); - lean_ctor_release(x_383, 1); - x_386 = x_383; +lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; +x_371 = lean_ctor_get(x_370, 0); +lean_inc(x_371); +x_372 = lean_ctor_get(x_370, 1); +lean_inc(x_372); +if (lean_is_exclusive(x_370)) { + lean_ctor_release(x_370, 0); + lean_ctor_release(x_370, 1); + x_373 = x_370; } else { - lean_dec_ref(x_383); - x_386 = lean_box(0); + lean_dec_ref(x_370); + x_373 = lean_box(0); } -lean_inc(x_384); -x_387 = l_Lean_mkApp(x_35, x_384); -x_388 = lean_expr_instantiate1(x_378, x_384); -lean_dec(x_378); -x_389 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_389, 0, x_384); -if (lean_is_scalar(x_358)) { - x_390 = lean_alloc_ctor(0, 4, 0); +lean_inc(x_371); +x_374 = l_Lean_mkApp(x_32, x_371); +x_375 = lean_expr_instantiate1(x_365, x_371); +lean_dec(x_365); +x_376 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_376, 0, x_371); +if (lean_is_scalar(x_359)) { + x_377 = lean_alloc_ctor(0, 4, 0); } else { - x_390 = x_358; + x_377 = x_359; } -lean_ctor_set(x_390, 0, x_356); -lean_ctor_set(x_390, 1, x_30); -lean_ctor_set(x_390, 2, x_357); -lean_ctor_set(x_390, 3, x_389); -lean_ctor_set(x_3, 1, x_355); -lean_ctor_set(x_3, 0, x_390); -x_391 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_391, 0, x_388); -lean_ctor_set(x_391, 1, x_3); -lean_ctor_set(x_2, 1, x_391); -lean_ctor_set(x_2, 0, x_387); -if (lean_is_scalar(x_386)) { - x_392 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_377, 0, x_357); +lean_ctor_set(x_377, 1, x_25); +lean_ctor_set(x_377, 2, x_358); +lean_ctor_set(x_377, 3, x_376); +lean_ctor_set(x_3, 1, x_356); +lean_ctor_set(x_3, 0, x_377); +x_378 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_378, 0, x_375); +lean_ctor_set(x_378, 1, x_3); +lean_ctor_set(x_2, 1, x_378); +lean_ctor_set(x_2, 0, x_374); +if (lean_is_scalar(x_373)) { + x_379 = lean_alloc_ctor(0, 2, 0); } else { - x_392 = x_386; + x_379 = x_373; } -lean_ctor_set(x_392, 0, x_2); -lean_ctor_set(x_392, 1, x_385); -x_15 = x_392; +lean_ctor_set(x_379, 0, x_2); +lean_ctor_set(x_379, 1, x_372); +x_15 = x_379; goto block_23; } else { -lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; -lean_dec(x_378); +lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; +lean_dec(x_365); +lean_dec(x_359); lean_dec(x_358); lean_dec(x_357); lean_dec(x_356); -lean_dec(x_355); lean_free_object(x_2); -lean_dec(x_35); -lean_dec(x_30); +lean_dec(x_32); +lean_dec(x_25); lean_free_object(x_3); -x_393 = lean_ctor_get(x_383, 0); -lean_inc(x_393); -x_394 = lean_ctor_get(x_383, 1); -lean_inc(x_394); -if (lean_is_exclusive(x_383)) { - lean_ctor_release(x_383, 0); - lean_ctor_release(x_383, 1); - x_395 = x_383; +x_380 = lean_ctor_get(x_370, 0); +lean_inc(x_380); +x_381 = lean_ctor_get(x_370, 1); +lean_inc(x_381); +if (lean_is_exclusive(x_370)) { + lean_ctor_release(x_370, 0); + lean_ctor_release(x_370, 1); + x_382 = x_370; } else { - lean_dec_ref(x_383); - x_395 = lean_box(0); + lean_dec_ref(x_370); + x_382 = lean_box(0); } -if (lean_is_scalar(x_395)) { - x_396 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_382)) { + x_383 = lean_alloc_ctor(1, 2, 0); } else { - x_396 = x_395; + x_383 = x_382; } -lean_ctor_set(x_396, 0, x_393); -lean_ctor_set(x_396, 1, x_394); -x_15 = x_396; +lean_ctor_set(x_383, 0, x_380); +lean_ctor_set(x_383, 1, x_381); +x_15 = x_383; goto block_23; } } case 1: { -lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; -x_397 = lean_ctor_get(x_361, 1); -lean_inc(x_397); -x_398 = lean_ctor_get(x_361, 2); -lean_inc(x_398); +lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; +x_384 = lean_ctor_get(x_361, 1); +lean_inc(x_384); lean_dec(x_361); -x_399 = lean_ctor_get(x_357, 0); -lean_inc(x_399); -if (lean_is_exclusive(x_357)) { - lean_ctor_release(x_357, 0); - x_400 = x_357; +x_385 = lean_ctor_get(x_362, 1); +lean_inc(x_385); +x_386 = lean_ctor_get(x_362, 2); +lean_inc(x_386); +lean_dec(x_362); +x_387 = lean_ctor_get(x_358, 0); +lean_inc(x_387); +if (lean_is_exclusive(x_358)) { + lean_ctor_release(x_358, 0); + x_388 = x_358; } else { - lean_dec_ref(x_357); - x_400 = lean_box(0); + lean_dec_ref(x_358); + x_388 = lean_box(0); } lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -lean_inc(x_397); -x_401 = l_Lean_Elab_Term_StructInst_trySynthStructInstance_x3f(x_399, x_397, x_4, x_5, x_6, x_7, x_8, x_9, x_362); -if (lean_obj_tag(x_401) == 0) +lean_inc(x_385); +x_389 = l_Lean_Elab_Term_StructInst_trySynthStructInstance_x3f(x_387, x_385, x_4, x_5, x_6, x_7, x_8, x_9, x_384); +if (lean_obj_tag(x_389) == 0) { -lean_object* x_402; -x_402 = lean_ctor_get(x_401, 0); -lean_inc(x_402); -if (lean_obj_tag(x_402) == 0) +lean_object* x_390; +x_390 = lean_ctor_get(x_389, 0); +lean_inc(x_390); +if (lean_obj_tag(x_390) == 0) { -lean_object* x_403; lean_object* x_404; lean_object* x_405; +lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_free_object(x_2); -x_403 = lean_ctor_get(x_401, 1); -lean_inc(x_403); -lean_dec(x_401); -x_404 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_404, 0, x_397); +x_391 = lean_ctor_get(x_389, 1); +lean_inc(x_391); +lean_dec(x_389); +x_392 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_392, 0, x_385); 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_404); -x_405 = l___private_Lean_Elab_StructInst_24__elabStruct___main(x_399, x_404, x_4, x_5, x_6, x_7, x_8, x_9, x_403); -if (lean_obj_tag(x_405) == 0) +lean_inc(x_392); +x_393 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct(x_387, x_392, x_4, x_5, x_6, x_7, x_8, x_9, x_391); +if (lean_obj_tag(x_393) == 0) { -lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; -x_406 = lean_ctor_get(x_405, 0); -lean_inc(x_406); -x_407 = lean_ctor_get(x_405, 1); -lean_inc(x_407); -lean_dec(x_405); -x_408 = lean_ctor_get(x_406, 0); -lean_inc(x_408); -x_409 = lean_ctor_get(x_406, 1); -lean_inc(x_409); -if (lean_is_exclusive(x_406)) { - lean_ctor_release(x_406, 0); - lean_ctor_release(x_406, 1); - x_410 = x_406; +lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; +x_394 = lean_ctor_get(x_393, 0); +lean_inc(x_394); +x_395 = lean_ctor_get(x_393, 1); +lean_inc(x_395); +lean_dec(x_393); +x_396 = lean_ctor_get(x_394, 0); +lean_inc(x_396); +x_397 = lean_ctor_get(x_394, 1); +lean_inc(x_397); +if (lean_is_exclusive(x_394)) { + lean_ctor_release(x_394, 0); + lean_ctor_release(x_394, 1); + x_398 = x_394; } else { - lean_dec_ref(x_406); - x_410 = lean_box(0); + lean_dec_ref(x_394); + x_398 = lean_box(0); } -x_411 = lean_box(0); +x_399 = lean_box(0); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_412 = l_Lean_Elab_Term_ensureHasType(x_404, x_408, x_411, x_4, x_5, x_6, x_7, x_8, x_9, x_407); -if (lean_obj_tag(x_412) == 0) +x_400 = l_Lean_Elab_Term_ensureHasType(x_392, x_396, x_399, x_4, x_5, x_6, x_7, x_8, x_9, x_395); +if (lean_obj_tag(x_400) == 0) { -lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; -x_413 = lean_ctor_get(x_412, 0); -lean_inc(x_413); -x_414 = lean_ctor_get(x_412, 1); -lean_inc(x_414); -if (lean_is_exclusive(x_412)) { - lean_ctor_release(x_412, 0); - lean_ctor_release(x_412, 1); - x_415 = x_412; +lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; +x_401 = lean_ctor_get(x_400, 0); +lean_inc(x_401); +x_402 = lean_ctor_get(x_400, 1); +lean_inc(x_402); +if (lean_is_exclusive(x_400)) { + lean_ctor_release(x_400, 0); + lean_ctor_release(x_400, 1); + x_403 = x_400; } else { - lean_dec_ref(x_412); - x_415 = lean_box(0); + lean_dec_ref(x_400); + x_403 = lean_box(0); } -if (lean_is_scalar(x_400)) { - x_416 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_388)) { + x_404 = lean_alloc_ctor(1, 1, 0); } else { - x_416 = x_400; + x_404 = x_388; } -lean_ctor_set(x_416, 0, x_409); -lean_inc(x_413); -x_417 = l_Lean_mkApp(x_35, x_413); -x_418 = lean_expr_instantiate1(x_398, x_413); -lean_dec(x_398); -x_419 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_419, 0, x_413); -if (lean_is_scalar(x_358)) { - x_420 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_404, 0, x_397); +lean_inc(x_401); +x_405 = l_Lean_mkApp(x_32, x_401); +x_406 = lean_expr_instantiate1(x_386, x_401); +lean_dec(x_386); +x_407 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_407, 0, x_401); +if (lean_is_scalar(x_359)) { + x_408 = lean_alloc_ctor(0, 4, 0); } else { - x_420 = x_358; + x_408 = x_359; } -lean_ctor_set(x_420, 0, x_356); -lean_ctor_set(x_420, 1, x_30); -lean_ctor_set(x_420, 2, x_416); -lean_ctor_set(x_420, 3, x_419); -lean_ctor_set(x_3, 1, x_355); -lean_ctor_set(x_3, 0, x_420); -if (lean_is_scalar(x_410)) { - x_421 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_408, 0, x_357); +lean_ctor_set(x_408, 1, x_25); +lean_ctor_set(x_408, 2, x_404); +lean_ctor_set(x_408, 3, x_407); +lean_ctor_set(x_3, 1, x_356); +lean_ctor_set(x_3, 0, x_408); +if (lean_is_scalar(x_398)) { + x_409 = lean_alloc_ctor(0, 2, 0); } else { - x_421 = x_410; + x_409 = x_398; } -lean_ctor_set(x_421, 0, x_418); -lean_ctor_set(x_421, 1, x_3); -x_422 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_422, 0, x_417); -lean_ctor_set(x_422, 1, x_421); -if (lean_is_scalar(x_415)) { - x_423 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_409, 0, x_406); +lean_ctor_set(x_409, 1, x_3); +x_410 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_410, 0, x_405); +lean_ctor_set(x_410, 1, x_409); +if (lean_is_scalar(x_403)) { + x_411 = lean_alloc_ctor(0, 2, 0); } else { - x_423 = x_415; + x_411 = x_403; } -lean_ctor_set(x_423, 0, x_422); -lean_ctor_set(x_423, 1, x_414); -x_15 = x_423; +lean_ctor_set(x_411, 0, x_410); +lean_ctor_set(x_411, 1, x_402); +x_15 = x_411; goto block_23; } else { -lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; -lean_dec(x_410); -lean_dec(x_409); -lean_dec(x_400); +lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_dec(x_398); -lean_dec(x_358); +lean_dec(x_397); +lean_dec(x_388); +lean_dec(x_386); +lean_dec(x_359); +lean_dec(x_357); lean_dec(x_356); -lean_dec(x_355); -lean_dec(x_35); -lean_dec(x_30); +lean_dec(x_32); +lean_dec(x_25); lean_free_object(x_3); -x_424 = lean_ctor_get(x_412, 0); -lean_inc(x_424); -x_425 = lean_ctor_get(x_412, 1); -lean_inc(x_425); -if (lean_is_exclusive(x_412)) { - lean_ctor_release(x_412, 0); - lean_ctor_release(x_412, 1); - x_426 = x_412; +x_412 = lean_ctor_get(x_400, 0); +lean_inc(x_412); +x_413 = lean_ctor_get(x_400, 1); +lean_inc(x_413); +if (lean_is_exclusive(x_400)) { + lean_ctor_release(x_400, 0); + lean_ctor_release(x_400, 1); + x_414 = x_400; } else { - lean_dec_ref(x_412); - x_426 = lean_box(0); + lean_dec_ref(x_400); + x_414 = lean_box(0); } -if (lean_is_scalar(x_426)) { - x_427 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_414)) { + x_415 = lean_alloc_ctor(1, 2, 0); } else { - x_427 = x_426; + x_415 = x_414; } -lean_ctor_set(x_427, 0, x_424); -lean_ctor_set(x_427, 1, x_425); -x_15 = x_427; +lean_ctor_set(x_415, 0, x_412); +lean_ctor_set(x_415, 1, x_413); +x_15 = x_415; goto block_23; } } else { -lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; -lean_dec(x_404); -lean_dec(x_400); -lean_dec(x_398); -lean_dec(x_358); +lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; +lean_dec(x_392); +lean_dec(x_388); +lean_dec(x_386); +lean_dec(x_359); +lean_dec(x_357); lean_dec(x_356); -lean_dec(x_355); -lean_dec(x_35); -lean_dec(x_30); +lean_dec(x_32); +lean_dec(x_25); lean_free_object(x_3); -x_428 = lean_ctor_get(x_405, 0); -lean_inc(x_428); -x_429 = lean_ctor_get(x_405, 1); -lean_inc(x_429); -if (lean_is_exclusive(x_405)) { - lean_ctor_release(x_405, 0); - lean_ctor_release(x_405, 1); - x_430 = x_405; +x_416 = lean_ctor_get(x_393, 0); +lean_inc(x_416); +x_417 = lean_ctor_get(x_393, 1); +lean_inc(x_417); +if (lean_is_exclusive(x_393)) { + lean_ctor_release(x_393, 0); + lean_ctor_release(x_393, 1); + x_418 = x_393; } else { - lean_dec_ref(x_405); - x_430 = lean_box(0); + lean_dec_ref(x_393); + x_418 = lean_box(0); } -if (lean_is_scalar(x_430)) { - x_431 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_418)) { + x_419 = lean_alloc_ctor(1, 2, 0); } else { - x_431 = x_430; + x_419 = x_418; } -lean_ctor_set(x_431, 0, x_428); -lean_ctor_set(x_431, 1, x_429); +lean_ctor_set(x_419, 0, x_416); +lean_ctor_set(x_419, 1, x_417); +x_15 = x_419; +goto block_23; +} +} +else +{ +lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; +lean_dec(x_387); +lean_dec(x_385); +x_420 = lean_ctor_get(x_389, 1); +lean_inc(x_420); +if (lean_is_exclusive(x_389)) { + lean_ctor_release(x_389, 0); + lean_ctor_release(x_389, 1); + x_421 = x_389; +} else { + lean_dec_ref(x_389); + x_421 = lean_box(0); +} +x_422 = lean_ctor_get(x_390, 0); +lean_inc(x_422); +if (lean_is_exclusive(x_390)) { + lean_ctor_release(x_390, 0); + x_423 = x_390; +} else { + lean_dec_ref(x_390); + x_423 = lean_box(0); +} +x_424 = l_Lean_mkHole(x_357); +if (lean_is_scalar(x_388)) { + x_425 = lean_alloc_ctor(0, 1, 0); +} else { + x_425 = x_388; + lean_ctor_set_tag(x_425, 0); +} +lean_ctor_set(x_425, 0, x_424); +lean_inc(x_422); +x_426 = l_Lean_mkApp(x_32, x_422); +x_427 = lean_expr_instantiate1(x_386, x_422); +lean_dec(x_386); +if (lean_is_scalar(x_423)) { + x_428 = lean_alloc_ctor(1, 1, 0); +} else { + x_428 = x_423; +} +lean_ctor_set(x_428, 0, x_422); +if (lean_is_scalar(x_359)) { + x_429 = lean_alloc_ctor(0, 4, 0); +} else { + x_429 = x_359; +} +lean_ctor_set(x_429, 0, x_357); +lean_ctor_set(x_429, 1, x_25); +lean_ctor_set(x_429, 2, x_425); +lean_ctor_set(x_429, 3, x_428); +lean_ctor_set(x_3, 1, x_356); +lean_ctor_set(x_3, 0, x_429); +x_430 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_430, 0, x_427); +lean_ctor_set(x_430, 1, x_3); +lean_ctor_set(x_2, 1, x_430); +lean_ctor_set(x_2, 0, x_426); +if (lean_is_scalar(x_421)) { + x_431 = lean_alloc_ctor(0, 2, 0); +} else { + x_431 = x_421; +} +lean_ctor_set(x_431, 0, x_2); +lean_ctor_set(x_431, 1, x_420); x_15 = x_431; goto block_23; } } else { -lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; -lean_dec(x_399); -lean_dec(x_397); -x_432 = lean_ctor_get(x_401, 1); -lean_inc(x_432); -if (lean_is_exclusive(x_401)) { - lean_ctor_release(x_401, 0); - lean_ctor_release(x_401, 1); - x_433 = x_401; -} else { - lean_dec_ref(x_401); - x_433 = lean_box(0); -} -x_434 = lean_ctor_get(x_402, 0); -lean_inc(x_434); -if (lean_is_exclusive(x_402)) { - lean_ctor_release(x_402, 0); - x_435 = x_402; -} else { - lean_dec_ref(x_402); - x_435 = lean_box(0); -} -x_436 = l_Lean_mkHole(x_356); -if (lean_is_scalar(x_400)) { - x_437 = lean_alloc_ctor(0, 1, 0); -} else { - x_437 = x_400; - lean_ctor_set_tag(x_437, 0); -} -lean_ctor_set(x_437, 0, x_436); -lean_inc(x_434); -x_438 = l_Lean_mkApp(x_35, x_434); -x_439 = lean_expr_instantiate1(x_398, x_434); -lean_dec(x_398); -if (lean_is_scalar(x_435)) { - x_440 = lean_alloc_ctor(1, 1, 0); -} else { - x_440 = x_435; -} -lean_ctor_set(x_440, 0, x_434); -if (lean_is_scalar(x_358)) { - x_441 = lean_alloc_ctor(0, 4, 0); -} else { - x_441 = x_358; -} -lean_ctor_set(x_441, 0, x_356); -lean_ctor_set(x_441, 1, x_30); -lean_ctor_set(x_441, 2, x_437); -lean_ctor_set(x_441, 3, x_440); -lean_ctor_set(x_3, 1, x_355); -lean_ctor_set(x_3, 0, x_441); -x_442 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_442, 0, x_439); -lean_ctor_set(x_442, 1, x_3); -lean_ctor_set(x_2, 1, x_442); -lean_ctor_set(x_2, 0, x_438); -if (lean_is_scalar(x_433)) { - x_443 = lean_alloc_ctor(0, 2, 0); -} else { - x_443 = x_433; -} -lean_ctor_set(x_443, 0, x_2); -lean_ctor_set(x_443, 1, x_432); -x_15 = x_443; -goto block_23; -} -} -else -{ -lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; -lean_dec(x_400); -lean_dec(x_399); -lean_dec(x_398); -lean_dec(x_397); -lean_dec(x_358); +lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; +lean_dec(x_388); +lean_dec(x_387); +lean_dec(x_386); +lean_dec(x_385); +lean_dec(x_359); +lean_dec(x_357); lean_dec(x_356); -lean_dec(x_355); lean_free_object(x_2); -lean_dec(x_35); -lean_dec(x_30); +lean_dec(x_32); +lean_dec(x_25); lean_free_object(x_3); -x_444 = lean_ctor_get(x_401, 0); -lean_inc(x_444); -x_445 = lean_ctor_get(x_401, 1); -lean_inc(x_445); -if (lean_is_exclusive(x_401)) { - lean_ctor_release(x_401, 0); - lean_ctor_release(x_401, 1); - x_446 = x_401; +x_432 = lean_ctor_get(x_389, 0); +lean_inc(x_432); +x_433 = lean_ctor_get(x_389, 1); +lean_inc(x_433); +if (lean_is_exclusive(x_389)) { + lean_ctor_release(x_389, 0); + lean_ctor_release(x_389, 1); + x_434 = x_389; } else { - lean_dec_ref(x_401); - x_446 = lean_box(0); + lean_dec_ref(x_389); + x_434 = lean_box(0); } -if (lean_is_scalar(x_446)) { - x_447 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_434)) { + x_435 = lean_alloc_ctor(1, 2, 0); } else { - x_447 = x_446; + x_435 = x_434; } -lean_ctor_set(x_447, 0, x_444); -lean_ctor_set(x_447, 1, x_445); -x_15 = x_447; +lean_ctor_set(x_435, 0, x_432); +lean_ctor_set(x_435, 1, x_433); +x_15 = x_435; goto block_23; } } default: { -lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; uint8_t x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; -x_448 = lean_ctor_get(x_361, 1); -lean_inc(x_448); -x_449 = lean_ctor_get(x_361, 2); -lean_inc(x_449); +lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; uint8_t x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; +x_436 = lean_ctor_get(x_361, 1); +lean_inc(x_436); lean_dec(x_361); -x_450 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_450, 0, x_448); -x_451 = lean_ctor_get(x_8, 0); -lean_inc(x_451); -x_452 = lean_ctor_get(x_8, 1); -lean_inc(x_452); -x_453 = lean_ctor_get(x_8, 2); -lean_inc(x_453); -x_454 = lean_ctor_get(x_8, 3); -lean_inc(x_454); -x_455 = l_Lean_replaceRef(x_356, x_454); -x_456 = l_Lean_replaceRef(x_455, x_454); -lean_dec(x_455); -x_457 = l_Lean_replaceRef(x_456, x_454); -lean_dec(x_454); -lean_dec(x_456); -x_458 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_458, 0, x_451); -lean_ctor_set(x_458, 1, x_452); -lean_ctor_set(x_458, 2, x_453); -lean_ctor_set(x_458, 3, x_457); -x_459 = 0; -x_460 = lean_box(0); +x_437 = lean_ctor_get(x_362, 1); +lean_inc(x_437); +x_438 = lean_ctor_get(x_362, 2); +lean_inc(x_438); +lean_dec(x_362); +x_439 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_439, 0, x_437); +x_440 = lean_ctor_get(x_8, 0); +lean_inc(x_440); +x_441 = lean_ctor_get(x_8, 1); +lean_inc(x_441); +x_442 = lean_ctor_get(x_8, 2); +lean_inc(x_442); +x_443 = lean_ctor_get(x_8, 3); +lean_inc(x_443); +x_444 = l_Lean_replaceRef(x_357, x_443); +x_445 = l_Lean_replaceRef(x_444, x_443); +lean_dec(x_444); +x_446 = l_Lean_replaceRef(x_445, x_443); +lean_dec(x_443); +lean_dec(x_445); +x_447 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_447, 0, x_440); +lean_ctor_set(x_447, 1, x_441); +lean_ctor_set(x_447, 2, x_442); +lean_ctor_set(x_447, 3, x_446); +x_448 = 0; +x_449 = lean_box(0); lean_inc(x_6); -x_461 = l___private_Lean_Meta_Basic_4__mkFreshExprMVarImpl(x_450, x_459, x_460, x_6, x_7, x_458, x_9, x_362); -lean_dec(x_458); -x_462 = lean_ctor_get(x_461, 0); -lean_inc(x_462); -x_463 = lean_ctor_get(x_461, 1); -lean_inc(x_463); -if (lean_is_exclusive(x_461)) { - lean_ctor_release(x_461, 0); - lean_ctor_release(x_461, 1); - x_464 = x_461; +x_450 = l___private_Lean_Meta_Basic_4__mkFreshExprMVarImpl(x_439, x_448, x_449, x_6, x_7, x_447, x_9, x_436); +lean_dec(x_447); +x_451 = lean_ctor_get(x_450, 0); +lean_inc(x_451); +x_452 = lean_ctor_get(x_450, 1); +lean_inc(x_452); +if (lean_is_exclusive(x_450)) { + lean_ctor_release(x_450, 0); + lean_ctor_release(x_450, 1); + x_453 = x_450; } else { - lean_dec_ref(x_461); - x_464 = lean_box(0); + lean_dec_ref(x_450); + x_453 = lean_box(0); } -x_465 = l_Lean_Elab_Term_StructInst_markDefaultMissing(x_462); -lean_inc(x_465); -x_466 = l_Lean_mkApp(x_35, x_465); -x_467 = lean_expr_instantiate1(x_449, x_465); -lean_dec(x_449); -x_468 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_468, 0, x_465); -if (lean_is_scalar(x_358)) { - x_469 = lean_alloc_ctor(0, 4, 0); +x_454 = l_Lean_Elab_Term_StructInst_markDefaultMissing(x_451); +lean_inc(x_454); +x_455 = l_Lean_mkApp(x_32, x_454); +x_456 = lean_expr_instantiate1(x_438, x_454); +lean_dec(x_438); +x_457 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_457, 0, x_454); +if (lean_is_scalar(x_359)) { + x_458 = lean_alloc_ctor(0, 4, 0); } else { - x_469 = x_358; + x_458 = x_359; } -lean_ctor_set(x_469, 0, x_356); -lean_ctor_set(x_469, 1, x_30); -lean_ctor_set(x_469, 2, x_357); -lean_ctor_set(x_469, 3, x_468); -lean_ctor_set(x_3, 1, x_355); -lean_ctor_set(x_3, 0, x_469); -x_470 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_470, 0, x_467); -lean_ctor_set(x_470, 1, x_3); -lean_ctor_set(x_2, 1, x_470); -lean_ctor_set(x_2, 0, x_466); -if (lean_is_scalar(x_464)) { - x_471 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_458, 0, x_357); +lean_ctor_set(x_458, 1, x_25); +lean_ctor_set(x_458, 2, x_358); +lean_ctor_set(x_458, 3, x_457); +lean_ctor_set(x_3, 1, x_356); +lean_ctor_set(x_3, 0, x_458); +x_459 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_459, 0, x_456); +lean_ctor_set(x_459, 1, x_3); +lean_ctor_set(x_2, 1, x_459); +lean_ctor_set(x_2, 0, x_455); +if (lean_is_scalar(x_453)) { + x_460 = lean_alloc_ctor(0, 2, 0); } else { - x_471 = x_464; + x_460 = x_453; } -lean_ctor_set(x_471, 0, x_2); -lean_ctor_set(x_471, 1, x_463); -x_15 = x_471; +lean_ctor_set(x_460, 0, x_2); +lean_ctor_set(x_460, 1, x_452); +x_15 = x_460; goto block_23; } } } else { -lean_object* x_472; +lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; +lean_dec(x_359); lean_dec(x_358); -lean_dec(x_357); -lean_dec(x_355); -lean_free_object(x_2); -lean_dec(x_35); -lean_dec(x_30); -lean_free_object(x_3); -x_472 = lean_box(0); -x_363 = x_472; -goto block_376; -} -block_376: -{ -lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; -lean_dec(x_363); -x_364 = l_Lean_indentExpr(x_361); -x_365 = l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__3; -x_366 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_366, 0, x_365); -lean_ctor_set(x_366, 1, x_364); -x_367 = lean_ctor_get(x_8, 0); -lean_inc(x_367); -x_368 = lean_ctor_get(x_8, 1); -lean_inc(x_368); -x_369 = lean_ctor_get(x_8, 2); -lean_inc(x_369); -x_370 = lean_ctor_get(x_8, 3); -lean_inc(x_370); -x_371 = l_Lean_replaceRef(x_356, x_370); lean_dec(x_356); -x_372 = l_Lean_replaceRef(x_371, x_370); -lean_dec(x_371); -x_373 = l_Lean_replaceRef(x_372, x_370); -lean_dec(x_370); -lean_dec(x_372); -x_374 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_374, 0, x_367); -lean_ctor_set(x_374, 1, x_368); -lean_ctor_set(x_374, 2, x_369); -lean_ctor_set(x_374, 3, x_373); +lean_free_object(x_2); +lean_dec(x_32); +lean_dec(x_25); +lean_free_object(x_3); +x_461 = lean_ctor_get(x_361, 1); +lean_inc(x_461); +lean_dec(x_361); +x_462 = l_Lean_indentExpr(x_362); +x_463 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1___closed__4; +x_464 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_464, 0, x_463); +lean_ctor_set(x_464, 1, x_462); +x_465 = l_Lean_Elab_Term_elabLetDeclAux___closed__4; +x_466 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_466, 0, x_464); +lean_ctor_set(x_466, 1, x_465); +x_467 = lean_ctor_get(x_8, 0); +lean_inc(x_467); +x_468 = lean_ctor_get(x_8, 1); +lean_inc(x_468); +x_469 = lean_ctor_get(x_8, 2); +lean_inc(x_469); +x_470 = lean_ctor_get(x_8, 3); +lean_inc(x_470); +x_471 = l_Lean_replaceRef(x_357, x_470); +lean_dec(x_357); +x_472 = l_Lean_replaceRef(x_471, x_470); +lean_dec(x_471); +x_473 = l_Lean_replaceRef(x_472, x_470); +lean_dec(x_470); +lean_dec(x_472); +x_474 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_474, 0, x_467); +lean_ctor_set(x_474, 1, x_468); +lean_ctor_set(x_474, 2, x_469); +lean_ctor_set(x_474, 3, x_473); lean_inc(x_4); lean_inc(x_1); -x_375 = l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg(x_359, x_1, x_366, x_4, x_5, x_6, x_7, x_374, x_9, x_362); -lean_dec(x_374); -x_15 = x_375; +x_475 = l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg(x_360, x_1, x_466, x_4, x_5, x_6, x_7, x_474, x_9, x_461); +lean_dec(x_474); +x_15 = x_475; goto block_23; } } else { -lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; +lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; +lean_dec(x_360); lean_dec(x_359); lean_dec(x_358); lean_dec(x_357); lean_dec(x_356); -lean_dec(x_355); lean_free_object(x_2); -lean_dec(x_35); -lean_dec(x_30); +lean_dec(x_32); +lean_dec(x_25); lean_free_object(x_3); -x_473 = lean_ctor_get(x_360, 0); -lean_inc(x_473); -x_474 = lean_ctor_get(x_360, 1); -lean_inc(x_474); -if (lean_is_exclusive(x_360)) { - lean_ctor_release(x_360, 0); - lean_ctor_release(x_360, 1); - x_475 = x_360; +x_476 = lean_ctor_get(x_361, 0); +lean_inc(x_476); +x_477 = lean_ctor_get(x_361, 1); +lean_inc(x_477); +if (lean_is_exclusive(x_361)) { + lean_ctor_release(x_361, 0); + lean_ctor_release(x_361, 1); + x_478 = x_361; } else { - lean_dec_ref(x_360); - x_475 = lean_box(0); + lean_dec_ref(x_361); + x_478 = lean_box(0); } -if (lean_is_scalar(x_475)) { - x_476 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_478)) { + x_479 = lean_alloc_ctor(1, 2, 0); } else { - x_476 = x_475; + x_479 = x_478; } -lean_ctor_set(x_476, 0, x_473); -lean_ctor_set(x_476, 1, x_474); -x_15 = x_476; +lean_ctor_set(x_479, 0, x_476); +lean_ctor_set(x_479, 1, x_477); +x_15 = x_479; goto block_23; } } } else { -lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; -x_477 = lean_ctor_get(x_2, 0); -lean_inc(x_477); +lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; +x_480 = lean_ctor_get(x_2, 0); +lean_inc(x_480); lean_dec(x_2); -x_478 = lean_ctor_get(x_29, 0); -lean_inc(x_478); -x_479 = lean_ctor_get(x_29, 1); -lean_inc(x_479); -if (lean_is_exclusive(x_29)) { - lean_ctor_release(x_29, 0); - lean_ctor_release(x_29, 1); - x_480 = x_29; -} else { - lean_dec_ref(x_29); - x_480 = lean_box(0); -} -x_481 = lean_ctor_get(x_13, 0); +x_481 = lean_ctor_get(x_24, 0); lean_inc(x_481); -x_482 = lean_ctor_get(x_13, 2); +x_482 = lean_ctor_get(x_24, 1); lean_inc(x_482); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + x_483 = x_24; +} else { + lean_dec_ref(x_24); + x_483 = lean_box(0); +} +x_484 = lean_ctor_get(x_13, 0); +lean_inc(x_484); +x_485 = lean_ctor_get(x_13, 2); +lean_inc(x_485); if (lean_is_exclusive(x_13)) { lean_ctor_release(x_13, 0); lean_ctor_release(x_13, 1); lean_ctor_release(x_13, 2); lean_ctor_release(x_13, 3); - x_483 = x_13; + x_486 = x_13; } else { lean_dec_ref(x_13); - x_483 = lean_box(0); + x_486 = lean_box(0); } -x_484 = lean_ctor_get(x_32, 1); -lean_inc(x_484); -lean_dec(x_32); +x_487 = lean_ctor_get(x_29, 1); +lean_inc(x_487); +lean_dec(x_29); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_485 = l_Lean_Meta_whnfForall___at___private_Lean_Elab_Term_18__useImplicitLambda_x3f___spec__1(x_478, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_485) == 0) +x_488 = l_Lean_Meta_whnfForall___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_propagateExpectedType___spec__1(x_481, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_488) == 0) { -lean_object* x_486; lean_object* x_487; lean_object* x_488; -x_486 = lean_ctor_get(x_485, 0); -lean_inc(x_486); -x_487 = lean_ctor_get(x_485, 1); -lean_inc(x_487); -lean_dec(x_485); -if (lean_obj_tag(x_486) == 7) +lean_object* x_489; +x_489 = lean_ctor_get(x_488, 0); +lean_inc(x_489); +if (lean_obj_tag(x_489) == 7) { -lean_dec(x_484); -switch (lean_obj_tag(x_482)) { +lean_dec(x_487); +switch (lean_obj_tag(x_485)) { case 0: { -lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; uint8_t x_507; lean_object* x_508; -x_502 = lean_ctor_get(x_486, 1); -lean_inc(x_502); -x_503 = lean_ctor_get(x_486, 2); -lean_inc(x_503); -lean_dec(x_486); -x_504 = lean_ctor_get(x_482, 0); -lean_inc(x_504); -x_505 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_505, 0, x_502); -x_506 = lean_box(0); -x_507 = 1; +lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; uint8_t x_496; lean_object* x_497; +x_490 = lean_ctor_get(x_488, 1); +lean_inc(x_490); +lean_dec(x_488); +x_491 = lean_ctor_get(x_489, 1); +lean_inc(x_491); +x_492 = lean_ctor_get(x_489, 2); +lean_inc(x_492); +lean_dec(x_489); +x_493 = lean_ctor_get(x_485, 0); +lean_inc(x_493); +x_494 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_494, 0, x_491); +x_495 = lean_box(0); +x_496 = 1; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_508 = l_Lean_Elab_Term_elabTermEnsuringType(x_504, x_505, x_507, x_506, x_4, x_5, x_6, x_7, x_8, x_9, x_487); -if (lean_obj_tag(x_508) == 0) +x_497 = l_Lean_Elab_Term_elabTermEnsuringType(x_493, x_494, x_496, x_495, x_4, x_5, x_6, x_7, x_8, x_9, x_490); +if (lean_obj_tag(x_497) == 0) { -lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; -x_509 = lean_ctor_get(x_508, 0); -lean_inc(x_509); -x_510 = lean_ctor_get(x_508, 1); -lean_inc(x_510); -if (lean_is_exclusive(x_508)) { - lean_ctor_release(x_508, 0); - lean_ctor_release(x_508, 1); - x_511 = x_508; +lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; +x_498 = lean_ctor_get(x_497, 0); +lean_inc(x_498); +x_499 = lean_ctor_get(x_497, 1); +lean_inc(x_499); +if (lean_is_exclusive(x_497)) { + lean_ctor_release(x_497, 0); + lean_ctor_release(x_497, 1); + x_500 = x_497; } else { - lean_dec_ref(x_508); - x_511 = lean_box(0); + lean_dec_ref(x_497); + x_500 = lean_box(0); } -lean_inc(x_509); -x_512 = l_Lean_mkApp(x_477, x_509); -x_513 = lean_expr_instantiate1(x_503, x_509); -lean_dec(x_503); -x_514 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_514, 0, x_509); +lean_inc(x_498); +x_501 = l_Lean_mkApp(x_480, x_498); +x_502 = lean_expr_instantiate1(x_492, x_498); +lean_dec(x_492); +x_503 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_503, 0, x_498); +if (lean_is_scalar(x_486)) { + x_504 = lean_alloc_ctor(0, 4, 0); +} else { + x_504 = x_486; +} +lean_ctor_set(x_504, 0, x_484); +lean_ctor_set(x_504, 1, x_25); +lean_ctor_set(x_504, 2, x_485); +lean_ctor_set(x_504, 3, x_503); +lean_ctor_set(x_3, 1, x_482); +lean_ctor_set(x_3, 0, x_504); if (lean_is_scalar(x_483)) { - x_515 = lean_alloc_ctor(0, 4, 0); + x_505 = lean_alloc_ctor(0, 2, 0); } else { - x_515 = x_483; + x_505 = x_483; } -lean_ctor_set(x_515, 0, x_481); -lean_ctor_set(x_515, 1, x_30); -lean_ctor_set(x_515, 2, x_482); -lean_ctor_set(x_515, 3, x_514); -lean_ctor_set(x_3, 1, x_479); -lean_ctor_set(x_3, 0, x_515); -if (lean_is_scalar(x_480)) { - x_516 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_505, 0, x_502); +lean_ctor_set(x_505, 1, x_3); +x_506 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_506, 0, x_501); +lean_ctor_set(x_506, 1, x_505); +if (lean_is_scalar(x_500)) { + x_507 = lean_alloc_ctor(0, 2, 0); } else { - x_516 = x_480; + x_507 = x_500; } -lean_ctor_set(x_516, 0, x_513); -lean_ctor_set(x_516, 1, x_3); -x_517 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_517, 0, x_512); -lean_ctor_set(x_517, 1, x_516); -if (lean_is_scalar(x_511)) { - x_518 = lean_alloc_ctor(0, 2, 0); -} else { - x_518 = x_511; -} -lean_ctor_set(x_518, 0, x_517); -lean_ctor_set(x_518, 1, x_510); -x_15 = x_518; +lean_ctor_set(x_507, 0, x_506); +lean_ctor_set(x_507, 1, x_499); +x_15 = x_507; goto block_23; } else { -lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; -lean_dec(x_503); +lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; +lean_dec(x_492); +lean_dec(x_486); +lean_dec(x_485); +lean_dec(x_484); lean_dec(x_483); lean_dec(x_482); -lean_dec(x_481); lean_dec(x_480); -lean_dec(x_479); -lean_dec(x_477); -lean_dec(x_30); +lean_dec(x_25); lean_free_object(x_3); -x_519 = lean_ctor_get(x_508, 0); -lean_inc(x_519); -x_520 = lean_ctor_get(x_508, 1); -lean_inc(x_520); -if (lean_is_exclusive(x_508)) { - lean_ctor_release(x_508, 0); - lean_ctor_release(x_508, 1); - x_521 = x_508; +x_508 = lean_ctor_get(x_497, 0); +lean_inc(x_508); +x_509 = lean_ctor_get(x_497, 1); +lean_inc(x_509); +if (lean_is_exclusive(x_497)) { + lean_ctor_release(x_497, 0); + lean_ctor_release(x_497, 1); + x_510 = x_497; } else { - lean_dec_ref(x_508); - x_521 = lean_box(0); + lean_dec_ref(x_497); + x_510 = lean_box(0); } -if (lean_is_scalar(x_521)) { - x_522 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_510)) { + x_511 = lean_alloc_ctor(1, 2, 0); } else { - x_522 = x_521; + x_511 = x_510; } -lean_ctor_set(x_522, 0, x_519); -lean_ctor_set(x_522, 1, x_520); -x_15 = x_522; +lean_ctor_set(x_511, 0, x_508); +lean_ctor_set(x_511, 1, x_509); +x_15 = x_511; goto block_23; } } case 1: { -lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; -x_523 = lean_ctor_get(x_486, 1); -lean_inc(x_523); -x_524 = lean_ctor_get(x_486, 2); -lean_inc(x_524); -lean_dec(x_486); -x_525 = lean_ctor_get(x_482, 0); -lean_inc(x_525); -if (lean_is_exclusive(x_482)) { - lean_ctor_release(x_482, 0); - x_526 = x_482; +lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; +x_512 = lean_ctor_get(x_488, 1); +lean_inc(x_512); +lean_dec(x_488); +x_513 = lean_ctor_get(x_489, 1); +lean_inc(x_513); +x_514 = lean_ctor_get(x_489, 2); +lean_inc(x_514); +lean_dec(x_489); +x_515 = lean_ctor_get(x_485, 0); +lean_inc(x_515); +if (lean_is_exclusive(x_485)) { + lean_ctor_release(x_485, 0); + x_516 = x_485; } else { - lean_dec_ref(x_482); - x_526 = lean_box(0); + lean_dec_ref(x_485); + x_516 = lean_box(0); } lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -lean_inc(x_523); -x_527 = l_Lean_Elab_Term_StructInst_trySynthStructInstance_x3f(x_525, x_523, x_4, x_5, x_6, x_7, x_8, x_9, x_487); -if (lean_obj_tag(x_527) == 0) +lean_inc(x_513); +x_517 = l_Lean_Elab_Term_StructInst_trySynthStructInstance_x3f(x_515, x_513, x_4, x_5, x_6, x_7, x_8, x_9, x_512); +if (lean_obj_tag(x_517) == 0) { -lean_object* x_528; -x_528 = lean_ctor_get(x_527, 0); -lean_inc(x_528); -if (lean_obj_tag(x_528) == 0) +lean_object* x_518; +x_518 = lean_ctor_get(x_517, 0); +lean_inc(x_518); +if (lean_obj_tag(x_518) == 0) { -lean_object* x_529; lean_object* x_530; lean_object* x_531; -x_529 = lean_ctor_get(x_527, 1); -lean_inc(x_529); -lean_dec(x_527); -x_530 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_530, 0, x_523); +lean_object* x_519; lean_object* x_520; lean_object* x_521; +x_519 = lean_ctor_get(x_517, 1); +lean_inc(x_519); +lean_dec(x_517); +x_520 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_520, 0, x_513); 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_530); -x_531 = l___private_Lean_Elab_StructInst_24__elabStruct___main(x_525, x_530, x_4, x_5, x_6, x_7, x_8, x_9, x_529); -if (lean_obj_tag(x_531) == 0) +lean_inc(x_520); +x_521 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct(x_515, x_520, x_4, x_5, x_6, x_7, x_8, x_9, x_519); +if (lean_obj_tag(x_521) == 0) { -lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; -x_532 = lean_ctor_get(x_531, 0); -lean_inc(x_532); -x_533 = lean_ctor_get(x_531, 1); -lean_inc(x_533); -lean_dec(x_531); -x_534 = lean_ctor_get(x_532, 0); -lean_inc(x_534); -x_535 = lean_ctor_get(x_532, 1); -lean_inc(x_535); -if (lean_is_exclusive(x_532)) { - lean_ctor_release(x_532, 0); - lean_ctor_release(x_532, 1); - x_536 = x_532; +lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; +x_522 = lean_ctor_get(x_521, 0); +lean_inc(x_522); +x_523 = lean_ctor_get(x_521, 1); +lean_inc(x_523); +lean_dec(x_521); +x_524 = lean_ctor_get(x_522, 0); +lean_inc(x_524); +x_525 = lean_ctor_get(x_522, 1); +lean_inc(x_525); +if (lean_is_exclusive(x_522)) { + lean_ctor_release(x_522, 0); + lean_ctor_release(x_522, 1); + x_526 = x_522; } else { - lean_dec_ref(x_532); - x_536 = lean_box(0); + lean_dec_ref(x_522); + x_526 = lean_box(0); } -x_537 = lean_box(0); +x_527 = lean_box(0); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_538 = l_Lean_Elab_Term_ensureHasType(x_530, x_534, x_537, x_4, x_5, x_6, x_7, x_8, x_9, x_533); -if (lean_obj_tag(x_538) == 0) +x_528 = l_Lean_Elab_Term_ensureHasType(x_520, x_524, x_527, x_4, x_5, x_6, x_7, x_8, x_9, x_523); +if (lean_obj_tag(x_528) == 0) { -lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; -x_539 = lean_ctor_get(x_538, 0); -lean_inc(x_539); -x_540 = lean_ctor_get(x_538, 1); -lean_inc(x_540); -if (lean_is_exclusive(x_538)) { - lean_ctor_release(x_538, 0); - lean_ctor_release(x_538, 1); - x_541 = x_538; -} else { - lean_dec_ref(x_538); - x_541 = lean_box(0); -} -if (lean_is_scalar(x_526)) { - x_542 = lean_alloc_ctor(1, 1, 0); -} else { - x_542 = x_526; -} -lean_ctor_set(x_542, 0, x_535); -lean_inc(x_539); -x_543 = l_Lean_mkApp(x_477, x_539); -x_544 = lean_expr_instantiate1(x_524, x_539); -lean_dec(x_524); -x_545 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_545, 0, x_539); -if (lean_is_scalar(x_483)) { - x_546 = lean_alloc_ctor(0, 4, 0); -} else { - x_546 = x_483; -} -lean_ctor_set(x_546, 0, x_481); -lean_ctor_set(x_546, 1, x_30); -lean_ctor_set(x_546, 2, x_542); -lean_ctor_set(x_546, 3, x_545); -lean_ctor_set(x_3, 1, x_479); -lean_ctor_set(x_3, 0, x_546); -if (lean_is_scalar(x_536)) { - x_547 = lean_alloc_ctor(0, 2, 0); -} else { - x_547 = x_536; -} -lean_ctor_set(x_547, 0, x_544); -lean_ctor_set(x_547, 1, x_3); -if (lean_is_scalar(x_480)) { - x_548 = lean_alloc_ctor(0, 2, 0); -} else { - x_548 = x_480; -} -lean_ctor_set(x_548, 0, x_543); -lean_ctor_set(x_548, 1, x_547); -if (lean_is_scalar(x_541)) { - x_549 = lean_alloc_ctor(0, 2, 0); -} else { - x_549 = x_541; -} -lean_ctor_set(x_549, 0, x_548); -lean_ctor_set(x_549, 1, x_540); -x_15 = x_549; -goto block_23; -} -else -{ -lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; -lean_dec(x_536); -lean_dec(x_535); -lean_dec(x_526); -lean_dec(x_524); -lean_dec(x_483); -lean_dec(x_481); -lean_dec(x_480); -lean_dec(x_479); -lean_dec(x_477); -lean_dec(x_30); -lean_free_object(x_3); -x_550 = lean_ctor_get(x_538, 0); -lean_inc(x_550); -x_551 = lean_ctor_get(x_538, 1); -lean_inc(x_551); -if (lean_is_exclusive(x_538)) { - lean_ctor_release(x_538, 0); - lean_ctor_release(x_538, 1); - x_552 = x_538; -} else { - lean_dec_ref(x_538); - x_552 = lean_box(0); -} -if (lean_is_scalar(x_552)) { - x_553 = lean_alloc_ctor(1, 2, 0); -} else { - x_553 = x_552; -} -lean_ctor_set(x_553, 0, x_550); -lean_ctor_set(x_553, 1, x_551); -x_15 = x_553; -goto block_23; -} -} -else -{ -lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; -lean_dec(x_530); -lean_dec(x_526); -lean_dec(x_524); -lean_dec(x_483); -lean_dec(x_481); -lean_dec(x_480); -lean_dec(x_479); -lean_dec(x_477); -lean_dec(x_30); -lean_free_object(x_3); -x_554 = lean_ctor_get(x_531, 0); -lean_inc(x_554); -x_555 = lean_ctor_get(x_531, 1); -lean_inc(x_555); -if (lean_is_exclusive(x_531)) { - lean_ctor_release(x_531, 0); - lean_ctor_release(x_531, 1); - x_556 = x_531; -} else { - lean_dec_ref(x_531); - x_556 = lean_box(0); -} -if (lean_is_scalar(x_556)) { - x_557 = lean_alloc_ctor(1, 2, 0); -} else { - x_557 = x_556; -} -lean_ctor_set(x_557, 0, x_554); -lean_ctor_set(x_557, 1, x_555); -x_15 = x_557; -goto block_23; -} -} -else -{ -lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; -lean_dec(x_525); -lean_dec(x_523); -x_558 = lean_ctor_get(x_527, 1); -lean_inc(x_558); -if (lean_is_exclusive(x_527)) { - lean_ctor_release(x_527, 0); - lean_ctor_release(x_527, 1); - x_559 = x_527; -} else { - lean_dec_ref(x_527); - x_559 = lean_box(0); -} -x_560 = lean_ctor_get(x_528, 0); -lean_inc(x_560); +lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; +x_529 = lean_ctor_get(x_528, 0); +lean_inc(x_529); +x_530 = lean_ctor_get(x_528, 1); +lean_inc(x_530); if (lean_is_exclusive(x_528)) { lean_ctor_release(x_528, 0); - x_561 = x_528; + lean_ctor_release(x_528, 1); + x_531 = x_528; } else { lean_dec_ref(x_528); - x_561 = lean_box(0); + x_531 = lean_box(0); } -x_562 = l_Lean_mkHole(x_481); +if (lean_is_scalar(x_516)) { + x_532 = lean_alloc_ctor(1, 1, 0); +} else { + x_532 = x_516; +} +lean_ctor_set(x_532, 0, x_525); +lean_inc(x_529); +x_533 = l_Lean_mkApp(x_480, x_529); +x_534 = lean_expr_instantiate1(x_514, x_529); +lean_dec(x_514); +x_535 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_535, 0, x_529); +if (lean_is_scalar(x_486)) { + x_536 = lean_alloc_ctor(0, 4, 0); +} else { + x_536 = x_486; +} +lean_ctor_set(x_536, 0, x_484); +lean_ctor_set(x_536, 1, x_25); +lean_ctor_set(x_536, 2, x_532); +lean_ctor_set(x_536, 3, x_535); +lean_ctor_set(x_3, 1, x_482); +lean_ctor_set(x_3, 0, x_536); if (lean_is_scalar(x_526)) { - x_563 = lean_alloc_ctor(0, 1, 0); + x_537 = lean_alloc_ctor(0, 2, 0); } else { - x_563 = x_526; - lean_ctor_set_tag(x_563, 0); + x_537 = x_526; } -lean_ctor_set(x_563, 0, x_562); -lean_inc(x_560); -x_564 = l_Lean_mkApp(x_477, x_560); -x_565 = lean_expr_instantiate1(x_524, x_560); -lean_dec(x_524); -if (lean_is_scalar(x_561)) { - x_566 = lean_alloc_ctor(1, 1, 0); -} else { - x_566 = x_561; -} -lean_ctor_set(x_566, 0, x_560); +lean_ctor_set(x_537, 0, x_534); +lean_ctor_set(x_537, 1, x_3); if (lean_is_scalar(x_483)) { - x_567 = lean_alloc_ctor(0, 4, 0); + x_538 = lean_alloc_ctor(0, 2, 0); } else { - x_567 = x_483; + x_538 = x_483; } -lean_ctor_set(x_567, 0, x_481); -lean_ctor_set(x_567, 1, x_30); -lean_ctor_set(x_567, 2, x_563); -lean_ctor_set(x_567, 3, x_566); -lean_ctor_set(x_3, 1, x_479); -lean_ctor_set(x_3, 0, x_567); -if (lean_is_scalar(x_480)) { - x_568 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_538, 0, x_533); +lean_ctor_set(x_538, 1, x_537); +if (lean_is_scalar(x_531)) { + x_539 = lean_alloc_ctor(0, 2, 0); } else { - x_568 = x_480; + x_539 = x_531; } -lean_ctor_set(x_568, 0, x_565); -lean_ctor_set(x_568, 1, x_3); -x_569 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_569, 0, x_564); -lean_ctor_set(x_569, 1, x_568); -if (lean_is_scalar(x_559)) { - x_570 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_539, 0, x_538); +lean_ctor_set(x_539, 1, x_530); +x_15 = x_539; +goto block_23; +} +else +{ +lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; +lean_dec(x_526); +lean_dec(x_525); +lean_dec(x_516); +lean_dec(x_514); +lean_dec(x_486); +lean_dec(x_484); +lean_dec(x_483); +lean_dec(x_482); +lean_dec(x_480); +lean_dec(x_25); +lean_free_object(x_3); +x_540 = lean_ctor_get(x_528, 0); +lean_inc(x_540); +x_541 = lean_ctor_get(x_528, 1); +lean_inc(x_541); +if (lean_is_exclusive(x_528)) { + lean_ctor_release(x_528, 0); + lean_ctor_release(x_528, 1); + x_542 = x_528; } else { - x_570 = x_559; + lean_dec_ref(x_528); + x_542 = lean_box(0); } -lean_ctor_set(x_570, 0, x_569); -lean_ctor_set(x_570, 1, x_558); -x_15 = x_570; +if (lean_is_scalar(x_542)) { + x_543 = lean_alloc_ctor(1, 2, 0); +} else { + x_543 = x_542; +} +lean_ctor_set(x_543, 0, x_540); +lean_ctor_set(x_543, 1, x_541); +x_15 = x_543; goto block_23; } } else { -lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; -lean_dec(x_526); -lean_dec(x_525); -lean_dec(x_524); -lean_dec(x_523); +lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; +lean_dec(x_520); +lean_dec(x_516); +lean_dec(x_514); +lean_dec(x_486); +lean_dec(x_484); lean_dec(x_483); -lean_dec(x_481); +lean_dec(x_482); lean_dec(x_480); -lean_dec(x_479); -lean_dec(x_477); -lean_dec(x_30); +lean_dec(x_25); lean_free_object(x_3); -x_571 = lean_ctor_get(x_527, 0); -lean_inc(x_571); -x_572 = lean_ctor_get(x_527, 1); -lean_inc(x_572); -if (lean_is_exclusive(x_527)) { - lean_ctor_release(x_527, 0); - lean_ctor_release(x_527, 1); - x_573 = x_527; +x_544 = lean_ctor_get(x_521, 0); +lean_inc(x_544); +x_545 = lean_ctor_get(x_521, 1); +lean_inc(x_545); +if (lean_is_exclusive(x_521)) { + lean_ctor_release(x_521, 0); + lean_ctor_release(x_521, 1); + x_546 = x_521; } else { - lean_dec_ref(x_527); - x_573 = lean_box(0); + lean_dec_ref(x_521); + x_546 = lean_box(0); } -if (lean_is_scalar(x_573)) { - x_574 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_546)) { + x_547 = lean_alloc_ctor(1, 2, 0); } else { - x_574 = x_573; + x_547 = x_546; } -lean_ctor_set(x_574, 0, x_571); -lean_ctor_set(x_574, 1, x_572); -x_15 = x_574; +lean_ctor_set(x_547, 0, x_544); +lean_ctor_set(x_547, 1, x_545); +x_15 = x_547; +goto block_23; +} +} +else +{ +lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; +lean_dec(x_515); +lean_dec(x_513); +x_548 = lean_ctor_get(x_517, 1); +lean_inc(x_548); +if (lean_is_exclusive(x_517)) { + lean_ctor_release(x_517, 0); + lean_ctor_release(x_517, 1); + x_549 = x_517; +} else { + lean_dec_ref(x_517); + x_549 = lean_box(0); +} +x_550 = lean_ctor_get(x_518, 0); +lean_inc(x_550); +if (lean_is_exclusive(x_518)) { + lean_ctor_release(x_518, 0); + x_551 = x_518; +} else { + lean_dec_ref(x_518); + x_551 = lean_box(0); +} +x_552 = l_Lean_mkHole(x_484); +if (lean_is_scalar(x_516)) { + x_553 = lean_alloc_ctor(0, 1, 0); +} else { + x_553 = x_516; + lean_ctor_set_tag(x_553, 0); +} +lean_ctor_set(x_553, 0, x_552); +lean_inc(x_550); +x_554 = l_Lean_mkApp(x_480, x_550); +x_555 = lean_expr_instantiate1(x_514, x_550); +lean_dec(x_514); +if (lean_is_scalar(x_551)) { + x_556 = lean_alloc_ctor(1, 1, 0); +} else { + x_556 = x_551; +} +lean_ctor_set(x_556, 0, x_550); +if (lean_is_scalar(x_486)) { + x_557 = lean_alloc_ctor(0, 4, 0); +} else { + x_557 = x_486; +} +lean_ctor_set(x_557, 0, x_484); +lean_ctor_set(x_557, 1, x_25); +lean_ctor_set(x_557, 2, x_553); +lean_ctor_set(x_557, 3, x_556); +lean_ctor_set(x_3, 1, x_482); +lean_ctor_set(x_3, 0, x_557); +if (lean_is_scalar(x_483)) { + x_558 = lean_alloc_ctor(0, 2, 0); +} else { + x_558 = x_483; +} +lean_ctor_set(x_558, 0, x_555); +lean_ctor_set(x_558, 1, x_3); +x_559 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_559, 0, x_554); +lean_ctor_set(x_559, 1, x_558); +if (lean_is_scalar(x_549)) { + x_560 = lean_alloc_ctor(0, 2, 0); +} else { + x_560 = x_549; +} +lean_ctor_set(x_560, 0, x_559); +lean_ctor_set(x_560, 1, x_548); +x_15 = x_560; +goto block_23; +} +} +else +{ +lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; +lean_dec(x_516); +lean_dec(x_515); +lean_dec(x_514); +lean_dec(x_513); +lean_dec(x_486); +lean_dec(x_484); +lean_dec(x_483); +lean_dec(x_482); +lean_dec(x_480); +lean_dec(x_25); +lean_free_object(x_3); +x_561 = lean_ctor_get(x_517, 0); +lean_inc(x_561); +x_562 = lean_ctor_get(x_517, 1); +lean_inc(x_562); +if (lean_is_exclusive(x_517)) { + lean_ctor_release(x_517, 0); + lean_ctor_release(x_517, 1); + x_563 = x_517; +} else { + lean_dec_ref(x_517); + x_563 = lean_box(0); +} +if (lean_is_scalar(x_563)) { + x_564 = lean_alloc_ctor(1, 2, 0); +} else { + x_564 = x_563; +} +lean_ctor_set(x_564, 0, x_561); +lean_ctor_set(x_564, 1, x_562); +x_15 = x_564; goto block_23; } } default: { -lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; uint8_t x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; -x_575 = lean_ctor_get(x_486, 1); -lean_inc(x_575); -x_576 = lean_ctor_get(x_486, 2); -lean_inc(x_576); -lean_dec(x_486); -x_577 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_577, 0, x_575); -x_578 = lean_ctor_get(x_8, 0); -lean_inc(x_578); -x_579 = lean_ctor_get(x_8, 1); -lean_inc(x_579); -x_580 = lean_ctor_get(x_8, 2); -lean_inc(x_580); -x_581 = lean_ctor_get(x_8, 3); -lean_inc(x_581); -x_582 = l_Lean_replaceRef(x_481, x_581); -x_583 = l_Lean_replaceRef(x_582, x_581); -lean_dec(x_582); -x_584 = l_Lean_replaceRef(x_583, x_581); -lean_dec(x_581); -lean_dec(x_583); -x_585 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_585, 0, x_578); -lean_ctor_set(x_585, 1, x_579); -lean_ctor_set(x_585, 2, x_580); -lean_ctor_set(x_585, 3, x_584); -x_586 = 0; -x_587 = lean_box(0); +lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; uint8_t x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; +x_565 = lean_ctor_get(x_488, 1); +lean_inc(x_565); +lean_dec(x_488); +x_566 = lean_ctor_get(x_489, 1); +lean_inc(x_566); +x_567 = lean_ctor_get(x_489, 2); +lean_inc(x_567); +lean_dec(x_489); +x_568 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_568, 0, x_566); +x_569 = lean_ctor_get(x_8, 0); +lean_inc(x_569); +x_570 = lean_ctor_get(x_8, 1); +lean_inc(x_570); +x_571 = lean_ctor_get(x_8, 2); +lean_inc(x_571); +x_572 = lean_ctor_get(x_8, 3); +lean_inc(x_572); +x_573 = l_Lean_replaceRef(x_484, x_572); +x_574 = l_Lean_replaceRef(x_573, x_572); +lean_dec(x_573); +x_575 = l_Lean_replaceRef(x_574, x_572); +lean_dec(x_572); +lean_dec(x_574); +x_576 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_576, 0, x_569); +lean_ctor_set(x_576, 1, x_570); +lean_ctor_set(x_576, 2, x_571); +lean_ctor_set(x_576, 3, x_575); +x_577 = 0; +x_578 = lean_box(0); lean_inc(x_6); -x_588 = l___private_Lean_Meta_Basic_4__mkFreshExprMVarImpl(x_577, x_586, x_587, x_6, x_7, x_585, x_9, x_487); -lean_dec(x_585); -x_589 = lean_ctor_get(x_588, 0); -lean_inc(x_589); -x_590 = lean_ctor_get(x_588, 1); -lean_inc(x_590); -if (lean_is_exclusive(x_588)) { - lean_ctor_release(x_588, 0); - lean_ctor_release(x_588, 1); - x_591 = x_588; -} else { - lean_dec_ref(x_588); - x_591 = lean_box(0); -} -x_592 = l_Lean_Elab_Term_StructInst_markDefaultMissing(x_589); -lean_inc(x_592); -x_593 = l_Lean_mkApp(x_477, x_592); -x_594 = lean_expr_instantiate1(x_576, x_592); +x_579 = l___private_Lean_Meta_Basic_4__mkFreshExprMVarImpl(x_568, x_577, x_578, x_6, x_7, x_576, x_9, x_565); lean_dec(x_576); -x_595 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_595, 0, x_592); +x_580 = lean_ctor_get(x_579, 0); +lean_inc(x_580); +x_581 = lean_ctor_get(x_579, 1); +lean_inc(x_581); +if (lean_is_exclusive(x_579)) { + lean_ctor_release(x_579, 0); + lean_ctor_release(x_579, 1); + x_582 = x_579; +} else { + lean_dec_ref(x_579); + x_582 = lean_box(0); +} +x_583 = l_Lean_Elab_Term_StructInst_markDefaultMissing(x_580); +lean_inc(x_583); +x_584 = l_Lean_mkApp(x_480, x_583); +x_585 = lean_expr_instantiate1(x_567, x_583); +lean_dec(x_567); +x_586 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_586, 0, x_583); +if (lean_is_scalar(x_486)) { + x_587 = lean_alloc_ctor(0, 4, 0); +} else { + x_587 = x_486; +} +lean_ctor_set(x_587, 0, x_484); +lean_ctor_set(x_587, 1, x_25); +lean_ctor_set(x_587, 2, x_485); +lean_ctor_set(x_587, 3, x_586); +lean_ctor_set(x_3, 1, x_482); +lean_ctor_set(x_3, 0, x_587); if (lean_is_scalar(x_483)) { - x_596 = lean_alloc_ctor(0, 4, 0); + x_588 = lean_alloc_ctor(0, 2, 0); } else { - x_596 = x_483; + x_588 = x_483; } -lean_ctor_set(x_596, 0, x_481); -lean_ctor_set(x_596, 1, x_30); -lean_ctor_set(x_596, 2, x_482); -lean_ctor_set(x_596, 3, x_595); -lean_ctor_set(x_3, 1, x_479); -lean_ctor_set(x_3, 0, x_596); -if (lean_is_scalar(x_480)) { - x_597 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_588, 0, x_585); +lean_ctor_set(x_588, 1, x_3); +x_589 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_589, 0, x_584); +lean_ctor_set(x_589, 1, x_588); +if (lean_is_scalar(x_582)) { + x_590 = lean_alloc_ctor(0, 2, 0); } else { - x_597 = x_480; + x_590 = x_582; } -lean_ctor_set(x_597, 0, x_594); -lean_ctor_set(x_597, 1, x_3); -x_598 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_598, 0, x_593); -lean_ctor_set(x_598, 1, x_597); -if (lean_is_scalar(x_591)) { - x_599 = lean_alloc_ctor(0, 2, 0); -} else { - x_599 = x_591; -} -lean_ctor_set(x_599, 0, x_598); -lean_ctor_set(x_599, 1, x_590); -x_15 = x_599; +lean_ctor_set(x_590, 0, x_589); +lean_ctor_set(x_590, 1, x_581); +x_15 = x_590; goto block_23; } } } else { -lean_object* x_600; +lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; +lean_dec(x_486); +lean_dec(x_485); lean_dec(x_483); lean_dec(x_482); lean_dec(x_480); -lean_dec(x_479); -lean_dec(x_477); -lean_dec(x_30); +lean_dec(x_25); lean_free_object(x_3); -x_600 = lean_box(0); -x_488 = x_600; -goto block_501; -} -block_501: -{ -lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; +x_591 = lean_ctor_get(x_488, 1); +lean_inc(x_591); lean_dec(x_488); -x_489 = l_Lean_indentExpr(x_486); -x_490 = l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__3; -x_491 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_491, 0, x_490); -lean_ctor_set(x_491, 1, x_489); -x_492 = lean_ctor_get(x_8, 0); -lean_inc(x_492); -x_493 = lean_ctor_get(x_8, 1); -lean_inc(x_493); -x_494 = lean_ctor_get(x_8, 2); -lean_inc(x_494); -x_495 = lean_ctor_get(x_8, 3); -lean_inc(x_495); -x_496 = l_Lean_replaceRef(x_481, x_495); -lean_dec(x_481); -x_497 = l_Lean_replaceRef(x_496, x_495); -lean_dec(x_496); -x_498 = l_Lean_replaceRef(x_497, x_495); -lean_dec(x_495); -lean_dec(x_497); -x_499 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_499, 0, x_492); -lean_ctor_set(x_499, 1, x_493); -lean_ctor_set(x_499, 2, x_494); -lean_ctor_set(x_499, 3, x_498); +x_592 = l_Lean_indentExpr(x_489); +x_593 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1___closed__4; +x_594 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_594, 0, x_593); +lean_ctor_set(x_594, 1, x_592); +x_595 = l_Lean_Elab_Term_elabLetDeclAux___closed__4; +x_596 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_596, 0, x_594); +lean_ctor_set(x_596, 1, x_595); +x_597 = lean_ctor_get(x_8, 0); +lean_inc(x_597); +x_598 = lean_ctor_get(x_8, 1); +lean_inc(x_598); +x_599 = lean_ctor_get(x_8, 2); +lean_inc(x_599); +x_600 = lean_ctor_get(x_8, 3); +lean_inc(x_600); +x_601 = l_Lean_replaceRef(x_484, x_600); +lean_dec(x_484); +x_602 = l_Lean_replaceRef(x_601, x_600); +lean_dec(x_601); +x_603 = l_Lean_replaceRef(x_602, x_600); +lean_dec(x_600); +lean_dec(x_602); +x_604 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_604, 0, x_597); +lean_ctor_set(x_604, 1, x_598); +lean_ctor_set(x_604, 2, x_599); +lean_ctor_set(x_604, 3, x_603); lean_inc(x_4); lean_inc(x_1); -x_500 = l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg(x_484, x_1, x_491, x_4, x_5, x_6, x_7, x_499, x_9, x_487); -lean_dec(x_499); -x_15 = x_500; +x_605 = l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg(x_487, x_1, x_596, x_4, x_5, x_6, x_7, x_604, x_9, x_591); +lean_dec(x_604); +x_15 = x_605; goto block_23; } } else { -lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; +lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; +lean_dec(x_487); +lean_dec(x_486); +lean_dec(x_485); lean_dec(x_484); lean_dec(x_483); lean_dec(x_482); -lean_dec(x_481); lean_dec(x_480); -lean_dec(x_479); -lean_dec(x_477); -lean_dec(x_30); +lean_dec(x_25); lean_free_object(x_3); -x_601 = lean_ctor_get(x_485, 0); -lean_inc(x_601); -x_602 = lean_ctor_get(x_485, 1); -lean_inc(x_602); -if (lean_is_exclusive(x_485)) { - lean_ctor_release(x_485, 0); - lean_ctor_release(x_485, 1); - x_603 = x_485; +x_606 = lean_ctor_get(x_488, 0); +lean_inc(x_606); +x_607 = lean_ctor_get(x_488, 1); +lean_inc(x_607); +if (lean_is_exclusive(x_488)) { + lean_ctor_release(x_488, 0); + lean_ctor_release(x_488, 1); + x_608 = x_488; } else { - lean_dec_ref(x_485); - x_603 = lean_box(0); + lean_dec_ref(x_488); + x_608 = lean_box(0); } -if (lean_is_scalar(x_603)) { - x_604 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_608)) { + x_609 = lean_alloc_ctor(1, 2, 0); } else { - x_604 = x_603; + x_609 = x_608; } -lean_ctor_set(x_604, 0, x_601); -lean_ctor_set(x_604, 1, x_602); -x_15 = x_604; +lean_ctor_set(x_609, 0, x_606); +lean_ctor_set(x_609, 1, x_607); +x_15 = x_609; goto block_23; } } } else { -lean_object* x_605; -lean_dec(x_33); -lean_dec(x_32); +lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_dec(x_30); lean_dec(x_29); +lean_dec(x_25); +lean_dec(x_24); lean_free_object(x_3); lean_dec(x_2); -x_605 = lean_box(0); -x_24 = x_605; -goto block_28; +x_610 = lean_ctor_get(x_13, 0); +lean_inc(x_610); +lean_dec(x_13); +x_611 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1___closed__3; +lean_inc(x_8); +lean_inc(x_4); +x_612 = l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2___rarg(x_610, x_611, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_610); +x_15 = x_612; +goto block_23; } } else { -lean_object* x_606; -lean_dec(x_32); -lean_dec(x_30); +lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_dec(x_29); +lean_dec(x_25); +lean_dec(x_24); lean_free_object(x_3); lean_dec(x_2); -x_606 = lean_box(0); -x_24 = x_606; -goto block_28; +x_613 = lean_ctor_get(x_13, 0); +lean_inc(x_613); +lean_dec(x_13); +x_614 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1___closed__3; +lean_inc(x_8); +lean_inc(x_4); +x_615 = l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2___rarg(x_613, x_614, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_613); +x_15 = x_615; +goto block_23; } } block_23: @@ -21486,768 +19299,779 @@ return x_22; } } } -block_28: +} +else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; -lean_dec(x_24); -x_25 = lean_ctor_get(x_13, 0); -lean_inc(x_25); -lean_dec(x_13); -x_26 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_24__elabStruct___main___spec__1___closed__3; +lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_627; lean_object* x_628; +x_616 = lean_ctor_get(x_3, 0); +x_617 = lean_ctor_get(x_3, 1); +lean_inc(x_617); +lean_inc(x_616); +lean_dec(x_3); +x_627 = lean_ctor_get(x_2, 1); +lean_inc(x_627); +x_628 = lean_ctor_get(x_616, 1); +lean_inc(x_628); +if (lean_obj_tag(x_628) == 0) +{ +lean_object* x_629; lean_object* x_630; lean_object* x_631; +lean_dec(x_627); +lean_dec(x_2); +x_629 = lean_ctor_get(x_616, 0); +lean_inc(x_629); +lean_dec(x_616); +x_630 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1___closed__3; lean_inc(x_8); lean_inc(x_4); -x_27 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_25, x_26, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_25); -x_15 = x_27; -goto block_23; -} +x_631 = l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2___rarg(x_629, x_630, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_629); +x_618 = x_631; +goto block_626; } else { -lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_618; lean_object* x_623; lean_object* x_624; -x_607 = lean_ctor_get(x_3, 0); -x_608 = lean_ctor_get(x_3, 1); -lean_inc(x_608); -lean_inc(x_607); -lean_dec(x_3); -x_623 = lean_ctor_get(x_2, 1); -lean_inc(x_623); -x_624 = lean_ctor_get(x_607, 1); -lean_inc(x_624); -if (lean_obj_tag(x_624) == 0) +lean_object* x_632; +x_632 = lean_ctor_get(x_628, 0); +lean_inc(x_632); +if (lean_obj_tag(x_632) == 0) { -lean_object* x_625; -lean_dec(x_623); -lean_dec(x_2); -x_625 = lean_box(0); -x_618 = x_625; -goto block_622; -} -else +lean_object* x_633; +x_633 = lean_ctor_get(x_628, 1); +lean_inc(x_633); +if (lean_obj_tag(x_633) == 0) { -lean_object* x_626; -x_626 = lean_ctor_get(x_624, 0); -lean_inc(x_626); -if (lean_obj_tag(x_626) == 0) -{ -lean_object* x_627; -x_627 = lean_ctor_get(x_624, 1); -lean_inc(x_627); -if (lean_obj_tag(x_627) == 0) -{ -lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; -x_628 = lean_ctor_get(x_2, 0); -lean_inc(x_628); +lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; +x_634 = lean_ctor_get(x_2, 0); +lean_inc(x_634); if (lean_is_exclusive(x_2)) { lean_ctor_release(x_2, 0); lean_ctor_release(x_2, 1); - x_629 = x_2; + x_635 = x_2; } else { lean_dec_ref(x_2); - x_629 = lean_box(0); -} -x_630 = lean_ctor_get(x_623, 0); -lean_inc(x_630); -x_631 = lean_ctor_get(x_623, 1); -lean_inc(x_631); -if (lean_is_exclusive(x_623)) { - lean_ctor_release(x_623, 0); - lean_ctor_release(x_623, 1); - x_632 = x_623; -} else { - lean_dec_ref(x_623); - x_632 = lean_box(0); -} -x_633 = lean_ctor_get(x_607, 0); -lean_inc(x_633); -x_634 = lean_ctor_get(x_607, 2); -lean_inc(x_634); -if (lean_is_exclusive(x_607)) { - lean_ctor_release(x_607, 0); - lean_ctor_release(x_607, 1); - lean_ctor_release(x_607, 2); - lean_ctor_release(x_607, 3); - x_635 = x_607; -} else { - lean_dec_ref(x_607); x_635 = lean_box(0); } -x_636 = lean_ctor_get(x_626, 1); +x_636 = lean_ctor_get(x_627, 0); lean_inc(x_636); -lean_dec(x_626); +x_637 = lean_ctor_get(x_627, 1); +lean_inc(x_637); +if (lean_is_exclusive(x_627)) { + lean_ctor_release(x_627, 0); + lean_ctor_release(x_627, 1); + x_638 = x_627; +} else { + lean_dec_ref(x_627); + x_638 = lean_box(0); +} +x_639 = lean_ctor_get(x_616, 0); +lean_inc(x_639); +x_640 = lean_ctor_get(x_616, 2); +lean_inc(x_640); +if (lean_is_exclusive(x_616)) { + lean_ctor_release(x_616, 0); + lean_ctor_release(x_616, 1); + lean_ctor_release(x_616, 2); + lean_ctor_release(x_616, 3); + x_641 = x_616; +} else { + lean_dec_ref(x_616); + x_641 = lean_box(0); +} +x_642 = lean_ctor_get(x_632, 1); +lean_inc(x_642); +lean_dec(x_632); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_637 = l_Lean_Meta_whnfForall___at___private_Lean_Elab_Term_18__useImplicitLambda_x3f___spec__1(x_630, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_637) == 0) +x_643 = l_Lean_Meta_whnfForall___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_propagateExpectedType___spec__1(x_636, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_643) == 0) { -lean_object* x_638; lean_object* x_639; lean_object* x_640; -x_638 = lean_ctor_get(x_637, 0); -lean_inc(x_638); -x_639 = lean_ctor_get(x_637, 1); -lean_inc(x_639); -lean_dec(x_637); -if (lean_obj_tag(x_638) == 7) +lean_object* x_644; +x_644 = lean_ctor_get(x_643, 0); +lean_inc(x_644); +if (lean_obj_tag(x_644) == 7) { -lean_dec(x_636); -switch (lean_obj_tag(x_634)) { +lean_dec(x_642); +switch (lean_obj_tag(x_640)) { case 0: { -lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; uint8_t x_659; lean_object* x_660; -x_654 = lean_ctor_get(x_638, 1); -lean_inc(x_654); -x_655 = lean_ctor_get(x_638, 2); -lean_inc(x_655); -lean_dec(x_638); -x_656 = lean_ctor_get(x_634, 0); -lean_inc(x_656); -x_657 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_657, 0, x_654); -x_658 = lean_box(0); -x_659 = 1; +lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; uint8_t x_651; lean_object* x_652; +x_645 = lean_ctor_get(x_643, 1); +lean_inc(x_645); +lean_dec(x_643); +x_646 = lean_ctor_get(x_644, 1); +lean_inc(x_646); +x_647 = lean_ctor_get(x_644, 2); +lean_inc(x_647); +lean_dec(x_644); +x_648 = lean_ctor_get(x_640, 0); +lean_inc(x_648); +x_649 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_649, 0, x_646); +x_650 = lean_box(0); +x_651 = 1; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_660 = l_Lean_Elab_Term_elabTermEnsuringType(x_656, x_657, x_659, x_658, x_4, x_5, x_6, x_7, x_8, x_9, x_639); -if (lean_obj_tag(x_660) == 0) +x_652 = l_Lean_Elab_Term_elabTermEnsuringType(x_648, x_649, x_651, x_650, x_4, x_5, x_6, x_7, x_8, x_9, x_645); +if (lean_obj_tag(x_652) == 0) { -lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; -x_661 = lean_ctor_get(x_660, 0); -lean_inc(x_661); -x_662 = lean_ctor_get(x_660, 1); -lean_inc(x_662); -if (lean_is_exclusive(x_660)) { - lean_ctor_release(x_660, 0); - lean_ctor_release(x_660, 1); - x_663 = x_660; +lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; +x_653 = lean_ctor_get(x_652, 0); +lean_inc(x_653); +x_654 = lean_ctor_get(x_652, 1); +lean_inc(x_654); +if (lean_is_exclusive(x_652)) { + lean_ctor_release(x_652, 0); + lean_ctor_release(x_652, 1); + x_655 = x_652; } else { - lean_dec_ref(x_660); - x_663 = lean_box(0); + lean_dec_ref(x_652); + x_655 = lean_box(0); } -lean_inc(x_661); -x_664 = l_Lean_mkApp(x_628, x_661); -x_665 = lean_expr_instantiate1(x_655, x_661); -lean_dec(x_655); -x_666 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_666, 0, x_661); +lean_inc(x_653); +x_656 = l_Lean_mkApp(x_634, x_653); +x_657 = lean_expr_instantiate1(x_647, x_653); +lean_dec(x_647); +x_658 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_658, 0, x_653); +if (lean_is_scalar(x_641)) { + x_659 = lean_alloc_ctor(0, 4, 0); +} else { + x_659 = x_641; +} +lean_ctor_set(x_659, 0, x_639); +lean_ctor_set(x_659, 1, x_628); +lean_ctor_set(x_659, 2, x_640); +lean_ctor_set(x_659, 3, x_658); +x_660 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_660, 0, x_659); +lean_ctor_set(x_660, 1, x_637); +if (lean_is_scalar(x_638)) { + x_661 = lean_alloc_ctor(0, 2, 0); +} else { + x_661 = x_638; +} +lean_ctor_set(x_661, 0, x_657); +lean_ctor_set(x_661, 1, x_660); if (lean_is_scalar(x_635)) { - x_667 = lean_alloc_ctor(0, 4, 0); + x_662 = lean_alloc_ctor(0, 2, 0); } else { - x_667 = x_635; + x_662 = x_635; } -lean_ctor_set(x_667, 0, x_633); -lean_ctor_set(x_667, 1, x_624); -lean_ctor_set(x_667, 2, x_634); -lean_ctor_set(x_667, 3, x_666); -x_668 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_668, 0, x_667); -lean_ctor_set(x_668, 1, x_631); -if (lean_is_scalar(x_632)) { - x_669 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_662, 0, x_656); +lean_ctor_set(x_662, 1, x_661); +if (lean_is_scalar(x_655)) { + x_663 = lean_alloc_ctor(0, 2, 0); } else { - x_669 = x_632; + x_663 = x_655; } -lean_ctor_set(x_669, 0, x_665); -lean_ctor_set(x_669, 1, x_668); -if (lean_is_scalar(x_629)) { - x_670 = lean_alloc_ctor(0, 2, 0); -} else { - x_670 = x_629; -} -lean_ctor_set(x_670, 0, x_664); -lean_ctor_set(x_670, 1, x_669); -if (lean_is_scalar(x_663)) { - x_671 = lean_alloc_ctor(0, 2, 0); -} else { - x_671 = x_663; -} -lean_ctor_set(x_671, 0, x_670); -lean_ctor_set(x_671, 1, x_662); -x_609 = x_671; -goto block_617; +lean_ctor_set(x_663, 0, x_662); +lean_ctor_set(x_663, 1, x_654); +x_618 = x_663; +goto block_626; } else { -lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; -lean_dec(x_655); +lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; +lean_dec(x_647); +lean_dec(x_641); +lean_dec(x_640); +lean_dec(x_639); +lean_dec(x_638); +lean_dec(x_637); lean_dec(x_635); lean_dec(x_634); -lean_dec(x_633); -lean_dec(x_632); -lean_dec(x_631); -lean_dec(x_629); lean_dec(x_628); -lean_dec(x_624); -x_672 = lean_ctor_get(x_660, 0); -lean_inc(x_672); -x_673 = lean_ctor_get(x_660, 1); -lean_inc(x_673); -if (lean_is_exclusive(x_660)) { - lean_ctor_release(x_660, 0); - lean_ctor_release(x_660, 1); - x_674 = x_660; +x_664 = lean_ctor_get(x_652, 0); +lean_inc(x_664); +x_665 = lean_ctor_get(x_652, 1); +lean_inc(x_665); +if (lean_is_exclusive(x_652)) { + lean_ctor_release(x_652, 0); + lean_ctor_release(x_652, 1); + x_666 = x_652; } else { - lean_dec_ref(x_660); - x_674 = lean_box(0); + lean_dec_ref(x_652); + x_666 = lean_box(0); } -if (lean_is_scalar(x_674)) { - x_675 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_666)) { + x_667 = lean_alloc_ctor(1, 2, 0); } else { - x_675 = x_674; + x_667 = x_666; } -lean_ctor_set(x_675, 0, x_672); -lean_ctor_set(x_675, 1, x_673); -x_609 = x_675; -goto block_617; +lean_ctor_set(x_667, 0, x_664); +lean_ctor_set(x_667, 1, x_665); +x_618 = x_667; +goto block_626; } } case 1: { -lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; -x_676 = lean_ctor_get(x_638, 1); -lean_inc(x_676); -x_677 = lean_ctor_get(x_638, 2); -lean_inc(x_677); -lean_dec(x_638); -x_678 = lean_ctor_get(x_634, 0); -lean_inc(x_678); -if (lean_is_exclusive(x_634)) { - lean_ctor_release(x_634, 0); - x_679 = x_634; +lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; +x_668 = lean_ctor_get(x_643, 1); +lean_inc(x_668); +lean_dec(x_643); +x_669 = lean_ctor_get(x_644, 1); +lean_inc(x_669); +x_670 = lean_ctor_get(x_644, 2); +lean_inc(x_670); +lean_dec(x_644); +x_671 = lean_ctor_get(x_640, 0); +lean_inc(x_671); +if (lean_is_exclusive(x_640)) { + lean_ctor_release(x_640, 0); + x_672 = x_640; } else { - lean_dec_ref(x_634); - x_679 = lean_box(0); + lean_dec_ref(x_640); + x_672 = lean_box(0); } lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -lean_inc(x_676); -x_680 = l_Lean_Elab_Term_StructInst_trySynthStructInstance_x3f(x_678, x_676, x_4, x_5, x_6, x_7, x_8, x_9, x_639); -if (lean_obj_tag(x_680) == 0) +lean_inc(x_669); +x_673 = l_Lean_Elab_Term_StructInst_trySynthStructInstance_x3f(x_671, x_669, x_4, x_5, x_6, x_7, x_8, x_9, x_668); +if (lean_obj_tag(x_673) == 0) { -lean_object* x_681; -x_681 = lean_ctor_get(x_680, 0); -lean_inc(x_681); -if (lean_obj_tag(x_681) == 0) +lean_object* x_674; +x_674 = lean_ctor_get(x_673, 0); +lean_inc(x_674); +if (lean_obj_tag(x_674) == 0) { -lean_object* x_682; lean_object* x_683; lean_object* x_684; -lean_dec(x_629); -x_682 = lean_ctor_get(x_680, 1); -lean_inc(x_682); -lean_dec(x_680); -x_683 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_683, 0, x_676); +lean_object* x_675; lean_object* x_676; lean_object* x_677; +lean_dec(x_635); +x_675 = lean_ctor_get(x_673, 1); +lean_inc(x_675); +lean_dec(x_673); +x_676 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_676, 0, x_669); 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_683); -x_684 = l___private_Lean_Elab_StructInst_24__elabStruct___main(x_678, x_683, x_4, x_5, x_6, x_7, x_8, x_9, x_682); -if (lean_obj_tag(x_684) == 0) +lean_inc(x_676); +x_677 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct(x_671, x_676, x_4, x_5, x_6, x_7, x_8, x_9, x_675); +if (lean_obj_tag(x_677) == 0) { -lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; -x_685 = lean_ctor_get(x_684, 0); -lean_inc(x_685); -x_686 = lean_ctor_get(x_684, 1); -lean_inc(x_686); -lean_dec(x_684); -x_687 = lean_ctor_get(x_685, 0); -lean_inc(x_687); -x_688 = lean_ctor_get(x_685, 1); -lean_inc(x_688); -if (lean_is_exclusive(x_685)) { - lean_ctor_release(x_685, 0); - lean_ctor_release(x_685, 1); - x_689 = x_685; +lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; +x_678 = lean_ctor_get(x_677, 0); +lean_inc(x_678); +x_679 = lean_ctor_get(x_677, 1); +lean_inc(x_679); +lean_dec(x_677); +x_680 = lean_ctor_get(x_678, 0); +lean_inc(x_680); +x_681 = lean_ctor_get(x_678, 1); +lean_inc(x_681); +if (lean_is_exclusive(x_678)) { + lean_ctor_release(x_678, 0); + lean_ctor_release(x_678, 1); + x_682 = x_678; } else { - lean_dec_ref(x_685); - x_689 = lean_box(0); + lean_dec_ref(x_678); + x_682 = lean_box(0); } -x_690 = lean_box(0); +x_683 = lean_box(0); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_691 = l_Lean_Elab_Term_ensureHasType(x_683, x_687, x_690, x_4, x_5, x_6, x_7, x_8, x_9, x_686); -if (lean_obj_tag(x_691) == 0) +x_684 = l_Lean_Elab_Term_ensureHasType(x_676, x_680, x_683, x_4, x_5, x_6, x_7, x_8, x_9, x_679); +if (lean_obj_tag(x_684) == 0) { -lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; -x_692 = lean_ctor_get(x_691, 0); -lean_inc(x_692); -x_693 = lean_ctor_get(x_691, 1); -lean_inc(x_693); -if (lean_is_exclusive(x_691)) { - lean_ctor_release(x_691, 0); - lean_ctor_release(x_691, 1); - x_694 = x_691; -} else { - lean_dec_ref(x_691); - x_694 = lean_box(0); -} -if (lean_is_scalar(x_679)) { - x_695 = lean_alloc_ctor(1, 1, 0); -} else { - x_695 = x_679; -} -lean_ctor_set(x_695, 0, x_688); -lean_inc(x_692); -x_696 = l_Lean_mkApp(x_628, x_692); -x_697 = lean_expr_instantiate1(x_677, x_692); -lean_dec(x_677); -x_698 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_698, 0, x_692); -if (lean_is_scalar(x_635)) { - x_699 = lean_alloc_ctor(0, 4, 0); -} else { - x_699 = x_635; -} -lean_ctor_set(x_699, 0, x_633); -lean_ctor_set(x_699, 1, x_624); -lean_ctor_set(x_699, 2, x_695); -lean_ctor_set(x_699, 3, x_698); -x_700 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_700, 0, x_699); -lean_ctor_set(x_700, 1, x_631); -if (lean_is_scalar(x_689)) { - x_701 = lean_alloc_ctor(0, 2, 0); -} else { - x_701 = x_689; -} -lean_ctor_set(x_701, 0, x_697); -lean_ctor_set(x_701, 1, x_700); -if (lean_is_scalar(x_632)) { - x_702 = lean_alloc_ctor(0, 2, 0); -} else { - x_702 = x_632; -} -lean_ctor_set(x_702, 0, x_696); -lean_ctor_set(x_702, 1, x_701); -if (lean_is_scalar(x_694)) { - x_703 = lean_alloc_ctor(0, 2, 0); -} else { - x_703 = x_694; -} -lean_ctor_set(x_703, 0, x_702); -lean_ctor_set(x_703, 1, x_693); -x_609 = x_703; -goto block_617; -} -else -{ -lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; -lean_dec(x_689); -lean_dec(x_688); -lean_dec(x_679); -lean_dec(x_677); -lean_dec(x_635); -lean_dec(x_633); -lean_dec(x_632); -lean_dec(x_631); -lean_dec(x_628); -lean_dec(x_624); -x_704 = lean_ctor_get(x_691, 0); -lean_inc(x_704); -x_705 = lean_ctor_get(x_691, 1); -lean_inc(x_705); -if (lean_is_exclusive(x_691)) { - lean_ctor_release(x_691, 0); - lean_ctor_release(x_691, 1); - x_706 = x_691; -} else { - lean_dec_ref(x_691); - x_706 = lean_box(0); -} -if (lean_is_scalar(x_706)) { - x_707 = lean_alloc_ctor(1, 2, 0); -} else { - x_707 = x_706; -} -lean_ctor_set(x_707, 0, x_704); -lean_ctor_set(x_707, 1, x_705); -x_609 = x_707; -goto block_617; -} -} -else -{ -lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; -lean_dec(x_683); -lean_dec(x_679); -lean_dec(x_677); -lean_dec(x_635); -lean_dec(x_633); -lean_dec(x_632); -lean_dec(x_631); -lean_dec(x_628); -lean_dec(x_624); -x_708 = lean_ctor_get(x_684, 0); -lean_inc(x_708); -x_709 = lean_ctor_get(x_684, 1); -lean_inc(x_709); +lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; +x_685 = lean_ctor_get(x_684, 0); +lean_inc(x_685); +x_686 = lean_ctor_get(x_684, 1); +lean_inc(x_686); if (lean_is_exclusive(x_684)) { lean_ctor_release(x_684, 0); lean_ctor_release(x_684, 1); - x_710 = x_684; + x_687 = x_684; } else { lean_dec_ref(x_684); - x_710 = lean_box(0); + x_687 = lean_box(0); } -if (lean_is_scalar(x_710)) { - x_711 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_672)) { + x_688 = lean_alloc_ctor(1, 1, 0); } else { - x_711 = x_710; + x_688 = x_672; } -lean_ctor_set(x_711, 0, x_708); -lean_ctor_set(x_711, 1, x_709); -x_609 = x_711; -goto block_617; +lean_ctor_set(x_688, 0, x_681); +lean_inc(x_685); +x_689 = l_Lean_mkApp(x_634, x_685); +x_690 = lean_expr_instantiate1(x_670, x_685); +lean_dec(x_670); +x_691 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_691, 0, x_685); +if (lean_is_scalar(x_641)) { + x_692 = lean_alloc_ctor(0, 4, 0); +} else { + x_692 = x_641; } +lean_ctor_set(x_692, 0, x_639); +lean_ctor_set(x_692, 1, x_628); +lean_ctor_set(x_692, 2, x_688); +lean_ctor_set(x_692, 3, x_691); +x_693 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_693, 0, x_692); +lean_ctor_set(x_693, 1, x_637); +if (lean_is_scalar(x_682)) { + x_694 = lean_alloc_ctor(0, 2, 0); +} else { + x_694 = x_682; +} +lean_ctor_set(x_694, 0, x_690); +lean_ctor_set(x_694, 1, x_693); +if (lean_is_scalar(x_638)) { + x_695 = lean_alloc_ctor(0, 2, 0); +} else { + x_695 = x_638; +} +lean_ctor_set(x_695, 0, x_689); +lean_ctor_set(x_695, 1, x_694); +if (lean_is_scalar(x_687)) { + x_696 = lean_alloc_ctor(0, 2, 0); +} else { + x_696 = x_687; +} +lean_ctor_set(x_696, 0, x_695); +lean_ctor_set(x_696, 1, x_686); +x_618 = x_696; +goto block_626; } else { -lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; -lean_dec(x_678); -lean_dec(x_676); -x_712 = lean_ctor_get(x_680, 1); -lean_inc(x_712); -if (lean_is_exclusive(x_680)) { - lean_ctor_release(x_680, 0); - lean_ctor_release(x_680, 1); - x_713 = x_680; -} else { - lean_dec_ref(x_680); - x_713 = lean_box(0); -} -x_714 = lean_ctor_get(x_681, 0); -lean_inc(x_714); -if (lean_is_exclusive(x_681)) { - lean_ctor_release(x_681, 0); - x_715 = x_681; -} else { - lean_dec_ref(x_681); - x_715 = lean_box(0); -} -x_716 = l_Lean_mkHole(x_633); -if (lean_is_scalar(x_679)) { - x_717 = lean_alloc_ctor(0, 1, 0); -} else { - x_717 = x_679; - lean_ctor_set_tag(x_717, 0); -} -lean_ctor_set(x_717, 0, x_716); -lean_inc(x_714); -x_718 = l_Lean_mkApp(x_628, x_714); -x_719 = lean_expr_instantiate1(x_677, x_714); -lean_dec(x_677); -if (lean_is_scalar(x_715)) { - x_720 = lean_alloc_ctor(1, 1, 0); -} else { - x_720 = x_715; -} -lean_ctor_set(x_720, 0, x_714); -if (lean_is_scalar(x_635)) { - x_721 = lean_alloc_ctor(0, 4, 0); -} else { - x_721 = x_635; -} -lean_ctor_set(x_721, 0, x_633); -lean_ctor_set(x_721, 1, x_624); -lean_ctor_set(x_721, 2, x_717); -lean_ctor_set(x_721, 3, x_720); -x_722 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_722, 0, x_721); -lean_ctor_set(x_722, 1, x_631); -if (lean_is_scalar(x_632)) { - x_723 = lean_alloc_ctor(0, 2, 0); -} else { - x_723 = x_632; -} -lean_ctor_set(x_723, 0, x_719); -lean_ctor_set(x_723, 1, x_722); -if (lean_is_scalar(x_629)) { - x_724 = lean_alloc_ctor(0, 2, 0); -} else { - x_724 = x_629; -} -lean_ctor_set(x_724, 0, x_718); -lean_ctor_set(x_724, 1, x_723); -if (lean_is_scalar(x_713)) { - x_725 = lean_alloc_ctor(0, 2, 0); -} else { - x_725 = x_713; -} -lean_ctor_set(x_725, 0, x_724); -lean_ctor_set(x_725, 1, x_712); -x_609 = x_725; -goto block_617; -} -} -else -{ -lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; -lean_dec(x_679); -lean_dec(x_678); -lean_dec(x_677); -lean_dec(x_676); -lean_dec(x_635); -lean_dec(x_633); -lean_dec(x_632); -lean_dec(x_631); -lean_dec(x_629); +lean_object* x_697; lean_object* x_698; lean_object* x_699; lean_object* x_700; +lean_dec(x_682); +lean_dec(x_681); +lean_dec(x_672); +lean_dec(x_670); +lean_dec(x_641); +lean_dec(x_639); +lean_dec(x_638); +lean_dec(x_637); +lean_dec(x_634); lean_dec(x_628); -lean_dec(x_624); -x_726 = lean_ctor_get(x_680, 0); -lean_inc(x_726); -x_727 = lean_ctor_get(x_680, 1); -lean_inc(x_727); -if (lean_is_exclusive(x_680)) { - lean_ctor_release(x_680, 0); - lean_ctor_release(x_680, 1); - x_728 = x_680; +x_697 = lean_ctor_get(x_684, 0); +lean_inc(x_697); +x_698 = lean_ctor_get(x_684, 1); +lean_inc(x_698); +if (lean_is_exclusive(x_684)) { + lean_ctor_release(x_684, 0); + lean_ctor_release(x_684, 1); + x_699 = x_684; } else { - lean_dec_ref(x_680); - x_728 = lean_box(0); + lean_dec_ref(x_684); + x_699 = lean_box(0); } -if (lean_is_scalar(x_728)) { - x_729 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_699)) { + x_700 = lean_alloc_ctor(1, 2, 0); } else { - x_729 = x_728; + x_700 = x_699; } -lean_ctor_set(x_729, 0, x_726); -lean_ctor_set(x_729, 1, x_727); -x_609 = x_729; -goto block_617; +lean_ctor_set(x_700, 0, x_697); +lean_ctor_set(x_700, 1, x_698); +x_618 = x_700; +goto block_626; +} +} +else +{ +lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; +lean_dec(x_676); +lean_dec(x_672); +lean_dec(x_670); +lean_dec(x_641); +lean_dec(x_639); +lean_dec(x_638); +lean_dec(x_637); +lean_dec(x_634); +lean_dec(x_628); +x_701 = lean_ctor_get(x_677, 0); +lean_inc(x_701); +x_702 = lean_ctor_get(x_677, 1); +lean_inc(x_702); +if (lean_is_exclusive(x_677)) { + lean_ctor_release(x_677, 0); + lean_ctor_release(x_677, 1); + x_703 = x_677; +} else { + lean_dec_ref(x_677); + x_703 = lean_box(0); +} +if (lean_is_scalar(x_703)) { + x_704 = lean_alloc_ctor(1, 2, 0); +} else { + x_704 = x_703; +} +lean_ctor_set(x_704, 0, x_701); +lean_ctor_set(x_704, 1, x_702); +x_618 = x_704; +goto block_626; +} +} +else +{ +lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; +lean_dec(x_671); +lean_dec(x_669); +x_705 = lean_ctor_get(x_673, 1); +lean_inc(x_705); +if (lean_is_exclusive(x_673)) { + lean_ctor_release(x_673, 0); + lean_ctor_release(x_673, 1); + x_706 = x_673; +} else { + lean_dec_ref(x_673); + x_706 = lean_box(0); +} +x_707 = lean_ctor_get(x_674, 0); +lean_inc(x_707); +if (lean_is_exclusive(x_674)) { + lean_ctor_release(x_674, 0); + x_708 = x_674; +} else { + lean_dec_ref(x_674); + x_708 = lean_box(0); +} +x_709 = l_Lean_mkHole(x_639); +if (lean_is_scalar(x_672)) { + x_710 = lean_alloc_ctor(0, 1, 0); +} else { + x_710 = x_672; + lean_ctor_set_tag(x_710, 0); +} +lean_ctor_set(x_710, 0, x_709); +lean_inc(x_707); +x_711 = l_Lean_mkApp(x_634, x_707); +x_712 = lean_expr_instantiate1(x_670, x_707); +lean_dec(x_670); +if (lean_is_scalar(x_708)) { + x_713 = lean_alloc_ctor(1, 1, 0); +} else { + x_713 = x_708; +} +lean_ctor_set(x_713, 0, x_707); +if (lean_is_scalar(x_641)) { + x_714 = lean_alloc_ctor(0, 4, 0); +} else { + x_714 = x_641; +} +lean_ctor_set(x_714, 0, x_639); +lean_ctor_set(x_714, 1, x_628); +lean_ctor_set(x_714, 2, x_710); +lean_ctor_set(x_714, 3, x_713); +x_715 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_715, 0, x_714); +lean_ctor_set(x_715, 1, x_637); +if (lean_is_scalar(x_638)) { + x_716 = lean_alloc_ctor(0, 2, 0); +} else { + x_716 = x_638; +} +lean_ctor_set(x_716, 0, x_712); +lean_ctor_set(x_716, 1, x_715); +if (lean_is_scalar(x_635)) { + x_717 = lean_alloc_ctor(0, 2, 0); +} else { + x_717 = x_635; +} +lean_ctor_set(x_717, 0, x_711); +lean_ctor_set(x_717, 1, x_716); +if (lean_is_scalar(x_706)) { + x_718 = lean_alloc_ctor(0, 2, 0); +} else { + x_718 = x_706; +} +lean_ctor_set(x_718, 0, x_717); +lean_ctor_set(x_718, 1, x_705); +x_618 = x_718; +goto block_626; +} +} +else +{ +lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; +lean_dec(x_672); +lean_dec(x_671); +lean_dec(x_670); +lean_dec(x_669); +lean_dec(x_641); +lean_dec(x_639); +lean_dec(x_638); +lean_dec(x_637); +lean_dec(x_635); +lean_dec(x_634); +lean_dec(x_628); +x_719 = lean_ctor_get(x_673, 0); +lean_inc(x_719); +x_720 = lean_ctor_get(x_673, 1); +lean_inc(x_720); +if (lean_is_exclusive(x_673)) { + lean_ctor_release(x_673, 0); + lean_ctor_release(x_673, 1); + x_721 = x_673; +} else { + lean_dec_ref(x_673); + x_721 = lean_box(0); +} +if (lean_is_scalar(x_721)) { + x_722 = lean_alloc_ctor(1, 2, 0); +} else { + x_722 = x_721; +} +lean_ctor_set(x_722, 0, x_719); +lean_ctor_set(x_722, 1, x_720); +x_618 = x_722; +goto block_626; } } default: { -lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; uint8_t x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; -x_730 = lean_ctor_get(x_638, 1); +lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; uint8_t x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_748; lean_object* x_749; +x_723 = lean_ctor_get(x_643, 1); +lean_inc(x_723); +lean_dec(x_643); +x_724 = lean_ctor_get(x_644, 1); +lean_inc(x_724); +x_725 = lean_ctor_get(x_644, 2); +lean_inc(x_725); +lean_dec(x_644); +x_726 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_726, 0, x_724); +x_727 = lean_ctor_get(x_8, 0); +lean_inc(x_727); +x_728 = lean_ctor_get(x_8, 1); +lean_inc(x_728); +x_729 = lean_ctor_get(x_8, 2); +lean_inc(x_729); +x_730 = lean_ctor_get(x_8, 3); lean_inc(x_730); -x_731 = lean_ctor_get(x_638, 2); -lean_inc(x_731); -lean_dec(x_638); -x_732 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_732, 0, x_730); -x_733 = lean_ctor_get(x_8, 0); -lean_inc(x_733); -x_734 = lean_ctor_get(x_8, 1); -lean_inc(x_734); -x_735 = lean_ctor_get(x_8, 2); -lean_inc(x_735); -x_736 = lean_ctor_get(x_8, 3); -lean_inc(x_736); -x_737 = l_Lean_replaceRef(x_633, x_736); -x_738 = l_Lean_replaceRef(x_737, x_736); -lean_dec(x_737); -x_739 = l_Lean_replaceRef(x_738, x_736); -lean_dec(x_736); -lean_dec(x_738); -x_740 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_740, 0, x_733); -lean_ctor_set(x_740, 1, x_734); -lean_ctor_set(x_740, 2, x_735); -lean_ctor_set(x_740, 3, x_739); -x_741 = 0; -x_742 = lean_box(0); -lean_inc(x_6); -x_743 = l___private_Lean_Meta_Basic_4__mkFreshExprMVarImpl(x_732, x_741, x_742, x_6, x_7, x_740, x_9, x_639); -lean_dec(x_740); -x_744 = lean_ctor_get(x_743, 0); -lean_inc(x_744); -x_745 = lean_ctor_get(x_743, 1); -lean_inc(x_745); -if (lean_is_exclusive(x_743)) { - lean_ctor_release(x_743, 0); - lean_ctor_release(x_743, 1); - x_746 = x_743; -} else { - lean_dec_ref(x_743); - x_746 = lean_box(0); -} -x_747 = l_Lean_Elab_Term_StructInst_markDefaultMissing(x_744); -lean_inc(x_747); -x_748 = l_Lean_mkApp(x_628, x_747); -x_749 = lean_expr_instantiate1(x_731, x_747); +x_731 = l_Lean_replaceRef(x_639, x_730); +x_732 = l_Lean_replaceRef(x_731, x_730); lean_dec(x_731); -x_750 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_750, 0, x_747); +x_733 = l_Lean_replaceRef(x_732, x_730); +lean_dec(x_730); +lean_dec(x_732); +x_734 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_734, 0, x_727); +lean_ctor_set(x_734, 1, x_728); +lean_ctor_set(x_734, 2, x_729); +lean_ctor_set(x_734, 3, x_733); +x_735 = 0; +x_736 = lean_box(0); +lean_inc(x_6); +x_737 = l___private_Lean_Meta_Basic_4__mkFreshExprMVarImpl(x_726, x_735, x_736, x_6, x_7, x_734, x_9, x_723); +lean_dec(x_734); +x_738 = lean_ctor_get(x_737, 0); +lean_inc(x_738); +x_739 = lean_ctor_get(x_737, 1); +lean_inc(x_739); +if (lean_is_exclusive(x_737)) { + lean_ctor_release(x_737, 0); + lean_ctor_release(x_737, 1); + x_740 = x_737; +} else { + lean_dec_ref(x_737); + x_740 = lean_box(0); +} +x_741 = l_Lean_Elab_Term_StructInst_markDefaultMissing(x_738); +lean_inc(x_741); +x_742 = l_Lean_mkApp(x_634, x_741); +x_743 = lean_expr_instantiate1(x_725, x_741); +lean_dec(x_725); +x_744 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_744, 0, x_741); +if (lean_is_scalar(x_641)) { + x_745 = lean_alloc_ctor(0, 4, 0); +} else { + x_745 = x_641; +} +lean_ctor_set(x_745, 0, x_639); +lean_ctor_set(x_745, 1, x_628); +lean_ctor_set(x_745, 2, x_640); +lean_ctor_set(x_745, 3, x_744); +x_746 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_746, 0, x_745); +lean_ctor_set(x_746, 1, x_637); +if (lean_is_scalar(x_638)) { + x_747 = lean_alloc_ctor(0, 2, 0); +} else { + x_747 = x_638; +} +lean_ctor_set(x_747, 0, x_743); +lean_ctor_set(x_747, 1, x_746); if (lean_is_scalar(x_635)) { - x_751 = lean_alloc_ctor(0, 4, 0); + x_748 = lean_alloc_ctor(0, 2, 0); } else { - x_751 = x_635; + x_748 = x_635; } -lean_ctor_set(x_751, 0, x_633); -lean_ctor_set(x_751, 1, x_624); -lean_ctor_set(x_751, 2, x_634); -lean_ctor_set(x_751, 3, x_750); -x_752 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_752, 0, x_751); -lean_ctor_set(x_752, 1, x_631); -if (lean_is_scalar(x_632)) { - x_753 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_748, 0, x_742); +lean_ctor_set(x_748, 1, x_747); +if (lean_is_scalar(x_740)) { + x_749 = lean_alloc_ctor(0, 2, 0); } else { - x_753 = x_632; + x_749 = x_740; } -lean_ctor_set(x_753, 0, x_749); -lean_ctor_set(x_753, 1, x_752); -if (lean_is_scalar(x_629)) { - x_754 = lean_alloc_ctor(0, 2, 0); -} else { - x_754 = x_629; -} -lean_ctor_set(x_754, 0, x_748); -lean_ctor_set(x_754, 1, x_753); -if (lean_is_scalar(x_746)) { - x_755 = lean_alloc_ctor(0, 2, 0); -} else { - x_755 = x_746; -} -lean_ctor_set(x_755, 0, x_754); -lean_ctor_set(x_755, 1, x_745); -x_609 = x_755; -goto block_617; +lean_ctor_set(x_749, 0, x_748); +lean_ctor_set(x_749, 1, x_739); +x_618 = x_749; +goto block_626; } } } else { -lean_object* x_756; +lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; +lean_dec(x_641); +lean_dec(x_640); +lean_dec(x_638); +lean_dec(x_637); lean_dec(x_635); lean_dec(x_634); -lean_dec(x_632); -lean_dec(x_631); -lean_dec(x_629); lean_dec(x_628); -lean_dec(x_624); -x_756 = lean_box(0); -x_640 = x_756; -goto block_653; -} -block_653: -{ -lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; -lean_dec(x_640); -x_641 = l_Lean_indentExpr(x_638); -x_642 = l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__3; -x_643 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_643, 0, x_642); -lean_ctor_set(x_643, 1, x_641); -x_644 = lean_ctor_get(x_8, 0); -lean_inc(x_644); -x_645 = lean_ctor_get(x_8, 1); -lean_inc(x_645); -x_646 = lean_ctor_get(x_8, 2); -lean_inc(x_646); -x_647 = lean_ctor_get(x_8, 3); -lean_inc(x_647); -x_648 = l_Lean_replaceRef(x_633, x_647); -lean_dec(x_633); -x_649 = l_Lean_replaceRef(x_648, x_647); -lean_dec(x_648); -x_650 = l_Lean_replaceRef(x_649, x_647); -lean_dec(x_647); -lean_dec(x_649); -x_651 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_651, 0, x_644); -lean_ctor_set(x_651, 1, x_645); -lean_ctor_set(x_651, 2, x_646); -lean_ctor_set(x_651, 3, x_650); +x_750 = lean_ctor_get(x_643, 1); +lean_inc(x_750); +lean_dec(x_643); +x_751 = l_Lean_indentExpr(x_644); +x_752 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1___closed__4; +x_753 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_753, 0, x_752); +lean_ctor_set(x_753, 1, x_751); +x_754 = l_Lean_Elab_Term_elabLetDeclAux___closed__4; +x_755 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_755, 0, x_753); +lean_ctor_set(x_755, 1, x_754); +x_756 = lean_ctor_get(x_8, 0); +lean_inc(x_756); +x_757 = lean_ctor_get(x_8, 1); +lean_inc(x_757); +x_758 = lean_ctor_get(x_8, 2); +lean_inc(x_758); +x_759 = lean_ctor_get(x_8, 3); +lean_inc(x_759); +x_760 = l_Lean_replaceRef(x_639, x_759); +lean_dec(x_639); +x_761 = l_Lean_replaceRef(x_760, x_759); +lean_dec(x_760); +x_762 = l_Lean_replaceRef(x_761, x_759); +lean_dec(x_759); +lean_dec(x_761); +x_763 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_763, 0, x_756); +lean_ctor_set(x_763, 1, x_757); +lean_ctor_set(x_763, 2, x_758); +lean_ctor_set(x_763, 3, x_762); lean_inc(x_4); lean_inc(x_1); -x_652 = l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg(x_636, x_1, x_643, x_4, x_5, x_6, x_7, x_651, x_9, x_639); -lean_dec(x_651); -x_609 = x_652; -goto block_617; +x_764 = l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg(x_642, x_1, x_755, x_4, x_5, x_6, x_7, x_763, x_9, x_750); +lean_dec(x_763); +x_618 = x_764; +goto block_626; } } else { -lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; -lean_dec(x_636); +lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_object* x_768; +lean_dec(x_642); +lean_dec(x_641); +lean_dec(x_640); +lean_dec(x_639); +lean_dec(x_638); +lean_dec(x_637); lean_dec(x_635); lean_dec(x_634); +lean_dec(x_628); +x_765 = lean_ctor_get(x_643, 0); +lean_inc(x_765); +x_766 = lean_ctor_get(x_643, 1); +lean_inc(x_766); +if (lean_is_exclusive(x_643)) { + lean_ctor_release(x_643, 0); + lean_ctor_release(x_643, 1); + x_767 = x_643; +} else { + lean_dec_ref(x_643); + x_767 = lean_box(0); +} +if (lean_is_scalar(x_767)) { + x_768 = lean_alloc_ctor(1, 2, 0); +} else { + x_768 = x_767; +} +lean_ctor_set(x_768, 0, x_765); +lean_ctor_set(x_768, 1, x_766); +x_618 = x_768; +goto block_626; +} +} +else +{ +lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_dec(x_633); lean_dec(x_632); -lean_dec(x_631); -lean_dec(x_629); lean_dec(x_628); -lean_dec(x_624); -x_757 = lean_ctor_get(x_637, 0); -lean_inc(x_757); -x_758 = lean_ctor_get(x_637, 1); -lean_inc(x_758); -if (lean_is_exclusive(x_637)) { - lean_ctor_release(x_637, 0); - lean_ctor_release(x_637, 1); - x_759 = x_637; -} else { - lean_dec_ref(x_637); - x_759 = lean_box(0); -} -if (lean_is_scalar(x_759)) { - x_760 = lean_alloc_ctor(1, 2, 0); -} else { - x_760 = x_759; -} -lean_ctor_set(x_760, 0, x_757); -lean_ctor_set(x_760, 1, x_758); -x_609 = x_760; -goto block_617; -} -} -else -{ -lean_object* x_761; lean_dec(x_627); -lean_dec(x_626); -lean_dec(x_624); -lean_dec(x_623); lean_dec(x_2); -x_761 = lean_box(0); -x_618 = x_761; -goto block_622; +x_769 = lean_ctor_get(x_616, 0); +lean_inc(x_769); +lean_dec(x_616); +x_770 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1___closed__3; +lean_inc(x_8); +lean_inc(x_4); +x_771 = l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2___rarg(x_769, x_770, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_769); +x_618 = x_771; +goto block_626; } } else { -lean_object* x_762; -lean_dec(x_626); -lean_dec(x_624); -lean_dec(x_623); +lean_object* x_772; lean_object* x_773; lean_object* x_774; +lean_dec(x_632); +lean_dec(x_628); +lean_dec(x_627); lean_dec(x_2); -x_762 = lean_box(0); -x_618 = x_762; -goto block_622; +x_772 = lean_ctor_get(x_616, 0); +lean_inc(x_772); +lean_dec(x_616); +x_773 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1___closed__3; +lean_inc(x_8); +lean_inc(x_4); +x_774 = l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2___rarg(x_772, x_773, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_772); +x_618 = x_774; +goto block_626; } } -block_617: +block_626: { -if (lean_obj_tag(x_609) == 0) +if (lean_obj_tag(x_618) == 0) { -lean_object* x_610; lean_object* x_611; -x_610 = lean_ctor_get(x_609, 0); -lean_inc(x_610); -x_611 = lean_ctor_get(x_609, 1); -lean_inc(x_611); -lean_dec(x_609); -x_2 = x_610; -x_3 = x_608; -x_10 = x_611; +lean_object* x_619; lean_object* x_620; +x_619 = lean_ctor_get(x_618, 0); +lean_inc(x_619); +x_620 = lean_ctor_get(x_618, 1); +lean_inc(x_620); +lean_dec(x_618); +x_2 = x_619; +x_3 = x_617; +x_10 = x_620; goto _start; } else { -lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; -lean_dec(x_608); +lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; +lean_dec(x_617); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -22255,48 +20079,33 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_613 = lean_ctor_get(x_609, 0); -lean_inc(x_613); -x_614 = lean_ctor_get(x_609, 1); -lean_inc(x_614); -if (lean_is_exclusive(x_609)) { - lean_ctor_release(x_609, 0); - lean_ctor_release(x_609, 1); - x_615 = x_609; +x_622 = lean_ctor_get(x_618, 0); +lean_inc(x_622); +x_623 = lean_ctor_get(x_618, 1); +lean_inc(x_623); +if (lean_is_exclusive(x_618)) { + lean_ctor_release(x_618, 0); + lean_ctor_release(x_618, 1); + x_624 = x_618; } else { - lean_dec_ref(x_609); - x_615 = lean_box(0); + lean_dec_ref(x_618); + x_624 = lean_box(0); } -if (lean_is_scalar(x_615)) { - x_616 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_624)) { + x_625 = lean_alloc_ctor(1, 2, 0); } else { - x_616 = x_615; + x_625 = x_624; } -lean_ctor_set(x_616, 0, x_613); -lean_ctor_set(x_616, 1, x_614); -return x_616; -} -} -block_622: -{ -lean_object* x_619; lean_object* x_620; lean_object* x_621; -lean_dec(x_618); -x_619 = lean_ctor_get(x_607, 0); -lean_inc(x_619); -lean_dec(x_607); -x_620 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_24__elabStruct___main___spec__1___closed__3; -lean_inc(x_8); -lean_inc(x_4); -x_621 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_619, x_620, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_619); -x_609 = x_621; -goto block_617; +lean_ctor_set(x_625, 0, x_622); +lean_ctor_set(x_625, 1, x_623); +return x_625; } } } } } -lean_object* l___private_Lean_Elab_StructInst_24__elabStruct___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) { +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; @@ -22331,7 +20140,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_3); -x_22 = l___private_Lean_Elab_StructInst_23__mkCtorHeader(x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_18); +x_22 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeader(x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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; @@ -22353,7 +20162,7 @@ x_29 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_29, 0, x_25); lean_ctor_set(x_29, 1, x_28); x_30 = l_Lean_Elab_Term_StructInst_Struct_fields(x_1); -x_31 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_24__elabStruct___main___spec__1(x_20, x_29, x_30, x_3, x_4, x_5, x_6, x_7, x_8, x_24); +x_31 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1(x_20, x_29, x_30, x_3, x_4, x_5, x_6, x_7, x_8, x_24); if (lean_obj_tag(x_31) == 0) { lean_object* x_32; lean_object* x_33; uint8_t x_34; @@ -22529,7 +20338,7 @@ lean_inc(x_69); lean_inc(x_6); lean_inc(x_5); lean_inc(x_3); -x_76 = l___private_Lean_Elab_StructInst_23__mkCtorHeader(x_75, x_2, x_3, x_4, x_5, x_6, x_69, x_8, x_72); +x_76 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeader(x_75, x_2, x_3, x_4, x_5, x_6, x_69, x_8, x_72); if (lean_obj_tag(x_76) == 0) { 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; @@ -22551,7 +20360,7 @@ x_83 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_83, 0, x_79); lean_ctor_set(x_83, 1, x_82); x_84 = l_Lean_Elab_Term_StructInst_Struct_fields(x_1); -x_85 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_24__elabStruct___main___spec__1(x_74, x_83, x_84, x_3, x_4, x_5, x_6, x_69, x_8, x_78); +x_85 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1(x_74, x_83, x_84, x_3, x_4, x_5, x_6, x_69, x_8, x_78); if (lean_obj_tag(x_85) == 0) { 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; @@ -22661,15 +20470,85 @@ return x_104; } } } -lean_object* l___private_Lean_Elab_StructInst_24__elabStruct(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_StructInst_DefaultFields_Context_structs___default() { _start: { -lean_object* x_10; -x_10 = l___private_Lean_Elab_StructInst_24__elabStruct___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_10; +lean_object* x_1; +x_1 = l_Array_empty___closed__1; +return x_1; } } -lean_object* l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___main___spec__1(lean_object* x_1, lean_object* x_2) { +static lean_object* _init_l_Lean_Elab_Term_StructInst_DefaultFields_Context_allStructNames___default() { +_start: +{ +lean_object* x_1; +x_1 = l_Array_empty___closed__1; +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_StructInst_DefaultFields_Context_maxDistance___default() { +_start: +{ +lean_object* x_1; +x_1 = lean_unsigned_to_nat(0u); +return x_1; +} +} +static uint8_t _init_l_Lean_Elab_Term_StructInst_DefaultFields_State_progress___default() { +_start: +{ +uint8_t x_1; +x_1 = 0; +return x_1; +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = lean_apply_1(x_3, x_1); +return x_6; +} +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_apply_2(x_3, x_1, x_2); +return x_4; +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -22686,7 +20565,7 @@ if (lean_obj_tag(x_4) == 1) lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_2, 1); x_6 = lean_ctor_get(x_4, 0); -x_7 = l_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___main(x_6, x_1); +x_7 = l_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames(x_6, x_1); x_1 = x_7; x_2 = x_5; goto _start; @@ -22701,44 +20580,27 @@ goto _start; } } } -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___main(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_3 = l_Lean_Elab_Term_StructInst_Struct_structName(x_1); x_4 = lean_array_push(x_2, x_3); x_5 = l_Lean_Elab_Term_StructInst_Struct_fields(x_1); -x_6 = l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___main___spec__1(x_4, x_5); +x_6 = l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___spec__1(x_4, x_5); lean_dec(x_5); return x_6; } } -lean_object* l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___main___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___main___spec__1(x_1, x_2); +x_3 = l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___spec__1(x_1, x_2); lean_dec(x_2); return x_3; } } -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___main___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___main(x_1, x_2); -lean_dec(x_1); -return x_3; -} -} -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___main(x_1, x_2); -return x_3; -} -} lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___boxed(lean_object* x_1, lean_object* x_2) { _start: { @@ -22748,7 +20610,53 @@ lean_dec(x_1); return x_3; } } -lean_object* l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___main___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = lean_apply_1(x_3, x_1); +return x_6; +} +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth_match__2___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_apply_1(x_2, x_1); +return x_3; +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth_match__2___rarg), 2, 0); +return x_2; +} +} +lean_object* l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -22765,7 +20673,7 @@ if (lean_obj_tag(x_4) == 1) lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; x_5 = lean_ctor_get(x_2, 1); x_6 = lean_ctor_get(x_4, 0); -x_7 = l_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___main(x_6); +x_7 = l_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth(x_6); x_8 = lean_unsigned_to_nat(1u); x_9 = lean_nat_add(x_7, x_8); lean_dec(x_7); @@ -22786,43 +20694,26 @@ goto _start; } } } -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___main(lean_object* x_1) { +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; x_2 = l_Lean_Elab_Term_StructInst_Struct_fields(x_1); x_3 = lean_unsigned_to_nat(0u); -x_4 = l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___main___spec__1(x_3, x_2); +x_4 = l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___spec__1(x_3, x_2); lean_dec(x_2); return x_4; } } -lean_object* l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___main___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___main___spec__1(x_1, x_2); +x_3 = l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___spec__1(x_1, x_2); lean_dec(x_2); return x_3; } } -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___main___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___main(x_1); -lean_dec(x_1); -return x_2; -} -} -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___main(x_1); -return x_2; -} -} lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___boxed(lean_object* x_1) { _start: { @@ -22832,171 +20723,292 @@ lean_dec(x_1); return x_2; } } -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___main___lambda__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_3; lean_object* x_23; -x_23 = lean_ctor_get(x_2, 2); -lean_inc(x_23); -if (lean_obj_tag(x_23) == 1) -{ -lean_object* x_24; lean_object* x_25; -lean_dec(x_2); -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -lean_dec(x_23); -x_25 = l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___main(x_1, x_24); -lean_dec(x_24); -return x_25; -} -else -{ -lean_object* x_26; -lean_dec(x_23); -x_26 = lean_box(0); -x_3 = x_26; -goto block_22; -} -block_22: +if (lean_obj_tag(x_1) == 0) { lean_object* x_4; -lean_dec(x_3); -x_4 = lean_ctor_get(x_2, 3); -lean_inc(x_4); -if (lean_obj_tag(x_4) == 0) -{ -lean_object* x_5; lean_object* x_6; lean_dec(x_2); -lean_dec(x_1); -x_5 = lean_box(0); -x_6 = l_unreachable_x21___rarg(x_5); -return x_6; +x_4 = lean_apply_1(x_3, x_1); +return x_4; } else { -lean_object* x_7; lean_object* x_8; -x_7 = lean_ctor_get(x_4, 0); -lean_inc(x_7); -lean_dec(x_4); -x_8 = l_Lean_Elab_Term_StructInst_defaultMissing_x3f(x_7); -lean_dec(x_7); -if (lean_obj_tag(x_8) == 0) +lean_object* x_5; +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +if (lean_obj_tag(x_5) == 2) { -lean_object* x_9; -lean_dec(x_2); +lean_object* x_6; uint64_t x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_3); lean_dec(x_1); -x_9 = lean_box(0); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get_uint64(x_5, sizeof(void*)*1); +lean_dec(x_5); +x_8 = lean_box_uint64(x_7); +x_9 = lean_apply_2(x_2, x_6, x_8); return x_9; } else { -uint8_t x_10; -x_10 = !lean_is_exclusive(x_8); -if (x_10 == 0) -{ -lean_object* x_11; -x_11 = lean_ctor_get(x_8, 0); -if (lean_obj_tag(x_11) == 2) -{ -lean_object* x_12; uint8_t x_13; -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -lean_dec(x_11); -x_13 = lean_metavar_ctx_is_expr_assigned(x_1, x_12); -if (x_13 == 0) -{ -lean_ctor_set(x_8, 0, x_2); -return x_8; -} -else -{ -lean_object* x_14; -lean_free_object(x_8); +lean_object* x_10; +lean_dec(x_5); lean_dec(x_2); -x_14 = lean_box(0); -return x_14; -} -} -else -{ -lean_object* x_15; -lean_free_object(x_8); -lean_dec(x_11); -lean_dec(x_2); -lean_dec(x_1); -x_15 = lean_box(0); -return x_15; -} -} -else -{ -lean_object* x_16; -x_16 = lean_ctor_get(x_8, 0); -lean_inc(x_16); -lean_dec(x_8); -if (lean_obj_tag(x_16) == 2) -{ -lean_object* x_17; uint8_t x_18; -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -lean_dec(x_16); -x_18 = lean_metavar_ctx_is_expr_assigned(x_1, x_17); -if (x_18 == 0) -{ -lean_object* x_19; -x_19 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_19, 0, x_2); -return x_19; -} -else -{ -lean_object* x_20; -lean_dec(x_2); -x_20 = lean_box(0); -return x_20; -} -} -else -{ -lean_object* x_21; -lean_dec(x_16); -lean_dec(x_2); -lean_dec(x_1); -x_21 = lean_box(0); -return x_21; +x_10 = lean_apply_1(x_3, x_1); +return x_10; } } } } -} -} -} -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___main(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f_match__1(lean_object* x_1) { _start: { -lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_3 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___main___lambda__1), 2, 1); -lean_closure_set(x_3, 0, x_1); -x_4 = l_Lean_Elab_Term_StructInst_Struct_fields(x_2); -x_5 = l_List_findSome_x3f___main___rarg(x_3, x_4); +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); return x_5; } +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; } -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___main___boxed(lean_object* x_1, lean_object* x_2) { +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = lean_apply_1(x_3, x_1); +return x_6; +} +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f_match__3___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f_match__4___rarg(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___main(x_1, x_2); -lean_dec(x_2); +x_3 = lean_apply_1(x_2, x_1); return x_3; } } +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f_match__4(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f_match__4___rarg), 2, 0); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Lean.Elab.Term.StructInst.DefaultFields.findDefaultMissing?"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___lambda__1___closed__2() { +_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_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__4; +x_2 = l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___lambda__1___closed__1; +x_3 = lean_unsigned_to_nat(598u); +x_4 = lean_unsigned_to_nat(20u); +x_5 = l_Lean_ResolveName_resolveNamespaceUsingScope___closed__3; +x_6 = l___private_Init_Util_2__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___lambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_ctor_get(x_2, 2); +lean_inc(x_3); +if (lean_obj_tag(x_3) == 1) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +lean_dec(x_3); +x_5 = l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f(x_1, x_4); +lean_dec(x_4); +return x_5; +} +else +{ +lean_object* x_6; +lean_dec(x_3); +x_6 = lean_ctor_get(x_2, 3); +lean_inc(x_6); +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_2); +lean_dec(x_1); +x_7 = lean_box(0); +x_8 = l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___lambda__1___closed__2; +x_9 = lean_panic_fn(x_7, x_8); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_6, 0); +lean_inc(x_10); +lean_dec(x_6); +x_11 = l_Lean_Elab_Term_StructInst_defaultMissing_x3f(x_10); +lean_dec(x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; +lean_dec(x_2); +lean_dec(x_1); +x_12 = lean_box(0); +return x_12; +} +else +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_11); +if (x_13 == 0) +{ +lean_object* x_14; +x_14 = lean_ctor_get(x_11, 0); +if (lean_obj_tag(x_14) == 2) +{ +lean_object* x_15; uint8_t x_16; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +lean_dec(x_14); +x_16 = lean_metavar_ctx_is_expr_assigned(x_1, x_15); +if (x_16 == 0) +{ +lean_ctor_set(x_11, 0, x_2); +return x_11; +} +else +{ +lean_object* x_17; +lean_free_object(x_11); +lean_dec(x_2); +x_17 = lean_box(0); +return x_17; +} +} +else +{ +lean_object* x_18; +lean_free_object(x_11); +lean_dec(x_14); +lean_dec(x_2); +lean_dec(x_1); +x_18 = lean_box(0); +return x_18; +} +} +else +{ +lean_object* x_19; +x_19 = lean_ctor_get(x_11, 0); +lean_inc(x_19); +lean_dec(x_11); +if (lean_obj_tag(x_19) == 2) +{ +lean_object* x_20; uint8_t x_21; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +lean_dec(x_19); +x_21 = lean_metavar_ctx_is_expr_assigned(x_1, x_20); +if (x_21 == 0) +{ +lean_object* x_22; +x_22 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_22, 0, x_2); +return x_22; +} +else +{ +lean_object* x_23; +lean_dec(x_2); +x_23 = lean_box(0); +return x_23; +} +} +else +{ +lean_object* x_24; +lean_dec(x_19); +lean_dec(x_2); +lean_dec(x_1); +x_24 = lean_box(0); +return x_24; +} +} +} +} +} +} +} lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_3; -x_3 = l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___main(x_1, x_2); -return x_3; +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___lambda__1), 2, 1); +lean_closure_set(x_3, 0, x_1); +x_4 = l_Lean_Elab_Term_StructInst_Struct_fields(x_2); +x_5 = l_List_findSome_x3f___main___rarg(x_3, x_4); +return x_5; } } lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___boxed(lean_object* x_1, lean_object* x_2) { @@ -23008,6 +21020,89 @@ lean_dec(x_2); return x_3; } } +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getFieldName_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_apply_1(x_3, x_1); +return x_4; +} +else +{ +lean_object* x_5; +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_6; +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +lean_dec(x_1); +x_7 = lean_ctor_get(x_5, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_5, 1); +lean_inc(x_8); +lean_dec(x_5); +x_9 = lean_apply_2(x_2, x_7, x_8); +return x_9; +} +else +{ +lean_object* x_10; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +x_10 = lean_apply_1(x_3, x_1); +return x_10; +} +} +else +{ +lean_object* x_11; +lean_dec(x_5); +lean_dec(x_2); +x_11 = lean_apply_1(x_3, x_1); +return x_11; +} +} +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getFieldName_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_getFieldName_match__1___rarg), 3, 0); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Term_StructInst_DefaultFields_getFieldName___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Lean.Elab.Term.StructInst.DefaultFields.getFieldName"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_StructInst_DefaultFields_getFieldName___closed__2() { +_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_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__4; +x_2 = l_Lean_Elab_Term_StructInst_DefaultFields_getFieldName___closed__1; +x_3 = lean_unsigned_to_nat(606u); +x_4 = lean_unsigned_to_nat(7u); +x_5 = l_Lean_ResolveName_resolveNamespaceUsingScope___closed__3; +x_6 = l___private_Init_Util_2__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getFieldName(lean_object* x_1) { _start: { @@ -23015,42 +21110,45 @@ lean_object* x_2; x_2 = lean_ctor_get(x_1, 1); if (lean_obj_tag(x_2) == 0) { -lean_object* x_3; lean_object* x_4; +lean_object* x_3; lean_object* x_4; lean_object* x_5; x_3 = l_Lean_Name_inhabited; -x_4 = l_unreachable_x21___rarg(x_3); -return x_4; +x_4 = l_Lean_Elab_Term_StructInst_DefaultFields_getFieldName___closed__2; +x_5 = lean_panic_fn(x_3, x_4); +return x_5; } else { -lean_object* x_5; -x_5 = lean_ctor_get(x_2, 0); -if (lean_obj_tag(x_5) == 0) -{ lean_object* x_6; -x_6 = lean_ctor_get(x_2, 1); +x_6 = lean_ctor_get(x_2, 0); if (lean_obj_tag(x_6) == 0) { lean_object* x_7; -x_7 = lean_ctor_get(x_5, 1); -lean_inc(x_7); -return x_7; +x_7 = lean_ctor_get(x_2, 1); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +return x_8; } else { -lean_object* x_8; lean_object* x_9; -x_8 = l_Lean_Name_inhabited; -x_9 = l_unreachable_x21___rarg(x_8); -return x_9; -} -} -else -{ -lean_object* x_10; lean_object* x_11; -x_10 = l_Lean_Name_inhabited; -x_11 = l_unreachable_x21___rarg(x_10); +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = l_Lean_Name_inhabited; +x_10 = l_Lean_Elab_Term_StructInst_DefaultFields_getFieldName___closed__2; +x_11 = lean_panic_fn(x_9, x_10); return x_11; } } +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = l_Lean_Name_inhabited; +x_13 = l_Lean_Elab_Term_StructInst_DefaultFields_getFieldName___closed__2; +x_14 = lean_panic_fn(x_12, x_13); +return x_14; +} +} } } lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getFieldName___boxed(lean_object* x_1) { @@ -23201,483 +21299,524 @@ lean_dec(x_1); return x_3; } } -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f___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) { +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_10; -if (lean_obj_tag(x_2) == 6) +if (lean_obj_tag(x_1) == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; uint64_t x_23; lean_object* x_24; uint8_t x_25; uint8_t x_26; uint8_t x_27; -x_20 = lean_ctor_get(x_2, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_2, 1); -lean_inc(x_21); -x_22 = lean_ctor_get(x_2, 2); -lean_inc(x_22); -x_23 = lean_ctor_get_uint64(x_2, sizeof(void*)*3); -lean_dec(x_2); -x_24 = l_Lean_Elab_Term_StructInst_Struct_ref(x_1); -x_25 = (uint8_t)((x_23 << 24) >> 61); -x_26 = l_Lean_BinderInfo_isExplicit(x_25); -x_27 = !lean_is_exclusive(x_7); -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_7, 3); -x_29 = l_Lean_replaceRef(x_24, x_28); -lean_dec(x_24); -x_30 = l_Lean_replaceRef(x_29, x_28); -lean_dec(x_29); -x_31 = l_Lean_replaceRef(x_30, x_28); -lean_dec(x_28); -lean_dec(x_30); -lean_ctor_set(x_7, 3, x_31); -if (x_26 == 0) -{ -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_dec(x_20); -x_32 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_32, 0, x_21); -x_33 = 0; -x_34 = lean_box(0); -lean_inc(x_5); -x_35 = l___private_Lean_Meta_Basic_4__mkFreshExprMVarImpl(x_32, x_33, x_34, x_5, x_6, x_7, x_8, x_9); -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_instantiate1(x_22, x_36); -lean_dec(x_36); -lean_dec(x_22); -x_2 = x_38; -x_9 = x_37; -goto _start; -} -else -{ -lean_object* x_40; -x_40 = l_Lean_Elab_Term_StructInst_DefaultFields_getFieldValue_x3f(x_1, x_20); -if (lean_obj_tag(x_40) == 0) -{ -lean_object* x_41; -lean_dec(x_7); -lean_dec(x_22); -lean_dec(x_21); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_9); -return x_41; -} -else -{ -lean_object* x_42; lean_object* x_43; -x_42 = lean_ctor_get(x_40, 0); -lean_inc(x_42); -lean_dec(x_40); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_42); -x_43 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_42, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_43) == 0) -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_43, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_43, 1); -lean_inc(x_45); -lean_dec(x_43); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_46 = l_Lean_Meta_isExprDefEq___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_44, x_21, x_3, x_4, x_5, x_6, x_7, x_8, x_45); -if (lean_obj_tag(x_46) == 0) -{ -lean_object* x_47; uint8_t x_48; -x_47 = lean_ctor_get(x_46, 0); -lean_inc(x_47); -x_48 = lean_unbox(x_47); -lean_dec(x_47); -if (x_48 == 0) -{ -uint8_t x_49; -lean_dec(x_42); -lean_dec(x_7); -lean_dec(x_22); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_49 = !lean_is_exclusive(x_46); -if (x_49 == 0) -{ -lean_object* x_50; lean_object* x_51; -x_50 = lean_ctor_get(x_46, 0); -lean_dec(x_50); -x_51 = lean_box(0); -lean_ctor_set(x_46, 0, x_51); -return x_46; -} -else -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_46, 1); -lean_inc(x_52); -lean_dec(x_46); -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_52); -return x_54; -} -} -else -{ -lean_object* x_55; lean_object* x_56; -x_55 = lean_ctor_get(x_46, 1); -lean_inc(x_55); -lean_dec(x_46); -x_56 = lean_expr_instantiate1(x_22, x_42); -lean_dec(x_42); -lean_dec(x_22); -x_2 = x_56; -x_9 = x_55; -goto _start; -} -} -else -{ -uint8_t x_58; -lean_dec(x_42); -lean_dec(x_7); -lean_dec(x_22); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_58 = !lean_is_exclusive(x_46); -if (x_58 == 0) -{ -return x_46; -} -else -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_46, 0); -x_60 = lean_ctor_get(x_46, 1); -lean_inc(x_60); -lean_inc(x_59); -lean_dec(x_46); -x_61 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_61, 0, x_59); -lean_ctor_set(x_61, 1, x_60); -return x_61; -} -} -} -else -{ -uint8_t x_62; -lean_dec(x_42); -lean_dec(x_7); -lean_dec(x_22); -lean_dec(x_21); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_62 = !lean_is_exclusive(x_43); -if (x_62 == 0) -{ -return x_43; -} -else -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_63 = lean_ctor_get(x_43, 0); -x_64 = lean_ctor_get(x_43, 1); -lean_inc(x_64); -lean_inc(x_63); -lean_dec(x_43); -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_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_66 = lean_ctor_get(x_7, 0); -x_67 = lean_ctor_get(x_7, 1); -x_68 = lean_ctor_get(x_7, 2); -x_69 = lean_ctor_get(x_7, 3); -lean_inc(x_69); -lean_inc(x_68); -lean_inc(x_67); -lean_inc(x_66); -lean_dec(x_7); -x_70 = l_Lean_replaceRef(x_24, x_69); -lean_dec(x_24); -x_71 = l_Lean_replaceRef(x_70, x_69); -lean_dec(x_70); -x_72 = l_Lean_replaceRef(x_71, x_69); -lean_dec(x_69); -lean_dec(x_71); -x_73 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_73, 0, x_66); -lean_ctor_set(x_73, 1, x_67); -lean_ctor_set(x_73, 2, x_68); -lean_ctor_set(x_73, 3, x_72); -if (x_26 == 0) -{ -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_dec(x_20); -x_74 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_74, 0, x_21); -x_75 = 0; -x_76 = lean_box(0); -lean_inc(x_5); -x_77 = l___private_Lean_Meta_Basic_4__mkFreshExprMVarImpl(x_74, x_75, x_76, x_5, x_6, x_73, x_8, x_9); -x_78 = lean_ctor_get(x_77, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_77, 1); -lean_inc(x_79); -lean_dec(x_77); -x_80 = lean_expr_instantiate1(x_22, x_78); -lean_dec(x_78); -lean_dec(x_22); -x_2 = x_80; -x_7 = x_73; -x_9 = x_79; -goto _start; -} -else -{ -lean_object* x_82; -x_82 = l_Lean_Elab_Term_StructInst_DefaultFields_getFieldValue_x3f(x_1, x_20); -if (lean_obj_tag(x_82) == 0) -{ -lean_object* x_83; -lean_dec(x_73); -lean_dec(x_22); -lean_dec(x_21); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_83 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_83, 0, x_82); -lean_ctor_set(x_83, 1, x_9); -return x_83; -} -else -{ -lean_object* x_84; lean_object* x_85; -x_84 = lean_ctor_get(x_82, 0); -lean_inc(x_84); -lean_dec(x_82); -lean_inc(x_8); -lean_inc(x_73); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_84); -x_85 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_84, x_3, x_4, x_5, x_6, x_73, x_8, x_9); -if (lean_obj_tag(x_85) == 0) -{ -lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_86 = lean_ctor_get(x_85, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_85, 1); -lean_inc(x_87); -lean_dec(x_85); -lean_inc(x_8); -lean_inc(x_73); -lean_inc(x_6); -lean_inc(x_5); -x_88 = l_Lean_Meta_isExprDefEq___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_86, x_21, x_3, x_4, x_5, x_6, x_73, x_8, x_87); -if (lean_obj_tag(x_88) == 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_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -lean_dec(x_84); -lean_dec(x_73); -lean_dec(x_22); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_91 = lean_ctor_get(x_88, 1); -lean_inc(x_91); -if (lean_is_exclusive(x_88)) { - lean_ctor_release(x_88, 0); - lean_ctor_release(x_88, 1); - x_92 = x_88; -} else { - lean_dec_ref(x_88); - x_92 = lean_box(0); -} -x_93 = lean_box(0); -if (lean_is_scalar(x_92)) { - x_94 = lean_alloc_ctor(0, 2, 0); -} else { - x_94 = x_92; -} -lean_ctor_set(x_94, 0, x_93); -lean_ctor_set(x_94, 1, x_91); -return x_94; -} -else -{ -lean_object* x_95; lean_object* x_96; -x_95 = lean_ctor_get(x_88, 1); -lean_inc(x_95); -lean_dec(x_88); -x_96 = lean_expr_instantiate1(x_22, x_84); -lean_dec(x_84); -lean_dec(x_22); -x_2 = x_96; -x_7 = x_73; -x_9 = x_95; -goto _start; -} -} -else -{ -lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; -lean_dec(x_84); -lean_dec(x_73); -lean_dec(x_22); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_98 = lean_ctor_get(x_88, 0); -lean_inc(x_98); -x_99 = lean_ctor_get(x_88, 1); -lean_inc(x_99); -if (lean_is_exclusive(x_88)) { - lean_ctor_release(x_88, 0); - lean_ctor_release(x_88, 1); - x_100 = x_88; -} else { - lean_dec_ref(x_88); - x_100 = lean_box(0); -} -if (lean_is_scalar(x_100)) { - x_101 = lean_alloc_ctor(1, 2, 0); -} else { - x_101 = x_100; -} -lean_ctor_set(x_101, 0, x_98); -lean_ctor_set(x_101, 1, x_99); -return x_101; -} -} -else -{ -lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; -lean_dec(x_84); -lean_dec(x_73); -lean_dec(x_22); -lean_dec(x_21); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_102 = lean_ctor_get(x_85, 0); -lean_inc(x_102); -x_103 = lean_ctor_get(x_85, 1); -lean_inc(x_103); -if (lean_is_exclusive(x_85)) { - lean_ctor_release(x_85, 0); - lean_ctor_release(x_85, 1); - x_104 = x_85; -} else { - lean_dec_ref(x_85); - x_104 = lean_box(0); -} -if (lean_is_scalar(x_104)) { - x_105 = lean_alloc_ctor(1, 2, 0); -} else { - x_105 = x_104; -} -lean_ctor_set(x_105, 0, x_102); -lean_ctor_set(x_105, 1, x_103); -return x_105; -} -} -} -} -} -else -{ -lean_object* x_106; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_106 = lean_box(0); -x_10 = x_106; -goto block_19; -} -block_19: -{ -lean_object* x_11; lean_object* x_12; uint8_t x_13; -lean_dec(x_10); -x_11 = l___private_Lean_Meta_AppBuilder_1__mkIdImp___closed__2; -x_12 = lean_unsigned_to_nat(2u); -x_13 = l_Lean_Expr_isAppOfArity___main(x_2, x_11, x_12); -if (x_13 == 0) -{ -lean_object* x_14; lean_object* x_15; -x_14 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_14, 0, x_2); -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; -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = l_Lean_Expr_appArg_x21(x_2); -lean_dec(x_2); -x_17 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_17, 0, x_16); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_9); -return x_18; -} -} -} -} -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_4); +lean_object* x_4; lean_object* x_5; lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 6) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint64_t x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 2); +lean_inc(x_6); +x_7 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +lean_dec(x_1); +x_8 = lean_box_uint64(x_7); +x_9 = lean_apply_4(x_2, x_4, x_5, x_6, x_8); +return x_9; +} +else +{ +lean_object* x_10; +lean_dec(x_2); +x_10 = lean_apply_1(x_3, x_1); return x_10; } } +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f_match__2___rarg), 3, 0); +return x_2; +} +} lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -lean_object* x_10; -x_10 = l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_10; +if (lean_obj_tag(x_2) == 6) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; uint64_t x_13; lean_object* x_14; uint8_t x_15; uint8_t x_16; uint8_t x_17; +x_10 = lean_ctor_get(x_2, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_2, 1); +lean_inc(x_11); +x_12 = lean_ctor_get(x_2, 2); +lean_inc(x_12); +x_13 = lean_ctor_get_uint64(x_2, sizeof(void*)*3); +lean_dec(x_2); +x_14 = l_Lean_Elab_Term_StructInst_Struct_ref(x_1); +x_15 = (uint8_t)((x_13 << 24) >> 61); +x_16 = l_Lean_BinderInfo_isExplicit(x_15); +x_17 = !lean_is_exclusive(x_7); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_7, 3); +x_19 = l_Lean_replaceRef(x_14, x_18); +lean_dec(x_14); +x_20 = l_Lean_replaceRef(x_19, x_18); +lean_dec(x_19); +x_21 = l_Lean_replaceRef(x_20, x_18); +lean_dec(x_18); +lean_dec(x_20); +lean_ctor_set(x_7, 3, x_21); +if (x_16 == 0) +{ +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_dec(x_10); +x_22 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_22, 0, x_11); +x_23 = 0; +x_24 = lean_box(0); +lean_inc(x_5); +x_25 = l___private_Lean_Meta_Basic_4__mkFreshExprMVarImpl(x_22, x_23, x_24, x_5, x_6, x_7, x_8, x_9); +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_expr_instantiate1(x_12, x_26); +lean_dec(x_26); +lean_dec(x_12); +x_2 = x_28; +x_9 = x_27; +goto _start; +} +else +{ +lean_object* x_30; +x_30 = l_Lean_Elab_Term_StructInst_DefaultFields_getFieldValue_x3f(x_1, x_10); +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_31; lean_object* x_32; +lean_dec(x_7); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_31 = lean_box(0); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_9); +return x_32; +} +else +{ +lean_object* x_33; lean_object* x_34; +x_33 = lean_ctor_get(x_30, 0); +lean_inc(x_33); +lean_dec(x_30); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_33); +x_34 = l_Lean_Meta_inferType___at___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType___spec__1(x_33, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_34) == 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_inc(x_36); +lean_dec(x_34); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_37 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_propagateExpectedType___spec__3(x_35, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_36); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; uint8_t x_39; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_unbox(x_38); +lean_dec(x_38); +if (x_39 == 0) +{ +uint8_t x_40; +lean_dec(x_33); +lean_dec(x_7); +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_40 = !lean_is_exclusive(x_37); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; +x_41 = lean_ctor_get(x_37, 0); +lean_dec(x_41); +x_42 = lean_box(0); +lean_ctor_set(x_37, 0, x_42); +return x_37; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_37, 1); +lean_inc(x_43); +lean_dec(x_37); +x_44 = lean_box(0); +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; +} +} +else +{ +lean_object* x_46; lean_object* x_47; +x_46 = lean_ctor_get(x_37, 1); +lean_inc(x_46); +lean_dec(x_37); +x_47 = lean_expr_instantiate1(x_12, x_33); +lean_dec(x_33); +lean_dec(x_12); +x_2 = x_47; +x_9 = x_46; +goto _start; +} +} +else +{ +uint8_t x_49; +lean_dec(x_33); +lean_dec(x_7); +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_49 = !lean_is_exclusive(x_37); +if (x_49 == 0) +{ +return x_37; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_37, 0); +x_51 = lean_ctor_get(x_37, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_37); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +return x_52; +} +} +} +else +{ +uint8_t x_53; +lean_dec(x_33); +lean_dec(x_7); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_53 = !lean_is_exclusive(x_34); +if (x_53 == 0) +{ +return x_34; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_34, 0); +x_55 = lean_ctor_get(x_34, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_34); +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 +{ +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_57 = lean_ctor_get(x_7, 0); +x_58 = lean_ctor_get(x_7, 1); +x_59 = lean_ctor_get(x_7, 2); +x_60 = lean_ctor_get(x_7, 3); +lean_inc(x_60); +lean_inc(x_59); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_7); +x_61 = l_Lean_replaceRef(x_14, x_60); +lean_dec(x_14); +x_62 = l_Lean_replaceRef(x_61, x_60); +lean_dec(x_61); +x_63 = l_Lean_replaceRef(x_62, x_60); +lean_dec(x_60); +lean_dec(x_62); +x_64 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_64, 0, x_57); +lean_ctor_set(x_64, 1, x_58); +lean_ctor_set(x_64, 2, x_59); +lean_ctor_set(x_64, 3, x_63); +if (x_16 == 0) +{ +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_dec(x_10); +x_65 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_65, 0, x_11); +x_66 = 0; +x_67 = lean_box(0); +lean_inc(x_5); +x_68 = l___private_Lean_Meta_Basic_4__mkFreshExprMVarImpl(x_65, x_66, x_67, x_5, x_6, x_64, x_8, x_9); +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +lean_dec(x_68); +x_71 = lean_expr_instantiate1(x_12, x_69); +lean_dec(x_69); +lean_dec(x_12); +x_2 = x_71; +x_7 = x_64; +x_9 = x_70; +goto _start; +} +else +{ +lean_object* x_73; +x_73 = l_Lean_Elab_Term_StructInst_DefaultFields_getFieldValue_x3f(x_1, x_10); +if (lean_obj_tag(x_73) == 0) +{ +lean_object* x_74; lean_object* x_75; +lean_dec(x_64); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_74 = lean_box(0); +x_75 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_9); +return x_75; +} +else +{ +lean_object* x_76; lean_object* x_77; +x_76 = lean_ctor_get(x_73, 0); +lean_inc(x_76); +lean_dec(x_73); +lean_inc(x_8); +lean_inc(x_64); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_76); +x_77 = l_Lean_Meta_inferType___at___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType___spec__1(x_76, x_3, x_4, x_5, x_6, x_64, x_8, x_9); +if (lean_obj_tag(x_77) == 0) +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_77, 1); +lean_inc(x_79); +lean_dec(x_77); +lean_inc(x_8); +lean_inc(x_64); +lean_inc(x_6); +lean_inc(x_5); +x_80 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_propagateExpectedType___spec__3(x_78, x_11, x_3, x_4, x_5, x_6, x_64, x_8, x_79); +if (lean_obj_tag(x_80) == 0) +{ +lean_object* x_81; uint8_t x_82; +x_81 = lean_ctor_get(x_80, 0); +lean_inc(x_81); +x_82 = lean_unbox(x_81); +lean_dec(x_81); +if (x_82 == 0) +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +lean_dec(x_76); +lean_dec(x_64); +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_83 = lean_ctor_get(x_80, 1); +lean_inc(x_83); +if (lean_is_exclusive(x_80)) { + lean_ctor_release(x_80, 0); + lean_ctor_release(x_80, 1); + x_84 = x_80; +} else { + lean_dec_ref(x_80); + x_84 = lean_box(0); +} +x_85 = lean_box(0); +if (lean_is_scalar(x_84)) { + x_86 = lean_alloc_ctor(0, 2, 0); +} else { + x_86 = x_84; +} +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_83); +return x_86; +} +else +{ +lean_object* x_87; lean_object* x_88; +x_87 = lean_ctor_get(x_80, 1); +lean_inc(x_87); +lean_dec(x_80); +x_88 = lean_expr_instantiate1(x_12, x_76); +lean_dec(x_76); +lean_dec(x_12); +x_2 = x_88; +x_7 = x_64; +x_9 = x_87; +goto _start; +} +} +else +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +lean_dec(x_76); +lean_dec(x_64); +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_90 = lean_ctor_get(x_80, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_80, 1); +lean_inc(x_91); +if (lean_is_exclusive(x_80)) { + lean_ctor_release(x_80, 0); + lean_ctor_release(x_80, 1); + x_92 = x_80; +} else { + lean_dec_ref(x_80); + x_92 = lean_box(0); +} +if (lean_is_scalar(x_92)) { + x_93 = lean_alloc_ctor(1, 2, 0); +} else { + x_93 = x_92; +} +lean_ctor_set(x_93, 0, x_90); +lean_ctor_set(x_93, 1, x_91); +return x_93; +} +} +else +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; +lean_dec(x_76); +lean_dec(x_64); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_94 = lean_ctor_get(x_77, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_77, 1); +lean_inc(x_95); +if (lean_is_exclusive(x_77)) { + lean_ctor_release(x_77, 0); + lean_ctor_release(x_77, 1); + x_96 = x_77; +} else { + lean_dec_ref(x_77); + x_96 = lean_box(0); +} +if (lean_is_scalar(x_96)) { + x_97 = lean_alloc_ctor(1, 2, 0); +} else { + x_97 = x_96; +} +lean_ctor_set(x_97, 0, x_94); +lean_ctor_set(x_97, 1, x_95); +return x_97; +} +} +} +} +} +else +{ +lean_object* x_98; lean_object* x_99; uint8_t x_100; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_98 = l___private_Lean_Meta_AppBuilder_1__mkIdImp___closed__2; +x_99 = lean_unsigned_to_nat(2u); +x_100 = l_Lean_Expr_isAppOfArity___main(x_2, x_98, x_99); +if (x_100 == 0) +{ +lean_object* x_101; lean_object* x_102; +x_101 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_101, 0, x_2); +x_102 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_102, 1, x_9); +return x_102; +} +else +{ +lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_103 = l_Lean_Expr_appArg_x21(x_2); +lean_dec(x_2); +x_104 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_104, 0, x_103); +x_105 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_105, 0, x_104); +lean_ctor_set(x_105, 1, x_9); +return x_105; +} +} } } lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { @@ -23710,7 +21849,7 @@ x_16 = l_Lean_replaceRef(x_15, x_13); lean_dec(x_13); lean_dec(x_15); lean_ctor_set(x_7, 3, x_16); -x_17 = l_List_mapM___main___at___private_Lean_Elab_StructInst_23__mkCtorHeader___spec__1(x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_17 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeader___spec__1(x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9); x_18 = lean_ctor_get(x_17, 0); lean_inc(x_18); x_19 = lean_ctor_get(x_17, 1); @@ -23718,7 +21857,7 @@ lean_inc(x_19); lean_dec(x_17); x_20 = lean_instantiate_value_lparams(x_2, x_18); lean_dec(x_18); -x_21 = l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f___main(x_1, x_20, x_3, x_4, x_5, x_6, x_7, x_8, x_19); +x_21 = l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f(x_1, x_20, x_3, x_4, x_5, x_6, x_7, x_8, x_19); return x_21; } else @@ -23745,7 +21884,7 @@ lean_ctor_set(x_29, 0, x_22); lean_ctor_set(x_29, 1, x_23); lean_ctor_set(x_29, 2, x_24); lean_ctor_set(x_29, 3, x_28); -x_30 = l_List_mapM___main___at___private_Lean_Elab_StructInst_23__mkCtorHeader___spec__1(x_11, x_3, x_4, x_5, x_6, x_29, x_8, x_9); +x_30 = l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeader___spec__1(x_11, x_3, x_4, x_5, x_6, x_29, x_8, x_9); x_31 = lean_ctor_get(x_30, 0); lean_inc(x_31); x_32 = lean_ctor_get(x_30, 1); @@ -23753,7 +21892,7 @@ lean_inc(x_32); lean_dec(x_30); x_33 = lean_instantiate_value_lparams(x_2, x_31); lean_dec(x_31); -x_34 = l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f___main(x_1, x_33, x_3, x_4, x_5, x_6, x_29, x_8, x_32); +x_34 = l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f(x_1, x_33, x_3, x_4, x_5, x_6, x_29, x_8, x_32); return x_34; } } @@ -23770,148 +21909,230 @@ lean_dec(x_1); return x_10; } } +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduceProjOf_x3f_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduceProjOf_x3f_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_reduceProjOf_x3f_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduceProjOf_x3f_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 4) +{ +lean_object* x_4; lean_object* x_5; uint64_t x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +lean_dec(x_1); +x_7 = lean_box_uint64(x_6); +x_8 = lean_apply_3(x_2, x_4, x_5, x_7); +return x_8; +} +else +{ +lean_object* x_9; +lean_dec(x_2); +x_9 = lean_apply_1(x_3, x_1); +return x_9; +} +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduceProjOf_x3f_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_reduceProjOf_x3f_match__2___rarg), 3, 0); +return x_2; +} +} lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduceProjOf_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -uint8_t x_8; -x_8 = l_Lean_Expr_isApp(x_2); +uint8_t x_8; uint8_t x_38; +x_38 = l_Lean_Expr_isApp(x_2); +if (x_38 == 0) +{ +uint8_t x_39; +x_39 = 1; +x_8 = x_39; +goto block_37; +} +else +{ +uint8_t x_40; +x_40 = 0; +x_8 = x_40; +goto block_37; +} +block_37: +{ if (x_8 == 0) { -lean_object* x_9; lean_object* x_10; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -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_7); -return x_10; -} -else +lean_object* x_9; +x_9 = l_Lean_Expr_getAppFn___main(x_2); +if (lean_obj_tag(x_9) == 4) { -lean_object* x_11; -x_11 = l_Lean_Expr_getAppFn___main(x_2); -if (lean_obj_tag(x_11) == 4) +lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +lean_dec(x_9); +x_11 = lean_st_ref_get(x_6, x_7); +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) { -lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -lean_dec(x_11); -x_13 = lean_st_ref_get(x_6, x_7); -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_13; lean_object* x_14; lean_object* x_15; lean_object* 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, 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 = l_Lean_Environment_getProjectionStructureName_x3f(x_17, x_12); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_19 = lean_box(0); -lean_ctor_set(x_13, 0, x_19); -return x_13; -} -else -{ -lean_object* x_20; uint8_t x_21; -x_20 = lean_ctor_get(x_18, 0); -lean_inc(x_20); -lean_dec(x_18); -x_21 = l_Array_contains___at_Lean_findField_x3f___main___spec__1(x_1, x_20); -lean_dec(x_20); -if (x_21 == 0) -{ -lean_object* x_22; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_22 = lean_box(0); -lean_ctor_set(x_13, 0, x_22); -return x_13; -} -else -{ -lean_object* x_23; -lean_free_object(x_13); -x_23 = l___private_Lean_Meta_WHNF_19__unfoldDefinitionImp_x3f(x_2, x_3, x_4, x_5, x_6, 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_13, 0); -x_25 = lean_ctor_get(x_13, 1); -lean_inc(x_25); -lean_inc(x_24); +lean_inc(x_15); lean_dec(x_13); -x_26 = lean_ctor_get(x_24, 0); -lean_inc(x_26); -lean_dec(x_24); -x_27 = l_Lean_Environment_getProjectionStructureName_x3f(x_26, x_12); -if (lean_obj_tag(x_27) == 0) +x_16 = l_Lean_Environment_getProjectionStructureName_x3f(x_15, x_10); +if (lean_obj_tag(x_16) == 0) { -lean_object* x_28; lean_object* x_29; +lean_object* x_17; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_28 = lean_box(0); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_25); -return x_29; +x_17 = lean_box(0); +lean_ctor_set(x_11, 0, x_17); +return x_11; } else { -lean_object* x_30; uint8_t x_31; -x_30 = lean_ctor_get(x_27, 0); -lean_inc(x_30); -lean_dec(x_27); -x_31 = l_Array_contains___at_Lean_findField_x3f___main___spec__1(x_1, x_30); -lean_dec(x_30); -if (x_31 == 0) +lean_object* x_18; uint8_t x_19; +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +lean_dec(x_16); +x_19 = l_Array_contains___at_Lean_findField_x3f___main___spec__1(x_1, x_18); +lean_dec(x_18); +if (x_19 == 0) { -lean_object* x_32; lean_object* x_33; +lean_object* x_20; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_32 = lean_box(0); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_25); -return x_33; +x_20 = lean_box(0); +lean_ctor_set(x_11, 0, x_20); +return x_11; } else { -lean_object* x_34; -x_34 = l___private_Lean_Meta_WHNF_19__unfoldDefinitionImp_x3f(x_2, x_3, x_4, x_5, x_6, x_25); +lean_object* x_21; +lean_free_object(x_11); +x_21 = l___private_Lean_Meta_WHNF_19__unfoldDefinitionImp_x3f(x_2, x_3, x_4, x_5, x_6, x_14); +return x_21; +} +} +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* 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, 0); +lean_inc(x_24); +lean_dec(x_22); +x_25 = l_Lean_Environment_getProjectionStructureName_x3f(x_24, x_10); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_26 = lean_box(0); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_23); +return x_27; +} +else +{ +lean_object* x_28; uint8_t x_29; +x_28 = lean_ctor_get(x_25, 0); +lean_inc(x_28); +lean_dec(x_25); +x_29 = l_Array_contains___at_Lean_findField_x3f___main___spec__1(x_1, x_28); +lean_dec(x_28); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_30 = lean_box(0); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_23); +return x_31; +} +else +{ +lean_object* x_32; +x_32 = l___private_Lean_Meta_WHNF_19__unfoldDefinitionImp_x3f(x_2, x_3, x_4, x_5, x_6, x_23); +return x_32; +} +} +} +} +else +{ +lean_object* x_33; lean_object* x_34; +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_33 = lean_box(0); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_7); return x_34; } } -} -} else { lean_object* x_35; lean_object* x_36; -lean_dec(x_11); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -23935,7 +22156,305 @@ lean_dec(x_1); return x_8; } } -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduce_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduce_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_reduce_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduce_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduce_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_reduce_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduce_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduce_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_reduce_match__3___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduce_match__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 2: +{ +lean_object* x_10; uint64_t x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_9); +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_10 = lean_ctor_get(x_1, 0); +lean_inc(x_10); +x_11 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); +x_12 = lean_box_uint64(x_11); +x_13 = lean_apply_3(x_8, x_1, x_10, x_12); +return x_13; +} +case 5: +{ +lean_object* x_14; lean_object* x_15; uint64_t x_16; lean_object* x_17; lean_object* x_18; +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_14 = lean_ctor_get(x_1, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_1, 1); +lean_inc(x_15); +x_16 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +x_17 = lean_box_uint64(x_16); +x_18 = lean_apply_4(x_6, x_1, x_14, x_15, x_17); +return x_18; +} +case 6: +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; uint64_t x_22; lean_object* x_23; lean_object* x_24; +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_19 = lean_ctor_get(x_1, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_1, 1); +lean_inc(x_20); +x_21 = lean_ctor_get(x_1, 2); +lean_inc(x_21); +x_22 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_23 = lean_box_uint64(x_22); +x_24 = lean_apply_5(x_2, x_1, x_19, x_20, x_21, x_23); +return x_24; +} +case 7: +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; uint64_t x_28; lean_object* x_29; lean_object* x_30; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_25 = lean_ctor_get(x_1, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_1, 1); +lean_inc(x_26); +x_27 = lean_ctor_get(x_1, 2); +lean_inc(x_27); +x_28 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_29 = lean_box_uint64(x_28); +x_30 = lean_apply_5(x_3, x_1, x_25, x_26, x_27, x_29); +return x_30; +} +case 8: +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint64_t x_35; lean_object* x_36; lean_object* x_37; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_31 = lean_ctor_get(x_1, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_1, 1); +lean_inc(x_32); +x_33 = lean_ctor_get(x_1, 2); +lean_inc(x_33); +x_34 = lean_ctor_get(x_1, 3); +lean_inc(x_34); +x_35 = lean_ctor_get_uint64(x_1, sizeof(void*)*4); +x_36 = lean_box_uint64(x_35); +x_37 = lean_apply_6(x_4, x_1, x_31, x_32, x_33, x_34, x_36); +return x_37; +} +case 10: +{ +lean_object* x_38; lean_object* x_39; uint64_t x_40; lean_object* x_41; lean_object* x_42; +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_2); +x_38 = lean_ctor_get(x_1, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_1, 1); +lean_inc(x_39); +x_40 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +x_41 = lean_box_uint64(x_40); +x_42 = lean_apply_4(x_7, x_1, x_38, x_39, x_41); +return x_42; +} +case 11: +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; uint64_t x_46; lean_object* x_47; lean_object* x_48; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_43 = lean_ctor_get(x_1, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_1, 1); +lean_inc(x_44); +x_45 = lean_ctor_get(x_1, 2); +lean_inc(x_45); +x_46 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_47 = lean_box_uint64(x_46); +x_48 = lean_apply_5(x_5, x_1, x_43, x_44, x_45, x_47); +return x_48; +} +default: +{ +lean_object* x_49; +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_49 = lean_apply_1(x_9, x_1); +return x_49; +} +} +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduce_match__4(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_reduce_match__4___rarg), 9, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_getExprMVarAssignment_x3f___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_st_ref_get(x_3, x_6); +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_7, 0); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +lean_dec(x_9); +x_11 = lean_metavar_ctx_get_expr_assignment(x_10, x_1); +lean_ctor_set(x_7, 0, x_11); +return x_7; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* 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(x_12, 0); +lean_inc(x_14); +lean_dec(x_12); +x_15 = lean_metavar_ctx_get_expr_assignment(x_14, x_1); +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; +} +} +} +lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___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; @@ -23969,7 +22488,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_1); -x_17 = l_Lean_Elab_Term_StructInst_DefaultFields_reduce___main(x_1, x_16, x_4, x_5, x_6, x_7, x_8); +x_17 = l_Lean_Elab_Term_StructInst_DefaultFields_reduce(x_1, x_16, x_4, x_5, x_6, x_7, x_8); 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; @@ -24020,7 +22539,428 @@ return x_28; } } } -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduce___main___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* l_Lean_Meta_mkLambdaFVars___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; +x_8 = l_Array_isEmpty___rarg(x_1); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; uint8_t x_21; lean_object* x_22; +x_9 = lean_st_ref_get(x_4, x_7); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_st_ref_get(x_6, x_11); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = lean_ctor_get(x_14, 2); +lean_inc(x_16); +lean_dec(x_14); +x_17 = lean_ctor_get(x_3, 1); +lean_inc(x_17); +x_18 = l_Std_HashMap_inhabited___closed__1; +x_19 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_19, 0, x_12); +lean_ctor_set(x_19, 1, x_16); +lean_ctor_set(x_19, 2, x_18); +x_20 = 1; +x_21 = 0; +x_22 = l_Lean_MetavarContext_MkBinding_mkBinding(x_20, x_17, x_1, x_2, x_21, x_21, x_19); +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; uint8_t x_30; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +x_25 = lean_ctor_get(x_23, 0); +lean_inc(x_25); +lean_dec(x_23); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +x_27 = lean_st_ref_take(x_6, x_15); +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec(x_27); +x_30 = !lean_is_exclusive(x_28); +if (x_30 == 0) +{ +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_31 = lean_ctor_get(x_28, 2); +lean_dec(x_31); +lean_ctor_set(x_28, 2, x_26); +x_32 = lean_st_ref_set(x_6, x_28, x_29); +x_33 = lean_ctor_get(x_32, 1); +lean_inc(x_33); +lean_dec(x_32); +x_34 = lean_ctor_get(x_24, 0); +lean_inc(x_34); +lean_dec(x_24); +x_35 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_34, x_3, x_4, x_5, x_6, x_33); +lean_dec(x_3); +x_36 = !lean_is_exclusive(x_35); +if (x_36 == 0) +{ +lean_object* x_37; +x_37 = lean_ctor_get(x_35, 0); +lean_dec(x_37); +lean_ctor_set(x_35, 0, x_25); +return x_35; +} +else +{ +lean_object* x_38; lean_object* x_39; +x_38 = lean_ctor_get(x_35, 1); +lean_inc(x_38); +lean_dec(x_35); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_25); +lean_ctor_set(x_39, 1, x_38); +return x_39; +} +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_40 = lean_ctor_get(x_28, 0); +x_41 = lean_ctor_get(x_28, 1); +x_42 = lean_ctor_get(x_28, 3); +lean_inc(x_42); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_28); +x_43 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_43, 0, x_40); +lean_ctor_set(x_43, 1, x_41); +lean_ctor_set(x_43, 2, x_26); +lean_ctor_set(x_43, 3, x_42); +x_44 = lean_st_ref_set(x_6, x_43, x_29); +x_45 = lean_ctor_get(x_44, 1); +lean_inc(x_45); +lean_dec(x_44); +x_46 = lean_ctor_get(x_24, 0); +lean_inc(x_46); +lean_dec(x_24); +x_47 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_46, x_3, x_4, x_5, x_6, x_45); +lean_dec(x_3); +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +if (lean_is_exclusive(x_47)) { + lean_ctor_release(x_47, 0); + lean_ctor_release(x_47, 1); + x_49 = x_47; +} else { + lean_dec_ref(x_47); + x_49 = lean_box(0); +} +if (lean_is_scalar(x_49)) { + x_50 = lean_alloc_ctor(0, 2, 0); +} else { + x_50 = x_49; +} +lean_ctor_set(x_50, 0, x_25); +lean_ctor_set(x_50, 1, x_48); +return x_50; +} +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; +x_51 = lean_ctor_get(x_22, 1); +lean_inc(x_51); +lean_dec(x_22); +x_52 = lean_ctor_get(x_51, 0); +lean_inc(x_52); +x_53 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_52, x_3, x_4, x_5, x_6, x_15); +x_54 = lean_ctor_get(x_53, 1); +lean_inc(x_54); +lean_dec(x_53); +x_55 = lean_ctor_get(x_51, 1); +lean_inc(x_55); +lean_dec(x_51); +x_56 = lean_st_ref_take(x_6, x_54); +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +lean_dec(x_56); +x_59 = !lean_is_exclusive(x_57); +if (x_59 == 0) +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_60 = lean_ctor_get(x_57, 2); +lean_dec(x_60); +lean_ctor_set(x_57, 2, x_55); +x_61 = lean_st_ref_set(x_6, x_57, x_58); +x_62 = lean_ctor_get(x_61, 1); +lean_inc(x_62); +lean_dec(x_61); +x_63 = l___private_Lean_Meta_Basic_6__liftMkBindingM___rarg___closed__3; +x_64 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_63, x_3, x_4, x_5, x_6, x_62); +lean_dec(x_3); +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_object* x_71; lean_object* x_72; +x_65 = lean_ctor_get(x_57, 0); +x_66 = lean_ctor_get(x_57, 1); +x_67 = lean_ctor_get(x_57, 3); +lean_inc(x_67); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_57); +x_68 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_68, 0, x_65); +lean_ctor_set(x_68, 1, x_66); +lean_ctor_set(x_68, 2, x_55); +lean_ctor_set(x_68, 3, x_67); +x_69 = lean_st_ref_set(x_6, x_68, x_58); +x_70 = lean_ctor_get(x_69, 1); +lean_inc(x_70); +lean_dec(x_69); +x_71 = l___private_Lean_Meta_Basic_6__liftMkBindingM___rarg___closed__3; +x_72 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_71, x_3, x_4, x_5, x_6, x_70); +lean_dec(x_3); +return x_72; +} +} +} +else +{ +lean_object* x_73; +lean_dec(x_3); +lean_dec(x_1); +x_73 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_73, 0, x_2); +lean_ctor_set(x_73, 1, x_7); +return x_73; +} +} +} +lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; +x_8 = l_Array_isEmpty___rarg(x_1); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; +x_9 = lean_st_ref_get(x_4, x_7); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_st_ref_get(x_6, x_11); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = lean_ctor_get(x_14, 2); +lean_inc(x_16); +lean_dec(x_14); +x_17 = lean_ctor_get(x_3, 1); +lean_inc(x_17); +x_18 = l_Std_HashMap_inhabited___closed__1; +x_19 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_19, 0, x_12); +lean_ctor_set(x_19, 1, x_16); +lean_ctor_set(x_19, 2, x_18); +x_20 = 0; +x_21 = l_Lean_MetavarContext_MkBinding_mkBinding(x_20, x_17, x_1, x_2, x_20, x_20, x_19); +if (lean_obj_tag(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; uint8_t x_29; +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_ctor_get(x_22, 0); +lean_inc(x_24); +lean_dec(x_22); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +x_26 = lean_st_ref_take(x_6, x_15); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); +x_29 = !lean_is_exclusive(x_27); +if (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_27, 2); +lean_dec(x_30); +lean_ctor_set(x_27, 2, x_25); +x_31 = lean_st_ref_set(x_6, x_27, x_28); +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +lean_dec(x_31); +x_33 = lean_ctor_get(x_23, 0); +lean_inc(x_33); +lean_dec(x_23); +x_34 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_33, x_3, x_4, x_5, x_6, x_32); +lean_dec(x_3); +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_24); +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_24); +lean_ctor_set(x_38, 1, 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 = lean_ctor_get(x_27, 0); +x_40 = lean_ctor_get(x_27, 1); +x_41 = lean_ctor_get(x_27, 3); +lean_inc(x_41); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_27); +x_42 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_42, 0, x_39); +lean_ctor_set(x_42, 1, x_40); +lean_ctor_set(x_42, 2, x_25); +lean_ctor_set(x_42, 3, x_41); +x_43 = lean_st_ref_set(x_6, x_42, x_28); +x_44 = lean_ctor_get(x_43, 1); +lean_inc(x_44); +lean_dec(x_43); +x_45 = lean_ctor_get(x_23, 0); +lean_inc(x_45); +lean_dec(x_23); +x_46 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_45, x_3, x_4, x_5, x_6, x_44); +lean_dec(x_3); +x_47 = lean_ctor_get(x_46, 1); +lean_inc(x_47); +if (lean_is_exclusive(x_46)) { + lean_ctor_release(x_46, 0); + lean_ctor_release(x_46, 1); + x_48 = x_46; +} else { + lean_dec_ref(x_46); + x_48 = lean_box(0); +} +if (lean_is_scalar(x_48)) { + x_49 = lean_alloc_ctor(0, 2, 0); +} else { + x_49 = x_48; +} +lean_ctor_set(x_49, 0, x_24); +lean_ctor_set(x_49, 1, x_47); +return x_49; +} +} +else +{ +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; uint8_t x_58; +x_50 = lean_ctor_get(x_21, 1); +lean_inc(x_50); +lean_dec(x_21); +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +x_52 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_51, x_3, x_4, x_5, x_6, x_15); +x_53 = lean_ctor_get(x_52, 1); +lean_inc(x_53); +lean_dec(x_52); +x_54 = lean_ctor_get(x_50, 1); +lean_inc(x_54); +lean_dec(x_50); +x_55 = lean_st_ref_take(x_6, x_53); +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +lean_dec(x_55); +x_58 = !lean_is_exclusive(x_56); +if (x_58 == 0) +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_59 = lean_ctor_get(x_56, 2); +lean_dec(x_59); +lean_ctor_set(x_56, 2, x_54); +x_60 = lean_st_ref_set(x_6, x_56, x_57); +x_61 = lean_ctor_get(x_60, 1); +lean_inc(x_61); +lean_dec(x_60); +x_62 = l___private_Lean_Meta_Basic_6__liftMkBindingM___rarg___closed__3; +x_63 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_62, x_3, x_4, x_5, x_6, x_61); +lean_dec(x_3); +return x_63; +} +else +{ +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; +x_64 = lean_ctor_get(x_56, 0); +x_65 = lean_ctor_get(x_56, 1); +x_66 = lean_ctor_get(x_56, 3); +lean_inc(x_66); +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_56); +x_67 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_67, 0, x_64); +lean_ctor_set(x_67, 1, x_65); +lean_ctor_set(x_67, 2, x_54); +lean_ctor_set(x_67, 3, x_66); +x_68 = lean_st_ref_set(x_6, x_67, x_57); +x_69 = lean_ctor_get(x_68, 1); +lean_inc(x_69); +lean_dec(x_68); +x_70 = l___private_Lean_Meta_Basic_6__liftMkBindingM___rarg___closed__3; +x_71 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_70, x_3, x_4, x_5, x_6, x_69); +lean_dec(x_3); +return x_71; +} +} +} +else +{ +lean_object* x_72; +lean_dec(x_3); +lean_dec(x_1); +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_2); +lean_ctor_set(x_72, 1, x_7); +return x_72; +} +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduce___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; @@ -24028,7 +22968,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_9 = l_Lean_Elab_Term_StructInst_DefaultFields_reduce___main(x_1, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_Elab_Term_StructInst_DefaultFields_reduce(x_1, x_3, x_4, x_5, x_6, x_7, x_8); if (lean_obj_tag(x_9) == 0) { lean_object* x_10; lean_object* x_11; lean_object* x_12; @@ -24037,7 +22977,7 @@ lean_inc(x_10); x_11 = lean_ctor_get(x_9, 1); lean_inc(x_11); lean_dec(x_9); -x_12 = l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_SynthInstance_tryResolveCore___spec__1(x_2, x_10, x_4, x_5, x_6, x_7, x_11); +x_12 = l_Lean_Meta_mkLambdaFVars___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___spec__3(x_2, x_10, x_4, x_5, x_6, x_7, x_11); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -24072,7 +23012,7 @@ return x_16; } } } -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduce___main___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduce___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; @@ -24080,7 +23020,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_9 = l_Lean_Elab_Term_StructInst_DefaultFields_reduce___main(x_1, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_Elab_Term_StructInst_DefaultFields_reduce(x_1, x_3, x_4, x_5, x_6, x_7, x_8); if (lean_obj_tag(x_9) == 0) { lean_object* x_10; lean_object* x_11; lean_object* x_12; @@ -24089,7 +23029,7 @@ lean_inc(x_10); x_11 = lean_ctor_get(x_9, 1); lean_inc(x_11); lean_dec(x_9); -x_12 = l_Lean_Meta_mkForallFVars___at___private_Lean_Meta_InferType_6__inferLambdaType___spec__1(x_2, x_10, x_4, x_5, x_6, x_7, x_11); +x_12 = l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___spec__4(x_2, x_10, x_4, x_5, x_6, x_7, x_11); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -24124,7 +23064,7 @@ return x_16; } } } -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduce___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* l_Lean_Elab_Term_StructInst_DefaultFields_reduce(lean_object* x_1, 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: { switch (lean_obj_tag(x_2)) { @@ -24133,7 +23073,7 @@ case 2: lean_object* x_8; lean_object* x_9; lean_object* x_10; x_8 = lean_ctor_get(x_2, 0); lean_inc(x_8); -x_9 = l_Lean_Meta_getExprMVarAssignment_x3f___at___private_Lean_Meta_Basic_9__isClassQuick_x3f___main___spec__1(x_8, x_3, x_4, x_5, x_6, x_7); +x_9 = l_Lean_Meta_getExprMVarAssignment_x3f___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___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); if (lean_obj_tag(x_10) == 0) @@ -24259,7 +23199,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_31 = l_Lean_Elab_Term_StructInst_DefaultFields_reduce___main(x_1, x_30, x_3, x_4, x_5, x_6, x_29); +x_31 = l_Lean_Elab_Term_StructInst_DefaultFields_reduce(x_1, x_30, x_3, x_4, x_5, x_6, x_29); if (lean_obj_tag(x_31) == 0) { lean_object* x_32; lean_object* x_33; uint8_t x_34; @@ -24282,7 +23222,7 @@ x_40 = lean_nat_sub(x_36, x_39); lean_dec(x_36); x_41 = l___private_Lean_Expr_3__getAppArgsAux___main(x_2, x_38, x_40); x_42 = x_41; -x_43 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___main___spec__1), 8, 3); +x_43 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___spec__2), 8, 3); lean_closure_set(x_43, 0, x_1); lean_closure_set(x_43, 1, x_35); lean_closure_set(x_43, 2, x_42); @@ -24435,7 +23375,7 @@ return x_73; case 6: { lean_object* x_74; lean_object* x_75; -x_74 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_reduce___main___lambda__1), 8, 1); +x_74 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_reduce___lambda__1), 8, 1); lean_closure_set(x_74, 0, x_1); x_75 = l_Lean_Meta_lambdaLetTelescope___at___private_Lean_Meta_InferType_6__inferLambdaType___spec__2___rarg(x_2, x_74, x_3, x_4, x_5, x_6, x_7); return x_75; @@ -24443,7 +23383,7 @@ return x_75; case 7: { lean_object* x_76; lean_object* x_77; -x_76 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_reduce___main___lambda__2), 8, 1); +x_76 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_reduce___lambda__2), 8, 1); lean_closure_set(x_76, 0, x_1); x_77 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_5__inferForallType___spec__3___rarg(x_2, x_76, x_3, x_4, x_5, x_6, x_7); return x_77; @@ -24451,7 +23391,7 @@ return x_77; case 8: { lean_object* x_78; lean_object* x_79; -x_78 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_reduce___main___lambda__1), 8, 1); +x_78 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_reduce___lambda__1), 8, 1); lean_closure_set(x_78, 0, x_1); x_79 = l_Lean_Meta_lambdaLetTelescope___at___private_Lean_Meta_InferType_6__inferLambdaType___spec__2___rarg(x_2, x_78, x_3, x_4, x_5, x_6, x_7); return x_79; @@ -24461,258 +23401,460 @@ case 10: lean_object* x_80; lean_object* x_81; x_80 = lean_ctor_get(x_2, 1); lean_inc(x_80); -x_81 = l_Lean_Elab_Term_StructInst_DefaultFields_reduce___main(x_1, x_80, x_3, x_4, x_5, x_6, x_7); +x_81 = l_Lean_Elab_Term_StructInst_DefaultFields_reduce(x_1, x_80, x_3, x_4, x_5, x_6, x_7); if (lean_obj_tag(x_81) == 0) { -uint8_t x_82; -x_82 = !lean_is_exclusive(x_81); -if (x_82 == 0) -{ -lean_object* x_83; lean_object* x_84; -x_83 = lean_ctor_get(x_81, 0); -x_84 = l_Lean_Elab_Term_StructInst_defaultMissing_x3f(x_2); -if (lean_obj_tag(x_84) == 0) -{ -lean_object* x_85; -x_85 = lean_expr_update_mdata(x_2, x_83); -lean_ctor_set(x_81, 0, x_85); -return x_81; +lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_90; +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_81, 1); +lean_inc(x_83); +if (lean_is_exclusive(x_81)) { + lean_ctor_release(x_81, 0); + lean_ctor_release(x_81, 1); + x_84 = x_81; +} else { + lean_dec_ref(x_81); + x_84 = lean_box(0); } -else -{ -uint8_t x_86; -lean_dec(x_84); -x_86 = l_Lean_Expr_isMVar(x_83); -if (x_86 == 0) -{ -lean_dec(x_2); -return x_81; -} -else -{ -lean_object* x_87; -x_87 = lean_expr_update_mdata(x_2, x_83); -lean_ctor_set(x_81, 0, x_87); -return x_81; -} -} -} -else -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_88 = lean_ctor_get(x_81, 0); -x_89 = lean_ctor_get(x_81, 1); -lean_inc(x_89); -lean_inc(x_88); -lean_dec(x_81); x_90 = l_Lean_Elab_Term_StructInst_defaultMissing_x3f(x_2); if (lean_obj_tag(x_90) == 0) { -lean_object* x_91; lean_object* x_92; -x_91 = lean_expr_update_mdata(x_2, x_88); -x_92 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_92, 0, x_91); -lean_ctor_set(x_92, 1, x_89); -return x_92; +uint8_t x_91; +x_91 = 0; +x_85 = x_91; +goto block_89; } else { +uint8_t x_92; +lean_dec(x_90); +x_92 = l_Lean_Expr_isMVar(x_82); +if (x_92 == 0) +{ uint8_t x_93; -lean_dec(x_90); -x_93 = l_Lean_Expr_isMVar(x_88); -if (x_93 == 0) -{ -lean_object* x_94; -lean_dec(x_2); -x_94 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_94, 0, x_88); -lean_ctor_set(x_94, 1, x_89); -return x_94; +x_93 = 1; +x_85 = x_93; +goto block_89; } else { -lean_object* x_95; lean_object* x_96; -x_95 = lean_expr_update_mdata(x_2, x_88); -x_96 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_96, 0, x_95); -lean_ctor_set(x_96, 1, x_89); -return x_96; +uint8_t x_94; +x_94 = 0; +x_85 = x_94; +goto block_89; } } +block_89: +{ +if (x_85 == 0) +{ +lean_object* x_86; lean_object* x_87; +x_86 = lean_expr_update_mdata(x_2, x_82); +if (lean_is_scalar(x_84)) { + x_87 = lean_alloc_ctor(0, 2, 0); +} else { + x_87 = x_84; +} +lean_ctor_set(x_87, 0, x_86); +lean_ctor_set(x_87, 1, x_83); +return x_87; +} +else +{ +lean_object* x_88; +lean_dec(x_2); +if (lean_is_scalar(x_84)) { + x_88 = lean_alloc_ctor(0, 2, 0); +} else { + x_88 = x_84; +} +lean_ctor_set(x_88, 0, x_82); +lean_ctor_set(x_88, 1, x_83); +return x_88; +} } } else { -uint8_t x_97; +uint8_t x_95; lean_dec(x_2); -x_97 = !lean_is_exclusive(x_81); -if (x_97 == 0) +x_95 = !lean_is_exclusive(x_81); +if (x_95 == 0) { return x_81; } else { -lean_object* x_98; lean_object* x_99; lean_object* x_100; -x_98 = lean_ctor_get(x_81, 0); -x_99 = lean_ctor_get(x_81, 1); -lean_inc(x_99); -lean_inc(x_98); +lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_96 = lean_ctor_get(x_81, 0); +x_97 = lean_ctor_get(x_81, 1); +lean_inc(x_97); +lean_inc(x_96); lean_dec(x_81); -x_100 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_100, 0, x_98); -lean_ctor_set(x_100, 1, x_99); -return x_100; +x_98 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_98, 0, x_96); +lean_ctor_set(x_98, 1, x_97); +return x_98; } } } case 11: { -lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_101 = lean_ctor_get(x_2, 1); -lean_inc(x_101); -x_102 = lean_ctor_get(x_2, 2); -lean_inc(x_102); +lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_99 = lean_ctor_get(x_2, 1); +lean_inc(x_99); +x_100 = lean_ctor_get(x_2, 2); +lean_inc(x_100); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_102); -x_103 = l_Lean_Meta_reduceProj_x3f(x_102, x_101, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_101); -if (lean_obj_tag(x_103) == 0) +lean_inc(x_100); +x_101 = l_Lean_Meta_reduceProj_x3f(x_100, x_99, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_99); +if (lean_obj_tag(x_101) == 0) { -lean_object* x_104; -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); +lean_object* x_102; +x_102 = lean_ctor_get(x_101, 0); +lean_inc(x_102); +if (lean_obj_tag(x_102) == 0) +{ +lean_object* x_103; lean_object* x_104; +x_103 = lean_ctor_get(x_101, 1); +lean_inc(x_103); +lean_dec(x_101); +x_104 = l_Lean_Elab_Term_StructInst_DefaultFields_reduce(x_1, x_100, x_3, x_4, x_5, x_6, x_103); if (lean_obj_tag(x_104) == 0) { -lean_object* x_105; lean_object* x_106; -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -lean_dec(x_103); -x_106 = l_Lean_Elab_Term_StructInst_DefaultFields_reduce___main(x_1, x_102, x_3, x_4, x_5, x_6, x_105); -if (lean_obj_tag(x_106) == 0) +uint8_t x_105; +x_105 = !lean_is_exclusive(x_104); +if (x_105 == 0) { -uint8_t x_107; -x_107 = !lean_is_exclusive(x_106); -if (x_107 == 0) -{ -lean_object* x_108; lean_object* x_109; -x_108 = lean_ctor_get(x_106, 0); -x_109 = lean_expr_update_proj(x_2, x_108); -lean_ctor_set(x_106, 0, x_109); -return x_106; +lean_object* x_106; lean_object* x_107; +x_106 = lean_ctor_get(x_104, 0); +x_107 = lean_expr_update_proj(x_2, x_106); +lean_ctor_set(x_104, 0, x_107); +return x_104; } else { -lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; -x_110 = lean_ctor_get(x_106, 0); -x_111 = lean_ctor_get(x_106, 1); -lean_inc(x_111); -lean_inc(x_110); -lean_dec(x_106); -x_112 = lean_expr_update_proj(x_2, x_110); -x_113 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_113, 0, x_112); -lean_ctor_set(x_113, 1, x_111); -return x_113; -} -} -else -{ -uint8_t x_114; -lean_dec(x_2); -x_114 = !lean_is_exclusive(x_106); -if (x_114 == 0) -{ -return x_106; -} -else -{ -lean_object* x_115; lean_object* x_116; lean_object* x_117; -x_115 = lean_ctor_get(x_106, 0); -x_116 = lean_ctor_get(x_106, 1); -lean_inc(x_116); -lean_inc(x_115); -lean_dec(x_106); -x_117 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_117, 0, x_115); -lean_ctor_set(x_117, 1, x_116); -return x_117; -} -} -} -else -{ -lean_object* x_118; lean_object* x_119; -lean_dec(x_102); -lean_dec(x_2); -x_118 = lean_ctor_get(x_103, 1); -lean_inc(x_118); -lean_dec(x_103); -x_119 = lean_ctor_get(x_104, 0); -lean_inc(x_119); +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_108 = lean_ctor_get(x_104, 0); +x_109 = lean_ctor_get(x_104, 1); +lean_inc(x_109); +lean_inc(x_108); lean_dec(x_104); -x_2 = x_119; -x_7 = x_118; +x_110 = lean_expr_update_proj(x_2, x_108); +x_111 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_109); +return x_111; +} +} +else +{ +uint8_t x_112; +lean_dec(x_2); +x_112 = !lean_is_exclusive(x_104); +if (x_112 == 0) +{ +return x_104; +} +else +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_113 = lean_ctor_get(x_104, 0); +x_114 = lean_ctor_get(x_104, 1); +lean_inc(x_114); +lean_inc(x_113); +lean_dec(x_104); +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 +{ +lean_object* x_116; lean_object* x_117; +lean_dec(x_100); +lean_dec(x_2); +x_116 = lean_ctor_get(x_101, 1); +lean_inc(x_116); +lean_dec(x_101); +x_117 = lean_ctor_get(x_102, 0); +lean_inc(x_117); +lean_dec(x_102); +x_2 = x_117; +x_7 = x_116; goto _start; } } else { -uint8_t x_121; -lean_dec(x_102); +uint8_t x_119; +lean_dec(x_100); 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_121 = !lean_is_exclusive(x_103); -if (x_121 == 0) +x_119 = !lean_is_exclusive(x_101); +if (x_119 == 0) { -return x_103; +return x_101; } else { -lean_object* x_122; lean_object* x_123; lean_object* x_124; -x_122 = lean_ctor_get(x_103, 0); -x_123 = lean_ctor_get(x_103, 1); -lean_inc(x_123); -lean_inc(x_122); -lean_dec(x_103); -x_124 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -return x_124; +lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_120 = lean_ctor_get(x_101, 0); +x_121 = lean_ctor_get(x_101, 1); +lean_inc(x_121); +lean_inc(x_120); +lean_dec(x_101); +x_122 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_122, 0, x_120); +lean_ctor_set(x_122, 1, x_121); +return x_122; } } } default: { -lean_object* x_125; +lean_object* x_123; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_125 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_125, 0, x_2); -lean_ctor_set(x_125, 1, x_7); -return x_125; +x_123 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_123, 0, x_2); +lean_ctor_set(x_123, 1, x_7); +return x_123; } } } } -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduce(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Lean_Meta_getExprMVarAssignment_x3f___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Meta_getExprMVarAssignment_x3f___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +} +lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; -x_8 = l_Lean_Elab_Term_StructInst_DefaultFields_reduce___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Lean_Meta_mkLambdaFVars___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); return x_8; } } -lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___spec__1(size_t x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_8; +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_apply_1(x_3, x_1); +return x_4; +} +else +{ +lean_object* x_5; +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +if (lean_obj_tag(x_5) == 1) +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +lean_dec(x_1); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_apply_2(x_2, x_5, x_6); +return x_7; +} +else +{ +lean_object* x_8; +lean_dec(x_5); +lean_dec(x_2); +x_8 = lean_apply_1(x_3, x_1); +return x_8; +} +} +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop_match__3___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_setMCtx___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_9 = lean_st_ref_take(x_5, x_8); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_12 = !lean_is_exclusive(x_10); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_13 = lean_ctor_get(x_10, 0); +lean_dec(x_13); +lean_ctor_set(x_10, 0, x_1); +x_14 = lean_st_ref_set(x_5, x_10, x_11); +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_14, 0); +lean_dec(x_16); +x_17 = lean_box(0); +lean_ctor_set(x_14, 0, x_17); +return x_14; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_14, 1); +lean_inc(x_18); +lean_dec(x_14); +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; +} +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_21 = lean_ctor_get(x_10, 1); +x_22 = lean_ctor_get(x_10, 2); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_10); +x_23 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_23, 0, x_1); +lean_ctor_set(x_23, 1, x_21); +lean_ctor_set(x_23, 2, x_22); +x_24 = lean_st_ref_set(x_5, x_23, x_11); +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + x_26 = x_24; +} else { + lean_dec_ref(x_24); + x_26 = lean_box(0); +} +x_27 = lean_box(0); +if (lean_is_scalar(x_26)) { + x_28 = lean_alloc_ctor(0, 2, 0); +} else { + x_28 = x_26; +} +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_25); +return x_28; +} +} +} +lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___spec__2(size_t x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; lean_object* x_5; size_t x_99; size_t x_100; lean_object* x_101; size_t x_102; uint8_t x_103; @@ -24757,7 +23899,7 @@ lean_inc(x_7); x_8 = lean_ctor_get(x_2, 1); lean_inc(x_8); lean_dec(x_2); -x_9 = l_Lean_Expr_FindImpl_findM_x3f___main___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___spec__1(x_1, x_7, x_5); +x_9 = l_Lean_Expr_FindImpl_findM_x3f___main___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___spec__2(x_1, x_7, x_5); x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); if (lean_obj_tag(x_10) == 0) @@ -24833,7 +23975,7 @@ lean_inc(x_23); x_24 = lean_ctor_get(x_2, 2); lean_inc(x_24); lean_dec(x_2); -x_25 = l_Lean_Expr_FindImpl_findM_x3f___main___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___spec__1(x_1, x_23, x_5); +x_25 = l_Lean_Expr_FindImpl_findM_x3f___main___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___spec__2(x_1, x_23, x_5); x_26 = lean_ctor_get(x_25, 0); lean_inc(x_26); if (lean_obj_tag(x_26) == 0) @@ -24909,7 +24051,7 @@ lean_inc(x_39); x_40 = lean_ctor_get(x_2, 2); lean_inc(x_40); lean_dec(x_2); -x_41 = l_Lean_Expr_FindImpl_findM_x3f___main___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___spec__1(x_1, x_39, x_5); +x_41 = l_Lean_Expr_FindImpl_findM_x3f___main___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___spec__2(x_1, x_39, x_5); x_42 = lean_ctor_get(x_41, 0); lean_inc(x_42); if (lean_obj_tag(x_42) == 0) @@ -24987,7 +24129,7 @@ lean_inc(x_56); x_57 = lean_ctor_get(x_2, 3); lean_inc(x_57); lean_dec(x_2); -x_58 = l_Lean_Expr_FindImpl_findM_x3f___main___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___spec__1(x_1, x_55, x_5); +x_58 = l_Lean_Expr_FindImpl_findM_x3f___main___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___spec__2(x_1, x_55, x_5); x_59 = lean_ctor_get(x_58, 0); lean_inc(x_59); if (lean_obj_tag(x_59) == 0) @@ -24996,7 +24138,7 @@ lean_object* x_60; lean_object* x_61; lean_object* x_62; x_60 = lean_ctor_get(x_58, 1); lean_inc(x_60); lean_dec(x_58); -x_61 = l_Lean_Expr_FindImpl_findM_x3f___main___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___spec__1(x_1, x_56, x_60); +x_61 = l_Lean_Expr_FindImpl_findM_x3f___main___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___spec__2(x_1, x_56, x_60); x_62 = lean_ctor_get(x_61, 0); lean_inc(x_62); if (lean_obj_tag(x_62) == 0) @@ -25193,7 +24335,7 @@ return x_97; } } } -static lean_object* _init_l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___closed__1() { +static lean_object* _init_l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___closed__1() { _start: { lean_object* x_1; @@ -25201,17 +24343,17 @@ x_1 = lean_mk_string("_default"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___closed__2() { +static lean_object* _init_l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___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_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___closed__1; +x_2 = l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___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, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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; @@ -25250,7 +24392,7 @@ x_22 = l_Lean_Elab_Term_StructInst_Struct_structName(x_21); lean_inc(x_4); x_23 = l_Lean_Name_append___main(x_22, x_4); lean_dec(x_22); -x_24 = l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___closed__2; +x_24 = l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___closed__2; x_25 = l_Lean_Name_append___main(x_23, x_24); lean_dec(x_23); x_26 = lean_st_ref_get(x_13, x_14); @@ -25310,7 +24452,7 @@ lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean x_41 = lean_ctor_get(x_39, 1); lean_inc(x_41); lean_dec(x_39); -x_42 = l_Lean_Meta_setMCtx___at_Lean_Elab_Term_savingMCtx___spec__1(x_38, x_8, x_9, x_10, x_11, x_12, x_13, x_41); +x_42 = l_Lean_Meta_setMCtx___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___spec__1(x_38, x_8, x_9, x_10, x_11, x_12, x_13, x_41); x_43 = lean_ctor_get(x_42, 1); lean_inc(x_43); lean_dec(x_42); @@ -25340,7 +24482,7 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_2); -x_51 = l_Lean_Elab_Term_StructInst_DefaultFields_reduce___main(x_2, x_50, x_10, x_11, x_12, x_13, x_48); +x_51 = l_Lean_Elab_Term_StructInst_DefaultFields_reduce(x_2, x_50, x_10, x_11, x_12, x_13, x_48); if (lean_obj_tag(x_51) == 0) { lean_object* x_52; lean_object* x_53; size_t x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; @@ -25352,7 +24494,7 @@ lean_dec(x_51); x_54 = 8192; x_55 = l_Lean_Expr_FindImpl_initCache; lean_inc(x_52); -x_56 = l_Lean_Expr_FindImpl_findM_x3f___main___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___spec__1(x_54, x_52, x_55); +x_56 = l_Lean_Expr_FindImpl_findM_x3f___main___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___spec__2(x_54, x_52, x_55); x_57 = lean_ctor_get(x_56, 0); lean_inc(x_57); lean_dec(x_56); @@ -25389,7 +24531,7 @@ lean_inc(x_64); x_65 = lean_ctor_get(x_63, 1); lean_inc(x_65); lean_dec(x_63); -x_66 = l_Lean_Meta_assignExprMVar___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__2(x_5, x_64, x_8, x_9, x_10, x_11, x_12, x_13, x_65); +x_66 = l_Lean_Meta_assignExprMVar___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___spec__4(x_5, x_64, x_8, x_9, x_10, x_11, x_12, x_13, x_65); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -25455,7 +24597,7 @@ lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean lean_dec(x_57); lean_dec(x_52); lean_free_object(x_40); -x_79 = l_Lean_Meta_setMCtx___at_Lean_Elab_Term_savingMCtx___spec__1(x_38, x_8, x_9, x_10, x_11, x_12, x_13, x_53); +x_79 = l_Lean_Meta_setMCtx___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___spec__1(x_38, x_8, x_9, x_10, x_11, x_12, x_13, x_53); x_80 = lean_ctor_get(x_79, 1); lean_inc(x_80); lean_dec(x_79); @@ -25516,7 +24658,7 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_2); -x_90 = l_Lean_Elab_Term_StructInst_DefaultFields_reduce___main(x_2, x_89, x_10, x_11, x_12, x_13, x_48); +x_90 = l_Lean_Elab_Term_StructInst_DefaultFields_reduce(x_2, x_89, x_10, x_11, x_12, x_13, x_48); if (lean_obj_tag(x_90) == 0) { lean_object* x_91; lean_object* x_92; size_t x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; @@ -25528,7 +24670,7 @@ lean_dec(x_90); x_93 = 8192; x_94 = l_Lean_Expr_FindImpl_initCache; lean_inc(x_91); -x_95 = l_Lean_Expr_FindImpl_findM_x3f___main___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___spec__1(x_93, x_91, x_94); +x_95 = l_Lean_Expr_FindImpl_findM_x3f___main___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___spec__2(x_93, x_91, x_94); x_96 = lean_ctor_get(x_95, 0); lean_inc(x_96); lean_dec(x_95); @@ -25566,7 +24708,7 @@ lean_inc(x_104); x_105 = lean_ctor_get(x_103, 1); lean_inc(x_105); lean_dec(x_103); -x_106 = l_Lean_Meta_assignExprMVar___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__2(x_5, x_104, x_8, x_9, x_10, x_11, x_12, x_13, x_105); +x_106 = l_Lean_Meta_assignExprMVar___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___spec__4(x_5, x_104, x_8, x_9, x_10, x_11, x_12, x_13, x_105); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -25629,7 +24771,7 @@ else lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_dec(x_96); lean_dec(x_91); -x_116 = l_Lean_Meta_setMCtx___at_Lean_Elab_Term_savingMCtx___spec__1(x_38, x_8, x_9, x_10, x_11, x_12, x_13, x_92); +x_116 = l_Lean_Meta_setMCtx___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___spec__1(x_38, x_8, x_9, x_10, x_11, x_12, x_13, x_92); x_117 = lean_ctor_get(x_116, 1); lean_inc(x_117); lean_dec(x_116); @@ -25753,40 +24895,35 @@ return x_135; } } } -lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Meta_setMCtx___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Meta_setMCtx___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_9; +} +} +lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___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_1); lean_dec(x_1); -x_5 = l_Lean_Expr_FindImpl_findM_x3f___main___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___spec__1(x_4, x_2, x_3); +x_5 = l_Lean_Expr_FindImpl_findM_x3f___main___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___spec__2(x_4, x_2, x_3); return x_5; } } -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main(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_9); -lean_dec(x_3); -lean_dec(x_1); -return x_15; -} -} -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main(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); -return x_15; -} -} -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux(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 = l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop(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_9); lean_dec(x_3); lean_dec(x_1); @@ -25798,7 +24935,7 @@ _start: { lean_object* x_13; lean_object* x_14; x_13 = lean_unsigned_to_nat(0u); -x_14 = l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main(x_1, x_2, x_3, x_4, x_5, x_13, x_13, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_14 = l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop(x_1, x_2, x_3, x_4, x_5, x_13, x_13, x_6, x_7, x_8, x_9, x_10, x_11, x_12); return x_14; } } @@ -25813,61 +24950,199 @@ lean_dec(x_1); return x_13; } } -lean_object* l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___main___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_step_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_12; lean_object* x_100; -x_100 = lean_ctor_get(x_1, 2); -lean_inc(x_100); -if (lean_obj_tag(x_100) == 1) +if (lean_obj_tag(x_1) == 0) { -lean_object* x_101; lean_object* x_102; +lean_object* x_4; lean_dec(x_2); -lean_dec(x_1); -x_101 = lean_ctor_get(x_100, 0); -lean_inc(x_101); -lean_dec(x_100); -x_102 = l_Lean_Elab_Term_StructInst_DefaultFields_step___main(x_101, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_102; +x_4 = lean_apply_1(x_3, x_1); +return x_4; } else { -lean_object* x_103; -lean_dec(x_100); -x_103 = lean_box(0); -x_12 = x_103; -goto block_99; -} -block_99: +lean_object* x_5; +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +if (lean_obj_tag(x_5) == 2) { -lean_object* x_13; -lean_dec(x_12); -x_13 = lean_ctor_get(x_1, 3); +lean_object* x_6; uint64_t x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +lean_dec(x_1); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get_uint64(x_5, sizeof(void*)*1); +lean_dec(x_5); +x_8 = lean_box_uint64(x_7); +x_9 = lean_apply_2(x_2, x_6, x_8); +return x_9; +} +else +{ +lean_object* x_10; +lean_dec(x_5); +lean_dec(x_2); +x_10 = lean_apply_1(x_3, x_1); +return x_10; +} +} +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_step_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_step_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_step_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_step_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_step_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_step_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = lean_apply_1(x_3, x_1); +return x_6; +} +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_step_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_step_match__3___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_step_match__4___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_apply_1(x_2, x_1); +return x_3; +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_step_match__4(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_step_match__4___rarg), 2, 0); +return x_2; +} +} +static lean_object* _init_l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___spec__1___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Lean.Elab.Term.StructInst.DefaultFields.step"); +return x_1; +} +} +static lean_object* _init_l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___spec__1___lambda__1___closed__2() { +_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_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__4; +x_2 = l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___spec__1___lambda__1___closed__1; +x_3 = lean_unsigned_to_nat(728u); +x_4 = lean_unsigned_to_nat(21u); +x_5 = l_Lean_ResolveName_resolveNamespaceUsingScope___closed__3; +x_6 = l___private_Init_Util_2__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +lean_object* l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = lean_ctor_get(x_1, 2); +lean_inc(x_12); +if (lean_obj_tag(x_12) == 1) +{ +lean_object* x_13; lean_object* x_14; +lean_dec(x_2); +lean_dec(x_1); +x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); -if (lean_obj_tag(x_13) == 0) -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -lean_dec(x_1); -x_14 = l_PUnit_Inhabited; -x_15 = l_monadInhabited___rarg(x_2, x_14); -x_16 = lean_alloc_closure((void*)(l_ReaderT_inhabited___rarg___boxed), 2, 1); -lean_closure_set(x_16, 0, x_15); -x_17 = l_unreachable_x21___rarg(x_16); -x_18 = lean_apply_9(x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_18; +lean_dec(x_12); +x_14 = l_Lean_Elab_Term_StructInst_DefaultFields_step(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_14; } else { -lean_object* x_19; lean_object* x_20; +lean_object* x_15; +lean_dec(x_12); +x_15 = lean_ctor_get(x_1, 3); +lean_inc(x_15); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +lean_dec(x_1); +x_16 = l_PUnit_Inhabited; +x_17 = l_monadInhabited___rarg(x_2, x_16); +x_18 = lean_alloc_closure((void*)(l_ReaderT_inhabited___rarg___boxed), 2, 1); +lean_closure_set(x_18, 0, x_17); +x_19 = l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___spec__1___lambda__1___closed__2; +x_20 = lean_panic_fn(x_18, x_19); +x_21 = lean_apply_9(x_20, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_21; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_dec(x_2); -x_19 = lean_ctor_get(x_13, 0); -lean_inc(x_19); -lean_dec(x_13); -x_20 = l_Lean_Elab_Term_StructInst_defaultMissing_x3f(x_19); -lean_dec(x_19); -if (lean_obj_tag(x_20) == 0) +x_22 = lean_ctor_get(x_15, 0); +lean_inc(x_22); +lean_dec(x_15); +x_23 = l_Lean_Elab_Term_StructInst_defaultMissing_x3f(x_22); +lean_dec(x_22); +if (lean_obj_tag(x_23) == 0) { -lean_object* x_21; lean_object* x_22; +lean_object* x_24; lean_object* x_25; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -25877,320 +25152,287 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_21 = lean_box(0); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_11); -return x_22; -} -else -{ -lean_object* x_23; -x_23 = lean_ctor_get(x_20, 0); -lean_inc(x_23); -lean_dec(x_20); -if (lean_obj_tag(x_23) == 2) -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -lean_dec(x_23); -lean_inc(x_24); -x_25 = l_Lean_Elab_Term_isExprMVarAssigned(x_24, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -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; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; -x_28 = lean_ctor_get(x_25, 1); -lean_inc(x_28); -lean_dec(x_25); -x_29 = lean_ctor_get(x_1, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_3, 0); -lean_inc(x_30); -x_31 = lean_ctor_get(x_3, 1); -lean_inc(x_31); -x_32 = lean_ctor_get(x_3, 2); -lean_inc(x_32); -lean_dec(x_3); -x_33 = l_Lean_Elab_Term_StructInst_DefaultFields_getFieldName(x_1); -lean_dec(x_1); -x_34 = !lean_is_exclusive(x_9); -if (x_34 == 0) -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_35 = lean_ctor_get(x_9, 3); -x_36 = l_Lean_replaceRef(x_29, x_35); -lean_dec(x_29); -x_37 = l_Lean_replaceRef(x_36, x_35); -lean_dec(x_36); -x_38 = l_Lean_replaceRef(x_37, x_35); -lean_dec(x_35); -lean_dec(x_37); -lean_ctor_set(x_9, 3, x_38); -x_39 = lean_unsigned_to_nat(0u); -x_40 = l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main(x_30, x_31, x_32, x_33, x_24, x_39, x_39, x_5, x_6, x_7, x_8, x_9, x_10, x_28); -lean_dec(x_6); -lean_dec(x_32); -lean_dec(x_30); -if (lean_obj_tag(x_40) == 0) -{ -lean_object* x_41; uint8_t x_42; -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -x_42 = lean_unbox(x_41); -if (x_42 == 0) -{ -uint8_t x_43; -lean_dec(x_41); -lean_dec(x_4); -x_43 = !lean_is_exclusive(x_40); -if (x_43 == 0) -{ -lean_object* x_44; lean_object* x_45; -x_44 = lean_ctor_get(x_40, 0); -lean_dec(x_44); -x_45 = lean_box(0); -lean_ctor_set(x_40, 0, x_45); -return x_40; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_40, 1); -lean_inc(x_46); -lean_dec(x_40); -x_47 = lean_box(0); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_46); -return x_48; -} -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; -x_49 = lean_ctor_get(x_40, 1); -lean_inc(x_49); -lean_dec(x_40); -x_50 = lean_st_ref_take(x_4, x_49); -x_51 = lean_ctor_get(x_50, 1); -lean_inc(x_51); -lean_dec(x_50); -x_52 = lean_st_ref_set(x_4, x_41, x_51); -lean_dec(x_4); -x_53 = !lean_is_exclusive(x_52); -if (x_53 == 0) -{ -lean_object* x_54; lean_object* x_55; -x_54 = lean_ctor_get(x_52, 0); -lean_dec(x_54); -x_55 = lean_box(0); -lean_ctor_set(x_52, 0, x_55); -return x_52; -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_52, 1); -lean_inc(x_56); -lean_dec(x_52); -x_57 = lean_box(0); -x_58 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_56); -return x_58; -} -} -} -else -{ -uint8_t x_59; -lean_dec(x_4); -x_59 = !lean_is_exclusive(x_40); -if (x_59 == 0) -{ -return x_40; -} -else -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_40, 0); -x_61 = lean_ctor_get(x_40, 1); -lean_inc(x_61); -lean_inc(x_60); -lean_dec(x_40); -x_62 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_62, 0, x_60); -lean_ctor_set(x_62, 1, x_61); -return x_62; -} -} -} -else -{ -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; -x_63 = lean_ctor_get(x_9, 0); -x_64 = lean_ctor_get(x_9, 1); -x_65 = lean_ctor_get(x_9, 2); -x_66 = lean_ctor_get(x_9, 3); -lean_inc(x_66); -lean_inc(x_65); -lean_inc(x_64); -lean_inc(x_63); -lean_dec(x_9); -x_67 = l_Lean_replaceRef(x_29, x_66); -lean_dec(x_29); -x_68 = l_Lean_replaceRef(x_67, x_66); -lean_dec(x_67); -x_69 = l_Lean_replaceRef(x_68, x_66); -lean_dec(x_66); -lean_dec(x_68); -x_70 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_70, 0, x_63); -lean_ctor_set(x_70, 1, x_64); -lean_ctor_set(x_70, 2, x_65); -lean_ctor_set(x_70, 3, x_69); -x_71 = lean_unsigned_to_nat(0u); -x_72 = l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main(x_30, x_31, x_32, x_33, x_24, x_71, x_71, x_5, x_6, x_7, x_8, x_70, x_10, x_28); -lean_dec(x_6); -lean_dec(x_32); -lean_dec(x_30); -if (lean_obj_tag(x_72) == 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); -if (x_74 == 0) -{ -lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -lean_dec(x_73); -lean_dec(x_4); -x_75 = lean_ctor_get(x_72, 1); -lean_inc(x_75); -if (lean_is_exclusive(x_72)) { - lean_ctor_release(x_72, 0); - lean_ctor_release(x_72, 1); - x_76 = x_72; -} else { - lean_dec_ref(x_72); - x_76 = lean_box(0); -} -x_77 = lean_box(0); -if (lean_is_scalar(x_76)) { - x_78 = lean_alloc_ctor(0, 2, 0); -} else { - x_78 = x_76; -} -lean_ctor_set(x_78, 0, x_77); -lean_ctor_set(x_78, 1, x_75); -return x_78; -} -else -{ -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; -x_79 = lean_ctor_get(x_72, 1); -lean_inc(x_79); -lean_dec(x_72); -x_80 = lean_st_ref_take(x_4, x_79); -x_81 = lean_ctor_get(x_80, 1); -lean_inc(x_81); -lean_dec(x_80); -x_82 = lean_st_ref_set(x_4, x_73, x_81); -lean_dec(x_4); -x_83 = lean_ctor_get(x_82, 1); -lean_inc(x_83); -if (lean_is_exclusive(x_82)) { - lean_ctor_release(x_82, 0); - lean_ctor_release(x_82, 1); - x_84 = x_82; -} else { - lean_dec_ref(x_82); - x_84 = lean_box(0); -} -x_85 = lean_box(0); -if (lean_is_scalar(x_84)) { - x_86 = lean_alloc_ctor(0, 2, 0); -} else { - x_86 = x_84; -} -lean_ctor_set(x_86, 0, x_85); -lean_ctor_set(x_86, 1, x_83); -return x_86; -} -} -else -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; -lean_dec(x_4); -x_87 = lean_ctor_get(x_72, 0); -lean_inc(x_87); -x_88 = lean_ctor_get(x_72, 1); -lean_inc(x_88); -if (lean_is_exclusive(x_72)) { - lean_ctor_release(x_72, 0); - lean_ctor_release(x_72, 1); - x_89 = x_72; -} else { - lean_dec_ref(x_72); - x_89 = lean_box(0); -} -if (lean_is_scalar(x_89)) { - x_90 = lean_alloc_ctor(1, 2, 0); -} else { - x_90 = x_89; -} -lean_ctor_set(x_90, 0, x_87); -lean_ctor_set(x_90, 1, x_88); -return x_90; -} -} -} -else -{ -uint8_t x_91; -lean_dec(x_24); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_91 = !lean_is_exclusive(x_25); -if (x_91 == 0) -{ -lean_object* x_92; lean_object* x_93; -x_92 = lean_ctor_get(x_25, 0); -lean_dec(x_92); -x_93 = lean_box(0); -lean_ctor_set(x_25, 0, x_93); +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_11); return x_25; } else { -lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_94 = lean_ctor_get(x_25, 1); -lean_inc(x_94); -lean_dec(x_25); -x_95 = lean_box(0); -x_96 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_96, 0, x_95); -lean_ctor_set(x_96, 1, x_94); -return x_96; +lean_object* x_26; +x_26 = lean_ctor_get(x_23, 0); +lean_inc(x_26); +lean_dec(x_23); +if (lean_obj_tag(x_26) == 2) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +lean_dec(x_26); +lean_inc(x_27); +x_28 = l_Lean_Elab_Term_isExprMVarAssigned(x_27, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_unbox(x_29); +lean_dec(x_29); +if (x_30 == 0) +{ +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_31 = lean_ctor_get(x_28, 1); +lean_inc(x_31); +lean_dec(x_28); +x_32 = lean_ctor_get(x_1, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_3, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_3, 1); +lean_inc(x_34); +x_35 = lean_ctor_get(x_3, 2); +lean_inc(x_35); +lean_dec(x_3); +x_36 = l_Lean_Elab_Term_StructInst_DefaultFields_getFieldName(x_1); +lean_dec(x_1); +x_37 = !lean_is_exclusive(x_9); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_38 = lean_ctor_get(x_9, 3); +x_39 = l_Lean_replaceRef(x_32, x_38); +lean_dec(x_32); +x_40 = l_Lean_replaceRef(x_39, x_38); +lean_dec(x_39); +x_41 = l_Lean_replaceRef(x_40, x_38); +lean_dec(x_38); +lean_dec(x_40); +lean_ctor_set(x_9, 3, x_41); +x_42 = lean_unsigned_to_nat(0u); +x_43 = l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop(x_33, x_34, x_35, x_36, x_27, x_42, x_42, x_5, x_6, x_7, x_8, x_9, x_10, x_31); +lean_dec(x_6); +lean_dec(x_35); +lean_dec(x_33); +if (lean_obj_tag(x_43) == 0) +{ +lean_object* x_44; uint8_t x_45; +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +x_45 = lean_unbox(x_44); +lean_dec(x_44); +if (x_45 == 0) +{ +uint8_t x_46; +lean_dec(x_4); +x_46 = !lean_is_exclusive(x_43); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_ctor_get(x_43, 0); +lean_dec(x_47); +x_48 = lean_box(0); +lean_ctor_set(x_43, 0, x_48); +return x_43; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_43, 1); +lean_inc(x_49); +lean_dec(x_43); +x_50 = lean_box(0); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_49); +return x_51; +} +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_52 = lean_ctor_get(x_43, 1); +lean_inc(x_52); +lean_dec(x_43); +x_53 = lean_st_ref_take(x_4, x_52); +x_54 = lean_ctor_get(x_53, 1); +lean_inc(x_54); +lean_dec(x_53); +x_55 = 1; +x_56 = lean_box(x_55); +x_57 = lean_st_ref_set(x_4, x_56, x_54); +lean_dec(x_4); +x_58 = !lean_is_exclusive(x_57); +if (x_58 == 0) +{ +lean_object* x_59; lean_object* x_60; +x_59 = lean_ctor_get(x_57, 0); +lean_dec(x_59); +x_60 = lean_box(0); +lean_ctor_set(x_57, 0, x_60); +return x_57; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_57, 1); +lean_inc(x_61); +lean_dec(x_57); +x_62 = lean_box(0); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_61); +return x_63; } } } else { -lean_object* x_97; lean_object* x_98; -lean_dec(x_23); +uint8_t x_64; +lean_dec(x_4); +x_64 = !lean_is_exclusive(x_43); +if (x_64 == 0) +{ +return x_43; +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_43, 0); +x_66 = lean_ctor_get(x_43, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_43); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_66); +return x_67; +} +} +} +else +{ +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_9, 0); +x_69 = lean_ctor_get(x_9, 1); +x_70 = lean_ctor_get(x_9, 2); +x_71 = lean_ctor_get(x_9, 3); +lean_inc(x_71); +lean_inc(x_70); +lean_inc(x_69); +lean_inc(x_68); +lean_dec(x_9); +x_72 = l_Lean_replaceRef(x_32, x_71); +lean_dec(x_32); +x_73 = l_Lean_replaceRef(x_72, x_71); +lean_dec(x_72); +x_74 = l_Lean_replaceRef(x_73, x_71); +lean_dec(x_71); +lean_dec(x_73); +x_75 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_75, 0, x_68); +lean_ctor_set(x_75, 1, x_69); +lean_ctor_set(x_75, 2, x_70); +lean_ctor_set(x_75, 3, x_74); +x_76 = lean_unsigned_to_nat(0u); +x_77 = l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop(x_33, x_34, x_35, x_36, x_27, x_76, x_76, x_5, x_6, x_7, x_8, x_75, x_10, x_31); +lean_dec(x_6); +lean_dec(x_35); +lean_dec(x_33); +if (lean_obj_tag(x_77) == 0) +{ +lean_object* x_78; uint8_t x_79; +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +x_79 = lean_unbox(x_78); +lean_dec(x_78); +if (x_79 == 0) +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +lean_dec(x_4); +x_80 = lean_ctor_get(x_77, 1); +lean_inc(x_80); +if (lean_is_exclusive(x_77)) { + lean_ctor_release(x_77, 0); + lean_ctor_release(x_77, 1); + x_81 = x_77; +} else { + lean_dec_ref(x_77); + x_81 = lean_box(0); +} +x_82 = lean_box(0); +if (lean_is_scalar(x_81)) { + x_83 = lean_alloc_ctor(0, 2, 0); +} else { + x_83 = x_81; +} +lean_ctor_set(x_83, 0, x_82); +lean_ctor_set(x_83, 1, x_80); +return x_83; +} +else +{ +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; +x_84 = lean_ctor_get(x_77, 1); +lean_inc(x_84); +lean_dec(x_77); +x_85 = lean_st_ref_take(x_4, x_84); +x_86 = lean_ctor_get(x_85, 1); +lean_inc(x_86); +lean_dec(x_85); +x_87 = 1; +x_88 = lean_box(x_87); +x_89 = lean_st_ref_set(x_4, x_88, x_86); +lean_dec(x_4); +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_89); + x_91 = lean_box(0); +} +x_92 = lean_box(0); +if (lean_is_scalar(x_91)) { + x_93 = lean_alloc_ctor(0, 2, 0); +} else { + x_93 = x_91; +} +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_90); +return x_93; +} +} +else +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; +lean_dec(x_4); +x_94 = lean_ctor_get(x_77, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_77, 1); +lean_inc(x_95); +if (lean_is_exclusive(x_77)) { + lean_ctor_release(x_77, 0); + lean_ctor_release(x_77, 1); + x_96 = x_77; +} else { + lean_dec_ref(x_77); + x_96 = lean_box(0); +} +if (lean_is_scalar(x_96)) { + x_97 = lean_alloc_ctor(1, 2, 0); +} else { + x_97 = x_96; +} +lean_ctor_set(x_97, 0, x_94); +lean_ctor_set(x_97, 1, x_95); +return x_97; +} +} +} +else +{ +uint8_t x_98; +lean_dec(x_27); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -26200,26 +25442,63 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_97 = lean_box(0); -x_98 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_11); -return x_98; +x_98 = !lean_is_exclusive(x_28); +if (x_98 == 0) +{ +lean_object* x_99; lean_object* x_100; +x_99 = lean_ctor_get(x_28, 0); +lean_dec(x_99); +x_100 = lean_box(0); +lean_ctor_set(x_28, 0, x_100); +return x_28; +} +else +{ +lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_101 = lean_ctor_get(x_28, 1); +lean_inc(x_101); +lean_dec(x_28); +x_102 = lean_box(0); +x_103 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_101); +return x_103; +} +} +} +else +{ +lean_object* x_104; lean_object* x_105; +lean_dec(x_26); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_104 = lean_box(0); +x_105 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_105, 0, x_104); +lean_ctor_set(x_105, 1, x_11); +return x_105; } } } } } } -lean_object* l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___main___spec__1___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___spec__1___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, 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_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___main___spec__1(x_1, x_2, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_13 = l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___spec__1(x_1, x_2, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); return x_13; } } -lean_object* l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___main___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* l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___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: { if (lean_obj_tag(x_2) == 0) @@ -26248,11 +25527,11 @@ x_18 = lean_ctor_get(x_1, 1); lean_inc(x_18); lean_inc(x_3); lean_inc(x_1); -x_19 = lean_alloc_closure((void*)(l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___main___spec__1___lambda__1), 11, 3); +x_19 = lean_alloc_closure((void*)(l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___spec__1___lambda__1), 11, 3); lean_closure_set(x_19, 0, x_16); lean_closure_set(x_19, 1, x_1); lean_closure_set(x_19, 2, x_3); -x_20 = lean_alloc_closure((void*)(l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___main___spec__1___lambda__2___boxed), 12, 3); +x_20 = lean_alloc_closure((void*)(l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___spec__1___lambda__2___boxed), 12, 3); lean_closure_set(x_20, 0, x_1); lean_closure_set(x_20, 1, x_17); lean_closure_set(x_20, 2, x_3); @@ -26261,7 +25540,7 @@ return x_21; } } } -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_step___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, lean_object* x_10) { +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_step(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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; @@ -26285,7 +25564,7 @@ x_17 = lean_ctor_get(x_2, 0); x_18 = lean_array_push(x_17, x_1); lean_ctor_set(x_2, 0, x_18); x_19 = l_Lean_Meta_CheckAssignment_checkFVar___closed__2; -x_20 = l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___main___spec__1(x_19, x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14); +x_20 = l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___spec__1(x_19, x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14); return x_20; } else @@ -26304,7 +25583,7 @@ lean_ctor_set(x_25, 0, x_24); lean_ctor_set(x_25, 1, x_22); lean_ctor_set(x_25, 2, x_23); x_26 = l_Lean_Meta_CheckAssignment_checkFVar___closed__2; -x_27 = l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___main___spec__1(x_26, x_15, x_25, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14); +x_27 = l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___spec__1(x_26, x_15, x_25, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14); return x_27; } } @@ -26345,24 +25624,63 @@ return x_33; } } } -lean_object* l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___main___spec__1___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* l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___spec__1___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; -x_13 = l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___main___spec__1___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 = l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___spec__1___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_4); return x_13; } } -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_step(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_11; -x_11 = l_Lean_Elab_Term_StructInst_DefaultFields_step___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_11; +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; } } -lean_object* l_Lean_throwError___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___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* l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_apply_2(x_3, x_1, x_2); +return x_4; +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_throwError___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; lean_object* x_12; uint8_t x_13; @@ -26400,15 +25718,15 @@ return x_19; } } } -lean_object* l_Lean_throwError___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___spec__2(lean_object* x_1) { +lean_object* l_Lean_throwError___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___spec__2(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___spec__2___rarg___boxed), 10, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___spec__2___rarg___boxed), 10, 0); return x_2; } } -lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { uint8_t x_12; @@ -26424,7 +25742,7 @@ x_16 = l_Lean_replaceRef(x_15, x_13); lean_dec(x_13); lean_dec(x_15); lean_ctor_set(x_9, 3, x_16); -x_17 = l_Lean_throwError___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___spec__2___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_17 = l_Lean_throwError___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___spec__2___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_9); return x_17; } @@ -26451,21 +25769,21 @@ lean_ctor_set(x_25, 0, x_18); lean_ctor_set(x_25, 1, x_19); lean_ctor_set(x_25, 2, x_20); lean_ctor_set(x_25, 3, x_24); -x_26 = l_Lean_throwError___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___spec__2___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_25, x_10, x_11); +x_26 = l_Lean_throwError___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___spec__2___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_25, x_10, x_11); lean_dec(x_25); return x_26; } } } -lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___spec__1(lean_object* x_1) { +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___spec__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_throwErrorAt___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___spec__1___rarg___boxed), 11, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_throwErrorAt___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___spec__1___rarg___boxed), 11, 0); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___closed__1() { +static lean_object* _init_l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___closed__1() { _start: { lean_object* x_1; @@ -26473,27 +25791,16 @@ x_1 = lean_mk_string("' is missing"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___closed__2() { +static lean_object* _init_l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___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, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; uint8_t x_14; @@ -26507,7 +25814,7 @@ 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 = l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___main(x_17, x_3); +x_18 = l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f(x_17, x_3); if (lean_obj_tag(x_18) == 0) { lean_object* x_19; @@ -26564,7 +25871,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_30 = l_Lean_Elab_Term_StructInst_DefaultFields_step___main(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_29); +x_30 = l_Lean_Elab_Term_StructInst_DefaultFields_step(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_29); if (lean_obj_tag(x_30) == 0) { lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; @@ -26667,7 +25974,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_48); lean_inc(x_3); -x_55 = l_Lean_Elab_Term_StructInst_DefaultFields_step___main(x_3, x_48, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_54); +x_55 = l_Lean_Elab_Term_StructInst_DefaultFields_step(x_3, x_48, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_54); if (lean_obj_tag(x_55) == 0) { lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; @@ -26754,15 +26061,15 @@ x_72 = l_Lean_Elab_Term_StructInst_DefaultFields_getFieldName(x_20); lean_dec(x_20); x_73 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_73, 0, x_72); -x_74 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__3; +x_74 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__4; x_75 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_75, 0, x_74); lean_ctor_set(x_75, 1, x_73); -x_76 = l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___closed__3; +x_76 = l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___closed__2; x_77 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_77, 0, x_75); lean_ctor_set(x_77, 1, x_76); -x_78 = l_Lean_throwErrorAt___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___spec__1___rarg(x_71, x_77, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_16); +x_78 = l_Lean_throwErrorAt___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___spec__1___rarg(x_71, x_77, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_16); lean_dec(x_11); lean_dec(x_9); lean_dec(x_8); @@ -26786,7 +26093,7 @@ lean_dec(x_13); x_81 = lean_ctor_get(x_79, 0); lean_inc(x_81); lean_dec(x_79); -x_82 = l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___main(x_81, x_3); +x_82 = l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f(x_81, x_3); if (lean_obj_tag(x_82) == 0) { lean_object* x_83; lean_object* x_84; @@ -26858,7 +26165,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_90); lean_inc(x_3); -x_97 = l_Lean_Elab_Term_StructInst_DefaultFields_step___main(x_3, x_90, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_96); +x_97 = l_Lean_Elab_Term_StructInst_DefaultFields_step(x_3, x_90, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_96); if (lean_obj_tag(x_97) == 0) { lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; @@ -26944,15 +26251,15 @@ x_114 = l_Lean_Elab_Term_StructInst_DefaultFields_getFieldName(x_85); lean_dec(x_85); x_115 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_115, 0, x_114); -x_116 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__3; +x_116 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__4; x_117 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_117, 0, x_116); lean_ctor_set(x_117, 1, x_115); -x_118 = l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___closed__3; +x_118 = l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___closed__2; x_119 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_119, 0, x_117); lean_ctor_set(x_119, 1, x_118); -x_120 = l_Lean_throwErrorAt___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___spec__1___rarg(x_113, x_119, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_80); +x_120 = l_Lean_throwErrorAt___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___spec__1___rarg(x_113, x_119, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_80); lean_dec(x_11); lean_dec(x_9); lean_dec(x_8); @@ -26967,11 +26274,11 @@ return x_120; } } } -lean_object* l_Lean_throwError___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Lean_throwError___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l_Lean_throwError___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___spec__2___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_throwError___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___spec__2___rarg(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); @@ -26983,11 +26290,11 @@ lean_dec(x_2); return x_11; } } -lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___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* l_Lean_throwErrorAt___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___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) { _start: { lean_object* x_12; -x_12 = l_Lean_throwErrorAt___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___spec__1___rarg(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_throwErrorAt___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); @@ -26999,23 +26306,6 @@ lean_dec(x_1); return x_12; } } -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ -lean_object* x_13; -x_13 = l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_1); -return x_13; -} -} -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ -lean_object* x_13; -x_13 = l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -return x_13; -} -} lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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: { @@ -27029,9 +26319,9 @@ lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagate(lean_object* x_ _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_9 = l_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___main(x_1); +x_9 = l_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth(x_1); x_10 = l_Array_empty___closed__1; -x_11 = l_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___main(x_1, x_10); +x_11 = l_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames(x_1, x_10); x_12 = lean_unsigned_to_nat(0u); x_13 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_13, 0, x_10); @@ -27046,7 +26336,7 @@ x_18 = lean_ctor_get(x_16, 1); lean_inc(x_18); lean_dec(x_16); lean_inc(x_17); -x_19 = l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main(x_9, x_12, x_1, x_13, x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_18); +x_19 = l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop(x_9, x_12, x_1, x_13, x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_18); lean_dec(x_9); if (lean_obj_tag(x_19) == 0) { @@ -27104,7 +26394,406 @@ return x_30; } } } -static lean_object* _init_l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__1() { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_fmt___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Elab_Term_StructInst_formatStruct(x_1); +return x_2; +} +} +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___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 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkStructView(x_1, x_2, x_3); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +lean_dec(x_4); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +lean_dec(x_13); +x_15 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_15, 0, x_14); +x_16 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_16, 0, x_15); +x_17 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(x_16, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_13, 0); +lean_inc(x_18); +lean_dec(x_13); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_19 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct(x_18, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_72; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_69 = lean_st_ref_get(x_11, x_21); +x_70 = lean_ctor_get(x_69, 0); +lean_inc(x_70); +x_71 = lean_ctor_get(x_70, 3); +lean_inc(x_71); +lean_dec(x_70); +x_72 = lean_ctor_get_uint8(x_71, sizeof(void*)*1); +lean_dec(x_71); +if (x_72 == 0) +{ +lean_object* x_73; uint8_t x_74; +x_73 = lean_ctor_get(x_69, 1); +lean_inc(x_73); +lean_dec(x_69); +x_74 = 0; +x_22 = x_74; +x_23 = x_73; +goto block_68; +} +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; +x_75 = lean_ctor_get(x_69, 1); +lean_inc(x_75); +lean_dec(x_69); +x_76 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__2; +x_77 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Elab_Term_declareTacticSyntax___spec__6(x_76, x_6, x_7, x_8, x_9, x_10, x_11, x_75); +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_77, 1); +lean_inc(x_79); +lean_dec(x_77); +x_80 = lean_unbox(x_78); +lean_dec(x_78); +x_22 = x_80; +x_23 = x_79; +goto block_68; +} +block_68: +{ +if (x_22 == 0) +{ +lean_object* x_24; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_24 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct(x_20, x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_23); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_27 = lean_ctor_get(x_25, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_25, 1); +lean_inc(x_28); +lean_dec(x_25); +x_29 = l_Lean_Elab_Term_StructInst_DefaultFields_propagate(x_28, x_6, x_7, x_8, x_9, x_10, x_11, x_26); +if (lean_obj_tag(x_29) == 0) +{ +uint8_t x_30; +x_30 = !lean_is_exclusive(x_29); +if (x_30 == 0) +{ +lean_object* x_31; +x_31 = lean_ctor_get(x_29, 0); +lean_dec(x_31); +lean_ctor_set(x_29, 0, x_27); +return x_29; +} +else +{ +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_29, 1); +lean_inc(x_32); +lean_dec(x_29); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_27); +lean_ctor_set(x_33, 1, x_32); +return x_33; +} +} +else +{ +uint8_t x_34; +lean_dec(x_27); +x_34 = !lean_is_exclusive(x_29); +if (x_34 == 0) +{ +return x_29; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_29, 0); +x_36 = lean_ctor_get(x_29, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_29); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +else +{ +uint8_t x_38; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_38 = !lean_is_exclusive(x_24); +if (x_38 == 0) +{ +return x_24; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_24, 0); +x_40 = lean_ctor_get(x_24, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_24); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +} +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +lean_inc(x_20); +x_42 = l_Lean_Elab_Term_StructInst_formatStruct(x_20); +x_43 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_43, 0, x_42); +x_44 = l_Lean_Elab_Term_elabLetDeclAux___closed__4; +x_45 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_43); +x_46 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_44); +x_47 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__2; +x_48 = l_Lean_addTrace___at_Lean_Elab_Term_declareTacticSyntax___spec__7(x_47, x_46, x_6, x_7, x_8, x_9, x_10, x_11, x_23); +x_49 = lean_ctor_get(x_48, 1); +lean_inc(x_49); +lean_dec(x_48); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_50 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct(x_20, x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_49); +if (lean_obj_tag(x_50) == 0) +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_50, 1); +lean_inc(x_52); +lean_dec(x_50); +x_53 = lean_ctor_get(x_51, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_51, 1); +lean_inc(x_54); +lean_dec(x_51); +x_55 = l_Lean_Elab_Term_StructInst_DefaultFields_propagate(x_54, x_6, x_7, x_8, x_9, x_10, x_11, x_52); +if (lean_obj_tag(x_55) == 0) +{ +uint8_t x_56; +x_56 = !lean_is_exclusive(x_55); +if (x_56 == 0) +{ +lean_object* x_57; +x_57 = lean_ctor_get(x_55, 0); +lean_dec(x_57); +lean_ctor_set(x_55, 0, x_53); +return x_55; +} +else +{ +lean_object* x_58; lean_object* x_59; +x_58 = lean_ctor_get(x_55, 1); +lean_inc(x_58); +lean_dec(x_55); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_53); +lean_ctor_set(x_59, 1, x_58); +return x_59; +} +} +else +{ +uint8_t x_60; +lean_dec(x_53); +x_60 = !lean_is_exclusive(x_55); +if (x_60 == 0) +{ +return x_55; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_55, 0); +x_62 = lean_ctor_get(x_55, 1); +lean_inc(x_62); +lean_inc(x_61); +lean_dec(x_55); +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set(x_63, 1, x_62); +return x_63; +} +} +} +else +{ +uint8_t x_64; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_64 = !lean_is_exclusive(x_50); +if (x_64 == 0) +{ +return x_50; +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_50, 0); +x_66 = lean_ctor_get(x_50, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_50); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_66); +return x_67; +} +} +} +} +} +else +{ +uint8_t x_81; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +x_81 = !lean_is_exclusive(x_19); +if (x_81 == 0) +{ +return x_19; +} +else +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_82 = lean_ctor_get(x_19, 0); +x_83 = lean_ctor_get(x_19, 1); +lean_inc(x_83); +lean_inc(x_82); +lean_dec(x_19); +x_84 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_84, 0, x_82); +lean_ctor_set(x_84, 1, x_83); +return x_84; +} +} +} +} +} +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___closed__1() { _start: { lean_object* x_1; @@ -27112,27 +26801,16 @@ x_1 = lean_mk_string("invalid {...} notation, '"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__2() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__4() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___closed__3() { _start: { lean_object* x_1; @@ -27140,27 +26818,16 @@ x_1 = lean_mk_string("' is not a structure"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__5() { +static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__4; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__5; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l___private_Lean_Elab_StructInst_25__elabStructInstAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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; @@ -27171,371 +26838,78 @@ lean_inc(x_6); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_11 = l___private_Lean_Elab_StructInst_5__getStructName___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg(x_2, 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_12; lean_object* x_13; lean_object* x_14; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; x_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_75 = lean_st_ref_get(x_9, x_13); -x_76 = lean_ctor_get(x_75, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_75, 1); -lean_inc(x_77); -lean_dec(x_75); -x_78 = lean_ctor_get(x_76, 0); -lean_inc(x_78); -lean_dec(x_76); -lean_inc(x_12); -x_79 = l_Lean_isStructureLike(x_78, x_12); -if (x_79 == 0) -{ -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_80 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_80, 0, x_12); -x_81 = l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__3; -x_82 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_82, 0, x_81); -lean_ctor_set(x_82, 1, x_80); -x_83 = l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__6; -x_84 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_84, 0, x_82); -lean_ctor_set(x_84, 1, x_83); -x_85 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_84, x_4, x_5, x_6, x_7, x_8, x_9, x_77); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_86 = !lean_is_exclusive(x_85); -if (x_86 == 0) -{ -return x_85; -} -else -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_87 = lean_ctor_get(x_85, 0); -x_88 = lean_ctor_get(x_85, 1); -lean_inc(x_88); -lean_inc(x_87); -lean_dec(x_85); -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 -{ -x_14 = x_77; -goto block_74; -} -block_74: -{ -lean_object* x_15; -x_15 = l___private_Lean_Elab_StructInst_7__mkStructView(x_1, x_12, x_3); -if (lean_obj_tag(x_15) == 0) -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -lean_dec(x_2); -x_16 = lean_ctor_get(x_15, 0); +x_14 = lean_st_ref_get(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_ctor_get(x_15, 0); +lean_inc(x_17); lean_dec(x_15); -x_17 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_17, 0, x_16); -x_18 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_18, 0, x_17); -x_19 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_14); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_19; -} -else +lean_inc(x_12); +x_18 = l_Lean_isStructureLike(x_17, x_12); +if (x_18 == 0) { -lean_object* x_20; lean_object* x_21; -x_20 = lean_ctor_get(x_15, 0); -lean_inc(x_20); -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); -x_21 = l___private_Lean_Elab_StructInst_19__expandStruct___main(x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_14); -if (lean_obj_tag(x_21) == 0) -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); -lean_inc(x_23); -lean_dec(x_21); -x_24 = lean_ctor_get(x_8, 0); -lean_inc(x_24); -x_25 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__2; -x_26 = l_Lean_checkTraceOption(x_24, x_25); -lean_dec(x_24); -if (x_26 == 0) -{ -lean_object* x_27; -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_27 = l___private_Lean_Elab_StructInst_24__elabStruct___main(x_22, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_23); -if (lean_obj_tag(x_27) == 0) -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -x_29 = lean_ctor_get(x_27, 1); -lean_inc(x_29); -lean_dec(x_27); -x_30 = lean_ctor_get(x_28, 0); -lean_inc(x_30); -x_31 = lean_ctor_get(x_28, 1); -lean_inc(x_31); -lean_dec(x_28); -x_32 = l_Lean_Elab_Term_StructInst_DefaultFields_propagate(x_31, x_4, x_5, x_6, x_7, x_8, x_9, x_29); -if (lean_obj_tag(x_32) == 0) -{ -uint8_t x_33; -x_33 = !lean_is_exclusive(x_32); -if (x_33 == 0) -{ -lean_object* x_34; -x_34 = lean_ctor_get(x_32, 0); -lean_dec(x_34); -lean_ctor_set(x_32, 0, x_30); -return x_32; -} -else -{ -lean_object* x_35; lean_object* x_36; -x_35 = lean_ctor_get(x_32, 1); -lean_inc(x_35); -lean_dec(x_32); -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_30); -lean_ctor_set(x_36, 1, x_35); -return x_36; -} -} -else -{ -uint8_t x_37; -lean_dec(x_30); -x_37 = !lean_is_exclusive(x_32); -if (x_37 == 0) -{ -return x_32; -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_32, 0); -x_39 = lean_ctor_get(x_32, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_32); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -return x_40; -} -} -} -else -{ -uint8_t x_41; -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_41 = !lean_is_exclusive(x_27); -if (x_41 == 0) -{ -return x_27; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_27, 0); -x_43 = lean_ctor_get(x_27, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_27); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -return x_44; -} -} -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -lean_inc(x_22); -x_45 = l_Lean_Elab_Term_StructInst_formatStruct___main(x_22); -x_46 = lean_box(0); -x_47 = l_Lean_Format_pretty(x_45, x_46); -x_48 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_48, 0, x_47); -x_49 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_49, 0, x_48); -x_50 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_25, x_49, x_4, x_5, x_6, x_7, x_8, x_9, x_23); -x_51 = lean_ctor_get(x_50, 1); -lean_inc(x_51); -lean_dec(x_50); -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_52 = l___private_Lean_Elab_StructInst_24__elabStruct___main(x_22, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_51); -if (lean_obj_tag(x_52) == 0) -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; -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_ctor_get(x_53, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_53, 1); -lean_inc(x_56); -lean_dec(x_53); -x_57 = l_Lean_Elab_Term_StructInst_DefaultFields_propagate(x_56, x_4, x_5, x_6, x_7, x_8, x_9, x_54); -if (lean_obj_tag(x_57) == 0) -{ -uint8_t x_58; -x_58 = !lean_is_exclusive(x_57); -if (x_58 == 0) -{ -lean_object* x_59; -x_59 = lean_ctor_get(x_57, 0); -lean_dec(x_59); -lean_ctor_set(x_57, 0, x_55); -return x_57; -} -else -{ -lean_object* x_60; lean_object* x_61; -x_60 = lean_ctor_get(x_57, 1); -lean_inc(x_60); -lean_dec(x_57); -x_61 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_61, 0, x_55); -lean_ctor_set(x_61, 1, x_60); -return x_61; -} -} -else -{ -uint8_t x_62; -lean_dec(x_55); -x_62 = !lean_is_exclusive(x_57); -if (x_62 == 0) -{ -return x_57; -} -else -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_63 = lean_ctor_get(x_57, 0); -x_64 = lean_ctor_get(x_57, 1); -lean_inc(x_64); -lean_inc(x_63); -lean_dec(x_57); -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_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_66 = !lean_is_exclusive(x_52); -if (x_66 == 0) -{ -return x_52; -} -else -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_67 = lean_ctor_get(x_52, 0); -x_68 = lean_ctor_get(x_52, 1); -lean_inc(x_68); -lean_inc(x_67); -lean_dec(x_52); -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_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; +lean_dec(x_3); lean_dec(x_2); -x_70 = !lean_is_exclusive(x_21); -if (x_70 == 0) +lean_dec(x_1); +x_19 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_19, 0, x_12); +x_20 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___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___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___closed__4; +x_23 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +x_24 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(x_23, x_4, x_5, x_6, x_7, x_8, x_9, x_16); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) { -return x_21; +return x_24; } else { -lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_71 = lean_ctor_get(x_21, 0); -x_72 = lean_ctor_get(x_21, 1); -lean_inc(x_72); -lean_inc(x_71); -lean_dec(x_21); -x_73 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_73, 0, x_71); -lean_ctor_set(x_73, 1, x_72); -return x_73; -} -} -} +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_24, 0); +x_27 = lean_ctor_get(x_24, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_24); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +return x_28; } } else { -uint8_t x_90; +lean_object* x_29; lean_object* x_30; +x_29 = lean_box(0); +x_30 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___lambda__1(x_1, x_12, x_3, x_2, x_29, x_4, x_5, x_6, x_7, x_8, x_9, x_16); +return x_30; +} +} +else +{ +uint8_t x_31; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -27545,27 +26919,117 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_90 = !lean_is_exclusive(x_11); -if (x_90 == 0) +x_31 = !lean_is_exclusive(x_11); +if (x_31 == 0) { return x_11; } else { -lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_91 = lean_ctor_get(x_11, 0); -x_92 = lean_ctor_get(x_11, 1); -lean_inc(x_92); -lean_inc(x_91); +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_11, 0); +x_33 = lean_ctor_get(x_11, 1); +lean_inc(x_33); +lean_inc(x_32); lean_dec(x_11); -x_93 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_93, 0, x_91); -lean_ctor_set(x_93, 1, x_92); -return x_93; +x_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* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___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_5); +return x_13; +} +} +lean_object* l_Lean_Elab_Term_StructInst_elabStructInst_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_6; +lean_dec(x_4); +lean_dec(x_3); +x_6 = lean_apply_2(x_5, x_1, x_2); +return x_6; +} +else +{ +lean_dec(x_5); +if (lean_obj_tag(x_2) == 2) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_4); +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_ctor_get(x_2, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_2, 1); +lean_inc(x_9); +lean_dec(x_2); +x_10 = lean_apply_3(x_3, x_7, x_8, x_9); +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; +lean_dec(x_3); +x_11 = lean_ctor_get(x_1, 0); +lean_inc(x_11); +lean_dec(x_1); +x_12 = lean_apply_2(x_4, x_11, x_2); +return x_12; +} +} +} +} +lean_object* l_Lean_Elab_Term_StructInst_elabStructInst_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_elabStructInst_match__1___rarg), 5, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_StructInst_elabStructInst_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Elab_Term_StructInst_elabStructInst_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_elabStructInst_match__2___rarg), 3, 0); +return x_2; +} +} static lean_object* _init_l_Lean_Elab_Term_StructInst_elabStructInst___closed__1() { _start: { @@ -27601,7 +27065,7 @@ lean_object* x_10; lean_object* x_11; lean_inc(x_5); lean_inc(x_3); lean_inc(x_1); -x_10 = l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource(x_1, 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); if (lean_obj_tag(x_11) == 0) @@ -27616,7 +27080,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_13 = l___private_Lean_Elab_StructInst_2__getStructSource(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +x_13 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_12); if (lean_obj_tag(x_13) == 0) { lean_object* x_14; lean_object* x_15; lean_object* x_16; @@ -27627,7 +27091,7 @@ lean_inc(x_15); lean_dec(x_13); lean_inc(x_7); lean_inc(x_3); -x_16 = l___private_Lean_Elab_StructInst_3__isModifyOp_x3f(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_15); +x_16 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_15); if (lean_obj_tag(x_16) == 0) { lean_object* x_17; @@ -27639,7 +27103,7 @@ lean_object* x_18; lean_object* x_19; x_18 = lean_ctor_get(x_16, 1); lean_inc(x_18); lean_dec(x_16); -x_19 = l___private_Lean_Elab_StructInst_25__elabStructInstAux(x_1, x_2, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_18); +x_19 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux(x_1, x_2, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_18); return x_19; } else @@ -27656,7 +27120,7 @@ lean_dec(x_17); x_22 = lean_ctor_get(x_14, 0); lean_inc(x_22); lean_dec(x_14); -x_23 = l___private_Lean_Elab_StructInst_4__elabModifyOp(x_1, x_21, x_22, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_20); +x_23 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp(x_1, x_21, x_22, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_20); return x_23; } else @@ -27670,7 +27134,7 @@ x_24 = lean_ctor_get(x_16, 1); lean_inc(x_24); lean_dec(x_16); x_25 = l_Lean_Elab_Term_StructInst_elabStructInst___closed__3; -x_26 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_25, x_3, x_4, x_5, x_6, x_7, x_8, x_24); +x_26 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(x_25, x_3, x_4, x_5, x_6, x_7, x_8, x_24); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -27835,61 +27299,14 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l___private_Lean_Elab_StructInst_26__regTraceClasses(lean_object* x_1) { +lean_object* l_Lean_Elab_Term_StructInst_initFn____x40_Lean_Elab_StructInst___hyg_6358_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__2; +x_2 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__2; x_3 = l_Lean_registerTraceClass(x_2, x_1); -if (lean_obj_tag(x_3) == 0) -{ -uint8_t x_4; -x_4 = !lean_is_exclusive(x_3); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; -x_5 = lean_ctor_get(x_3, 0); -lean_dec(x_5); -x_6 = lean_box(0); -lean_ctor_set(x_3, 0, x_6); return x_3; } -else -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_7 = lean_ctor_get(x_3, 1); -lean_inc(x_7); -lean_dec(x_3); -x_8 = lean_box(0); -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_7); -return x_9; -} -} -else -{ -uint8_t x_10; -x_10 = !lean_is_exclusive(x_3); -if (x_10 == 0) -{ -return x_3; -} -else -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_11 = lean_ctor_get(x_3, 0); -x_12 = lean_ctor_get(x_3, 1); -lean_inc(x_12); -lean_inc(x_11); -lean_dec(x_3); -x_13 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_13, 0, x_11); -lean_ctor_set(x_13, 1, x_12); -return x_13; -} -} -} } lean_object* initialize_Init(lean_object*); lean_object* initialize_Lean_Util_FindExpr(lean_object*); @@ -27921,116 +27338,102 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_StructInst_expandStructInstEx res = l___regBuiltin_Lean_Elab_Term_StructInst_expandStructInstExpectedType(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__1 = _init_l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__1); -l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__2 = _init_l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__2); -l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__3 = _init_l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__3); -l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__4 = _init_l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__4); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource___closed__1 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource___closed__1); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource___closed__2 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource___closed__2); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource___closed__3 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource___closed__3); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource___closed__4 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource___closed__4); l_Lean_Elab_Term_StructInst_Source_inhabited = _init_l_Lean_Elab_Term_StructInst_Source_inhabited(); lean_mark_persistent(l_Lean_Elab_Term_StructInst_Source_inhabited); -l___private_Lean_Elab_StructInst_2__getStructSource___closed__1 = _init_l___private_Lean_Elab_StructInst_2__getStructSource___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_2__getStructSource___closed__1); -l___private_Lean_Elab_StructInst_2__getStructSource___closed__2 = _init_l___private_Lean_Elab_StructInst_2__getStructSource___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_2__getStructSource___closed__2); -l___private_Lean_Elab_StructInst_2__getStructSource___closed__3 = _init_l___private_Lean_Elab_StructInst_2__getStructSource___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_2__getStructSource___closed__3); -l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__1 = _init_l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__1(); -lean_mark_persistent(l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__1); -l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__2 = _init_l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__2(); -lean_mark_persistent(l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__2); -l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__3 = _init_l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__3(); -lean_mark_persistent(l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__3); -l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__4 = _init_l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__4(); -lean_mark_persistent(l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__4); -l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__5 = _init_l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__5(); -lean_mark_persistent(l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__5); -l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__6 = _init_l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__6(); -lean_mark_persistent(l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__6); -l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__7 = _init_l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__7(); -lean_mark_persistent(l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__7); -l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__8 = _init_l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__8(); -lean_mark_persistent(l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__8); -l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__1 = _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__1); -l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__2 = _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__2); -l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__3 = _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__3); -l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__4 = _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__4); -l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__5 = _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__5); -l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__6 = _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__6); -l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__7 = _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__7(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__7); -l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__8 = _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__8(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__8); -l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__9 = _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__9(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__9); -l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__10 = _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__10(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__10); -l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__11 = _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__11(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__11); -l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__12 = _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__12(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__12); -l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__13 = _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__13(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__13); -l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__14 = _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__14(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__14); -l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__15 = _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__15(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__15); -l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__16 = _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__16(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__16); -l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__17 = _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__17(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__17); -l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__18 = _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__18(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__18); -l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__19 = _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__19(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__19); -l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__20 = _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__20(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__20); -l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__21 = _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__21(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__21); -l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__22 = _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__22(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__22); -l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__23 = _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__23(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__23); -l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__24 = _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__24(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__24); -l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__25 = _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__25(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__25); -l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__26 = _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__26(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__26); -l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__27 = _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__27(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__27); -l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__28 = _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__28(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__28); -l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__1 = _init_l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__1); -l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__2 = _init_l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__2); -l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__3 = _init_l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__3); -l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__4 = _init_l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__4); -l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__5 = _init_l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__5); -l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6 = _init_l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6); -l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__7 = _init_l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__7(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__7); -l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__8 = _init_l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__8(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__8); -l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9 = _init_l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__9); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__1 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__1); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__2 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__2); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__3 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__3); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__4 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__4); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__5 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__5); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__6 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__6); +l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__1 = _init_l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__1(); +lean_mark_persistent(l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__1); +l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__2 = _init_l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__2(); +lean_mark_persistent(l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__2); +l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__3 = _init_l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__3(); +lean_mark_persistent(l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__3); +l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__4 = _init_l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__4(); +lean_mark_persistent(l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__4); +l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__5 = _init_l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__5(); +lean_mark_persistent(l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__5); +l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__6 = _init_l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__6(); +lean_mark_persistent(l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__6); +l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__7 = _init_l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__7(); +lean_mark_persistent(l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__7); +l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__8 = _init_l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__8(); +lean_mark_persistent(l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__8); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__1 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__1); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__2 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__2); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__3 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__3); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__4 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__4); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__5 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__5); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__6 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__6); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__7 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__7(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__7); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__8 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__8(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__8); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__9 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__9(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__9); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__10 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__10(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__10); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__11 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__11(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__11); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__12 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__12(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__12); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__13 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__13(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__13); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__14 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__14(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__14); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__15 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__15(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__15); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__16 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__16(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__16); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__17 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__17(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__17); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__18 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__18(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__18); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__19 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__19(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__19); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__20 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__20(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__20); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__1 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__1); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__2 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__2); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__3 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__3); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__4 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__4); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__5 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__5); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__6 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg___closed__6); l_Lean_Elab_Term_StructInst_FieldLHS_inhabited___closed__1 = _init_l_Lean_Elab_Term_StructInst_FieldLHS_inhabited___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_StructInst_FieldLHS_inhabited___closed__1); l_Lean_Elab_Term_StructInst_FieldLHS_inhabited = _init_l_Lean_Elab_Term_StructInst_FieldLHS_inhabited(); lean_mark_persistent(l_Lean_Elab_Term_StructInst_FieldLHS_inhabited); +l_Lean_Elab_Term_StructInst_Field_expr_x3f___default = _init_l_Lean_Elab_Term_StructInst_Field_expr_x3f___default(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_Field_expr_x3f___default); l_Lean_Elab_Term_StructInst_Field_inhabited___closed__1 = _init_l_Lean_Elab_Term_StructInst_Field_inhabited___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_StructInst_Field_inhabited___closed__1); l_Lean_Elab_Term_StructInst_Field_inhabited___closed__2 = _init_l_Lean_Elab_Term_StructInst_Field_inhabited___closed__2(); @@ -28047,20 +27450,18 @@ l_Lean_Elab_Term_StructInst_formatField___closed__3 = _init_l_Lean_Elab_Term_Str lean_mark_persistent(l_Lean_Elab_Term_StructInst_formatField___closed__3); l_Lean_Elab_Term_StructInst_formatField___closed__4 = _init_l_Lean_Elab_Term_StructInst_formatField___closed__4(); lean_mark_persistent(l_Lean_Elab_Term_StructInst_formatField___closed__4); -l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___main___spec__1___closed__1 = _init_l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___main___spec__1___closed__1(); -lean_mark_persistent(l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___main___spec__1___closed__1); -l_Lean_Elab_Term_StructInst_formatStruct___main___closed__1 = _init_l_Lean_Elab_Term_StructInst_formatStruct___main___closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_StructInst_formatStruct___main___closed__1); -l_Lean_Elab_Term_StructInst_formatStruct___main___closed__2 = _init_l_Lean_Elab_Term_StructInst_formatStruct___main___closed__2(); -lean_mark_persistent(l_Lean_Elab_Term_StructInst_formatStruct___main___closed__2); -l_Lean_Elab_Term_StructInst_formatStruct___main___closed__3 = _init_l_Lean_Elab_Term_StructInst_formatStruct___main___closed__3(); -lean_mark_persistent(l_Lean_Elab_Term_StructInst_formatStruct___main___closed__3); -l_Lean_Elab_Term_StructInst_formatStruct___main___closed__4 = _init_l_Lean_Elab_Term_StructInst_formatStruct___main___closed__4(); -lean_mark_persistent(l_Lean_Elab_Term_StructInst_formatStruct___main___closed__4); -l_Lean_Elab_Term_StructInst_formatStruct___main___closed__5 = _init_l_Lean_Elab_Term_StructInst_formatStruct___main___closed__5(); -lean_mark_persistent(l_Lean_Elab_Term_StructInst_formatStruct___main___closed__5); -l_Lean_Elab_Term_StructInst_Struct_hasFormat___closed__1 = _init_l_Lean_Elab_Term_StructInst_Struct_hasFormat___closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_StructInst_Struct_hasFormat___closed__1); +l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___spec__1___closed__1 = _init_l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___spec__1___closed__1(); +lean_mark_persistent(l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___spec__1___closed__1); +l_Lean_Elab_Term_StructInst_formatStruct___closed__1 = _init_l_Lean_Elab_Term_StructInst_formatStruct___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_formatStruct___closed__1); +l_Lean_Elab_Term_StructInst_formatStruct___closed__2 = _init_l_Lean_Elab_Term_StructInst_formatStruct___closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_formatStruct___closed__2); +l_Lean_Elab_Term_StructInst_formatStruct___closed__3 = _init_l_Lean_Elab_Term_StructInst_formatStruct___closed__3(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_formatStruct___closed__3); +l_Lean_Elab_Term_StructInst_formatStruct___closed__4 = _init_l_Lean_Elab_Term_StructInst_formatStruct___closed__4(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_formatStruct___closed__4); +l_Lean_Elab_Term_StructInst_formatStruct___closed__5 = _init_l_Lean_Elab_Term_StructInst_formatStruct___closed__5(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_formatStruct___closed__5); l_Lean_Elab_Term_StructInst_Struct_hasFormat = _init_l_Lean_Elab_Term_StructInst_Struct_hasFormat(); lean_mark_persistent(l_Lean_Elab_Term_StructInst_Struct_hasFormat); l_Lean_Elab_Term_StructInst_Struct_hasToString___closed__1 = _init_l_Lean_Elab_Term_StructInst_Struct_hasToString___closed__1(); @@ -28075,82 +27476,84 @@ l_Lean_Elab_Term_StructInst_Field_hasToString___closed__1 = _init_l_Lean_Elab_Te lean_mark_persistent(l_Lean_Elab_Term_StructInst_Field_hasToString___closed__1); l_Lean_Elab_Term_StructInst_Field_hasToString = _init_l_Lean_Elab_Term_StructInst_Field_hasToString(); lean_mark_persistent(l_Lean_Elab_Term_StructInst_Field_hasToString); -l___private_Lean_Elab_StructInst_6__toFieldLHS___closed__1 = _init_l___private_Lean_Elab_StructInst_6__toFieldLHS___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_6__toFieldLHS___closed__1); -l___private_Lean_Elab_StructInst_6__toFieldLHS___closed__2 = _init_l___private_Lean_Elab_StructInst_6__toFieldLHS___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_6__toFieldLHS___closed__2); -l_List_mapM___main___at___private_Lean_Elab_StructInst_7__mkStructView___spec__2___closed__1 = _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_7__mkStructView___spec__2___closed__1(); -lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_StructInst_7__mkStructView___spec__2___closed__1); -l___private_Lean_Elab_StructInst_8__expandCompositeFields___closed__1 = _init_l___private_Lean_Elab_StructInst_8__expandCompositeFields___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_8__expandCompositeFields___closed__1); -l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__1 = _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__1(); -lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__1); -l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__2 = _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__2(); -lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__2); -l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__3 = _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__3(); -lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__3); -l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__4 = _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__4(); -lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__4); -l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__5 = _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__5(); -lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__5); -l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__6 = _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__6(); -lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__6); -l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__7 = _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__7(); -lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__7); -l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__8 = _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__8(); -lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__8); -l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__9 = _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__9(); -lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__9); -l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__1 = _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__1(); -lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__1); -l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__2 = _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__2(); -lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__2); -l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__3 = _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__3(); -lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__3); -l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__4 = _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__4(); -lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__4); -l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__5 = _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__5(); -lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__5); -l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__6 = _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__6(); -lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__6); -l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__7 = _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__7(); -lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__7); -l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__8 = _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__8(); -lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__8); -l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__9 = _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__9(); -lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__9); -l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__1 = _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__1(); -lean_mark_persistent(l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__1); -l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__2 = _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__2(); -lean_mark_persistent(l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__2); -l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__3 = _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__3(); -lean_mark_persistent(l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__3); -l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__4 = _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__4(); -lean_mark_persistent(l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__4); -l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__5 = _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__5(); -lean_mark_persistent(l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__5); -l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__6 = _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__6(); -lean_mark_persistent(l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__6); -l___private_Lean_Elab_StructInst_12__mkFieldMap___closed__1 = _init_l___private_Lean_Elab_StructInst_12__mkFieldMap___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_12__mkFieldMap___closed__1); -l___private_Lean_Elab_StructInst_14__getFieldIdx___closed__1 = _init_l___private_Lean_Elab_StructInst_14__getFieldIdx___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_14__getFieldIdx___closed__1); -l___private_Lean_Elab_StructInst_14__getFieldIdx___closed__2 = _init_l___private_Lean_Elab_StructInst_14__getFieldIdx___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_14__getFieldIdx___closed__2); -l___private_Lean_Elab_StructInst_14__getFieldIdx___closed__3 = _init_l___private_Lean_Elab_StructInst_14__getFieldIdx___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_14__getFieldIdx___closed__3); -l___private_Lean_Elab_StructInst_17__groupFields___lambda__3___closed__1 = _init_l___private_Lean_Elab_StructInst_17__groupFields___lambda__3___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_17__groupFields___lambda__3___closed__1); -l___private_Lean_Elab_StructInst_17__groupFields___lambda__3___closed__2 = _init_l___private_Lean_Elab_StructInst_17__groupFields___lambda__3___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_17__groupFields___lambda__3___closed__2); -l___private_Lean_Elab_StructInst_17__groupFields___lambda__3___closed__3 = _init_l___private_Lean_Elab_StructInst_17__groupFields___lambda__3___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_17__groupFields___lambda__3___closed__3); -l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__1 = _init_l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__1); -l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__2 = _init_l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__2); -l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__3 = _init_l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__3); +l_Lean_Elab_Term_StructInst_FieldVal_toSyntax___closed__1 = _init_l_Lean_Elab_Term_StructInst_FieldVal_toSyntax___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_FieldVal_toSyntax___closed__1); +l_Lean_Elab_Term_StructInst_FieldVal_toSyntax___closed__2 = _init_l_Lean_Elab_Term_StructInst_FieldVal_toSyntax___closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_FieldVal_toSyntax___closed__2); +l_Lean_Elab_Term_StructInst_Field_toSyntax___closed__1 = _init_l_Lean_Elab_Term_StructInst_Field_toSyntax___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_Field_toSyntax___closed__1); +l_Lean_Elab_Term_StructInst_Field_toSyntax___closed__2 = _init_l_Lean_Elab_Term_StructInst_Field_toSyntax___closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_Field_toSyntax___closed__2); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_toFieldLHS___closed__1 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_toFieldLHS___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_toFieldLHS___closed__1); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_toFieldLHS___closed__2 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_toFieldLHS___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_toFieldLHS___closed__2); +l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkStructView___spec__2___closed__1 = _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkStructView___spec__2___closed__1(); +lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkStructView___spec__2___closed__1); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___closed__1 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___closed__1); +l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__1 = _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__1(); +lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__1); +l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__2 = _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__2(); +lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__2); +l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__3 = _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__3(); +lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__3); +l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__4 = _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__4(); +lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__4); +l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__5 = _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__5(); +lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__5); +l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__6 = _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__6(); +lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__6); +l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__7 = _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__7(); +lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__7); +l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__1 = _init_l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__1(); +lean_mark_persistent(l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__1); +l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__2 = _init_l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__2(); +lean_mark_persistent(l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__2); +l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__1 = _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__1(); +lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__1); +l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__2 = _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__2(); +lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__2); +l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__3 = _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__3(); +lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__3); +l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__4 = _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__4(); +lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__4); +l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__5 = _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__5(); +lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__5); +l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__6 = _init_l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__6(); +lean_mark_persistent(l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__6); +l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__1 = _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__1(); +lean_mark_persistent(l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__1); +l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__2 = _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__2(); +lean_mark_persistent(l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__2); +l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__3 = _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__3(); +lean_mark_persistent(l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__3); +l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__4 = _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__4(); +lean_mark_persistent(l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__4); +l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__5 = _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__5(); +lean_mark_persistent(l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__5); +l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__6 = _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__6(); +lean_mark_persistent(l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__6); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___closed__1 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___closed__1); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldIdx___closed__1 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldIdx___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldIdx___closed__1); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldIdx___closed__2 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldIdx___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldIdx___closed__2); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__3___closed__1 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__3___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__3___closed__1); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__3___closed__2 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__3___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__3___closed__2); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__3___closed__3 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__3___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__3___closed__3); +l_Lean_Elab_Term_StructInst_CtorHeaderResult_instMVars___default = _init_l_Lean_Elab_Term_StructInst_CtorHeaderResult_instMVars___default(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_CtorHeaderResult_instMVars___default); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux___closed__1 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux___closed__1); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux___closed__2 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux___closed__2); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux___closed__3 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux___closed__3); l_Lean_Elab_Term_StructInst_markDefaultMissing___closed__1 = _init_l_Lean_Elab_Term_StructInst_markDefaultMissing___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_StructInst_markDefaultMissing___closed__1); l_Lean_Elab_Term_StructInst_markDefaultMissing___closed__2 = _init_l_Lean_Elab_Term_StructInst_markDefaultMissing___closed__2(); @@ -28163,38 +27566,49 @@ l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__3 = _init_l_ lean_mark_persistent(l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__3); l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__4 = _init_l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__4(); lean_mark_persistent(l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__4); -l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__5 = _init_l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__5(); -lean_mark_persistent(l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__5); -l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__6 = _init_l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__6(); -lean_mark_persistent(l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__6); -l_List_foldlM___main___at___private_Lean_Elab_StructInst_24__elabStruct___main___spec__1___closed__1 = _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_24__elabStruct___main___spec__1___closed__1(); -lean_mark_persistent(l_List_foldlM___main___at___private_Lean_Elab_StructInst_24__elabStruct___main___spec__1___closed__1); -l_List_foldlM___main___at___private_Lean_Elab_StructInst_24__elabStruct___main___spec__1___closed__2 = _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_24__elabStruct___main___spec__1___closed__2(); -lean_mark_persistent(l_List_foldlM___main___at___private_Lean_Elab_StructInst_24__elabStruct___main___spec__1___closed__2); -l_List_foldlM___main___at___private_Lean_Elab_StructInst_24__elabStruct___main___spec__1___closed__3 = _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_24__elabStruct___main___spec__1___closed__3(); -lean_mark_persistent(l_List_foldlM___main___at___private_Lean_Elab_StructInst_24__elabStruct___main___spec__1___closed__3); -l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___closed__1 = _init_l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___closed__1); -l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___closed__2 = _init_l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___closed__2(); -lean_mark_persistent(l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___closed__2); -l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___closed__1 = _init_l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___closed__1); -l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___closed__2 = _init_l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___closed__2(); -lean_mark_persistent(l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___closed__2); -l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___closed__3 = _init_l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___closed__3(); -lean_mark_persistent(l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___closed__3); -l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__1 = _init_l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__1); -l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__2 = _init_l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__2); -l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__3 = _init_l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__3); -l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__4 = _init_l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__4); -l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__5 = _init_l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__5); -l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__6 = _init_l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__6); +l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1___closed__1 = _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1___closed__1(); +lean_mark_persistent(l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1___closed__1); +l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1___closed__2 = _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1___closed__2(); +lean_mark_persistent(l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1___closed__2); +l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1___closed__3 = _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1___closed__3(); +lean_mark_persistent(l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1___closed__3); +l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1___closed__4 = _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1___closed__4(); +lean_mark_persistent(l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1___closed__4); +l_Lean_Elab_Term_StructInst_DefaultFields_Context_structs___default = _init_l_Lean_Elab_Term_StructInst_DefaultFields_Context_structs___default(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_DefaultFields_Context_structs___default); +l_Lean_Elab_Term_StructInst_DefaultFields_Context_allStructNames___default = _init_l_Lean_Elab_Term_StructInst_DefaultFields_Context_allStructNames___default(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_DefaultFields_Context_allStructNames___default); +l_Lean_Elab_Term_StructInst_DefaultFields_Context_maxDistance___default = _init_l_Lean_Elab_Term_StructInst_DefaultFields_Context_maxDistance___default(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_DefaultFields_Context_maxDistance___default); +l_Lean_Elab_Term_StructInst_DefaultFields_State_progress___default = _init_l_Lean_Elab_Term_StructInst_DefaultFields_State_progress___default(); +l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___lambda__1___closed__1 = _init_l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___lambda__1___closed__1); +l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___lambda__1___closed__2 = _init_l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___lambda__1___closed__2); +l_Lean_Elab_Term_StructInst_DefaultFields_getFieldName___closed__1 = _init_l_Lean_Elab_Term_StructInst_DefaultFields_getFieldName___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_DefaultFields_getFieldName___closed__1); +l_Lean_Elab_Term_StructInst_DefaultFields_getFieldName___closed__2 = _init_l_Lean_Elab_Term_StructInst_DefaultFields_getFieldName___closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_DefaultFields_getFieldName___closed__2); +l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___closed__1 = _init_l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___closed__1); +l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___closed__2 = _init_l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___closed__2); +l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___spec__1___lambda__1___closed__1 = _init_l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___spec__1___lambda__1___closed__1(); +lean_mark_persistent(l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___spec__1___lambda__1___closed__1); +l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___spec__1___lambda__1___closed__2 = _init_l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___spec__1___lambda__1___closed__2(); +lean_mark_persistent(l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___spec__1___lambda__1___closed__2); +l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___closed__1 = _init_l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___closed__1); +l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___closed__2 = _init_l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___closed__2); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___closed__1 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___closed__1); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___closed__2 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___closed__2); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___closed__3 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___closed__3); +l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___closed__4 = _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___closed__4); l_Lean_Elab_Term_StructInst_elabStructInst___closed__1 = _init_l_Lean_Elab_Term_StructInst_elabStructInst___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_StructInst_elabStructInst___closed__1); l_Lean_Elab_Term_StructInst_elabStructInst___closed__2 = _init_l_Lean_Elab_Term_StructInst_elabStructInst___closed__2(); @@ -28206,7 +27620,7 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_StructInst_elabStructInst___c res = l___regBuiltin_Lean_Elab_Term_StructInst_elabStructInst(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = l___private_Lean_Elab_StructInst_26__regTraceClasses(lean_io_mk_world()); +res = l_Lean_Elab_Term_StructInst_initFn____x40_Lean_Elab_StructInst___hyg_6358_(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/Structure.c b/stage0/stdlib/Lean/Elab/Structure.c index 926a1e7afd..e5be062855 100644 --- a/stage0/stdlib/Lean/Elab/Structure.c +++ b/stage0/stdlib/Lean/Elab/Structure.c @@ -15,12 +15,10 @@ extern "C" { #endif lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__2___closed__3; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInFVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__7(lean_object*); extern lean_object* l_Lean_mkHole___closed__3; lean_object* l_Lean_Elab_Command_elabStructure___closed__11; lean_object* l_Lean_Meta_withLCtx___at_Lean_Elab_Term_elabBinders___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* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__12; -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__9___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabStructure___lambda__1___boxed(lean_object**); lean_object* l_Lean_Elab_Term_removeUnused(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse___closed__1; @@ -52,7 +50,6 @@ lean_object* lean_array_uget(lean_object*, size_t); lean_object* lean_io_error_to_string(lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withUsed___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__7___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabStructure___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__3___closed__3; lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__10(lean_object*, lean_object*, lean_object*, lean_object*); @@ -60,7 +57,6 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToPar lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Elab_Modifiers_isProtected(lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue_match__2___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_setEnv___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_declareTacticSyntax___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); @@ -76,6 +72,7 @@ lean_object* l_Lean_Meta_addGlobalInstance___at___private_Lean_Elab_Structure_0_ lean_object* lean_array_fswap(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__2(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1(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*); extern lean_object* l_Array_empty___closed__1; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__5(lean_object*); @@ -98,13 +95,12 @@ lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__1___closed__1 lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__9; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ensureNoUnassignedMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_getLevel___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___lambda__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_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_instantiate1(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__9(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); uint8_t l_Lean_isInternalSubobjectFieldName(lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); @@ -116,18 +112,18 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections lean_object* l_Lean_Elab_Term_applyAttributesAt(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_string_utf8_extract(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn___main(lean_object*); -extern lean_object* l___private_Lean_Elab_Inductive_26__removeUnused___closed__1; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_addMessageContextPartial___at_Lean_Elab_Command_Lean_AddMessageContext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_validStructType_match__1(lean_object*); lean_object* l___private_Lean_Meta_InferType_4__getLevelImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assignLevelMVar___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___regBuiltin_Lean_Elab_Term_elabTypeStx___closed__2; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkAuxConstructions(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___closed__1; lean_object* l_Lean_Elab_Command_shouldInferResultUniverse(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_getLevelNames___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_accLevelAtCtor(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addCtorFields_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_utf8_byte_size(lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__3; @@ -141,12 +137,14 @@ lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Le lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUsed___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_match__1(lean_object*, lean_object*); uint8_t l_USize_decLt(size_t, size_t); -lean_object* l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___closed__2; +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields___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* l_Lean_Elab_Command_checkValidFieldModifier___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_Basic_1__regTraceClasses___closed__2; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addCtorFields___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_applyVisibility___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__2; +lean_object* l_Lean_setEnv___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__3___closed__1; lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -160,19 +158,18 @@ lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__4(lean_object lean_object* l___private_Lean_Meta_Closure_1__mkAuxDefinitionImp(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_logDbgTrace___rarg___closed__1; lean_object* l_Lean_Elab_Command_elabStructure___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5(lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_validStructType___boxed(lean_object*); lean_object* l_Lean_Elab_Command_StructFieldInfo_isFromParent___boxed(lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse_match__1(lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__2; uint8_t l_Lean_Elab_Command_StructFieldInfo_inferMod___default; -lean_object* l_Lean_Meta_getLevel___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__8; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__4; lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__3___closed__2; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop(lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addCtorFields(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_removeUnused_match__1___rarg(lean_object*, lean_object*); @@ -185,12 +182,10 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultin lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTermEnsuringType(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); -lean_object* l_Lean_Elab_applyVisibility___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__1; extern lean_object* l_Lean_Expr_Inhabited___closed__1; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__1; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Elab_Structure_0__Lean_Elab_Command_validStructType(lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); @@ -200,11 +195,9 @@ lean_object* l_Lean_Elab_Command_StructFieldInfo_isSubobject_match__1___rarg___b lean_object* l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Elab_Command_StructFieldInfo_isSubobject(lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__9___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkProjection___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_MetavarContext_instantiateLevelMVars___main(lean_object*, lean_object*); lean_object* l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkProjections___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_removeUnused_match__1(lean_object*); @@ -216,6 +209,7 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withUsed_match lean_object* l_Array_shrink___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_inferType___at_Lean_Elab_Term_collectUsedFVarsAtFVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getStructureFieldsFlattened(lean_object*, lean_object*); +lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandDeclId(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabStructure___closed__8; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -223,7 +217,6 @@ lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Le extern lean_object* l_Lean_Expr_heq_x3f___closed__2; lean_object* l_List_map___main___at_Lean_Meta_addGlobalInstanceImp___spec__1(lean_object*); lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure_match__1(lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___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*); @@ -240,6 +233,7 @@ lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabStructure___closed__4; +extern lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectLevelParamsInInductive___closed__1; lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__2___rarg(lean_object*, lean_object*); @@ -249,9 +243,9 @@ lean_object* l___private_Lean_Meta_AppBuilder_25__mkProjectionImp___main(lean_ob lean_object* l_Lean_Meta_mkProjection___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_filterAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__7(lean_object*, lean_object*, lean_object*); lean_object* l_Array_filterAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__1(lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_removeUnused___closed__1; lean_object* l_Lean_Elab_Command_elabStructure___lambda__3(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_StructFieldInfo_value_x3f___default; -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__9___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_LocalDecl_binderInfo(lean_object*); extern lean_object* l_Lean_Meta_inferTypeRef; extern lean_object* l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__2; @@ -260,8 +254,10 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUnive lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addCtorFields_match__1(lean_object*); lean_object* l_Lean_Meta_mkId___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); +lean_object* l_Lean_Meta_instantiateLevelMVars___at_Lean_Elab_Command_shouldInferResultUniverse___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4(lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__7; lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__1___closed__3; @@ -276,7 +272,6 @@ lean_object* l_Lean_Elab_Command_StructFieldInfo_isSubobject___boxed(lean_object lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInStructure___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInFVars___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__2; @@ -288,6 +283,7 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___b lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg___closed__1; +lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___closed__1; lean_object* l_Lean_Meta_getLocalInstances___at_Lean_Elab_Term_removeUnused___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabStructure___closed__5; @@ -307,8 +303,8 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___r lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__2___closed__1; lean_object* l_Lean_Elab_Command_elabStructure___closed__3; lean_object* l_Lean_Elab_sortDeclLevelParams(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_accLevelAtCtor___main(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUsed___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_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__6(lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__8; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Elab_Term_elabFun___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -316,13 +312,11 @@ lean_object* l_Lean_Elab_Term_collectUsedFVars(lean_object*, lean_object*, lean_ uint8_t l_Lean_BinderInfo_isInstImplicit(uint8_t); lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l___private_Lean_Elab_Inductive_34__mkAuxConstructions___closed__2; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__1; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___closed__3; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields(lean_object*); extern lean_object* l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -lean_object* l_Lean_Meta_instantiateLevelMVars___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__3___closed__3; size_t lean_usize_of_nat(lean_object*); extern lean_object* l_Lean_registerClassAttr___closed__2; @@ -331,7 +325,6 @@ lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Structure_0__Lean_ lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_updateBinderInfo(lean_object*, lean_object*, uint8_t); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields___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_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInStructure___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -369,7 +362,6 @@ lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Le lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUsed___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse___closed__2; -extern lean_object* l___private_Lean_Elab_Inductive_29__collectLevelParamsInInductive___closed__1; lean_object* l_Lean_Syntax_getSepArgs(lean_object*); uint8_t l_Lean_isAttribute(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabStructure___closed__6; @@ -378,6 +370,7 @@ uint8_t l_Lean_BinderInfo_beq(uint8_t, uint8_t); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getNumArgs(lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__3___closed__1; +extern lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___closed__2; lean_object* l_Lean_Elab_Command_elabStructure___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -387,7 +380,6 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_mat lean_object* l_Lean_Elab_Command_getCurrMacroScope(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_SourceInfo_inhabited___closed__1; lean_object* l_Lean_mkPrivateName(lean_object*, lean_object*); -lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_Lean_AddErrorMessageContext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_AppBuilder_25__mkProjectionImp___main___closed__5; lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___closed__1; @@ -395,10 +387,10 @@ lean_object* l_Lean_Elab_Command_elabStructure___closed__2; lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getKind(lean_object*); lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamFVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__6(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__6; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_applyVisibility___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__7(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__2; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInFVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -419,7 +411,6 @@ lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__3___closed__3 lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse___closed__3; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addCtorFields_match__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_instantiateLevelMVars___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__6; lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___closed__3; lean_object* l_Lean_Elab_Command_getMainModule___rarg(lean_object*, lean_object*); @@ -429,10 +420,10 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUsed_ma lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__4___closed__2; lean_object* l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_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* l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__6___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_findMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields_match__1(lean_object*); lean_object* l_Lean_Elab_Command_getRef(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_expandDeclSig(lean_object*); lean_object* l_Lean_Elab_Command_checkValidFieldModifier___closed__2; extern lean_object* l_Lean_ResolveName_resolveNamespaceUsingScope___closed__3; @@ -477,17 +468,14 @@ lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__1(lean_object lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse___closed__1; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkAuxConstructions___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__7___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidFieldModifier___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidFieldModifier___closed__1; uint8_t l_Lean_Elab_Modifiers_isPrivate(lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabStructure_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Name_appendBefore(lean_object*, lean_object*); -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__9___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__2; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse___closed__2; @@ -497,6 +485,7 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields_m lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__8___closed__1; lean_object* l_Lean_Meta_mkAuxDefinition___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___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* l_Array_forMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamFVars___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_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__6___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidCtorModifier(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamFVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -513,6 +502,7 @@ lean_object* l_Lean_Level_mkNaryMax___main(lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withUsed_match__1___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamFVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkAuxDefinition___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__2___closed__1; +lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__2___closed__1; extern lean_object* l_Lean_Elab_elabAttr___rarg___lambda__3___closed__2; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___closed__1; @@ -528,6 +518,7 @@ lean_object* l_Lean_Elab_Command_checkValidInductiveModifier(lean_object*, lean_ lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_setEnv___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__9(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_CollectLevelParams_main___main(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_elabLetDeclAux___spec__3___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -538,9 +529,10 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeV lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure_match__1___rarg(lean_object*, lean_object*, lean_object*); uint8_t lean_is_class(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__2___closed__3; +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Util_2__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_applyVisibility___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabStructure___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_isStructure(lean_object*, lean_object*); lean_object* l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -548,11 +540,9 @@ extern lean_object* l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__1___clo lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__7; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParam___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__4___rarg(uint8_t, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_setEnv___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__10(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUsed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_defaultCtorName___closed__1; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCtor___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -763,68 +753,6 @@ x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_defaultCtorName___clo return x_1; } } -lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_5 = l_Lean_Elab_Command_getRef(x_2, x_3, x_4); -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); -lean_inc(x_7); -lean_dec(x_5); -x_8 = lean_ctor_get(x_2, 4); -lean_inc(x_8); -lean_inc(x_8); -x_9 = l_Lean_Elab_getBetterRef(x_6, x_8); -lean_dec(x_6); -x_10 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_Lean_AddMessageContext___spec__1(x_1, x_2, x_3, x_7); -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_10, 1); -lean_inc(x_12); -lean_dec(x_10); -x_13 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_Lean_AddErrorMessageContext___spec__1(x_11, x_8, x_2, x_3, x_12); -lean_dec(x_2); -lean_dec(x_8); -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; -x_15 = lean_ctor_get(x_13, 0); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_9); -lean_ctor_set(x_16, 1, x_15); -lean_ctor_set_tag(x_13, 1); -lean_ctor_set(x_13, 0, x_16); -return x_13; -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_17 = lean_ctor_get(x_13, 0); -x_18 = lean_ctor_get(x_13, 1); -lean_inc(x_18); -lean_inc(x_17); -lean_dec(x_13); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_9); -lean_ctor_set(x_19, 1, x_17); -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_18); -return x_20; -} -} -} -lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___rarg___boxed), 4, 0); -return x_2; -} -} lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___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: { @@ -894,7 +822,7 @@ x_14 = l_Lean_Elab_elabAttr___rarg___lambda__3___closed__3; x_15 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_15, 0, x_13); lean_ctor_set(x_15, 1, x_14); -x_16 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___rarg(x_15, x_3, x_4, x_8); +x_16 = l_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1___rarg(x_15, x_3, x_4, x_8); x_17 = !lean_is_exclusive(x_16); if (x_17 == 0) { @@ -951,7 +879,7 @@ x_13 = lean_ctor_get(x_2, 6); lean_dec(x_13); lean_ctor_set(x_2, 6, x_11); x_14 = l_Lean_Elab_elabAttr___rarg___closed__3; -x_15 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___rarg(x_14, x_2, x_3, x_10); +x_15 = l_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1___rarg(x_14, x_2, x_3, x_10); x_16 = !lean_is_exclusive(x_15); if (x_16 == 0) { @@ -996,7 +924,7 @@ lean_ctor_set(x_26, 4, x_24); lean_ctor_set(x_26, 5, x_25); lean_ctor_set(x_26, 6, x_11); x_27 = l_Lean_Elab_elabAttr___rarg___closed__3; -x_28 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___rarg(x_27, x_26, x_3, x_10); +x_28 = l_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1___rarg(x_27, x_26, x_3, x_10); x_29 = lean_ctor_get(x_28, 0); lean_inc(x_29); x_30 = lean_ctor_get(x_28, 1); @@ -1033,7 +961,7 @@ return x_36; } } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__6(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___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) { _start: { uint8_t x_8; @@ -1107,7 +1035,7 @@ x_7 = lean_usize_of_nat(x_6); lean_dec(x_6); x_8 = 0; x_9 = l_Array_empty___closed__1; -x_10 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__6(x_5, x_7, x_8, x_9, x_2, x_3, x_4); +x_10 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5(x_5, x_7, x_8, x_9, x_2, x_3, x_4); lean_dec(x_5); if (lean_obj_tag(x_10) == 0) { @@ -1166,7 +1094,7 @@ lean_dec(x_6); return x_7; } } -lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__7___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__6___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; @@ -1185,7 +1113,7 @@ lean_object* x_11; lean_object* x_12; x_11 = lean_ctor_get(x_3, 6); lean_dec(x_11); lean_ctor_set(x_3, 6, x_9); -x_12 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___rarg(x_2, x_3, x_4, x_8); +x_12 = l_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1___rarg(x_2, x_3, x_4, x_8); return x_12; } else @@ -1212,16 +1140,16 @@ lean_ctor_set(x_19, 3, x_16); lean_ctor_set(x_19, 4, x_17); lean_ctor_set(x_19, 5, x_18); lean_ctor_set(x_19, 6, x_9); -x_20 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___rarg(x_2, x_19, x_4, x_8); +x_20 = l_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1___rarg(x_2, x_19, x_4, x_8); return x_20; } } } -lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__7(lean_object* x_1) { +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__6(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__7___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__6___rarg___boxed), 5, 0); return x_2; } } @@ -1480,7 +1408,7 @@ if (x_18 == 0) lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_dec(x_6); x_19 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__7; -x_20 = l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__7___rarg(x_13, x_19, x_7, x_8, x_9); +x_20 = l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__6___rarg(x_13, x_19, x_7, x_8, x_9); lean_dec(x_13); x_21 = !lean_is_exclusive(x_20); if (x_21 == 0) @@ -1602,7 +1530,7 @@ x_31 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__4___closed__5; 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_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__7___rarg(x_21, x_32, x_2, x_3, x_4); +x_33 = l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__6___rarg(x_21, x_32, x_2, x_3, x_4); lean_dec(x_21); x_34 = !lean_is_exclusive(x_33); if (x_34 == 0) @@ -1672,7 +1600,7 @@ x_49 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__4___closed__5; 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_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__7___rarg(x_38, x_50, x_2, x_3, x_4); +x_51 = l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__6___rarg(x_38, x_50, x_2, x_3, x_4); lean_dec(x_38); x_52 = lean_ctor_get(x_51, 0); lean_inc(x_52); @@ -1699,7 +1627,7 @@ return x_55; } } } -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__9___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8___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; @@ -1746,13 +1674,13 @@ x_17 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__4; x_18 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_18, 0, x_16); lean_ctor_set(x_18, 1, x_17); -x_19 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___rarg(x_18, x_4, x_5, x_6); +x_19 = l_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1___rarg(x_18, x_4, x_5, x_6); return x_19; } } } } -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__9___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* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8___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; uint8_t x_8; @@ -1766,7 +1694,7 @@ if (x_8 == 0) { lean_object* x_9; lean_object* x_10; x_9 = lean_box(0); -x_10 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__9___lambda__1(x_1, x_2, x_9, x_4, x_5, x_6); +x_10 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8___lambda__1(x_1, x_2, x_9, x_4, x_5, x_6); return x_10; } else @@ -1783,7 +1711,7 @@ x_14 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__4; x_15 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_15, 0, x_13); lean_ctor_set(x_15, 1, x_14); -x_16 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___rarg(x_15, x_4, x_5, x_6); +x_16 = l_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1___rarg(x_15, x_4, x_5, x_6); x_17 = !lean_is_exclusive(x_16); if (x_17 == 0) { @@ -1805,7 +1733,7 @@ return x_20; } } } -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; @@ -1824,7 +1752,7 @@ if (x_9 == 0) { lean_object* x_10; lean_object* x_11; x_10 = lean_box(0); -x_11 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__9___lambda__2(x_1, x_8, x_10, x_2, x_3, x_7); +x_11 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8___lambda__2(x_1, x_8, x_10, x_2, x_3, x_7); return x_11; } else @@ -1846,7 +1774,7 @@ x_16 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__4; x_17 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_17, 0, x_15); lean_ctor_set(x_17, 1, x_16); -x_18 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___rarg(x_17, x_2, x_3, x_7); +x_18 = l_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1___rarg(x_17, x_2, x_3, x_7); x_19 = !lean_is_exclusive(x_18); if (x_19 == 0) { @@ -1883,7 +1811,7 @@ x_27 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__4; 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_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___rarg(x_28, x_2, x_3, x_7); +x_29 = l_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1___rarg(x_28, x_2, x_3, x_7); x_30 = !lean_is_exclusive(x_29); if (x_30 == 0) { @@ -1906,7 +1834,7 @@ return x_33; } } } -lean_object* l_Lean_setEnv___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_setEnv___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; @@ -1994,7 +1922,7 @@ return x_28; } } } -lean_object* l_Lean_Elab_applyVisibility___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Elab_applyVisibility___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__7(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { switch (x_1) { @@ -2002,7 +1930,7 @@ case 0: { lean_object* x_6; lean_inc(x_2); -x_6 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__9(x_2, x_3, x_4, x_5); +x_6 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8(x_2, x_3, x_4, x_5); if (lean_obj_tag(x_6) == 0) { uint8_t x_7; @@ -2056,7 +1984,7 @@ case 1: lean_object* x_15; lean_inc(x_3); lean_inc(x_2); -x_15 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__9(x_2, x_3, x_4, x_5); +x_15 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8(x_2, x_3, x_4, x_5); if (lean_obj_tag(x_15) == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; @@ -2075,7 +2003,7 @@ lean_dec(x_18); x_21 = l_Lean_protectedExt; lean_inc(x_2); x_22 = l_Lean_PersistentEnvExtension_addEntry___rarg(x_21, x_20, x_2); -x_23 = l_Lean_setEnv___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__10(x_22, x_3, x_4, x_19); +x_23 = l_Lean_setEnv___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__9(x_22, x_3, x_4, x_19); lean_dec(x_3); x_24 = !lean_is_exclusive(x_23); if (x_24 == 0) @@ -2137,7 +2065,7 @@ lean_inc(x_35); lean_dec(x_33); x_36 = l_Lean_mkPrivateName(x_35, x_2); lean_inc(x_36); -x_37 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__9(x_36, x_3, x_4, x_34); +x_37 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8(x_36, x_3, x_4, x_34); if (lean_obj_tag(x_37) == 0) { uint8_t x_38; @@ -2204,7 +2132,7 @@ lean_dec(x_12); lean_inc(x_13); x_14 = l_Lean_Name_append___main(x_2, x_13); x_15 = lean_ctor_get_uint8(x_3, sizeof(void*)*2); -x_16 = l_Lean_Elab_applyVisibility___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8(x_15, x_14, x_5, x_6, x_7); +x_16 = l_Lean_Elab_applyVisibility___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__7(x_15, x_14, x_5, x_6, x_7); if (x_10 == 0) { if (lean_obj_tag(x_16) == 0) @@ -2398,7 +2326,7 @@ lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_dec(x_3); lean_dec(x_1); x_15 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__2___closed__3; -x_16 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___rarg(x_15, x_6, x_7, x_8); +x_16 = l_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1___rarg(x_15, x_6, x_7, x_8); x_17 = !lean_is_exclusive(x_16); if (x_17 == 0) { @@ -2523,7 +2451,7 @@ lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_dec(x_20); lean_dec(x_11); x_30 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___closed__3; -x_31 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___rarg(x_30, x_4, x_5, x_23); +x_31 = l_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1___rarg(x_30, x_4, x_5, x_23); x_32 = !lean_is_exclusive(x_31); if (x_32 == 0) { @@ -2664,7 +2592,7 @@ lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean lean_dec(x_52); lean_dec(x_11); x_62 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___closed__3; -x_63 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___rarg(x_62, x_50, x_5, x_55); +x_63 = l_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1___rarg(x_62, x_50, x_5, x_55); x_64 = lean_ctor_get(x_63, 0); lean_inc(x_64); x_65 = lean_ctor_get(x_63, 1); @@ -2766,15 +2694,6 @@ return x_81; } } } -lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___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_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___rarg(x_1, x_2, x_3, x_4); -lean_dec(x_3); -return x_5; -} -} lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { @@ -2818,7 +2737,7 @@ lean_dec(x_1); return x_5; } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___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) { _start: { size_t x_8; size_t x_9; lean_object* x_10; @@ -2826,7 +2745,7 @@ x_8 = lean_unbox_usize(x_2); lean_dec(x_2); x_9 = lean_unbox_usize(x_3); lean_dec(x_3); -x_10 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__6(x_1, x_8, x_9, x_4, x_5, x_6, x_7); +x_10 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5(x_1, x_8, x_9, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_1); return x_10; @@ -2852,11 +2771,11 @@ lean_dec(x_1); return x_5; } } -lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__7___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__6___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__7___rarg(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__6___rarg(x_1, x_2, x_3, x_4, x_5); lean_dec(x_4); lean_dec(x_1); return x_6; @@ -2916,52 +2835,52 @@ lean_dec(x_1); return x_5; } } -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__9___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* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; -x_7 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__9___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_3); return x_7; } } -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__9___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* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8___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) { _start: { lean_object* x_7; -x_7 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__9___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_3); return x_7; } } -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__9(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -lean_object* l_Lean_setEnv___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_setEnv___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_setEnv___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__10(x_1, x_2, x_3, x_4); +x_5 = l_Lean_setEnv___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__9(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); return x_5; } } -lean_object* l_Lean_Elab_applyVisibility___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Elab_applyVisibility___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { uint8_t x_6; lean_object* x_7; x_6 = lean_unbox(x_1); lean_dec(x_1); -x_7 = l_Lean_Elab_applyVisibility___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8(x_6, x_2, x_3, x_4, x_5); +x_7 = l_Lean_Elab_applyVisibility___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__7(x_6, x_2, x_3, x_4, x_5); lean_dec(x_4); return x_7; } @@ -3047,7 +2966,7 @@ else { lean_object* x_9; lean_object* x_10; x_9 = l_Lean_Elab_Command_checkValidFieldModifier___lambda__1___closed__3; -x_10 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___rarg(x_9, x_3, x_4, x_5); +x_10 = l_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1___rarg(x_9, x_3, x_4, x_5); return x_10; } } @@ -3093,7 +3012,7 @@ if (x_9 == 0) { lean_object* x_10; lean_object* x_11; uint8_t x_12; x_10 = l_Lean_Elab_Command_checkValidFieldModifier___lambda__2___closed__3; -x_11 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___rarg(x_10, x_3, x_4, x_5); +x_11 = l_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1___rarg(x_10, x_3, x_4, x_5); x_12 = !lean_is_exclusive(x_11); if (x_12 == 0) { @@ -3166,7 +3085,7 @@ else { lean_object* x_9; lean_object* x_10; uint8_t x_11; x_9 = l_Lean_Elab_Command_checkValidFieldModifier___lambda__3___closed__3; -x_10 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___rarg(x_9, x_3, x_4, x_5); +x_10 = l_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1___rarg(x_9, x_3, x_4, x_5); x_11 = !lean_is_exclusive(x_10); if (x_11 == 0) { @@ -3232,7 +3151,7 @@ else { lean_object* x_9; lean_object* x_10; uint8_t x_11; x_9 = l_Lean_Elab_Command_checkValidFieldModifier___lambda__4___closed__3; -x_10 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___rarg(x_9, x_3, x_4, x_5); +x_10 = l_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1___rarg(x_9, x_3, x_4, x_5); x_11 = !lean_is_exclusive(x_10); if (x_11 == 0) { @@ -3298,7 +3217,7 @@ else { lean_object* x_8; lean_object* x_9; uint8_t x_10; x_8 = l_Lean_Elab_Command_checkValidFieldModifier___closed__3; -x_9 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___rarg(x_8, x_2, x_3, x_4); +x_9 = l_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1___rarg(x_8, x_2, x_3, x_4); x_10 = !lean_is_exclusive(x_9); if (x_10 == 0) { @@ -3423,7 +3342,7 @@ lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_inc(x_2); x_15 = l_Lean_Name_append___main(x_1, x_2); x_16 = lean_ctor_get_uint8(x_3, sizeof(void*)*2); -x_17 = l_Lean_Elab_applyVisibility___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8(x_16, x_15, x_12, x_13, x_14); +x_17 = l_Lean_Elab_applyVisibility___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__7(x_16, x_15, x_12, x_13, x_14); if (lean_obj_tag(x_17) == 0) { uint8_t x_18; @@ -3655,7 +3574,7 @@ x_46 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Ela 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_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___rarg(x_47, x_33, x_13, x_25); +x_48 = l_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1___rarg(x_47, x_33, x_13, x_25); x_49 = !lean_is_exclusive(x_48); if (x_49 == 0) { @@ -3866,7 +3785,7 @@ lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_dec(x_5); lean_dec(x_4); x_17 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__2___closed__3; -x_18 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___rarg(x_17, x_8, x_9, x_10); +x_18 = l_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1___rarg(x_17, x_8, x_9, x_10); x_19 = !lean_is_exclusive(x_18); if (x_19 == 0) { @@ -3967,7 +3886,7 @@ lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_dec(x_12); lean_dec(x_3); x_22 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__3___closed__3; -x_23 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___rarg(x_22, x_6, x_7, x_15); +x_23 = l_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1___rarg(x_22, x_6, x_7, x_15); x_24 = !lean_is_exclusive(x_23); if (x_24 == 0) { @@ -4196,7 +4115,7 @@ lean_dec(x_15); lean_dec(x_13); lean_dec(x_6); x_34 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__9; -x_35 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___rarg(x_34, x_29, x_8, x_21); +x_35 = l_Lean_throwError___at_Lean_Elab_Command_checkValidInductiveModifier___spec__1___rarg(x_34, x_29, x_8, x_21); x_36 = !lean_is_exclusive(x_35); if (x_36 == 0) { @@ -8825,7 +8744,7 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_removeUnused(l _start: { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_11 = l___private_Lean_Elab_Inductive_26__removeUnused___closed__1; +x_11 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_removeUnused___closed__1; x_12 = lean_st_mk_ref(x_11, x_10); x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); @@ -9787,57 +9706,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Co return x_2; } } -lean_object* l_Lean_Meta_getLevel___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; -x_9 = l___private_Lean_Meta_InferType_4__getLevelImp(x_1, x_4, x_5, x_6, x_7, x_8); -return x_9; -} -} -lean_object* l_Lean_Meta_instantiateLevelMVars___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_9 = lean_st_ref_get(x_5, x_8); -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); -lean_inc(x_11); -lean_dec(x_9); -x_12 = lean_ctor_get(x_10, 0); -lean_inc(x_12); -lean_dec(x_10); -x_13 = l_Lean_MetavarContext_instantiateLevelMVars___main(x_1, x_12); -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_13, 1); -lean_inc(x_15); -lean_dec(x_13); -x_16 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_15, x_4, x_5, x_6, x_7, x_11); -x_17 = !lean_is_exclusive(x_16); -if (x_17 == 0) -{ -lean_object* x_18; -x_18 = lean_ctor_get(x_16, 0); -lean_dec(x_18); -lean_ctor_set(x_16, 0, x_14); -return x_16; -} -else -{ -lean_object* x_19; lean_object* x_20; -x_19 = lean_ctor_get(x_16, 1); -lean_inc(x_19); -lean_dec(x_16); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_14); -lean_ctor_set(x_20, 1, x_19); -return x_20; -} -} -} -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields___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, lean_object* x_13) { _start: { lean_object* x_14; uint8_t x_15; @@ -9895,14 +9764,14 @@ lean_inc(x_25); x_26 = lean_ctor_get(x_24, 1); lean_inc(x_26); lean_dec(x_24); -x_27 = l_Lean_Meta_instantiateLevelMVars___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields___spec__2(x_25, x_7, x_8, x_9, x_10, x_11, x_12, x_26); +x_27 = l_Lean_Meta_instantiateLevelMVars___at_Lean_Elab_Command_shouldInferResultUniverse___spec__1(x_25, x_7, x_8, x_9, x_10, x_11, x_12, x_26); 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); lean_inc(x_2); -x_30 = l_Lean_Elab_Command_accLevelAtCtor___main(x_28, x_1, x_2, x_6); +x_30 = l_Lean_Elab_Command_accLevelAtCtor(x_28, x_1, x_2, x_6); if (lean_obj_tag(x_30) == 0) { lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; @@ -10021,39 +9890,15 @@ _start: lean_object* x_11; lean_object* x_12; lean_object* x_13; x_11 = lean_unsigned_to_nat(0u); x_12 = l_Array_empty___closed__1; -x_13 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields___spec__3(x_1, x_2, x_3, x_3, x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_13 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields___spec__1(x_1, x_2, x_3, x_3, x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); return x_13; } } -lean_object* l_Lean_Meta_getLevel___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; -x_9 = l_Lean_Meta_getLevel___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_3); -lean_dec(x_2); -return x_9; -} -} -lean_object* l_Lean_Meta_instantiateLevelMVars___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; -x_9 = l_Lean_Meta_instantiateLevelMVars___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields___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_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields___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) { _start: { lean_object* x_14; -x_14 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_14 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields___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, x_13); lean_dec(x_8); lean_dec(x_4); lean_dec(x_3); @@ -10643,7 +10488,7 @@ _start: { lean_object* x_11; lean_object* x_12; lean_object* x_13; x_11 = lean_unsigned_to_nat(0u); -x_12 = l___private_Lean_Elab_Inductive_29__collectLevelParamsInInductive___closed__1; +x_12 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectLevelParamsInInductive___closed__1; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -11681,7 +11526,7 @@ lean_dec(x_9); x_12 = lean_ctor_get(x_10, 0); lean_inc(x_12); lean_dec(x_10); -x_13 = l___private_Lean_Elab_Inductive_34__mkAuxConstructions___closed__2; +x_13 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___closed__2; lean_inc(x_12); x_14 = l_Lean_Environment_contains(x_12, x_13); x_15 = l_Lean_Expr_eq_x3f___closed__2;