From 765319e94a5ce43b77b5f55e65a0b5ee2a676549 Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Thu, 15 Oct 2020 17:05:34 -0700 Subject: [PATCH] chore: update stage0 --- stage0/src/Lean/Elab/Structure.lean | 494 +- stage0/src/Lean/Parser/Basic.lean | 11 +- stage0/src/Lean/Parser/Command.lean | 2 +- stage0/src/Lean/Parser/Do.lean | 4 +- stage0/src/Lean/Parser/Extension.lean | 4 +- stage0/src/Lean/Parser/Tactic.lean | 5 +- stage0/src/Lean/Parser/Term.lean | 2 +- stage0/src/Lean/PrettyPrinter/Formatter.lean | 4 + .../src/Lean/PrettyPrinter/Parenthesizer.lean | 4 + .../src/library/constructions/projection.cpp | 4 +- stage0/stdlib/Lean/Elab/Declaration.c | 665 +- stage0/stdlib/Lean/Elab/Structure.c | 13205 ++++++++-------- stage0/stdlib/Lean/Elab/Syntax.c | 1460 +- stage0/stdlib/Lean/Parser/Basic.c | 104 +- stage0/stdlib/Lean/Parser/Command.c | 1054 +- stage0/stdlib/Lean/Parser/Do.c | 703 +- stage0/stdlib/Lean/Parser/Extension.c | 529 +- stage0/stdlib/Lean/Parser/Syntax.c | 128 +- stage0/stdlib/Lean/Parser/Tactic.c | 522 +- stage0/stdlib/Lean/Parser/Term.c | 12 +- stage0/stdlib/Lean/PrettyPrinter/Formatter.c | 35 + .../stdlib/Lean/PrettyPrinter/Parenthesizer.c | 35 + 22 files changed, 9583 insertions(+), 9403 deletions(-) diff --git a/stage0/src/Lean/Elab/Structure.lean b/stage0/src/Lean/Elab/Structure.lean index 46970cc2a0..24fe8b0273 100644 --- a/stage0/src/Lean/Elab/Structure.lean +++ b/stage0/src/Lean/Elab/Structure.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. @@ -9,9 +10,7 @@ import Lean.Elab.DeclModifiers import Lean.Elab.DeclUtil import Lean.Elab.Inductive -namespace Lean -namespace Elab -namespace Command +namespace Lean.Elab.Command open Meta @@ -100,36 +99,35 @@ parser! try (declModifiers >> ident >> optional inferMod >> " :: ") ``` -/ private def expandCtor (structStx : Syntax) (structModifiers : Modifiers) (structDeclName : Name) : CommandElabM StructCtorView := -let optCtor := structStx.getArg 6; +let optCtor := structStx[6] if optCtor.isNone then pure { ref := structStx, modifiers := {}, inferMod := false, name := defaultCtorName, declName := structDeclName ++ defaultCtorName } else - let ctor := optCtor.getArg 0; + let ctor := optCtor[0] withRef ctor do - ctorModifiers ← elabModifiers (ctor.getArg 0); - checkValidCtorModifier ctorModifiers; - when (ctorModifiers.isPrivate && structModifiers.isPrivate) $ - throwError "invalid 'private' constructor in a 'private' structure"; - when (ctorModifiers.isProtected && structModifiers.isPrivate) $ - throwError "invalid 'protected' constructor in a 'private' structure"; - let inferMod := !(ctor.getArg 2).isNone; - let name := ctor.getIdAt 1; - let declName := structDeclName ++ name; - declName ← applyVisibility ctorModifiers.visibility declName; + let ctorModifiers ← elabModifiers ctor[0] + checkValidCtorModifier ctorModifiers + if ctorModifiers.isPrivate && structModifiers.isPrivate then + throwError "invalid 'private' constructor in a 'private' structure" + if ctorModifiers.isProtected && structModifiers.isPrivate then + throwError "invalid 'protected' constructor in a 'private' structure" + let inferMod := !ctor[2].isNone + let name := ctor[1].getId + let declName := structDeclName ++ name + let declName ← applyVisibility ctorModifiers.visibility declName pure { ref := ctor, name := name, modifiers := ctorModifiers, inferMod := inferMod, declName := declName } def checkValidFieldModifier (modifiers : Modifiers) : CommandElabM Unit := do -when modifiers.isNoncomputable $ - throwError "invalid use of 'noncomputable' in field declaration"; -when modifiers.isPartial $ - throwError "invalid use of 'partial' in field declaration"; -when modifiers.isUnsafe $ - throwError "invalid use of 'unsafe' in field declaration"; -when (modifiers.attrs.size != 0) $ - throwError "invalid use of attributes in field declaration"; -when modifiers.isPrivate $ - throwError "private fields are not supported yet"; -pure () +if modifiers.isNoncomputable then + throwError "invalid use of 'noncomputable' in field declaration" +if modifiers.isPartial then + throwError "invalid use of 'partial' in field declaration" +if modifiers.isUnsafe then + throwError "invalid use of 'unsafe' in field declaration" +if modifiers.attrs.size != 0 then + throwError "invalid use of attributes in field declaration" +if modifiers.isPrivate then + throwError "private fields are not supported yet" /- ``` @@ -140,56 +138,53 @@ def structFields := parser! many (structExplicitBinder <|> structImplici ``` -/ private def expandFields (structStx : Syntax) (structModifiers : Modifiers) (structDeclName : Name) : CommandElabM (Array StructFieldView) := -let fieldBinders := ((structStx.getArg 7).getArg 0).getArgs; -fieldBinders.foldlM - (fun (views : Array StructFieldView) fieldBinder => withRef fieldBinder do - let k := fieldBinder.getKind; - binfo ← - if k == `Lean.Parser.Command.structExplicitBinder then pure BinderInfo.default - else if k == `Lean.Parser.Command.structImplicitBinder then pure BinderInfo.implicit - else if k == `Lean.Parser.Command.structInstBinder then pure BinderInfo.instImplicit - else throwError "unexpected kind of structure field"; - fieldModifiers ← elabModifiers (fieldBinder.getArg 0); - checkValidFieldModifier fieldModifiers; - when (fieldModifiers.isPrivate && structModifiers.isPrivate) $ - throwError "invalid 'private' field in a 'private' structure"; - when (fieldModifiers.isProtected && structModifiers.isPrivate) $ - throwError "invalid 'protected' field in a 'private' structure"; - let inferMod := !(fieldBinder.getArg 3).isNone; - let (binders, type?) := - if binfo == BinderInfo.default then - expandOptDeclSig (fieldBinder.getArg 4) +let fieldBinders := structStx[7][0].getArgs +fieldBinders.foldlM (init := #[]) fun (views : Array StructFieldView) fieldBinder => withRef fieldBinder do + let k := fieldBinder.getKind + let binfo ← + if k == `Lean.Parser.Command.structExplicitBinder then pure BinderInfo.default + else if k == `Lean.Parser.Command.structImplicitBinder then pure BinderInfo.implicit + else if k == `Lean.Parser.Command.structInstBinder then pure BinderInfo.instImplicit + else throwError "unexpected kind of structure field" + let fieldModifiers ← elabModifiers fieldBinder[0] + checkValidFieldModifier fieldModifiers + if fieldModifiers.isPrivate && structModifiers.isPrivate then + throwError "invalid 'private' field in a 'private' structure" + if fieldModifiers.isProtected && structModifiers.isPrivate then + throwError "invalid 'protected' field in a 'private' structure" + let inferMod := !fieldBinder[3].isNone + let (binders, type?) := + if binfo == BinderInfo.default then + expandOptDeclSig fieldBinder[4] + else + let (binders, type) := expandDeclSig fieldBinder[4] + (binders, some type) + let value? := + if binfo != BinderInfo.default then none + else + let optBinderDefault := fieldBinder[5] + if optBinderDefault.isNone then none else - let (binders, type) := expandDeclSig (fieldBinder.getArg 4); - (binders, some type); - let value? := - if binfo != BinderInfo.default then none - else - let optBinderDefault := fieldBinder.getArg 5; - if optBinderDefault.isNone then none - else - -- binderDefault := parser! " := " >> termParser - some $ (optBinderDefault.getArg 0).getArg 1; - let idents := (fieldBinder.getArg 2).getArgs; - idents.foldlM - (fun (views : Array StructFieldView) ident => withRef ident do - let name := ident.getId; - when (isInternalSubobjectFieldName name) $ - throwError ("invalid field name '" ++ name ++ "', identifiers starting with '_' are reserved to the system"); - let declName := structDeclName ++ name; - declName ← applyVisibility fieldModifiers.visibility declName; - pure $ views.push { - ref := ident, - modifiers := fieldModifiers, - binderInfo := binfo, - inferMod := inferMod, - declName := declName, - name := name, - binders := binders, - type? := type?, - value? := value? }) - views) - #[] + -- binderDefault := parser! " := " >> termParser + some optBinderDefault[0][1] + let idents := fieldBinder[2].getArgs + idents.foldlM (init := views) fun (views : Array StructFieldView) ident => withRef ident do + let name := ident.getId + if isInternalSubobjectFieldName name then + throwError! "invalid field name '{name}', identifiers starting with '_' are reserved to the system" + let declName := structDeclName ++ name + let declName ← applyVisibility fieldModifiers.visibility declName + pure $ views.push { + ref := ident, + modifiers := fieldModifiers, + binderInfo := binfo, + inferMod := inferMod, + declName := declName, + name := name, + binders := binders, + type? := type?, + value? := value? } + private def validStructType (type : Expr) : Bool := match type with @@ -199,11 +194,10 @@ match type with private def checkParentIsStructure (parent : Expr) : TermElabM Name := match parent.getAppFn with | Expr.const c _ _ => do - env ← getEnv; - unless (isStructure env c) $ - throwError $ "'" ++ toString c ++ "' is not a structure"; + unless isStructure (← getEnv) c do + throwError! "'{c}' is not a structure" pure c -| _ => throwError $ "expected structure" +| _ => throwError "expected structure" private def findFieldInfo? (infos : Array StructFieldInfo) (fieldName : Name) : Option StructFieldInfo := infos.find? fun info => info.name == fieldName @@ -212,40 +206,40 @@ private def containsFieldName (infos : Array StructFieldInfo) (fieldName : Name) (findFieldInfo? infos fieldName).isSome private partial def processSubfields {α} (structDeclName : Name) (parentFVar : Expr) (parentStructName : Name) (subfieldNames : Array Name) - : Nat → Array StructFieldInfo → (Array StructFieldInfo → TermElabM α) → TermElabM α -| i, infos, k => - if h : i < subfieldNames.size then do - let subfieldName := subfieldNames.get ⟨i, h⟩; - env ← getEnv; - when (containsFieldName infos subfieldName) $ - throwError ("field '" ++ subfieldName ++ "' from '" ++ parentStructName ++ "' has already been declared"); - val ← mkProjection parentFVar subfieldName; - type ← inferType val; + (infos : Array StructFieldInfo) (k : Array StructFieldInfo → TermElabM α) : TermElabM α := +let rec loop (i : Nat) (infos : Array StructFieldInfo) := do + if h : i < subfieldNames.size then + let subfieldName := subfieldNames.get ⟨i, h⟩ + if containsFieldName infos subfieldName then + throwError! "field '{subfieldName}' from '{parentStructName}' has already been declared" + let val ← mkProjection parentFVar subfieldName + let type ← inferType val withLetDecl subfieldName type val fun subfieldFVar => /- The following `declName` is only used for creating the `_default` auxiliary declaration name when its default value is overwritten in the structure. -/ - let declName := structDeclName ++ subfieldName; - let infos := infos.push { name := subfieldName, declName := declName, fvar := subfieldFVar, kind := StructFieldKind.fromParent }; - processSubfields (i+1) infos k + let declName := structDeclName ++ subfieldName + let infos := infos.push { name := subfieldName, declName := declName, fvar := subfieldFVar, kind := StructFieldKind.fromParent } + loop (i+1) infos else k infos +loop 0 infos private partial def withParents {α} (view : StructView) : Nat → Array StructFieldInfo → (Array StructFieldInfo → TermElabM α) → TermElabM α | i, infos, k => if h : i < view.parents.size then - let parentStx := view.parents.get ⟨i, h⟩; + let parentStx := view.parents.get ⟨i, h⟩ withRef parentStx do - parent ← Term.elabType parentStx; - parentName ← checkParentIsStructure parent; - let toParentName := mkNameSimple $ "to" ++ parentName.eraseMacroScopes.getString!; -- erase macro scopes? - when (containsFieldName infos toParentName) $ - throwErrorAt parentStx ("field '" ++ toParentName ++ "' has already been declared"); - env ← getEnv; - let binfo := if view.isClass && isClass env parentName then BinderInfo.instImplicit else BinderInfo.default; - withLocalDecl toParentName binfo parent $ fun parentFVar => - let infos := infos.push { name := toParentName, declName := view.declName ++ toParentName, fvar := parentFVar, kind := StructFieldKind.subobject }; - let subfieldNames := getStructureFieldsFlattened env parentName; - processSubfields view.declName parentFVar parentName subfieldNames 0 infos fun infos => withParents (i+1) infos k + let parent ← Term.elabType parentStx + let parentName ← checkParentIsStructure parent + let toParentName := mkNameSimple $ "to" ++ parentName.eraseMacroScopes.getString! -- erase macro scopes? + if containsFieldName infos toParentName then + throwErrorAt! parentStx "field '{toParentName}' has already been declared" + let env ← getEnv + let binfo := if view.isClass && isClass env parentName then BinderInfo.instImplicit else BinderInfo.default + withLocalDecl toParentName binfo parent fun parentFVar => + let infos := infos.push { name := toParentName, declName := view.declName ++ toParentName, fvar := parentFVar, kind := StructFieldKind.subobject } + let subfieldNames := getStructureFieldsFlattened env parentName + processSubfields view.declName parentFVar parentName subfieldNames infos fun infos => withParents view (i+1) infos k else k infos @@ -254,91 +248,89 @@ match view.type? with | none => match view.value? with | none => pure (none, none) - | some valStx => do - value ← Term.elabTerm valStx none; - value ← mkLambdaFVars params value; + | some valStx => + let value ← Term.elabTerm valStx none + let value ← mkLambdaFVars params value pure (none, value) -| some typeStx => do - type ← Term.elabType typeStx; +| some typeStx => + let type ← Term.elabType typeStx match view.value? with - | none => do - type ← mkForallFVars params type; + | none => + let type ← mkForallFVars params type pure (type, none) - | some valStx => do - value ← Term.elabTermEnsuringType valStx type; - type ← mkForallFVars params type; - value ← mkLambdaFVars params value; + | some valStx => + let value ← Term.elabTermEnsuringType valStx type + let type ← mkForallFVars params type + let value ← mkLambdaFVars params value pure (type, value) private partial def withFields {α} (views : Array StructFieldView) : Nat → Array StructFieldInfo → (Array StructFieldInfo → TermElabM α) → TermElabM α | i, infos, k => if h : i < views.size then do - let view := views.get ⟨i, h⟩; + let view := views.get ⟨i, h⟩ withRef view.ref $ match findFieldInfo? infos view.name with | none => do - (type?, value?) ← Term.elabBinders view.binders.getArgs $ fun params => elabFieldTypeValue view params; + let (type?, value?) ← Term.elabBinders view.binders.getArgs fun params => elabFieldTypeValue view params match type?, value? with | none, none => throwError "invalid field, type expected" | some type, _ => withLocalDecl view.name view.binderInfo type $ fun fieldFVar => let infos := infos.push { name := view.name, declName := view.declName, fvar := fieldFVar, value? := value?, - kind := StructFieldKind.newField, inferMod := view.inferMod }; - withFields (i+1) infos k - | none, some value => do - type ← inferType value; - withLocalDecl view.name view.binderInfo type $ fun fieldFVar => - let infos := infos.push { name := view.name, declName := view.declName, fvar := fieldFVar, kind := StructFieldKind.newField, inferMod := view.inferMod }; - withFields (i+1) infos k + kind := StructFieldKind.newField, inferMod := view.inferMod } + withFields views (i+1) infos k + | none, some value => + let type ← inferType value + withLocalDecl view.name view.binderInfo type fun fieldFVar => + let infos := infos.push { name := view.name, declName := view.declName, fvar := fieldFVar, kind := StructFieldKind.newField, inferMod := view.inferMod } + withFields views (i+1) infos k | some info => match info.kind with - | StructFieldKind.newField => throwError ("field '" ++ view.name ++ "' has already been declared") + | StructFieldKind.newField => throwError! "field '{view.name}' has already been declared" | StructFieldKind.fromParent => match view.value? with - | none => throwError ("field '" ++ view.name ++ "' has been declared in parent structure") + | none => throwError! "field '{view.name}' has been declared in parent structure" | some valStx => do - when (!view.binders.getArgs.isEmpty || view.type?.isSome) $ - throwErrorAt view.type?.get! ("omit field '" ++ view.name ++ "' type to set default value"); - fvarType ← inferType info.fvar; - value ← Term.elabTermEnsuringType valStx fvarType; - let infos := infos.push { info with value? := value }; - withFields (i+1) infos k + if !view.binders.getArgs.isEmpty || view.type?.isSome then + throwErrorAt! view.type?.get! "omit field '{view.name}' type to set default value" + let fvarType ← inferType info.fvar + let value ← Term.elabTermEnsuringType valStx fvarType + let infos := infos.push { info with value? := value } + withFields views (i+1) infos k | StructFieldKind.subobject => unreachable! else k infos private def getResultUniverse (type : Expr) : TermElabM Level := do -type ← whnf type; +let type ← whnf type match type with | Expr.sort u _ => pure u | _ => throwError "unexpected structure resulting type" private def collectUsed (params : Array Expr) (fieldInfos : Array StructFieldInfo) : StateRefT CollectFVars.State TermElabM Unit := do -params.forM fun p => do { - type ← inferType p; +params.forM fun p => do + let type ← inferType p Term.collectUsedFVars type -}; -fieldInfos.forM fun info => do { - fvarType ← inferType info.fvar; - Term.collectUsedFVars fvarType; +fieldInfos.forM fun info => do + let fvarType ← inferType info.fvar + Term.collectUsedFVars fvarType match info.value? with | none => pure () | some value => Term.collectUsedFVars value -} private def removeUnused (scopeVars : Array Expr) (params : Array Expr) (fieldInfos : Array StructFieldInfo) : TermElabM (LocalContext × LocalInstances × Array Expr) := do -(_, used) ← (collectUsed params fieldInfos).run {}; +let (_, used) ← (collectUsed params fieldInfos).run {} Term.removeUnused scopeVars used private def withUsed {α} (scopeVars : Array Expr) (params : Array Expr) (fieldInfos : Array StructFieldInfo) (k : Array Expr → TermElabM α) : TermElabM α := do -(lctx, localInsts, vars) ← removeUnused scopeVars params fieldInfos; +let (lctx, localInsts, vars) ← removeUnused scopeVars params fieldInfos withLCtx lctx localInsts $ k vars private def levelMVarToParamFVar (fvar : Expr) : StateRefT Nat TermElabM Unit := do -type ← inferType fvar; -_ ← Term.levelMVarToParam' type; +let type ← inferType fvar +Term.levelMVarToParam' type pure () private def levelMVarToParamFVars (fvars : Array Expr) : StateRefT Nat TermElabM Unit := @@ -346,165 +338,157 @@ fvars.forM levelMVarToParamFVar private def levelMVarToParamAux (scopeVars : Array Expr) (params : Array Expr) (fieldInfos : Array StructFieldInfo) : StateRefT Nat TermElabM (Array StructFieldInfo) := do -levelMVarToParamFVars scopeVars; -levelMVarToParamFVars params; +levelMVarToParamFVars scopeVars +levelMVarToParamFVars params fieldInfos.mapM fun info => do - levelMVarToParamFVar info.fvar; + levelMVarToParamFVar info.fvar match info.value? with | none => pure info - | some value => do - value ← Term.levelMVarToParam' value; + | some value => + let value ← Term.levelMVarToParam' value pure { info with value? := value } private def levelMVarToParam (scopeVars : Array Expr) (params : Array Expr) (fieldInfos : Array StructFieldInfo) : TermElabM (Array StructFieldInfo) := (levelMVarToParamAux scopeVars params fieldInfos).run' 1 private partial def collectUniversesFromFields (r : Level) (rOffset : Nat) (fieldInfos : Array StructFieldInfo) : TermElabM (Array Level) := do -fieldInfos.foldlM - (fun (us : Array Level) (info : StructFieldInfo) => do - type ← inferType info.fvar; - u ← getLevel type; - u ← instantiateLevelMVars u; - match accLevelAtCtor u r rOffset us with - | Except.error msg => throwError msg - | Except.ok us => pure us) - #[] +fieldInfos.foldlM (init := #[]) fun (us : Array Level) (info : StructFieldInfo) => do + let type ← inferType info.fvar + let u ← getLevel type + let u ← instantiateLevelMVars u + match accLevelAtCtor u r rOffset us with + | Except.error msg => throwError msg + | Except.ok us => pure us private def updateResultingUniverse (fieldInfos : Array StructFieldInfo) (type : Expr) : TermElabM Expr := do -r ← getResultUniverse type; -let rOffset : Nat := r.getOffset; -let r : Level := r.getLevelOffset; +let r ← getResultUniverse type +let rOffset : Nat := r.getOffset +let r : Level := r.getLevelOffset match r with -| Level.mvar mvarId _ => do - us ← collectUniversesFromFields r rOffset fieldInfos; - let rNew := Level.mkNaryMax us.toList; - assignLevelMVar mvarId rNew; +| Level.mvar mvarId _ => + let us ← collectUniversesFromFields r rOffset fieldInfos + let rNew := Level.mkNaryMax us.toList + assignLevelMVar mvarId rNew instantiateMVars type | _ => throwError "failed to compute resulting universe level of structure, provide universe explicitly" private def collectLevelParamsInFVar (s : CollectLevelParams.State) (fvar : Expr) : TermElabM CollectLevelParams.State := do -type ← inferType fvar; -type ← instantiateMVars type; +let type ← inferType fvar +let type ← instantiateMVars type pure $ collectLevelParams s type private def collectLevelParamsInFVars (fvars : Array Expr) (s : CollectLevelParams.State) : TermElabM CollectLevelParams.State := fvars.foldlM collectLevelParamsInFVar s private def collectLevelParamsInStructure (scopeVars : Array Expr) (params : Array Expr) (fieldInfos : Array StructFieldInfo) : TermElabM (Array Name) := do -s ← collectLevelParamsInFVars scopeVars {}; -s ← collectLevelParamsInFVars params s; -s ← fieldInfos.foldlM (fun (s : CollectLevelParams.State) info => collectLevelParamsInFVar s info.fvar) s; +let s ← collectLevelParamsInFVars scopeVars {} +let s ← collectLevelParamsInFVars params s +let s ← fieldInfos.foldlM (fun (s : CollectLevelParams.State) info => collectLevelParamsInFVar s info.fvar) s pure s.params private def addCtorFields (fieldInfos : Array StructFieldInfo) : Nat → Expr → TermElabM Expr | 0, type => pure type | i+1, type => do - let info := fieldInfos.get! i; - decl ← Term.getFVarLocalDecl! info.fvar; - type ← instantiateMVars type; - let type := type.abstract #[info.fvar]; + let info := fieldInfos[i] + let decl ← Term.getFVarLocalDecl! info.fvar + let type ← instantiateMVars type + let type := type.abstract #[info.fvar] match info.kind with | StructFieldKind.fromParent => - let val := decl.value; - addCtorFields i (type.instantiate1 val) + let val := decl.value + addCtorFields fieldInfos i (type.instantiate1 val) | StructFieldKind.subobject => - let n := mkInternalSubobjectFieldName $ decl.userName; - addCtorFields i (mkForall n decl.binderInfo decl.type type) + let n := mkInternalSubobjectFieldName $ decl.userName + addCtorFields fieldInfos i (mkForall n decl.binderInfo decl.type type) | StructFieldKind.newField => - addCtorFields i (mkForall decl.userName decl.binderInfo decl.type type) + addCtorFields fieldInfos i (mkForall decl.userName decl.binderInfo decl.type type) private def mkCtor (view : StructView) (levelParams : List Name) (params : Array Expr) (fieldInfos : Array StructFieldInfo) : TermElabM Constructor := withRef view.ref do -let type := mkAppN (mkConst view.declName (levelParams.map mkLevelParam)) params; -type ← addCtorFields fieldInfos fieldInfos.size type; -type ← mkForallFVars params type; -type ← instantiateMVars type; -let type := type.inferImplicit params.size !view.ctor.inferMod; +let type := mkAppN (mkConst view.declName (levelParams.map mkLevelParam)) params +let type ← addCtorFields fieldInfos fieldInfos.size type +let type ← mkForallFVars params type +let type ← instantiateMVars type +let type := type.inferImplicit params.size !view.ctor.inferMod pure { name := view.ctor.declName, type := type } @[extern "lean_mk_projections"] -private constant mkProjections (env : Environment) (structName : @& Name) (projs : @& List ProjectionInfo) (isClass : Bool) : Except String Environment := arbitrary _ +private constant mkProjections (env : Environment) (structName : Name) (projs : List ProjectionInfo) (isClass : Bool) : Except String Environment := arbitrary _ private def addProjections (structName : Name) (projs : List ProjectionInfo) (isClass : Bool) : TermElabM Unit := do -env ← getEnv; +let env ← getEnv match mkProjections env structName projs isClass with | Except.ok env => setEnv env | Except.error msg => throwError msg private def mkAuxConstructions (declName : Name) : TermElabM Unit := do -env ← getEnv; -let hasUnit := env.contains `PUnit; -let hasEq := env.contains `Eq; -let hasHEq := env.contains `HEq; -modifyEnv fun env => mkRecOn env declName; -when hasUnit $ modifyEnv fun env => mkCasesOn env declName; -when (hasUnit && hasEq && hasHEq) $ modifyEnv fun env => mkNoConfusion env declName +let env ← getEnv +let hasUnit := env.contains `PUnit +let hasEq := env.contains `Eq +let hasHEq := env.contains `HEq +modifyEnv fun env => mkRecOn env declName +if hasUnit then modifyEnv fun env => mkCasesOn env declName +if hasUnit && hasEq && hasHEq then modifyEnv fun env => mkNoConfusion env declName private def addDefaults (lctx : LocalContext) (defaultAuxDecls : Array (Name × Expr × Expr)) : TermElabM Unit := do -localInsts ← getLocalInstances; +let localInsts ← getLocalInstances withLCtx lctx localInsts do - defaultAuxDecls.forM fun ⟨declName, type, value⟩ => do + defaultAuxDecls.forM fun (declName, type, value) => do /- The identity function is used as "marker". -/ - value ← mkId value; - let zeta := true; -- expand `let-declarations` - _ ← mkAuxDefinition declName type value zeta; - modifyEnv fun env => setReducibilityStatus env declName ReducibilityStatus.reducible; - pure () + let value ← mkId value + mkAuxDefinition declName type value (zeta := true) + modifyEnv fun env => setReducibilityStatus env declName ReducibilityStatus.reducible private def elabStructureView (view : StructView) : TermElabM Unit := do -let numExplicitParams := view.params.size; -type ← Term.elabType view.type; -unless (validStructType type) $ throwErrorAt view.type "expected Type"; +let numExplicitParams := view.params.size +let type ← Term.elabType view.type +unless validStructType type do throwErrorAt view.type "expected Type" withRef view.ref do withParents view 0 #[] fun fieldInfos => withFields view.fields 0 fieldInfos fun fieldInfos => do - Term.synthesizeSyntheticMVarsNoPostponing; - u ← getResultUniverse type; - inferLevel ← shouldInferResultUniverse u; + Term.synthesizeSyntheticMVarsNoPostponing + let u ← getResultUniverse type + let inferLevel ← shouldInferResultUniverse u withUsed view.scopeVars view.params fieldInfos $ fun scopeVars => do - let numParams := scopeVars.size + numExplicitParams; - fieldInfos ← levelMVarToParam scopeVars view.params fieldInfos; - type ← if inferLevel then updateResultingUniverse fieldInfos type else pure type; - usedLevelNames ← collectLevelParamsInStructure scopeVars view.params fieldInfos; + let numParams := scopeVars.size + numExplicitParams + let fieldInfos ← levelMVarToParam scopeVars view.params fieldInfos + let type ← if inferLevel then updateResultingUniverse fieldInfos type else pure type + let usedLevelNames ← collectLevelParamsInStructure scopeVars view.params fieldInfos match sortDeclLevelParams view.scopeLevelNames view.allUserLevelNames usedLevelNames with | Except.error msg => throwError msg - | Except.ok levelParams => do - let params := scopeVars ++ view.params; - ctor ← mkCtor view levelParams params fieldInfos; - type ← mkForallFVars params type; - type ← instantiateMVars type; - let indType := { name := view.declName, type := type, ctors := [ctor] : InductiveType }; - let decl := Declaration.inductDecl levelParams params.size [indType] view.modifiers.isUnsafe; - Term.ensureNoUnassignedMVars decl; - addDecl decl; + | Except.ok levelParams => + let params := scopeVars ++ view.params + let ctor ← mkCtor view levelParams params fieldInfos + let type ← mkForallFVars params type + let type ← instantiateMVars type + let indType := { name := view.declName, type := type, ctors := [ctor] : InductiveType } + let decl := Declaration.inductDecl levelParams params.size [indType] view.modifiers.isUnsafe + Term.ensureNoUnassignedMVars decl + addDecl decl let projInfos := (fieldInfos.filter fun (info : StructFieldInfo) => !info.isFromParent).toList.map fun (info : StructFieldInfo) => - { declName := info.declName, inferMod := info.inferMod : ProjectionInfo }; - addProjections view.declName projInfos view.isClass; - mkAuxConstructions view.declName; - instParents ← fieldInfos.filterM fun info => do { - decl ← Term.getFVarLocalDecl! info.fvar; + { declName := info.declName, inferMod := info.inferMod : ProjectionInfo } + addProjections view.declName projInfos view.isClass + mkAuxConstructions view.declName + let instParents ← fieldInfos.filterM fun info => do + let decl ← Term.getFVarLocalDecl! info.fvar pure (info.isSubobject && decl.binderInfo.isInstImplicit) - }; - let projInstances := instParents.toList.map fun info => info.declName; - Term.applyAttributesAt view.declName view.modifiers.attrs AttributeApplicationTime.afterTypeChecking; - projInstances.forM addGlobalInstance; - lctx ← getLCtx; - let fieldsWithDefault := fieldInfos.filter fun info => info.value?.isSome; - defaultAuxDecls ← fieldsWithDefault.mapM fun info => do { - type ← inferType info.fvar; + let projInstances := instParents.toList.map fun info => info.declName + Term.applyAttributesAt view.declName view.modifiers.attrs AttributeApplicationTime.afterTypeChecking + projInstances.forM addGlobalInstance + let lctx ← getLCtx + let fieldsWithDefault := fieldInfos.filter fun info => info.value?.isSome + let defaultAuxDecls ← fieldsWithDefault.mapM fun info => do + let type ← inferType info.fvar pure (info.declName ++ `_default, type, info.value?.get!) - }; /- The `lctx` and `defaultAuxDecls` are used to create the auxiliary `_default` declarations The parameters `params` for these definitions must be marked as implicit, and all others as explicit. -/ - let lctx := params.foldl - (fun (lctx : LocalContext) (p : Expr) => - lctx.updateBinderInfo p.fvarId! BinderInfo.implicit) - lctx; - let lctx := fieldInfos.foldl - (fun (lctx : LocalContext) (info : StructFieldInfo) => + let lctx := + params.foldl (init := lctx) fun (lctx : LocalContext) (p : Expr) => + lctx.updateBinderInfo p.fvarId! BinderInfo.implicit + let lctx := + fieldInfos.foldl (init := lctx) fun (lctx : LocalContext) (info : StructFieldInfo) => if info.isFromParent then lctx -- `fromParent` fields are elaborated as let-decls, and are zeta-expanded when creating `_default`. - else lctx.updateBinderInfo info.fvar.fvarId! BinderInfo.default) - lctx; + else lctx.updateBinderInfo info.fvar.fvarId! BinderInfo.default addDefaults lctx defaultAuxDecls /- @@ -520,19 +504,19 @@ def structCtor := parser! try (declModifiers >> ident >> optional infe -/ def elabStructure (modifiers : Modifiers) (stx : Syntax) : CommandElabM Unit := do -checkValidInductiveModifier modifiers; -let isClass := (stx.getArg 0).getKind == `Lean.Parser.Command.classTk; -let modifiers := if isClass then modifiers.addAttribute { name := `class } else modifiers; -let declId := stx.getArg 1; -let params := (stx.getArg 2).getArgs; -let exts := stx.getArg 3; -let parents := if exts.isNone then #[] else ((exts.getArg 0).getArg 1).getSepArgs; -let optType := stx.getArg 4; -type ← if optType.isNone then `(Type _) else pure $ (optType.getArg 0).getArg 1; -scopeLevelNames ← getLevelNames; -⟨name, declName, allUserLevelNames⟩ ← expandDeclId declId modifiers; -ctor ← expandCtor stx modifiers declName; -fields ← expandFields stx modifiers declName; +checkValidInductiveModifier modifiers +let isClass := stx[0].getKind == `Lean.Parser.Command.classTk +let modifiers := if isClass then modifiers.addAttribute { name := `class } else modifiers +let declId := stx[1] +let params := stx[2].getArgs +let exts := stx[3] +let parents := if exts.isNone then #[] else exts[0][1].getSepArgs +let optType := stx[4] +let type ← if optType.isNone then `(Type _) else pure optType[0][1] +let scopeLevelNames ← getLevelNames +let ⟨name, declName, allUserLevelNames⟩ ← expandDeclId declId modifiers +let ctor ← expandCtor stx modifiers declName +let fields ← expandFields stx modifiers declName runTermElabM declName $ fun scopeVars => Term.withLevelNames allUserLevelNames $ Term.elabBinders params fun params => elabStructureView { ref := stx, modifiers := modifiers, @@ -548,6 +532,4 @@ runTermElabM declName $ fun scopeVars => Term.withLevelNames allUserLevelNames $ fields := fields } -end Command -end Elab -end Lean +end Lean.Elab.Command diff --git a/stage0/src/Lean/Parser/Basic.lean b/stage0/src/Lean/Parser/Basic.lean index c1567ba751..184dc85be8 100644 --- a/stage0/src/Lean/Parser/Basic.lean +++ b/stage0/src/Lean/Parser/Basic.lean @@ -488,7 +488,7 @@ fun c s => { info := p.info, fn := lookaheadFn p.fn } -@[inline] def notFollowedByFn (p : ParserFn) : ParserFn := +@[inline] def notFollowedByFn (p : ParserFn) (msg : String) : ParserFn := fun c s => let iniSz := s.stackSize; let iniPos := s.pos; @@ -497,10 +497,10 @@ fun c s => s.restore iniSz iniPos else let s := s.restore iniSz iniPos; - s.mkError "notFollowedBy" + s.mkUnexpectedError ("unexpected " ++ msg) -@[inline] def notFollowedBy (p : Parser) : Parser := -{ fn := notFollowedByFn p.fn } +@[inline] def notFollowedBy (p : Parser) (msg : String) : Parser := +{ fn := notFollowedByFn p.fn msg } @[specialize] partial def manyAux (p : ParserFn) : ParserFn | c, s => @@ -1035,6 +1035,9 @@ let sym := sym.trim; { info := symbolInfo sym, fn := symbolFn sym } +abbrev notSymbol (s : String) : Parser := +notFollowedBy (symbol s) s + /-- Check if the following token is the symbol _or_ identifier `sym`. Useful for parsing local tokens that have not been added to the token table (but may have been so by some unrelated code). diff --git a/stage0/src/Lean/Parser/Command.lean b/stage0/src/Lean/Parser/Command.lean index 4c3efb6026..4b3b8ead2e 100644 --- a/stage0/src/Lean/Parser/Command.lean +++ b/stage0/src/Lean/Parser/Command.lean @@ -87,7 +87,7 @@ def openOnly := parser! try (ident >> "(") >> many1 ident >> ")" def openSimple := parser! many1 ident @[builtinCommandParser] def «open» := parser! "open " >> (openHiding <|> openRenaming <|> openOnly <|> openSimple) -@[builtinCommandParser] def «mutual» := parser! "mutual " >> many1 (notFollowedBy «end» >> commandParser) >> "end" +@[builtinCommandParser] def «mutual» := parser! "mutual " >> many1 (notSymbol "end" >> commandParser) >> "end" @[builtinCommandParser] def «initialize» := parser! "initialize " >> optional («try» (ident >> Term.typeSpec >> Term.leftArrow)) >> Term.doSeq @[builtinCommandParser] def «in» := tparser! " in " >> commandParser diff --git a/stage0/src/Lean/Parser/Do.lean b/stage0/src/Lean/Parser/Do.lean index 9a86848f75..78d951bf98 100644 --- a/stage0/src/Lean/Parser/Do.lean +++ b/stage0/src/Lean/Parser/Do.lean @@ -25,7 +25,8 @@ def doSeqIndent := parser! many1Indent $ group (doElemParser >> optional "; " def doSeqBracketed := parser! "{" >> withoutPosition (many1 (group (doElemParser >> optional "; "))) >> "}" def doSeq := doSeqBracketed <|> doSeqIndent -def notFollowedByRedefinedTermToken := notFollowedBy ("if" <|> "match" <|> "let" <|> "have" <|> "do" <|> "dbgTrace!" <|> "assert!") +def notFollowedByRedefinedTermToken := + notFollowedBy ("if" <|> "match" <|> "let" <|> "have" <|> "do" <|> "dbgTrace!" <|> "assert!") "token at 'do' element" @[builtinDoElemParser] def doLet := parser! "let " >> letDecl @[builtinDoElemParser] def doLetRec := parser! group ("let " >> nonReservedSymbol "rec ") >> letRecDecls @@ -94,6 +95,7 @@ Note that parser priorities would not solve this problem since the `doIf` parser parser is succeeding. -/ @[builtinDoElemParser] def doExpr := parser! notFollowedByRedefinedTermToken >> termParser +@[builtinDoElemParser] def doNested := parser! "do " >> doSeq @[builtinTermParser] def «do» := parser!:maxPrec "do " >> doSeq diff --git a/stage0/src/Lean/Parser/Extension.lean b/stage0/src/Lean/Parser/Extension.lean index 7855c6a790..5634b13532 100644 --- a/stage0/src/Lean/Parser/Extension.lean +++ b/stage0/src/Lean/Parser/Extension.lean @@ -203,7 +203,7 @@ partial def compileParserDescr (env : Environment) (categories : ParserCategorie | ParserDescr.optional d => optional <$> compileParserDescr d | ParserDescr.lookahead d => lookahead <$> compileParserDescr d | ParserDescr.try d => try <$> compileParserDescr d -| ParserDescr.notFollowedBy d => notFollowedBy <$> compileParserDescr d +| ParserDescr.notFollowedBy d => do p ← compileParserDescr d; pure $ notFollowedBy p "element" -- TODO allow user to set msg at ParserDescr | ParserDescr.many d => many <$> compileParserDescr d | ParserDescr.many1 d => many1 <$> compileParserDescr d | ParserDescr.sepBy d₁ d₂ => sepBy <$> compileParserDescr d₁ <*> compileParserDescr d₂ @@ -487,7 +487,7 @@ fun ctx s => | some (Syntax.atom _ sym) => if ctx.insideQuot && sym == "$" then s else match cat.tables.leadingTable.find? (mkNameSimple sym) with - | some _ => s.mkError "notFollowedByCategoryToken" + | some _ => s.mkUnexpectedError (toString catName) | _ => s | _ => s diff --git a/stage0/src/Lean/Parser/Tactic.lean b/stage0/src/Lean/Parser/Tactic.lean index dc23d924f5..b07d85f2ae 100644 --- a/stage0/src/Lean/Parser/Tactic.lean +++ b/stage0/src/Lean/Parser/Tactic.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ import Lean.Parser.Term +import Lean.Parser.Command namespace Lean namespace Parser @@ -25,7 +26,7 @@ fun c s => def ident' : Parser := ident <|> underscore -@[builtinTacticParser] def «intro» := parser! nonReservedSymbol "intro " >> notFollowedBy "|" >> many (checkColGt >> termParser maxPrec) +@[builtinTacticParser] def «intro» := parser! nonReservedSymbol "intro " >> notSymbol "|" >> many (checkColGt >> termParser maxPrec) @[builtinTacticParser] def «intros» := parser! nonReservedSymbol "intros " >> many (checkColGt >> ident') @[builtinTacticParser] def «revert» := parser! nonReservedSymbol "revert " >> many1 (checkColGt >> ident) @[builtinTacticParser] def «clear» := parser! nonReservedSymbol "clear " >> many1 (checkColGt >> ident) @@ -55,7 +56,7 @@ def location := parser! "at " >> (locationWildcard <|> locationTarget <| def rwRule := parser! optional (unicodeSymbol "←" "<-") >> termParser def rwRuleSeq := parser! "[" >> sepBy1 rwRule ", " true >> "]" -@[builtinTacticParser] def «rewrite» := parser! (nonReservedSymbol "rewrite" <|> nonReservedSymbol "rw") >> notFollowedBy "[" >> rwRule >> optional location +@[builtinTacticParser] def «rewrite» := parser! (nonReservedSymbol "rewrite" <|> nonReservedSymbol "rw") >> notSymbol "[" >> rwRule >> optional location @[builtinTacticParser] def «rewriteSeq» := parser! (nonReservedSymbol "rewrite" <|> nonReservedSymbol "rw") >> rwRuleSeq >> optional location def majorPremise := parser! optional (try (ident >> " : ")) >> termParser diff --git a/stage0/src/Lean/Parser/Term.lean b/stage0/src/Lean/Parser/Term.lean index 94de00b299..ddd8e7dccf 100644 --- a/stage0/src/Lean/Parser/Term.lean +++ b/stage0/src/Lean/Parser/Term.lean @@ -157,7 +157,7 @@ def letIdDecl := node `Lean.Parser.Term.letIdDecl $ try (letIdLhs >> " := ") def letPatDecl := node `Lean.Parser.Term.letPatDecl $ try (termParser >> pushNone >> optType >> " := ") >> termParser def letEqnsDecl := node `Lean.Parser.Term.letEqnsDecl $ letIdLhs >> matchAlts false -- Remark: we use `nodeWithAntiquot` here to make sure anonymous antiquotations (e.g., `$x`) are not `letDecl` -def letDecl := nodeWithAntiquot "letDecl" `Lean.Parser.Term.letDecl (notFollowedBy (nonReservedSymbol "rec") >> (letIdDecl <|> letPatDecl <|> letEqnsDecl)) +def letDecl := nodeWithAntiquot "letDecl" `Lean.Parser.Term.letDecl (notFollowedBy (nonReservedSymbol "rec") "rec" >> (letIdDecl <|> letPatDecl <|> letEqnsDecl)) @[builtinTermParser] def «let» := parser!:leadPrec withPosition ("let " >> letDecl) >> optSemicolon termParser @[builtinTermParser] def «let!» := parser!:leadPrec withPosition ("let! " >> letDecl) >> optSemicolon termParser @[builtinTermParser] def «let*» := parser!:leadPrec withPosition ("let* " >> letDecl) >> optSemicolon termParser diff --git a/stage0/src/Lean/PrettyPrinter/Formatter.lean b/stage0/src/Lean/PrettyPrinter/Formatter.lean index 53cc606830..3b73da2e8f 100644 --- a/stage0/src/Lean/PrettyPrinter/Formatter.lean +++ b/stage0/src/Lean/PrettyPrinter/Formatter.lean @@ -191,6 +191,10 @@ st ← get; let stx := st.stxTrav.parents.back.getArg (st.stxTrav.idxs.back - offset); categoryParser.formatter stx.getId +@[combinatorFormatter Lean.Parser.error] +def error.formatter (msg : String) : Formatter := +pure () + @[combinatorFormatter Lean.Parser.try] def try.formatter (p : Formatter) : Formatter := p diff --git a/stage0/src/Lean/PrettyPrinter/Parenthesizer.lean b/stage0/src/Lean/PrettyPrinter/Parenthesizer.lean index df93d42b28..ade2b8e3bf 100644 --- a/stage0/src/Lean/PrettyPrinter/Parenthesizer.lean +++ b/stage0/src/Lean/PrettyPrinter/Parenthesizer.lean @@ -320,6 +320,10 @@ def level.parenthesizer : CategoryParenthesizer | prec => do maybeParenthesize `level (fun stx => Unhygienic.run `(level|($stx))) prec $ parenthesizeCategoryCore `level prec +@[combinatorParenthesizer Lean.Parser.error] +def error.parenthesizer (msg : String) : Parenthesizer := +pure () + @[combinatorParenthesizer Lean.Parser.try] def try.parenthesizer (p : Parenthesizer) : Parenthesizer := p diff --git a/stage0/src/library/constructions/projection.cpp b/stage0/src/library/constructions/projection.cpp index e30819c167..3b215d9fa2 100644 --- a/stage0/src/library/constructions/projection.cpp +++ b/stage0/src/library/constructions/projection.cpp @@ -113,8 +113,8 @@ environment mk_projections(environment const & env, name const & n, buffer extern "C" object * lean_mk_projections(object * env, object * struct_name, object * proj_infos, uint8 inst_implicit) { environment new_env(env); - name n(struct_name, true); - list_ref ps(proj_infos, true); + name n(struct_name); + list_ref ps(proj_infos); buffer proj_names; buffer infer_kinds; for (auto p : ps) { diff --git a/stage0/stdlib/Lean/Elab/Declaration.c b/stage0/stdlib/Lean/Elab/Declaration.c index adf7ad0bc0..fe3889f9da 100644 --- a/stage0/stdlib/Lean/Elab/Declaration.c +++ b/stage0/stdlib/Lean/Elab/Declaration.c @@ -24,11 +24,9 @@ lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabAttr___spec_ size_t l_USize_add(size_t, size_t); lean_object* l_Lean_Elab_expandOptDeclSig(lean_object*); extern lean_object* l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg___closed__3; -lean_object* l_Lean_Elab_applyVisibility___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__22; lean_object* l___regBuiltin_Lean_Elab_Command_expandInitialize___closed__3; lean_object* l_Lean_Elab_Command_expandMutualElement_match__2(lean_object*); -extern lean_object* l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__3___closed__2; lean_object* l___regBuiltin_Lean_Elab_Command_expandMutualPreamble___closed__1; lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__4(lean_object*); lean_object* l_Lean_Elab_Command_elabAxiom___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*); @@ -42,7 +40,6 @@ lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__1(lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__37; extern lean_object* l___private_Lean_Elab_Command_11__addNamespace___closed__1; lean_object* lean_array_uget(lean_object*, size_t); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2___closed__3; extern lean_object* l_Lean_Elab_Command_elabSection___closed__2; lean_object* l_Lean_Elab_Command_expandInitialize___closed__7; uint8_t l_Lean_Elab_Modifiers_isProtected(lean_object*); @@ -74,7 +71,6 @@ lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualPreambleCommand___boxed(lean_object*); lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_splitMutualPreamble(lean_object*); lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualPreambleCommand___closed__1; -lean_object* lean_private_to_user_name(lean_object*); lean_object* l_Lean_Elab_elabAttrs___at_Lean_Elab_Command_elabMutualDef___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Command_elabAttr___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__10; @@ -84,7 +80,6 @@ lean_object* l_Lean_Elab_Command_expandInitialize___closed__30; lean_object* l_Lean_Elab_Command_expandMutualPreamble_match__1(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_expandInitialize(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabDeclaration(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkSimpleThunkType___closed__1; lean_object* l_Lean_Elab_Command_elabAxiom_match__5___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__18; @@ -97,20 +92,18 @@ lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__3(lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__14; 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* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_String_splitAux___main___closed__1; lean_object* l_Lean_Elab_Command_expandMutualElement_match__1(lean_object*); lean_object* l_Lean_Elab_Command_getLevelNames___rarg(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabMutual(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___closed__3; lean_object* lean_string_utf8_byte_size(lean_object*); lean_object* l_Lean_Elab_Command_expandMutualElement_match__3___rarg(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualDef___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); 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_expandDeclNamespace_x3f___closed__7; -lean_object* l_Lean_Elab_applyVisibility___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabAxiom___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_setEnv___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3___boxed(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___regBuiltin_Lean_Elab_Command_elabDeclaration___closed__1; @@ -123,24 +116,25 @@ lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabAxiom_match__4___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__8; lean_object* l___regBuiltin_Lean_Elab_Command_expandMutualNamespace(lean_object*); -lean_object* l_Lean_setEnv___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_classInductiveSyntaxToView(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualInductive___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_Basic_6__liftMkBindingM___rarg___closed__3; extern lean_object* l_Lean_Elab_Command_isDefLike___closed__4; lean_object* l_Lean_Elab_Command_expandDeclIdNamespace_x3f_match__1(lean_object*); extern lean_object* l_Lean_Elab_Command_isDefLike___closed__8; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___closed__1; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandDeclIdNamespace_x3f_match__2___rarg(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__2; 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*); lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView_match__2(lean_object*); lean_object* l_Lean_Elab_Term_levelMVarToParam(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__25; extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__5; lean_object* l_Lean_Elab_Command_expandInitialize___closed__23; @@ -152,7 +146,6 @@ lean_object* l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__2(le extern lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_letBindRhss___closed__13; lean_object* l_Lean_Name_append___main(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_isDefLike___closed__2; -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualNamespace___closed__1; lean_object* l_Lean_Elab_Command_expandDeclId(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__39; @@ -161,6 +154,7 @@ lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___sp lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabInductiveViews(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabAttr___closed__3; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabAxiom_match__3___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__2; lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); @@ -170,12 +164,14 @@ extern lean_object* l_Lean_Elab_Command_mkDefViewOfConstant___closed__8; lean_object* l_Lean_Elab_Command_elabAxiom___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualPreamble___closed__4; lean_object* l_Lean_Elab_Command_expandInitialize___closed__21; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__2___closed__1; lean_object* l_Lean_Elab_Command_expandInitialize___closed__38; lean_object* l___regBuiltin_Lean_Elab_Command_expandMutualPreamble(lean_object*); extern lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen___closed__2; lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Command_elabAttr___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_getLevelParamsPreDecls___closed__1; extern lean_object* l___regBuiltin_Lean_Elab_Command_elabVariables___closed__2; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_elabMutualInductive___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__2; lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f_match__1(lean_object*); @@ -187,13 +183,12 @@ lean_object* lean_name_mk_string(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_Lean_Elab_Command_expandInitialize___closed__17; lean_object* l_Lean_Elab_Command_expandInitialize___closed__1; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___closed__1; lean_object* l_Lean_Elab_Command_expandInitialize___boxed(lean_object*, lean_object*, lean_object*); -uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); -extern lean_object* l_Lean_protectedExt; extern lean_object* l_Lean_Elab_Command_isDefLike___closed__9; extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__5; -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, 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__2; lean_object* l___regBuiltin_Lean_Elab_Command_expandMutualNamespace___closed__3; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__3; lean_object* l_Lean_Elab_Command_expandInitialize___closed__9; @@ -213,7 +208,6 @@ uint8_t l_Lean_Elab_Command_isDefLike(lean_object*); lean_object* l_Lean_Elab_Command_expandDeclIdNamespace_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualPreamble___closed__3; lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f(lean_object*); -extern lean_object* l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabAttr___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__3; uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualDef___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -224,13 +218,11 @@ lean_object* l_Lean_Elab_Command_elabMutual___closed__2; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabAttr___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__4; lean_object* l_Lean_Elab_Command_elabAxiom_match__2___rarg(lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___closed__2; 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*); extern lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__2; 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_Array_iterateMAux___main___at_Array_append___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__35; -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabAttr___closed__2; lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f_match__3(lean_object*); @@ -243,9 +235,7 @@ lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__4___rarg(lean_obje lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualElement___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualPreambleCommand(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualPreamble(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_PersistentEnvExtension_addEntry___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabBinders___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_nullKind___closed__2; @@ -253,14 +243,11 @@ lean_object* l_Lean_Elab_Command_expandInitialize___closed__19; lean_object* l_Lean_Elab_Command_expandMutualElement(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* l___regBuiltin_Lean_Elab_Command_expandMutualElement(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_Match_Match_40__process___main___closed__1; lean_object* l_Lean_Elab_Command_expandInitialize___closed__36; extern lean_object* l___private_Lean_Compiler_InitAttr_1__getIOTypeArg___closed__1; -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2___closed__1; 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_expandMutualPreamble___closed__2; -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2___closed__2; extern lean_object* l___regBuiltin_Lean_Elab_Command_elabCheck___closed__1; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__1; extern lean_object* l_Lean_resolveGlobalConstNoOverload___rarg___lambda__1___closed__1; @@ -268,7 +255,7 @@ lean_object* l_List_filterAux___main___at_Lean_resolveGlobalConst___spec__1(lean lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabAttr___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Macro_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__1; -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_resolveGlobalConstNoOverload___rarg___lambda__1___closed__2; extern lean_object* l_Lean_Elab_macroAttribute; lean_object* l___regBuiltin_Lean_Elab_Command_expandMutualNamespace___closed__2; @@ -276,15 +263,12 @@ lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__2; lean_object* l_Lean_Syntax_setArg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabMutual(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_elabMutualInductive(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualElement_match__3(lean_object*); lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__8; extern lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__6; 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___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView_match__3(lean_object*); -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l_Lean_Syntax_getKind(lean_object*); lean_object* l_Lean_MacroScopesView_review(lean_object*); @@ -292,10 +276,8 @@ lean_object* l_Lean_Elab_Term_applyAttributes(lean_object*, lean_object*, uint8_ lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__4; lean_object* l_Lean_Elab_Command_expandMutualPreamble___closed__5; lean_object* l_Lean_Elab_Command_expandInitialize___closed__26; -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___closed__1; lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__2(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualElement___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_isDefLike___closed__6; lean_object* l_Lean_Elab_Command_getMainModule___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabStructure(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -310,9 +292,9 @@ extern lean_object* l_Lean_mkSimpleThunkType___closed__2; extern lean_object* l_Lean_Elab_Tactic_evalIntro___closed__5; lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_splitMutualPreamble_loop(lean_object*, lean_object*); lean_object* l_Lean_Elab_expandDeclSig(lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__4; lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualDef___boxed(lean_object*); lean_object* l___private_Lean_Elab_Command_4__getVarDecls(lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); @@ -328,6 +310,7 @@ lean_object* l_Lean_Elab_Command_elabAxiom_match__4(lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualPreamble___closed__6; extern lean_object* l_Lean_Elab_Command_isDefLike___closed__3; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___closed__2; lean_object* l___regBuiltin_Lean_Elab_Command_expandMutualNamespace___closed__1; lean_object* l_Lean_Elab_Command_elabAxiom_match__5(lean_object*); lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__3; @@ -343,6 +326,7 @@ lean_object* l_List_map___main___at_Lean_resolveGlobalConst___spec__2(lean_objec lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualInductive___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__5; lean_object* l_Lean_Elab_Command_elabAxiom___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___closed__3; 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*); @@ -363,7 +347,6 @@ lean_object* l_Lean_Meta_mkForallUsedOnly___at_Lean_Elab_Command_elabAxiom___spe lean_object* l_Lean_Elab_Command_expandMutualElement_match__2___rarg(lean_object*, lean_object*); uint8_t l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualInductive(lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__42; -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkInitAttr___closed__1; lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidInductiveModifier(lean_object*, lean_object*, lean_object*, lean_object*); @@ -377,10 +360,8 @@ lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2( lean_object* l___regBuiltin_Lean_Elab_Command_elabMutual___closed__1; lean_object* l_Lean_resolveGlobalName___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabAxiom_match__1(lean_object*); -extern lean_object* l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__2___closed__2; extern lean_object* l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__2; lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Command_elabAttr___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__1___closed__2; lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__6; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__2___rarg(lean_object*, lean_object*); @@ -2284,497 +2265,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Declaration_0__Lean_Elab_ return x_2; } } -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___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) { -_start: -{ -lean_object* x_7; -x_7 = lean_private_to_user_name(x_1); -if (lean_obj_tag(x_7) == 0) -{ -lean_object* x_8; lean_object* x_9; -lean_dec(x_4); -lean_dec(x_2); -x_8 = lean_box(0); -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_6); -return x_9; -} -else -{ -lean_object* x_10; uint8_t x_11; -x_10 = lean_ctor_get(x_7, 0); -lean_inc(x_10); -lean_dec(x_7); -x_11 = l_Lean_Environment_contains(x_2, x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -lean_dec(x_10); -lean_dec(x_4); -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_6); -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_19; -x_14 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_14, 0, x_10); -x_15 = l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__1___closed__2; -x_16 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); -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_Lean_Elab_Command_elabMutualDef___spec__5___rarg(x_18, x_4, x_5, x_6); -return x_19; -} -} -} -} -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -lean_object* x_7; uint8_t x_8; -lean_inc(x_1); -lean_inc(x_2); -x_7 = l_Lean_mkPrivateName(x_2, x_1); -lean_inc(x_2); -x_8 = l_Lean_Environment_contains(x_2, x_7); -lean_dec(x_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_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2___lambda__1(x_1, x_2, x_9, x_4, x_5, x_6); -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; uint8_t x_17; -lean_dec(x_2); -x_11 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_11, 0, x_1); -x_12 = l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__2___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_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_Lean_Elab_Command_elabMutualDef___spec__5___rarg(x_15, x_4, x_5, x_6); -x_17 = !lean_is_exclusive(x_16); -if (x_17 == 0) -{ -return x_16; -} -else -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_16, 0); -x_19 = lean_ctor_get(x_16, 1); -lean_inc(x_19); -lean_inc(x_18); -lean_dec(x_16); -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_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_5 = lean_st_ref_get(x_3, x_4); -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); -lean_inc(x_7); -lean_dec(x_5); -x_8 = lean_ctor_get(x_6, 0); -lean_inc(x_8); -lean_dec(x_6); -lean_inc(x_8); -x_9 = l_Lean_Environment_contains(x_8, x_1); -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_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2___lambda__2(x_1, x_8, x_10, x_2, x_3, x_7); -return x_11; -} -else -{ -lean_object* x_12; -lean_dec(x_8); -lean_inc(x_1); -x_12 = lean_private_to_user_name(x_1); -if (lean_obj_tag(x_12) == 0) -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_13 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_13, 0, x_1); -x_14 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; -x_15 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_13); -x_16 = l_Lean_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_Lean_Elab_Command_elabMutualDef___spec__5___rarg(x_17, x_2, x_3, x_7); -x_19 = !lean_is_exclusive(x_18); -if (x_19 == 0) -{ -return x_18; -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_18, 0); -x_21 = lean_ctor_get(x_18, 1); -lean_inc(x_21); -lean_inc(x_20); -lean_dec(x_18); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -return x_22; -} -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; -lean_dec(x_1); -x_23 = lean_ctor_get(x_12, 0); -lean_inc(x_23); -lean_dec(x_12); -x_24 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_24, 0, x_23); -x_25 = l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__3___closed__2; -x_26 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_24); -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_Lean_Elab_Command_elabMutualDef___spec__5___rarg(x_28, x_2, x_3, x_7); -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; -} -} -} -} -} -lean_object* l_Lean_setEnv___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; -x_5 = lean_st_ref_take(x_3, x_4); -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); -lean_inc(x_7); -lean_dec(x_5); -x_8 = !lean_is_exclusive(x_6); -if (x_8 == 0) -{ -lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_9 = lean_ctor_get(x_6, 0); -lean_dec(x_9); -lean_ctor_set(x_6, 0, x_1); -x_10 = lean_st_ref_set(x_3, x_6, x_7); -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_10, 0); -lean_dec(x_12); -x_13 = lean_box(0); -lean_ctor_set(x_10, 0, x_13); -return x_10; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_10, 1); -lean_inc(x_14); -lean_dec(x_10); -x_15 = lean_box(0); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); -return x_16; -} -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_17 = lean_ctor_get(x_6, 1); -x_18 = lean_ctor_get(x_6, 2); -x_19 = lean_ctor_get(x_6, 3); -x_20 = lean_ctor_get(x_6, 4); -x_21 = lean_ctor_get(x_6, 5); -x_22 = lean_ctor_get(x_6, 6); -lean_inc(x_22); -lean_inc(x_21); -lean_inc(x_20); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_dec(x_6); -x_23 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_23, 0, x_1); -lean_ctor_set(x_23, 1, x_17); -lean_ctor_set(x_23, 2, x_18); -lean_ctor_set(x_23, 3, x_19); -lean_ctor_set(x_23, 4, x_20); -lean_ctor_set(x_23, 5, x_21); -lean_ctor_set(x_23, 6, x_22); -x_24 = lean_st_ref_set(x_3, x_23, x_7); -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_Elab_applyVisibility___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -switch (x_1) { -case 0: -{ -lean_object* x_6; -lean_inc(x_2); -x_6 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2(x_2, x_3, x_4, x_5); -if (lean_obj_tag(x_6) == 0) -{ -uint8_t x_7; -x_7 = !lean_is_exclusive(x_6); -if (x_7 == 0) -{ -lean_object* x_8; -x_8 = lean_ctor_get(x_6, 0); -lean_dec(x_8); -lean_ctor_set(x_6, 0, x_2); -return x_6; -} -else -{ -lean_object* x_9; lean_object* x_10; -x_9 = lean_ctor_get(x_6, 1); -lean_inc(x_9); -lean_dec(x_6); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_2); -lean_ctor_set(x_10, 1, x_9); -return x_10; -} -} -else -{ -uint8_t x_11; -lean_dec(x_2); -x_11 = !lean_is_exclusive(x_6); -if (x_11 == 0) -{ -return x_6; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_6, 0); -x_13 = lean_ctor_get(x_6, 1); -lean_inc(x_13); -lean_inc(x_12); -lean_dec(x_6); -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; -} -} -} -case 1: -{ -lean_object* x_15; -lean_inc(x_3); -lean_inc(x_2); -x_15 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2(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; -x_16 = lean_ctor_get(x_15, 1); -lean_inc(x_16); -lean_dec(x_15); -x_17 = lean_st_ref_get(x_4, x_16); -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_17, 1); -lean_inc(x_19); -lean_dec(x_17); -x_20 = lean_ctor_get(x_18, 0); -lean_inc(x_20); -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_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3(x_22, x_3, x_4, x_19); -lean_dec(x_3); -x_24 = !lean_is_exclusive(x_23); -if (x_24 == 0) -{ -lean_object* x_25; -x_25 = lean_ctor_get(x_23, 0); -lean_dec(x_25); -lean_ctor_set(x_23, 0, x_2); -return x_23; -} -else -{ -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_23, 1); -lean_inc(x_26); -lean_dec(x_23); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_2); -lean_ctor_set(x_27, 1, x_26); -return x_27; -} -} -else -{ -uint8_t x_28; -lean_dec(x_3); -lean_dec(x_2); -x_28 = !lean_is_exclusive(x_15); -if (x_28 == 0) -{ -return x_15; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_15, 0); -x_30 = lean_ctor_get(x_15, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_15); -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; -} -} -} -default: -{ -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_32 = lean_st_ref_get(x_4, x_5); -x_33 = lean_ctor_get(x_32, 0); -lean_inc(x_33); -x_34 = lean_ctor_get(x_32, 1); -lean_inc(x_34); -lean_dec(x_32); -x_35 = lean_ctor_get(x_33, 0); -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_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2(x_36, x_3, x_4, x_34); -if (lean_obj_tag(x_37) == 0) -{ -uint8_t x_38; -x_38 = !lean_is_exclusive(x_37); -if (x_38 == 0) -{ -lean_object* x_39; -x_39 = lean_ctor_get(x_37, 0); -lean_dec(x_39); -lean_ctor_set(x_37, 0, x_36); -return x_37; -} -else -{ -lean_object* x_40; lean_object* x_41; -x_40 = lean_ctor_get(x_37, 1); -lean_inc(x_40); -lean_dec(x_37); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_36); -lean_ctor_set(x_41, 1, x_40); -return x_41; -} -} -else -{ -uint8_t x_42; -lean_dec(x_36); -x_42 = !lean_is_exclusive(x_37); -if (x_42 == 0) -{ -return x_37; -} -else -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_37, 0); -x_44 = lean_ctor_get(x_37, 1); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_37); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_44); -return x_45; -} -} -} -} -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___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, lean_object* x_7) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___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) { _start: { lean_object* x_8; @@ -2807,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_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1(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__8(x_14, x_12, x_5, x_6, x_17); if (lean_obj_tag(x_21) == 0) { uint8_t x_22; @@ -2972,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_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1(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__8(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; @@ -3102,7 +2593,7 @@ return x_94; } } } -static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2___closed__1() { +static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -3110,27 +2601,27 @@ x_1 = lean_mk_string("invalid 'protected' constructor in a 'private' inductive d return x_1; } } -static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2___closed__2() { +static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2___closed__1; +x_1 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___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_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2___closed__3() { +static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__2___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2___closed__2; +x_1 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___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_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { uint8_t x_9; @@ -3139,7 +2630,7 @@ if (x_9 == 0) { lean_object* x_10; lean_object* x_11; x_10 = lean_box(0); -x_11 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__1(x_1, x_2, x_3, x_10, x_6, x_7, x_8); +x_11 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__1(x_1, x_2, x_3, x_10, x_6, x_7, x_8); return x_11; } else @@ -3150,7 +2641,7 @@ if (x_12 == 0) { lean_object* x_13; lean_object* x_14; x_13 = lean_box(0); -x_14 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__1(x_1, x_2, x_3, x_13, x_6, x_7, x_8); +x_14 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__1(x_1, x_2, x_3, x_13, x_6, x_7, x_8); return x_14; } else @@ -3158,7 +2649,7 @@ else lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_dec(x_2); lean_dec(x_1); -x_15 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2___closed__3; +x_15 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__2___closed__3; x_16 = l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__5___rarg(x_15, x_6, x_7, x_8); x_17 = !lean_is_exclusive(x_16); if (x_17 == 0) @@ -3182,7 +2673,7 @@ return x_20; } } } -static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___closed__1() { +static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___closed__1() { _start: { lean_object* x_1; @@ -3190,27 +2681,27 @@ x_1 = lean_mk_string("invalid 'private' constructor in a 'private' inductive dat return x_1; } } -static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___closed__2() { +static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___closed__1; +x_1 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___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_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___closed__3() { +static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___closed__2; +x_1 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___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_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___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* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___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) { _start: { lean_object* x_8; uint8_t x_9; @@ -3280,7 +2771,7 @@ if (x_40 == 0) { lean_object* x_41; lean_object* x_42; x_41 = lean_box(0); -x_42 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2(x_38, x_23, x_2, x_1, x_41, x_36, x_6, x_39); +x_42 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__2(x_38, x_23, x_2, x_1, x_41, x_36, x_6, x_39); if (lean_obj_tag(x_42) == 0) { lean_object* x_43; lean_object* x_44; @@ -3326,7 +2817,7 @@ if (x_49 == 0) { lean_object* x_50; lean_object* x_51; x_50 = lean_box(0); -x_51 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2(x_38, x_23, x_2, x_1, x_50, x_36, x_6, x_39); +x_51 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__2(x_38, x_23, x_2, x_1, x_50, x_36, x_6, x_39); if (lean_obj_tag(x_51) == 0) { lean_object* x_52; lean_object* x_53; @@ -3371,7 +2862,7 @@ lean_dec(x_38); lean_dec(x_23); lean_dec(x_14); lean_dec(x_3); -x_58 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___closed__3; +x_58 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___closed__3; x_59 = l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__5___rarg(x_58, x_36, x_6, x_39); x_60 = !lean_is_exclusive(x_59); if (x_60 == 0) @@ -3488,7 +2979,7 @@ x_26 = x_25; x_27 = lean_unsigned_to_nat(0u); lean_inc(x_20); lean_inc(x_1); -x_28 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___boxed), 7, 4); +x_28 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___boxed), 7, 4); lean_closure_set(x_28, 0, x_1); lean_closure_set(x_28, 1, x_20); lean_closure_set(x_28, 2, x_27); @@ -3625,72 +3116,22 @@ return x_49; } } } -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___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) { -_start: -{ -lean_object* x_7; -x_7 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2___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_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2___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_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2___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_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2(x_1, x_2, x_3, x_4); -lean_dec(x_3); -return x_5; -} -} -lean_object* l_Lean_setEnv___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_setEnv___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3(x_1, x_2, x_3, x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_5; -} -} -lean_object* l_Lean_Elab_applyVisibility___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___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_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1(x_6, x_2, x_3, x_4, x_5); -lean_dec(x_4); -return x_7; -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___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, lean_object* x_7) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___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) { _start: { lean_object* x_8; -x_8 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); return x_8; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___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* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___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) { _start: { lean_object* x_9; -x_9 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); @@ -3698,11 +3139,11 @@ lean_dec(x_3); return x_9; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___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* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; -x_8 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_2); @@ -7687,18 +7128,18 @@ l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__9 = _init_l_Lean_Elab_Comm lean_mark_persistent(l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__9); l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__10 = _init_l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__10(); lean_mark_persistent(l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__10); -l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2___closed__1 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2___closed__1(); -lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2___closed__1); -l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2___closed__2 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2___closed__2(); -lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2___closed__2); -l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2___closed__3 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2___closed__3(); -lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2___closed__3); -l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___closed__1 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___closed__1(); -lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___closed__1); -l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___closed__2 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___closed__2(); -lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___closed__2); -l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___closed__3 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___closed__3(); -lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___closed__3); +l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__2___closed__1 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__2___closed__1(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__2___closed__1); +l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__2___closed__2 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__2___closed__2(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__2___closed__2); +l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__2___closed__3 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__2___closed__3(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__2___closed__3); +l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___closed__1 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___closed__1(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___closed__1); +l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___closed__2 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___closed__2(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___closed__2); +l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___closed__3 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___closed__3(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___closed__3); l_Lean_Elab_Command_elabDeclaration___closed__1 = _init_l_Lean_Elab_Command_elabDeclaration___closed__1(); lean_mark_persistent(l_Lean_Elab_Command_elabDeclaration___closed__1); l_Lean_Elab_Command_elabDeclaration___closed__2 = _init_l_Lean_Elab_Command_elabDeclaration___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Structure.c b/stage0/stdlib/Lean/Elab/Structure.c index 1ce99ed52f..926a1e7afd 100644 --- a/stage0/stdlib/Lean/Elab/Structure.c +++ b/stage0/stdlib/Lean/Elab/Structure.c @@ -13,436 +13,565 @@ #ifdef __cplusplus extern "C" { #endif -lean_object* l_Lean_setEnv___at_Lean_Elab_Command_elabEvalUnsafe___spec__4(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__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_elabAttrs___at___private_Lean_Elab_Structure_2__expandCtor___spec__3(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___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse___closed__1; +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParam(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_match__1(lean_object*); size_t l_USize_add(size_t, size_t); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__9___boxed(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_addDefaults___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_cases_on(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_6__findFieldInfo_x3f___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields_match__2___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_expandOptDeclSig(lean_object*); extern lean_object* l_Lean_Expr_eq_x3f___closed__2; lean_object* l_Lean_Elab_Command_StructFieldInfo_inhabited; lean_object* lean_erase_macro_scopes(lean_object*); -lean_object* l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__11; -lean_object* l_Lean_Meta_mkProjection___at___private_Lean_Elab_Structure_8__processSubfields___main___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_Structure_24__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___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__4; +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__4; +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___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* l_Lean_stringToMessageData(lean_object*); +extern lean_object* l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__3___closed__2; +lean_object* l___private_Lean_Elab_Structure_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*); extern lean_object* l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; lean_object* l_Lean_LocalDecl_userName(lean_object*); -lean_object* l_unreachable_x21___rarg(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Structure_18__levelMVarToParamAux___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_checkParentIsStructure___closed__5; +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse_match__1___rarg(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_Lean_Meta_mkId___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getOptional_x3f(lean_object*); -lean_object* l___private_Lean_Elab_Structure_11__withFields___main(lean_object*); -lean_object* l___private_Lean_Elab_Structure_9__withParents___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* l_Lean_Elab_Command_checkValidFieldModifier___lambda__4___closed__1; lean_object* lean_array_uget(lean_object*, size_t); -lean_object* l___private_Lean_Elab_Structure_29__mkAuxConstructions___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_io_error_to_string(lean_object*); -lean_object* l___private_Lean_Elab_Structure_11__withFields___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*, lean_object*, 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*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamFVars(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__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_23__collectLevelParamsInFVars___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_checkValidFieldModifier___closed__14; -lean_object* l_Lean_Elab_Command_checkValidFieldModifier___closed__5; -lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_2__expandCtor___spec__4___boxed(lean_object*, lean_object*, lean_object*, 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*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__11; extern lean_object* l_Option_get_x21___rarg___closed__3; -lean_object* l_Lean_Syntax_getIdAt(lean_object*, lean_object*); -lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_2__expandCtor___spec__1___lambda__3(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___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidFieldModifier___closed__3; -lean_object* l_List_map___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__4(lean_object*); -lean_object* l___private_Lean_Elab_Structure_9__withParents___main___rarg___closed__1; -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___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___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* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__5___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_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*); +lean_object* l_Lean_Meta_addGlobalInstance___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fswap(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_2__expandCtor___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_21__updateResultingUniverse___closed__1; -lean_object* l___private_Lean_Elab_Structure_2__expandCtor___closed__4; -lean_object* l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_Structure_2__expandCtor___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_21__updateResultingUniverse___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_2__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___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_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_31__elabStructureView___closed__3; -lean_object* l___private_Lean_Elab_Structure_21__updateResultingUniverse___closed__2; -lean_object* l___private_Lean_Elab_Structure_16__levelMVarToParamFVar(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_match__5(lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___closed__3; +lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__2___closed__1; +lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_9__withParents___main___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__2(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__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_elabModifiers___rarg___closed__2; extern lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__11; -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__12; -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_13__collectUsed___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* l___private_Lean_Elab_Structure_15__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___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg___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_Elab_Command_elabStructure_match__1(lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_mk_projections(lean_object*, lean_object*, lean_object*, uint8_t); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__1___closed__2; +lean_object* lean_private_to_user_name(lean_object*); +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_mkId___at___private_Lean_Elab_Structure_30__addDefaults___spec__1___boxed(lean_object*, 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*); -extern lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__3; +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___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*); -lean_object* l___private_Lean_Elab_Structure_23__collectLevelParamsInFVars(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_3__expandFields(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_isInternalSubobjectFieldName(lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_28__addProjections___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_levelMVarToParamAux_match__1(lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__3; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__8(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_match__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections_match__1___rarg(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*); lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn___main(lean_object*); -lean_object* l___private_Lean_Elab_Structure_21__updateResultingUniverse___closed__3; extern lean_object* l___private_Lean_Elab_Inductive_26__removeUnused___closed__1; -lean_object* l___private_Lean_Elab_Structure_18__levelMVarToParamAux___boxed(lean_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_elabModifiers___at___private_Lean_Elab_Structure_2__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* l_Lean_Elab_Command_checkValidFieldModifier___closed__7; +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___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___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_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_Structure_2__expandCtor___spec__2___boxed(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__3; +lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__2___closed__2; +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUsed_match__1(lean_object*); 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_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__4___closed__5; lean_object* l_Lean_Elab_Command_elabStructure___closed__10; -lean_object* l___private_Lean_Elab_Structure_20__collectUniversesFromFields(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_3__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*); -lean_object* l___private_Lean_Elab_Structure_11__withFields(lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__5; +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_Array_iterateMAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_4__validStructType___boxed(lean_object*); -lean_object* l___private_Lean_Elab_Structure_14__removeUnused(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_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_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___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__2; +lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__3___closed__1; lean_object* lean_nat_add(lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__11; -lean_object* l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__4; -lean_object* l_Lean_Meta_mkAuxDefinition___at___private_Lean_Elab_Structure_30__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___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*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure(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__4; +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, 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_List_map___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__2(lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_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_5__checkParentIsStructure___closed__2; -lean_object* l___private_Lean_Elab_Structure_24__collectLevelParamsInStructure(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_15__withUsed(lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__1___closed__1; -lean_object* l___private_Lean_Elab_Structure_25__addCtorFields___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_forMAux___main___at___private_Lean_Elab_Structure_13__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_5__checkParentIsStructure___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_checkValidFieldModifier___closed__12; -lean_object* l___private_Lean_Elab_Structure_20__collectUniversesFromFields___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_22__collectLevelParamsInFVar___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_3__expandFields___spec__1___closed__2; +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___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*); +lean_object* l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_value(lean_object*); -lean_object* l_Lean_Elab_applyVisibility___at_Lean_Elab_Command_expandDeclId___spec__3(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_checkValidFieldModifier___closed__10; extern lean_object* l_Lean_Elab_Level_elabLevel___closed__6; -lean_object* l___private_Lean_Elab_Structure_10__elabFieldTypeValue___closed__1; -lean_object* l___private_Lean_Elab_Structure_9__withParents(lean_object*); -uint8_t l___private_Lean_Elab_Structure_7__containsFieldName(lean_object*, lean_object*); lean_object* l_Lean_Level_getLevelOffset___main(lean_object*); -lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___main___spec__7___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_13__collectUsed___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_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___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +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___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__1; +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_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_20__elabImplicitLambda___main___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* 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___private_Lean_Elab_Structure_8__processSubfields(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*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__3; lean_object* l_Lean_Elab_Command_elabStructure___closed__9; +lean_object* l_Lean_Elab_Command_StructFieldInfo_isSubobject_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*); +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_List_forM___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__6(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___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_31__elabStructureView(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_2__expandCtor___spec__4___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Basic_28__withLetDeclImp___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_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*); +lean_object* l_List_forM___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__6___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_mkAuxConstructions___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_defaultCtorName; lean_object* l_Lean_Name_append___main(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withUsed_match__1(lean_object*); 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_Command_expandDeclId(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabStructure___closed__8; -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_17__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___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*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___closed__2; 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_elabAttrs___at___private_Lean_Elab_Structure_2__expandCtor___spec__3___boxed(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___private_Lean_Elab_Structure_8__processSubfields___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__10; -lean_object* l_Lean_Meta_mkAuxDefinition___at___private_Lean_Elab_Structure_30__addDefaults___spec__2___closed__1; +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*); +lean_object* l_Lean_Meta_assignLevelMVar___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse___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_Term_getFVarLocalDecl_x21(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(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_25__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___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__7; +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withUsed(lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___lambda__1(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* l_Lean_Elab_Command_StructFieldInfo_inhabited___closed__1; lean_object* l_Lean_Expr_fvarId_x21(lean_object*); -lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_2__expandCtor___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__3(lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_checkValidFieldModifier___closed__15; -lean_object* l___private_Lean_Elab_Structure_18__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_Lean_Meta_inferType___at___private_Lean_Elab_Structure_16__levelMVarToParamFVar___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_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; -lean_object* l_Lean_Meta_mkAuxDefinition___at___private_Lean_Elab_Structure_30__addDefaults___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_mk_projections(lean_object*, lean_object*, lean_object*, uint8_t); +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*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___boxed(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___boxed(lean_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_AppBuilder_25__mkProjectionImp___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_addGlobalInstance___at___private_Lean_Elab_Structure_31__elabStructureView___spec__5___boxed(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_2__expandCtor___spec__1___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_1__defaultCtorName; -lean_object* l___private_Lean_Elab_Structure_2__expandCtor___closed__2; -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_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*); +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; -lean_object* l___private_Lean_Elab_Structure_2__expandCtor___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__2; lean_object* lean_st_mk_ref(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse_match__1(lean_object*); +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* lean_name_mk_string(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_12__getResultUniverse(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__7; +lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__1___closed__3; 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*); extern lean_object* l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__4; -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__3; +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInFVar(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_checkParentIsStructure___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue_match__2(lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabStructure___lambda__2___boxed(lean_object**); -lean_object* l___private_Lean_Elab_Structure_2__expandCtor___closed__1; -lean_object* l___private_Lean_Elab_Structure_5__checkParentIsStructure(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_StructFieldInfo_isSubobject___boxed(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__8(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_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*); -extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__5; +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; +extern lean_object* l_Lean_protectedExt; +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___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* l_Lean_Level_getOffsetAux___main(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_8__processSubfields___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*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___boxed(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__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___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; +lean_object* l_List_map___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__2(lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addCtorFields_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Closure_1__mkAuxDefinitionImp___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__9; -lean_object* l___private_Lean_Elab_Structure_9__withParents___main(lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__6___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults_match__1(lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView_match__1(lean_object*); extern lean_object* l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__3; -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Structure_18__levelMVarToParamAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_21__updateResultingUniverse(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_16__levelMVarToParamFVar___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(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); lean_object* lean_mk_no_confusion(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_checkValidFieldModifier___closed__9; -lean_object* l___private_Lean_Elab_Structure_2__expandCtor___closed__5; -lean_object* l___private_Lean_Elab_Structure_31__elabStructureView___closed__1; -uint8_t l___private_Lean_Elab_Structure_4__validStructType(lean_object*); -lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_2__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_8__processSubfields___main___rarg___closed__7; -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_13__collectUsed___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_Structure_0__Lean_Elab_Command_elabFieldTypeValue_match__3___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_addGlobalInstance___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___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_Structure_0__Lean_Elab_Command_withFields___rarg___closed__5; +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_Array_forMAux___main___at___private_Lean_Elab_Structure_17__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___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__5; -extern lean_object* l___private_Lean_Meta_AppBuilder_25__mkProjectionImp___main___closed__7; 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_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_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*); 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*); uint8_t l_Lean_BinderInfo_isInstImplicit(uint8_t); -lean_object* l___private_Lean_Elab_Structure_15__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___private_Lean_Elab_Structure_31__elabStructureView___closed__2; +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*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_23__collectLevelParamsInFVars___spec__1(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_Elab_Inductive_34__mkAuxConstructions___closed__2; -lean_object* l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__5; -lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_Structure_13__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_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__7; -lean_object* l_Array_filterAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__1(lean_object*, lean_object*, lean_object*); +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___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__3; +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; +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__2___closed__2; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* 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_Lean_Elab_Command_checkValidFieldModifier___closed__11; +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*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents(lean_object*); +lean_object* l_Lean_PersistentEnvExtension_addEntry___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabBinders___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* 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___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__5; +lean_object* l_Array_findMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*); +uint8_t l___private_Lean_Elab_Structure_0__Lean_Elab_Command_containsFieldName(lean_object*, lean_object*); extern lean_object* l_Lean_nullKind___closed__2; -lean_object* l___private_Lean_Elab_Structure_2__expandCtor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__3; -lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_2__expandCtor___spec__4___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addCtorFields_match__1___rarg(uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields(lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_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_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__9; +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue_match__1(lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__1; extern lean_object* l_Lean_Elab_elabAttr___rarg___lambda__3___closed__3; -lean_object* l_Lean_Meta_mkProjection___at___private_Lean_Elab_Structure_8__processSubfields___main___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_elabDeclAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_type(lean_object*); -lean_object* l___private_Lean_Elab_Structure_25__addCtorFields___main___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_3__expandFields___spec__2___closed__8; +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__3; +lean_object* l___private_Lean_Elab_Structure_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*, lean_object*); lean_object* l_Lean_Syntax_isIdOrAtom_x3f(lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__4; 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_Lean_Elab_Term_resetMessageLog(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_2__expandCtor___spec__4___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +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*); extern lean_object* l_Lean_Elab_elabAttr___rarg___closed__3; lean_object* lean_add_instance(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Syntax_inhabited; extern lean_object* l_Lean_Prod_hasQuote___rarg___closed__3; lean_object* l_Lean_Name_getString_x21(lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___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_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__3___closed__2; +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; -lean_object* l___private_Lean_Elab_Structure_3__expandFields___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_assignLevelMVar___at___private_Lean_Elab_Structure_21__updateResultingUniverse___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_Structure_0__Lean_Elab_Command_collectLevelParamsInFVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_BinderInfo_beq(uint8_t, uint8_t); -lean_object* l___private_Lean_Elab_Structure_12__getResultUniverse___boxed(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___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_Lean_Meta_withLetDecl___at___private_Lean_Elab_Structure_8__processSubfields___main___spec__2(lean_object*); -lean_object* l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__6; -lean_object* l_Array_findMAux___main___at___private_Lean_Elab_Structure_6__findFieldInfo_x3f___spec__1(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__1; 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_12__getResultUniverse___closed__1; -lean_object* l___private_Lean_Elab_Structure_1__defaultCtorName___closed__1; -lean_object* l___private_Lean_Elab_Structure_19__levelMVarToParam(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_8__processSubfields___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*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_25__addCtorFields(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_8__processSubfields___main___rarg___closed__3; -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__2; -lean_object* l___private_Lean_Elab_Structure_12__getResultUniverse___closed__2; +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*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Structure_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*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInStructure(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_match__4(lean_object*); 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___private_Lean_Elab_Structure_27__mkProjections___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_Structure_13__collectUsed___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkPrivateName(lean_object*, lean_object*); +lean_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; 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___private_Lean_Elab_Structure_31__elabStructureView___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_checkValidFieldModifier___closed__8; +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_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*); +lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamFVar___spec__1(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_Structure_0__Lean_Elab_Command_containsFieldName___boxed(lean_object*, lean_object*); lean_object* lean_metavar_ctx_assign_level(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_filterMAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__3(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_3__expandFields___spec__2___closed__1; +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___closed__2; +lean_object* l___private_Lean_Elab_Structure_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*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__3___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___lambda__3(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___lambda__1(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_elabStructure___closed__1; -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__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_Array_filterAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__7(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_2__expandCtor___spec__5(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_addGlobalInstance___at___private_Lean_Elab_Structure_31__elabStructureView___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__6; -lean_object* l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_Term_19__elabImplicitLambdaAux___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_checkValidFieldModifier___closed__4; +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3___boxed(lean_object**); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields_match__1(lean_object*); +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*); lean_object* l_Lean_Elab_Command_elabStructure(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__13; +lean_object* l_Lean_Elab_Command_StructFieldInfo_isFromParent_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUsed_match__1___rarg(lean_object*, lean_object*, lean_object*); +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_Array_umapMAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__8___closed__1; +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_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___private_Lean_Elab_Structure_31__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*); +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; -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__14; -lean_object* l___private_Lean_Elab_Structure_11__withFields___rarg(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_ResolveName_resolveNamespaceUsingScope___closed__3; +lean_object* l_Lean_Elab_Command_StructFieldInfo_isSubobject_match__1___rarg(uint8_t, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__2___closed__3; lean_object* l_Lean_Elab_Term_elabType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_2__expandCtor___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__6; -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__5; +extern lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__4; +lean_object* l_Array_filterMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkForall(lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_30__addDefaults(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_2__expandCtor___closed__6; -lean_object* l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__12; lean_object* l___private_Lean_Elab_Command_4__getVarDecls(lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__10(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_withLetDecl___at_Lean_Elab_Term_elabLetDeclAux___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_AppBuilder_1__mkIdImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_2__expandCtor___spec__4___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___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_Structure_0__Lean_Elab_Command_processSubfields___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__8___closed__2; uint8_t l_Lean_Syntax_isNone(lean_object*); lean_object* lean_set_reducibility_status(lean_object*, lean_object*, uint8_t); -lean_object* l___private_Lean_Elab_Structure_22__collectLevelParamsInFVar(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_Structure_31__elabStructureView___spec__8___closed__2; -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__15; -lean_object* l___private_Lean_Elab_Structure_19__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___private_Lean_Elab_Structure_10__elabFieldTypeValue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Elab_Command_StructFieldInfo_isFromParent(lean_object*); lean_object* l_Lean_Elab_Modifiers_addAttribute(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields___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_rec_on(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_6__findFieldInfo_x3f(lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__8___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_20__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_Lean_Meta_inferType___at___private_Lean_Elab_Structure_16__levelMVarToParamFVar___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_forM___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__6___boxed(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_24__collectLevelParamsInStructure___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_Command_StructFieldInfo_isFromParent_match__1___rarg(uint8_t, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_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*); +lean_object* l_List_forM___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__6(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__10; lean_object* l_Array_toList___rarg(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*); extern lean_object* l_Lean_Expr_Inhabited; extern lean_object* l_Lean_Elab_Command_CtorView_inhabited___closed__1; -lean_object* l___private_Lean_Elab_Structure_9__withParents___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* l_Array_umapMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__8___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_withParents_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__7; -lean_object* l_Lean_Meta_assignLevelMVar___at___private_Lean_Elab_Structure_21__updateResultingUniverse___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_Structure_3__expandFields___spec__2___closed__6; -lean_object* l_Lean_Meta_mkId___at___private_Lean_Elab_Structure_30__addDefaults___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_abstract(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_8__processSubfields___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*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_checkValidFieldModifier___closed__13; -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_23__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___private_Lean_Elab_Structure_8__processSubfields___main(lean_object*); +lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamFVar___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__10; -lean_object* l___private_Lean_Elab_Structure_11__withFields___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* l_Array_forMAux___main___at___private_Lean_Elab_Structure_30__addDefaults___spec__3(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_match__1(lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_validStructType_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCtor(lean_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(lean_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__1(lean_object*, lean_object*, lean_object*, lean_object*, 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; -lean_object* l___private_Lean_Elab_Structure_17__levelMVarToParamFVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); 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___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__2; +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_Lean_Meta_withLetDecl___at___private_Lean_Elab_Structure_8__processSubfields___main___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_26__mkCtor___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse___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; +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamFVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_inferImplicit___main(lean_object*, lean_object*, uint8_t); -lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_2__expandCtor___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_28__addProjections(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_9__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___private_Lean_Elab_Structure_2__expandCtor___closed__3; -lean_object* l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__1; -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__1___closed__3; -lean_object* l___private_Lean_Elab_Structure_17__levelMVarToParamFVars___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_expandFields_match__2(lean_object*); +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_Elab_Command_checkValidCtorModifier(lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_System_FilePath_dirName___closed__1; -lean_object* l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__8; +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*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_11__withFields___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*, lean_object*); -lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_2__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_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__9; +lean_object* l_Lean_setEnv___at_Lean_Elab_Term_declareTacticSyntax___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_StructFieldInfo_isFromParent_match__1(lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__2(lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__2___closed__2; lean_object* l_Lean_Elab_Command_elabStructure___closed__7; -uint8_t l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__16; +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f(lean_object*, lean_object*); lean_object* l_Lean_Level_mkNaryMax___main(lean_object*); -lean_object* l___private_Lean_Elab_Structure_13__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_8__processSubfields___main___rarg___closed__2; -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_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__4; -lean_object* l___private_Lean_Elab_Structure_7__containsFieldName___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_24__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_31__elabStructureView___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___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___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_9__withParents___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* l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__1; -lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_2__expandCtor___spec__4___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_26__mkCtor(lean_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_31__elabStructureView___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___closed__1; +lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__4___closed__3; +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addCtorFields_match__2(lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamAux_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidFieldModifier(lean_object*, lean_object*, lean_object*, 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_Elab_Command_StructFieldInfo_isSubobject_match__1(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_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_2__expandCtor___spec__4___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_updateResultingUniverse___closed__3; +lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___boxed(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___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__4; +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_CollectLevelParams_main___main(lean_object*, lean_object*); -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_30__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_findMAux___main___at___private_Lean_Elab_Structure_6__findFieldInfo_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_checkValidFieldModifier___closed__6; +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_Structure_0__Lean_Elab_Command_collectUniversesFromFields(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__2___closed__2; +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__6(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue_match__3(lean_object*); +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_8__processSubfields___main___rarg___closed__8; -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_13__collectUsed___spec__3(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_20__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___private_Lean_Elab_Structure_14__removeUnused___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_31__elabStructureView___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__2___closed__3; +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_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*); +extern lean_object* l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__1___closed__2; +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_29__mkAuxConstructions(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_12__getResultUniverse___closed__3; +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*); +static uint8_t _init_l_Lean_Elab_Command_StructFieldInfo_inferMod___default() { +_start: +{ +uint8_t x_1; +x_1 = 0; +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_StructFieldInfo_value_x3f___default() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} static lean_object* _init_l_Lean_Elab_Command_StructFieldInfo_inhabited___closed__1() { _start: { @@ -470,6 +599,48 @@ x_1 = l_Lean_Elab_Command_StructFieldInfo_inhabited___closed__1; return x_1; } } +lean_object* l_Lean_Elab_Command_StructFieldInfo_isFromParent_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) == 1) +{ +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_Lean_Elab_Command_StructFieldInfo_isFromParent_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_StructFieldInfo_isFromParent_match__1___rarg___boxed), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_StructFieldInfo_isFromParent_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_Lean_Elab_Command_StructFieldInfo_isFromParent_match__1___rarg(x_4, x_2, x_3); +return x_5; +} +} uint8_t l_Lean_Elab_Command_StructFieldInfo_isFromParent(lean_object* x_1) { _start: { @@ -501,6 +672,48 @@ x_3 = lean_box(x_2); return x_3; } } +lean_object* l_Lean_Elab_Command_StructFieldInfo_isSubobject_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) == 2) +{ +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_Lean_Elab_Command_StructFieldInfo_isSubobject_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_StructFieldInfo_isSubobject_match__1___rarg___boxed), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_StructFieldInfo_isSubobject_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_Lean_Elab_Command_StructFieldInfo_isSubobject_match__1___rarg(x_4, x_2, x_3); +return x_5; +} +} uint8_t l_Lean_Elab_Command_StructFieldInfo_isSubobject(lean_object* x_1) { _start: { @@ -532,7 +745,7 @@ x_3 = lean_box(x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Structure_1__defaultCtorName___closed__1() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_defaultCtorName___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -542,15 +755,77 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Structure_1__defaultCtorName() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_defaultCtorName() { _start: { lean_object* x_1; -x_1 = l___private_Lean_Elab_Structure_1__defaultCtorName___closed__1; +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_defaultCtorName___closed__1; return x_1; } } -lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_2__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) { +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: { lean_object* x_7; lean_object* x_8; @@ -563,7 +838,7 @@ lean_ctor_set(x_8, 1, x_6); return x_8; } } -lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_2__expandCtor___spec__4___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_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; @@ -577,7 +852,7 @@ if (x_11 == 0) { lean_object* x_12; lean_object* x_13; x_12 = lean_box(0); -x_13 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_2__expandCtor___spec__4___lambda__1(x_2, x_8, x_12, x_4, x_5, x_6); +x_13 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__1(x_2, x_8, x_12, x_4, x_5, x_6); return x_13; } else @@ -586,12 +861,12 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_dec(x_8); x_14 = lean_box(0); x_15 = lean_box(0); -x_16 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_2__expandCtor___spec__4___lambda__1(x_2, x_14, x_15, x_4, x_5, x_6); +x_16 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__1(x_2, x_14, x_15, x_4, x_5, x_6); return x_16; } } } -lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_2__expandCtor___spec__4___lambda__3(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_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; @@ -619,7 +894,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_Command_3__elabCommandUsing___main___spec__1___rarg(x_15, x_3, x_4, x_8); +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_17 = !lean_is_exclusive(x_16); if (x_17 == 0) { @@ -643,13 +918,13 @@ else { lean_object* x_21; lean_object* x_22; x_21 = lean_box(0); -x_22 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_2__expandCtor___spec__4___lambda__2(x_1, x_2, x_21, x_3, x_4, x_8); +x_22 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__2(x_1, x_2, x_21, x_3, x_4, x_8); lean_dec(x_3); return x_22; } } } -lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_2__expandCtor___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; @@ -676,7 +951,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_Command_3__elabCommandUsing___main___spec__1___rarg(x_14, x_2, x_3, x_10); +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_16 = !lean_is_exclusive(x_15); if (x_16 == 0) { @@ -721,7 +996,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_Command_3__elabCommandUsing___main___spec__1___rarg(x_27, x_26, x_3, x_10); +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_29 = lean_ctor_get(x_28, 0); lean_inc(x_29); x_30 = lean_ctor_get(x_28, 1); @@ -753,12 +1028,12 @@ lean_inc(x_33); lean_dec(x_7); x_34 = lean_box(0); x_35 = lean_name_mk_string(x_34, x_33); -x_36 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_2__expandCtor___spec__4___lambda__3(x_1, x_35, x_2, x_3, x_4); +x_36 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__3(x_1, x_35, x_2, x_3, x_4); return x_36; } } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_2__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) { +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) { _start: { uint8_t x_8; @@ -777,7 +1052,7 @@ else lean_object* x_10; lean_object* x_11; x_10 = lean_array_uget(x_1, x_3); lean_inc(x_5); -x_11 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_2__expandCtor___spec__4(x_10, x_5, x_6, x_7); +x_11 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4(x_10, x_5, x_6, x_7); lean_dec(x_10); if (lean_obj_tag(x_11) == 0) { @@ -822,7 +1097,7 @@ return x_21; } } } -lean_object* l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_2__expandCtor___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; @@ -832,7 +1107,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_2__expandCtor___spec__5(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__6(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) { @@ -880,18 +1155,77 @@ return x_18; } } } -lean_object* l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_Structure_2__expandCtor___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_unsigned_to_nat(1u); x_6 = l_Lean_Syntax_getArg(x_1, x_5); -x_7 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_2__expandCtor___spec__3(x_6, x_2, x_3, x_4); +x_7 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3(x_6, x_2, x_3, x_4); lean_dec(x_6); return x_7; } } -lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_2__expandCtor___spec__1___lambda__1(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* 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) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_6 = l_Lean_Elab_Command_getRef(x_3, x_4, x_5); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = l_Lean_replaceRef(x_1, x_7); +lean_dec(x_7); +x_10 = !lean_is_exclusive(x_3); +if (x_10 == 0) +{ +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); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_13 = lean_ctor_get(x_3, 0); +x_14 = lean_ctor_get(x_3, 1); +x_15 = lean_ctor_get(x_3, 2); +x_16 = lean_ctor_get(x_3, 3); +x_17 = lean_ctor_get(x_3, 4); +x_18 = lean_ctor_get(x_3, 5); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_3); +x_19 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_19, 0, x_13); +lean_ctor_set(x_19, 1, x_14); +lean_ctor_set(x_19, 2, x_15); +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); +return x_20; +} +} +} +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__7(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); +return x_2; +} +} +lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___lambda__1(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) { _start: { uint8_t x_10; uint8_t x_11; uint8_t x_12; @@ -1052,7 +1386,7 @@ return x_42; } } } -lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_2__expandCtor___spec__1___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; @@ -1061,7 +1395,7 @@ if (lean_obj_tag(x_10) == 0) { lean_object* x_11; lean_object* x_12; x_11 = l_Array_empty___closed__1; -x_12 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_2__expandCtor___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_6, x_11, x_7, x_8, x_9); +x_12 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_6, x_11, x_7, x_8, x_9); lean_dec(x_7); return x_12; } @@ -1072,7 +1406,7 @@ x_13 = lean_ctor_get(x_10, 0); lean_inc(x_13); lean_dec(x_10); lean_inc(x_7); -x_14 = l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_Structure_2__expandCtor___spec__2(x_13, x_7, x_8, x_9); +x_14 = l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__2(x_13, x_7, x_8, x_9); lean_dec(x_13); if (lean_obj_tag(x_14) == 0) { @@ -1082,7 +1416,7 @@ lean_inc(x_15); x_16 = lean_ctor_get(x_14, 1); lean_inc(x_16); lean_dec(x_14); -x_17 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_2__expandCtor___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_6, x_15, x_7, x_8, x_16); +x_17 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_6, x_15, x_7, x_8, x_16); lean_dec(x_7); return x_17; } @@ -1113,7 +1447,7 @@ return x_21; } } } -lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_2__expandCtor___spec__1___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* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; @@ -1122,7 +1456,7 @@ if (lean_obj_tag(x_10) == 0) { uint8_t x_11; lean_object* x_12; x_11 = 0; -x_12 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_2__expandCtor___spec__1___lambda__2(x_1, x_2, x_3, x_6, x_4, x_11, x_7, x_8, x_9); +x_12 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___lambda__2(x_1, x_2, x_3, x_6, x_4, x_11, x_7, x_8, x_9); return x_12; } else @@ -1146,7 +1480,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_Lean_Elab_Command_elabCommand___main___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__7___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) @@ -1172,7 +1506,7 @@ else uint8_t x_25; lean_object* x_26; lean_dec(x_13); x_25 = 1; -x_26 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_2__expandCtor___spec__1___lambda__2(x_1, x_2, x_3, x_6, x_4, x_25, x_7, x_8, x_9); +x_26 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___lambda__2(x_1, x_2, x_3, x_6, x_4, x_25, x_7, x_8, x_9); return x_26; } } @@ -1182,13 +1516,13 @@ uint8_t x_27; lean_object* x_28; lean_dec(x_14); lean_dec(x_13); x_27 = 2; -x_28 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_2__expandCtor___spec__1___lambda__2(x_1, x_2, x_3, x_6, x_4, x_27, x_7, x_8, x_9); +x_28 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___lambda__2(x_1, x_2, x_3, x_6, x_4, x_27, x_7, x_8, x_9); return x_28; } } } } -lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_2__expandCtor___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; @@ -1210,7 +1544,7 @@ if (lean_obj_tag(x_17) == 0) { lean_object* x_18; lean_object* x_19; x_18 = lean_box(0); -x_19 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_2__expandCtor___spec__1___lambda__3(x_12, x_16, x_14, x_8, x_10, x_18, x_2, x_3, x_4); +x_19 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___lambda__3(x_12, x_16, x_14, x_8, x_10, x_18, x_2, x_3, x_4); lean_dec(x_10); lean_dec(x_8); lean_dec(x_14); @@ -1241,7 +1575,7 @@ x_26 = lean_string_utf8_extract(x_23, x_5, x_25); lean_dec(x_25); lean_dec(x_23); lean_ctor_set(x_17, 0, x_26); -x_27 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_2__expandCtor___spec__1___lambda__3(x_12, x_16, x_14, x_8, x_10, x_17, x_2, x_3, x_4); +x_27 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___lambda__3(x_12, x_16, x_14, x_8, x_10, x_17, x_2, x_3, x_4); lean_dec(x_10); lean_dec(x_8); lean_dec(x_14); @@ -1268,7 +1602,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_Lean_Elab_Command_elabCommand___main___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__7___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) @@ -1312,7 +1646,7 @@ lean_dec(x_42); lean_dec(x_40); x_44 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_44, 0, x_43); -x_45 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_2__expandCtor___spec__1___lambda__3(x_12, x_16, x_14, x_8, x_10, x_44, x_2, x_3, x_4); +x_45 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___lambda__3(x_12, x_16, x_14, x_8, x_10, x_44, x_2, x_3, x_4); lean_dec(x_10); lean_dec(x_8); lean_dec(x_14); @@ -1338,7 +1672,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_Lean_Elab_Command_elabCommand___main___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__7___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); @@ -1365,7 +1699,649 @@ return x_55; } } } -static lean_object* _init_l___private_Lean_Elab_Structure_2__expandCtor___closed__1() { +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) { +_start: +{ +lean_object* x_7; +x_7 = lean_private_to_user_name(x_1); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +lean_dec(x_4); +lean_dec(x_2); +x_8 = lean_box(0); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_6); +return x_9; +} +else +{ +lean_object* x_10; uint8_t x_11; +x_10 = lean_ctor_get(x_7, 0); +lean_inc(x_10); +lean_dec(x_7); +x_11 = l_Lean_Environment_contains(x_2, x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +lean_dec(x_10); +lean_dec(x_4); +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_6); +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_19; +x_14 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_14, 0, x_10); +x_15 = l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__1___closed__2; +x_16 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +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); +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) { +_start: +{ +lean_object* x_7; uint8_t x_8; +lean_inc(x_1); +lean_inc(x_2); +x_7 = l_Lean_mkPrivateName(x_2, x_1); +lean_inc(x_2); +x_8 = l_Lean_Environment_contains(x_2, x_7); +lean_dec(x_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); +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; uint8_t x_17; +lean_dec(x_2); +x_11 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_11, 0, x_1); +x_12 = l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__2___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_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_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +return x_16; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_16, 0); +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_16); +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_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) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_5 = lean_st_ref_get(x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = lean_ctor_get(x_6, 0); +lean_inc(x_8); +lean_dec(x_6); +lean_inc(x_8); +x_9 = l_Lean_Environment_contains(x_8, x_1); +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); +return x_11; +} +else +{ +lean_object* x_12; +lean_dec(x_8); +lean_inc(x_1); +x_12 = lean_private_to_user_name(x_1); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_13 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_13, 0, x_1); +x_14 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__3___closed__3; +x_15 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_13); +x_16 = l_Lean_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_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +return x_18; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_18, 0); +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_18); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; +lean_dec(x_1); +x_23 = lean_ctor_get(x_12, 0); +lean_inc(x_23); +lean_dec(x_12); +x_24 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_24, 0, x_23); +x_25 = l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__3___closed__2; +x_26 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_24); +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_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; +} +} +} +} +} +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) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_5 = lean_st_ref_take(x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = !lean_is_exclusive(x_6); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_9 = lean_ctor_get(x_6, 0); +lean_dec(x_9); +lean_ctor_set(x_6, 0, x_1); +x_10 = lean_st_ref_set(x_3, x_6, x_7); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_10, 0); +lean_dec(x_12); +x_13 = lean_box(0); +lean_ctor_set(x_10, 0, x_13); +return x_10; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_10, 1); +lean_inc(x_14); +lean_dec(x_10); +x_15 = lean_box(0); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +return x_16; +} +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_17 = lean_ctor_get(x_6, 1); +x_18 = lean_ctor_get(x_6, 2); +x_19 = lean_ctor_get(x_6, 3); +x_20 = lean_ctor_get(x_6, 4); +x_21 = lean_ctor_get(x_6, 5); +x_22 = lean_ctor_get(x_6, 6); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_6); +x_23 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_23, 0, x_1); +lean_ctor_set(x_23, 1, x_17); +lean_ctor_set(x_23, 2, x_18); +lean_ctor_set(x_23, 3, x_19); +lean_ctor_set(x_23, 4, x_20); +lean_ctor_set(x_23, 5, x_21); +lean_ctor_set(x_23, 6, x_22); +x_24 = lean_st_ref_set(x_3, x_23, x_7); +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_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) { +_start: +{ +switch (x_1) { +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); +if (lean_obj_tag(x_6) == 0) +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_6); +if (x_7 == 0) +{ +lean_object* x_8; +x_8 = lean_ctor_get(x_6, 0); +lean_dec(x_8); +lean_ctor_set(x_6, 0, x_2); +return x_6; +} +else +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_6, 1); +lean_inc(x_9); +lean_dec(x_6); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_2); +lean_ctor_set(x_10, 1, x_9); +return x_10; +} +} +else +{ +uint8_t x_11; +lean_dec(x_2); +x_11 = !lean_is_exclusive(x_6); +if (x_11 == 0) +{ +return x_6; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_6, 0); +x_13 = lean_ctor_get(x_6, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_6); +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; +} +} +} +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); +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; +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = lean_st_ref_get(x_4, x_16); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +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); +lean_dec(x_3); +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) +{ +lean_object* x_25; +x_25 = lean_ctor_get(x_23, 0); +lean_dec(x_25); +lean_ctor_set(x_23, 0, x_2); +return x_23; +} +else +{ +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_23, 1); +lean_inc(x_26); +lean_dec(x_23); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_2); +lean_ctor_set(x_27, 1, x_26); +return x_27; +} +} +else +{ +uint8_t x_28; +lean_dec(x_3); +lean_dec(x_2); +x_28 = !lean_is_exclusive(x_15); +if (x_28 == 0) +{ +return x_15; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_15, 0); +x_30 = lean_ctor_get(x_15, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_15); +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; +} +} +} +default: +{ +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_32 = lean_st_ref_get(x_4, x_5); +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +lean_dec(x_32); +x_35 = lean_ctor_get(x_33, 0); +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); +if (lean_obj_tag(x_37) == 0) +{ +uint8_t x_38; +x_38 = !lean_is_exclusive(x_37); +if (x_38 == 0) +{ +lean_object* x_39; +x_39 = lean_ctor_get(x_37, 0); +lean_dec(x_39); +lean_ctor_set(x_37, 0, x_36); +return x_37; +} +else +{ +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +lean_dec(x_37); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_36); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +} +else +{ +uint8_t x_42; +lean_dec(x_36); +x_42 = !lean_is_exclusive(x_37); +if (x_42 == 0) +{ +return x_37; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_37, 0); +x_44 = lean_ctor_get(x_37, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_37); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; +} +} +} +} +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; +x_8 = lean_unsigned_to_nat(2u); +x_9 = l_Lean_Syntax_getArg(x_1, x_8); +x_10 = l_Lean_Syntax_isNone(x_9); +lean_dec(x_9); +x_11 = lean_unsigned_to_nat(1u); +x_12 = l_Lean_Syntax_getArg(x_1, x_11); +x_13 = l_Lean_Syntax_getId(x_12); +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); +if (x_10 == 0) +{ +if (lean_obj_tag(x_16) == 0) +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_object* x_18; uint8_t x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_16, 0); +x_19 = 1; +x_20 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_20, 0, x_1); +lean_ctor_set(x_20, 1, x_3); +lean_ctor_set(x_20, 2, x_13); +lean_ctor_set(x_20, 3, x_18); +lean_ctor_set_uint8(x_20, sizeof(void*)*4, x_19); +lean_ctor_set(x_16, 0, x_20); +return x_16; +} +else +{ +lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; +x_21 = lean_ctor_get(x_16, 0); +x_22 = lean_ctor_get(x_16, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_16); +x_23 = 1; +x_24 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_24, 0, x_1); +lean_ctor_set(x_24, 1, x_3); +lean_ctor_set(x_24, 2, x_13); +lean_ctor_set(x_24, 3, x_21); +lean_ctor_set_uint8(x_24, sizeof(void*)*4, x_23); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_22); +return x_25; +} +} +else +{ +uint8_t x_26; +lean_dec(x_13); +lean_dec(x_3); +lean_dec(x_1); +x_26 = !lean_is_exclusive(x_16); +if (x_26 == 0) +{ +return x_16; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_16, 0); +x_28 = lean_ctor_get(x_16, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_16); +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 +{ +if (lean_obj_tag(x_16) == 0) +{ +uint8_t x_30; +x_30 = !lean_is_exclusive(x_16); +if (x_30 == 0) +{ +lean_object* x_31; uint8_t x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_16, 0); +x_32 = 0; +x_33 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_33, 0, x_1); +lean_ctor_set(x_33, 1, x_3); +lean_ctor_set(x_33, 2, x_13); +lean_ctor_set(x_33, 3, x_31); +lean_ctor_set_uint8(x_33, sizeof(void*)*4, x_32); +lean_ctor_set(x_16, 0, x_33); +return x_16; +} +else +{ +lean_object* x_34; lean_object* x_35; uint8_t x_36; lean_object* x_37; lean_object* x_38; +x_34 = lean_ctor_get(x_16, 0); +x_35 = lean_ctor_get(x_16, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_16); +x_36 = 0; +x_37 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_37, 0, x_1); +lean_ctor_set(x_37, 1, x_3); +lean_ctor_set(x_37, 2, x_13); +lean_ctor_set(x_37, 3, x_34); +lean_ctor_set_uint8(x_37, sizeof(void*)*4, x_36); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_35); +return x_38; +} +} +else +{ +uint8_t x_39; +lean_dec(x_13); +lean_dec(x_3); +lean_dec(x_1); +x_39 = !lean_is_exclusive(x_16); +if (x_39 == 0) +{ +return x_16; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_16, 0); +x_41 = lean_ctor_get(x_16, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_16); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +} +} +} +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -1373,27 +2349,79 @@ x_1 = lean_mk_string("invalid 'protected' constructor in a 'private' structure") return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Structure_2__expandCtor___closed__2() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_2__expandCtor___closed__1; +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___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_Structure_2__expandCtor___closed__3() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__2___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_2__expandCtor___closed__2; +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__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___private_Lean_Elab_Structure_2__expandCtor___closed__4() { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___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: +{ +uint8_t x_9; +x_9 = l_Lean_Elab_Modifiers_isProtected(x_3); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_box(0); +x_11 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__1(x_1, x_2, x_3, x_10, x_6, x_7, x_8); +return x_11; +} +else +{ +uint8_t x_12; +x_12 = l_Lean_Elab_Modifiers_isPrivate(x_4); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_box(0); +x_14 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__1(x_1, x_2, x_3, x_13, x_6, x_7, x_8); +return x_14; +} +else +{ +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_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +return x_16; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_16, 0); +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_16); +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; +} +} +} +} +} +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___closed__1() { _start: { lean_object* x_1; @@ -1401,27 +2429,27 @@ x_1 = lean_mk_string("invalid 'private' constructor in a 'private' structure"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Structure_2__expandCtor___closed__5() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_2__expandCtor___closed__4; +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___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_Structure_2__expandCtor___closed__6() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_2__expandCtor___closed__5; +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___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_Structure_2__expandCtor(lean_object* 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___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; lean_object* x_8; uint8_t x_9; @@ -1452,942 +2480,317 @@ x_18 = lean_ctor_get(x_4, 6); lean_dec(x_18); lean_ctor_set(x_4, 6, x_16); lean_inc(x_4); -x_19 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_2__expandCtor___spec__1(x_12, x_4, x_5, x_15); +x_19 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1(x_12, x_4, x_5, x_15); lean_dec(x_12); if (lean_obj_tag(x_19) == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_100; +lean_object* x_20; lean_object* x_21; lean_object* x_22; x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); x_21 = lean_ctor_get(x_19, 1); lean_inc(x_21); lean_dec(x_19); lean_inc(x_4); -x_100 = l_Lean_Elab_Command_checkValidCtorModifier(x_20, x_4, x_5, x_21); -if (lean_obj_tag(x_100) == 0) +x_22 = l_Lean_Elab_Command_checkValidCtorModifier(x_20, x_4, x_5, x_21); +if (lean_obj_tag(x_22) == 0) { -lean_object* x_101; uint8_t x_102; -x_101 = lean_ctor_get(x_100, 1); -lean_inc(x_101); -lean_dec(x_100); -x_102 = l_Lean_Elab_Modifiers_isPrivate(x_20); -if (x_102 == 0) +lean_object* x_23; uint8_t x_24; +x_23 = lean_ctor_get(x_22, 1); +lean_inc(x_23); +lean_dec(x_22); +x_24 = l_Lean_Elab_Modifiers_isPrivate(x_20); +if (x_24 == 0) { -x_22 = x_101; -goto block_99; +lean_object* x_25; lean_object* x_26; +x_25 = lean_box(0); +x_26 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__2(x_11, x_3, x_20, x_2, x_25, x_4, x_5, x_23); +return x_26; } else { -uint8_t x_103; -x_103 = l_Lean_Elab_Modifiers_isPrivate(x_2); -if (x_103 == 0) +uint8_t x_27; +x_27 = l_Lean_Elab_Modifiers_isPrivate(x_2); +if (x_27 == 0) { -x_22 = x_101; -goto block_99; +lean_object* x_28; lean_object* x_29; +x_28 = lean_box(0); +x_29 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__2(x_11, x_3, x_20, x_2, x_28, x_4, x_5, x_23); +return x_29; } else { -lean_object* x_104; lean_object* x_105; uint8_t x_106; +lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_dec(x_20); lean_dec(x_11); -x_104 = l___private_Lean_Elab_Structure_2__expandCtor___closed__6; -x_105 = l_Lean_throwError___at___private_Lean_Elab_Command_3__elabCommandUsing___main___spec__1___rarg(x_104, x_4, x_5, x_101); -x_106 = !lean_is_exclusive(x_105); -if (x_106 == 0) -{ -return x_105; -} -else -{ -lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_107 = lean_ctor_get(x_105, 0); -x_108 = lean_ctor_get(x_105, 1); -lean_inc(x_108); -lean_inc(x_107); -lean_dec(x_105); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_107); -lean_ctor_set(x_109, 1, x_108); -return x_109; -} -} -} -} -else -{ -uint8_t x_110; -lean_dec(x_20); -lean_dec(x_4); -lean_dec(x_11); -x_110 = !lean_is_exclusive(x_100); -if (x_110 == 0) -{ -return x_100; -} -else -{ -lean_object* x_111; lean_object* x_112; lean_object* x_113; -x_111 = lean_ctor_get(x_100, 0); -x_112 = lean_ctor_get(x_100, 1); -lean_inc(x_112); -lean_inc(x_111); -lean_dec(x_100); -x_113 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_113, 0, x_111); -lean_ctor_set(x_113, 1, x_112); -return x_113; -} -} -block_99: -{ -uint8_t x_23; -x_23 = l_Lean_Elab_Modifiers_isProtected(x_20); -if (x_23 == 0) -{ -lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; -x_24 = lean_unsigned_to_nat(2u); -x_25 = l_Lean_Syntax_getArg(x_11, x_24); -x_26 = l_Lean_Syntax_isNone(x_25); -lean_dec(x_25); -x_27 = lean_unsigned_to_nat(1u); -x_28 = l_Lean_Syntax_getIdAt(x_11, x_27); -lean_inc(x_28); -x_29 = l_Lean_Name_append___main(x_3, x_28); -x_30 = lean_ctor_get_uint8(x_20, sizeof(void*)*2); -x_31 = l_Lean_Elab_applyVisibility___at_Lean_Elab_Command_expandDeclId___spec__3(x_30, x_29, x_4, x_5, x_22); -if (x_26 == 0) -{ -if (lean_obj_tag(x_31) == 0) -{ -uint8_t x_32; +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_32 = !lean_is_exclusive(x_31); if (x_32 == 0) { -lean_object* x_33; uint8_t x_34; lean_object* x_35; +return x_31; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; x_33 = lean_ctor_get(x_31, 0); -x_34 = 1; -x_35 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_35, 0, x_11); -lean_ctor_set(x_35, 1, x_20); -lean_ctor_set(x_35, 2, x_28); -lean_ctor_set(x_35, 3, x_33); -lean_ctor_set_uint8(x_35, sizeof(void*)*4, x_34); -lean_ctor_set(x_31, 0, x_35); -return x_31; -} -else -{ -lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; lean_object* x_40; -x_36 = lean_ctor_get(x_31, 0); -x_37 = lean_ctor_get(x_31, 1); -lean_inc(x_37); -lean_inc(x_36); +x_34 = lean_ctor_get(x_31, 1); +lean_inc(x_34); +lean_inc(x_33); lean_dec(x_31); -x_38 = 1; -x_39 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_39, 0, x_11); -lean_ctor_set(x_39, 1, x_20); -lean_ctor_set(x_39, 2, x_28); -lean_ctor_set(x_39, 3, x_36); -lean_ctor_set_uint8(x_39, sizeof(void*)*4, x_38); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_37); -return x_40; +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +return x_35; +} +} } } else { -uint8_t x_41; -lean_dec(x_28); +uint8_t x_36; lean_dec(x_20); -lean_dec(x_11); -x_41 = !lean_is_exclusive(x_31); -if (x_41 == 0) -{ -return x_31; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_31, 0); -x_43 = lean_ctor_get(x_31, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_31); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -return x_44; -} -} -} -else -{ -if (lean_obj_tag(x_31) == 0) -{ -uint8_t x_45; -x_45 = !lean_is_exclusive(x_31); -if (x_45 == 0) -{ -lean_object* x_46; uint8_t x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_31, 0); -x_47 = 0; -x_48 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_48, 0, x_11); -lean_ctor_set(x_48, 1, x_20); -lean_ctor_set(x_48, 2, x_28); -lean_ctor_set(x_48, 3, x_46); -lean_ctor_set_uint8(x_48, sizeof(void*)*4, x_47); -lean_ctor_set(x_31, 0, x_48); -return x_31; -} -else -{ -lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; -x_49 = lean_ctor_get(x_31, 0); -x_50 = lean_ctor_get(x_31, 1); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_31); -x_51 = 0; -x_52 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_52, 0, x_11); -lean_ctor_set(x_52, 1, x_20); -lean_ctor_set(x_52, 2, x_28); -lean_ctor_set(x_52, 3, x_49); -lean_ctor_set_uint8(x_52, sizeof(void*)*4, x_51); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_50); -return x_53; -} -} -else -{ -uint8_t x_54; -lean_dec(x_28); -lean_dec(x_20); -lean_dec(x_11); -x_54 = !lean_is_exclusive(x_31); -if (x_54 == 0) -{ -return x_31; -} -else -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_31, 0); -x_56 = lean_ctor_get(x_31, 1); -lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_31); -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; -x_58 = l_Lean_Elab_Modifiers_isPrivate(x_2); -if (x_58 == 0) -{ -lean_object* x_59; lean_object* x_60; uint8_t x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; lean_object* x_66; -x_59 = lean_unsigned_to_nat(2u); -x_60 = l_Lean_Syntax_getArg(x_11, x_59); -x_61 = l_Lean_Syntax_isNone(x_60); -lean_dec(x_60); -x_62 = lean_unsigned_to_nat(1u); -x_63 = l_Lean_Syntax_getIdAt(x_11, x_62); -lean_inc(x_63); -x_64 = l_Lean_Name_append___main(x_3, x_63); -x_65 = lean_ctor_get_uint8(x_20, sizeof(void*)*2); -x_66 = l_Lean_Elab_applyVisibility___at_Lean_Elab_Command_expandDeclId___spec__3(x_65, x_64, x_4, x_5, x_22); -if (x_61 == 0) -{ -if (lean_obj_tag(x_66) == 0) -{ -uint8_t x_67; -x_67 = !lean_is_exclusive(x_66); -if (x_67 == 0) -{ -lean_object* x_68; uint8_t x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_66, 0); -x_69 = 1; -x_70 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_70, 0, x_11); -lean_ctor_set(x_70, 1, x_20); -lean_ctor_set(x_70, 2, x_63); -lean_ctor_set(x_70, 3, x_68); -lean_ctor_set_uint8(x_70, sizeof(void*)*4, x_69); -lean_ctor_set(x_66, 0, x_70); -return x_66; -} -else -{ -lean_object* x_71; lean_object* x_72; uint8_t x_73; lean_object* x_74; lean_object* x_75; -x_71 = lean_ctor_get(x_66, 0); -x_72 = lean_ctor_get(x_66, 1); -lean_inc(x_72); -lean_inc(x_71); -lean_dec(x_66); -x_73 = 1; -x_74 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_74, 0, x_11); -lean_ctor_set(x_74, 1, x_20); -lean_ctor_set(x_74, 2, x_63); -lean_ctor_set(x_74, 3, x_71); -lean_ctor_set_uint8(x_74, sizeof(void*)*4, x_73); -x_75 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_75, 0, x_74); -lean_ctor_set(x_75, 1, x_72); -return x_75; -} -} -else -{ -uint8_t x_76; -lean_dec(x_63); -lean_dec(x_20); -lean_dec(x_11); -x_76 = !lean_is_exclusive(x_66); -if (x_76 == 0) -{ -return x_66; -} -else -{ -lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_77 = lean_ctor_get(x_66, 0); -x_78 = lean_ctor_get(x_66, 1); -lean_inc(x_78); -lean_inc(x_77); -lean_dec(x_66); -x_79 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_79, 0, x_77); -lean_ctor_set(x_79, 1, x_78); -return x_79; -} -} -} -else -{ -if (lean_obj_tag(x_66) == 0) -{ -uint8_t x_80; -x_80 = !lean_is_exclusive(x_66); -if (x_80 == 0) -{ -lean_object* x_81; uint8_t x_82; lean_object* x_83; -x_81 = lean_ctor_get(x_66, 0); -x_82 = 0; -x_83 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_83, 0, x_11); -lean_ctor_set(x_83, 1, x_20); -lean_ctor_set(x_83, 2, x_63); -lean_ctor_set(x_83, 3, x_81); -lean_ctor_set_uint8(x_83, sizeof(void*)*4, x_82); -lean_ctor_set(x_66, 0, x_83); -return x_66; -} -else -{ -lean_object* x_84; lean_object* x_85; uint8_t x_86; lean_object* x_87; lean_object* x_88; -x_84 = lean_ctor_get(x_66, 0); -x_85 = lean_ctor_get(x_66, 1); -lean_inc(x_85); -lean_inc(x_84); -lean_dec(x_66); -x_86 = 0; -x_87 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_87, 0, x_11); -lean_ctor_set(x_87, 1, x_20); -lean_ctor_set(x_87, 2, x_63); -lean_ctor_set(x_87, 3, x_84); -lean_ctor_set_uint8(x_87, sizeof(void*)*4, x_86); -x_88 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_88, 0, x_87); -lean_ctor_set(x_88, 1, x_85); -return x_88; -} -} -else -{ -uint8_t x_89; -lean_dec(x_63); -lean_dec(x_20); -lean_dec(x_11); -x_89 = !lean_is_exclusive(x_66); -if (x_89 == 0) -{ -return x_66; -} -else -{ -lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_90 = lean_ctor_get(x_66, 0); -x_91 = lean_ctor_get(x_66, 1); -lean_inc(x_91); -lean_inc(x_90); -lean_dec(x_66); -x_92 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_92, 0, x_90); -lean_ctor_set(x_92, 1, x_91); -return x_92; -} -} -} -} -else -{ -lean_object* x_93; lean_object* x_94; uint8_t x_95; -lean_dec(x_20); -lean_dec(x_11); -x_93 = l___private_Lean_Elab_Structure_2__expandCtor___closed__3; -x_94 = l_Lean_throwError___at___private_Lean_Elab_Command_3__elabCommandUsing___main___spec__1___rarg(x_93, x_4, x_5, x_22); -x_95 = !lean_is_exclusive(x_94); -if (x_95 == 0) -{ -return x_94; -} -else -{ -lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_96 = lean_ctor_get(x_94, 0); -x_97 = lean_ctor_get(x_94, 1); -lean_inc(x_97); -lean_inc(x_96); -lean_dec(x_94); -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; -} -} -} -} -} -else -{ -uint8_t x_114; lean_dec(x_4); lean_dec(x_11); -x_114 = !lean_is_exclusive(x_19); -if (x_114 == 0) +x_36 = !lean_is_exclusive(x_22); +if (x_36 == 0) +{ +return x_22; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_22, 0); +x_38 = lean_ctor_get(x_22, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_22); +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_4); +lean_dec(x_11); +x_40 = !lean_is_exclusive(x_19); +if (x_40 == 0) { return x_19; } else { -lean_object* x_115; lean_object* x_116; lean_object* x_117; -x_115 = lean_ctor_get(x_19, 0); -x_116 = lean_ctor_get(x_19, 1); -lean_inc(x_116); -lean_inc(x_115); +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_19, 0); +x_42 = lean_ctor_get(x_19, 1); +lean_inc(x_42); +lean_inc(x_41); lean_dec(x_19); -x_117 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_117, 0, x_115); -lean_ctor_set(x_117, 1, x_116); -return x_117; +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +return x_43; } } } else { -lean_object* x_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; -x_118 = lean_ctor_get(x_4, 0); -x_119 = lean_ctor_get(x_4, 1); -x_120 = lean_ctor_get(x_4, 2); -x_121 = lean_ctor_get(x_4, 3); -x_122 = lean_ctor_get(x_4, 4); -x_123 = lean_ctor_get(x_4, 5); -lean_inc(x_123); -lean_inc(x_122); -lean_inc(x_121); -lean_inc(x_120); -lean_inc(x_119); -lean_inc(x_118); +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_44 = lean_ctor_get(x_4, 0); +x_45 = lean_ctor_get(x_4, 1); +x_46 = lean_ctor_get(x_4, 2); +x_47 = lean_ctor_get(x_4, 3); +x_48 = lean_ctor_get(x_4, 4); +x_49 = lean_ctor_get(x_4, 5); +lean_inc(x_49); +lean_inc(x_48); +lean_inc(x_47); +lean_inc(x_46); +lean_inc(x_45); +lean_inc(x_44); lean_dec(x_4); -x_124 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_124, 0, x_118); -lean_ctor_set(x_124, 1, x_119); -lean_ctor_set(x_124, 2, x_120); -lean_ctor_set(x_124, 3, x_121); -lean_ctor_set(x_124, 4, x_122); -lean_ctor_set(x_124, 5, x_123); -lean_ctor_set(x_124, 6, x_16); -lean_inc(x_124); -x_125 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_2__expandCtor___spec__1(x_12, x_124, x_5, x_15); +x_50 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_50, 0, x_44); +lean_ctor_set(x_50, 1, x_45); +lean_ctor_set(x_50, 2, x_46); +lean_ctor_set(x_50, 3, x_47); +lean_ctor_set(x_50, 4, x_48); +lean_ctor_set(x_50, 5, x_49); +lean_ctor_set(x_50, 6, x_16); +lean_inc(x_50); +x_51 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1(x_12, x_50, x_5, x_15); lean_dec(x_12); -if (lean_obj_tag(x_125) == 0) +if (lean_obj_tag(x_51) == 0) { -lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_194; -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_124); -x_194 = l_Lean_Elab_Command_checkValidCtorModifier(x_126, x_124, x_5, x_127); -if (lean_obj_tag(x_194) == 0) +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_51, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_51, 1); +lean_inc(x_53); +lean_dec(x_51); +lean_inc(x_50); +x_54 = l_Lean_Elab_Command_checkValidCtorModifier(x_52, x_50, x_5, x_53); +if (lean_obj_tag(x_54) == 0) { -lean_object* x_195; uint8_t x_196; -x_195 = lean_ctor_get(x_194, 1); -lean_inc(x_195); -lean_dec(x_194); -x_196 = l_Lean_Elab_Modifiers_isPrivate(x_126); -if (x_196 == 0) +lean_object* x_55; uint8_t x_56; +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +lean_dec(x_54); +x_56 = l_Lean_Elab_Modifiers_isPrivate(x_52); +if (x_56 == 0) { -x_128 = x_195; -goto block_193; +lean_object* x_57; lean_object* x_58; +x_57 = lean_box(0); +x_58 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__2(x_11, x_3, x_52, x_2, x_57, x_50, x_5, x_55); +return x_58; } else { -uint8_t x_197; -x_197 = l_Lean_Elab_Modifiers_isPrivate(x_2); -if (x_197 == 0) +uint8_t x_59; +x_59 = l_Lean_Elab_Modifiers_isPrivate(x_2); +if (x_59 == 0) { -x_128 = x_195; -goto block_193; +lean_object* x_60; lean_object* x_61; +x_60 = lean_box(0); +x_61 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__2(x_11, x_3, x_52, x_2, x_60, x_50, x_5, x_55); +return x_61; } else { -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_dec(x_126); +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_dec(x_52); lean_dec(x_11); -x_198 = l___private_Lean_Elab_Structure_2__expandCtor___closed__6; -x_199 = l_Lean_throwError___at___private_Lean_Elab_Command_3__elabCommandUsing___main___spec__1___rarg(x_198, x_124, x_5, x_195); -x_200 = lean_ctor_get(x_199, 0); -lean_inc(x_200); -x_201 = lean_ctor_get(x_199, 1); -lean_inc(x_201); -if (lean_is_exclusive(x_199)) { - lean_ctor_release(x_199, 0); - lean_ctor_release(x_199, 1); - x_202 = x_199; +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_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + lean_ctor_release(x_63, 1); + x_66 = x_63; } else { - lean_dec_ref(x_199); - x_202 = lean_box(0); + lean_dec_ref(x_63); + x_66 = lean_box(0); } -if (lean_is_scalar(x_202)) { - x_203 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_66)) { + x_67 = lean_alloc_ctor(1, 2, 0); } else { - x_203 = x_202; + x_67 = x_66; } -lean_ctor_set(x_203, 0, x_200); -lean_ctor_set(x_203, 1, x_201); -return x_203; +lean_ctor_set(x_67, 0, x_64); +lean_ctor_set(x_67, 1, x_65); +return x_67; } } } else { -lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; -lean_dec(x_126); -lean_dec(x_124); +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_52); +lean_dec(x_50); lean_dec(x_11); -x_204 = lean_ctor_get(x_194, 0); -lean_inc(x_204); -x_205 = lean_ctor_get(x_194, 1); -lean_inc(x_205); -if (lean_is_exclusive(x_194)) { - lean_ctor_release(x_194, 0); - lean_ctor_release(x_194, 1); - x_206 = x_194; +x_68 = lean_ctor_get(x_54, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_54, 1); +lean_inc(x_69); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_70 = x_54; } else { - lean_dec_ref(x_194); - x_206 = lean_box(0); + lean_dec_ref(x_54); + x_70 = lean_box(0); } -if (lean_is_scalar(x_206)) { - x_207 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_70)) { + x_71 = lean_alloc_ctor(1, 2, 0); } else { - x_207 = x_206; + x_71 = x_70; } -lean_ctor_set(x_207, 0, x_204); -lean_ctor_set(x_207, 1, x_205); -return x_207; +lean_ctor_set(x_71, 0, x_68); +lean_ctor_set(x_71, 1, x_69); +return x_71; } -block_193: -{ -uint8_t x_129; -x_129 = l_Lean_Elab_Modifiers_isProtected(x_126); -if (x_129 == 0) -{ -lean_object* x_130; lean_object* x_131; uint8_t x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; lean_object* x_137; -x_130 = lean_unsigned_to_nat(2u); -x_131 = l_Lean_Syntax_getArg(x_11, x_130); -x_132 = l_Lean_Syntax_isNone(x_131); -lean_dec(x_131); -x_133 = lean_unsigned_to_nat(1u); -x_134 = l_Lean_Syntax_getIdAt(x_11, x_133); -lean_inc(x_134); -x_135 = l_Lean_Name_append___main(x_3, x_134); -x_136 = lean_ctor_get_uint8(x_126, sizeof(void*)*2); -x_137 = l_Lean_Elab_applyVisibility___at_Lean_Elab_Command_expandDeclId___spec__3(x_136, x_135, x_124, x_5, x_128); -if (x_132 == 0) -{ -if (lean_obj_tag(x_137) == 0) -{ -lean_object* x_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; lean_object* x_142; lean_object* x_143; -x_138 = lean_ctor_get(x_137, 0); -lean_inc(x_138); -x_139 = lean_ctor_get(x_137, 1); -lean_inc(x_139); -if (lean_is_exclusive(x_137)) { - lean_ctor_release(x_137, 0); - lean_ctor_release(x_137, 1); - x_140 = x_137; -} else { - lean_dec_ref(x_137); - x_140 = lean_box(0); -} -x_141 = 1; -x_142 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_142, 0, x_11); -lean_ctor_set(x_142, 1, x_126); -lean_ctor_set(x_142, 2, x_134); -lean_ctor_set(x_142, 3, x_138); -lean_ctor_set_uint8(x_142, sizeof(void*)*4, x_141); -if (lean_is_scalar(x_140)) { - x_143 = lean_alloc_ctor(0, 2, 0); -} else { - x_143 = x_140; -} -lean_ctor_set(x_143, 0, x_142); -lean_ctor_set(x_143, 1, x_139); -return x_143; } else { -lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; -lean_dec(x_134); -lean_dec(x_126); +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +lean_dec(x_50); lean_dec(x_11); -x_144 = lean_ctor_get(x_137, 0); -lean_inc(x_144); -x_145 = lean_ctor_get(x_137, 1); -lean_inc(x_145); -if (lean_is_exclusive(x_137)) { - lean_ctor_release(x_137, 0); - lean_ctor_release(x_137, 1); - x_146 = x_137; +x_72 = lean_ctor_get(x_51, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_51, 1); +lean_inc(x_73); +if (lean_is_exclusive(x_51)) { + lean_ctor_release(x_51, 0); + lean_ctor_release(x_51, 1); + x_74 = x_51; } else { - lean_dec_ref(x_137); - x_146 = lean_box(0); + lean_dec_ref(x_51); + x_74 = lean_box(0); } -if (lean_is_scalar(x_146)) { - x_147 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_74)) { + x_75 = lean_alloc_ctor(1, 2, 0); } else { - x_147 = x_146; + x_75 = x_74; } -lean_ctor_set(x_147, 0, x_144); -lean_ctor_set(x_147, 1, x_145); -return x_147; -} -} -else -{ -if (lean_obj_tag(x_137) == 0) -{ -lean_object* x_148; lean_object* x_149; lean_object* x_150; uint8_t x_151; lean_object* x_152; lean_object* x_153; -x_148 = lean_ctor_get(x_137, 0); -lean_inc(x_148); -x_149 = lean_ctor_get(x_137, 1); -lean_inc(x_149); -if (lean_is_exclusive(x_137)) { - lean_ctor_release(x_137, 0); - lean_ctor_release(x_137, 1); - x_150 = x_137; -} else { - lean_dec_ref(x_137); - x_150 = lean_box(0); -} -x_151 = 0; -x_152 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_152, 0, x_11); -lean_ctor_set(x_152, 1, x_126); -lean_ctor_set(x_152, 2, x_134); -lean_ctor_set(x_152, 3, x_148); -lean_ctor_set_uint8(x_152, sizeof(void*)*4, x_151); -if (lean_is_scalar(x_150)) { - x_153 = lean_alloc_ctor(0, 2, 0); -} else { - x_153 = x_150; -} -lean_ctor_set(x_153, 0, x_152); -lean_ctor_set(x_153, 1, x_149); -return x_153; -} -else -{ -lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; -lean_dec(x_134); -lean_dec(x_126); -lean_dec(x_11); -x_154 = lean_ctor_get(x_137, 0); -lean_inc(x_154); -x_155 = lean_ctor_get(x_137, 1); -lean_inc(x_155); -if (lean_is_exclusive(x_137)) { - lean_ctor_release(x_137, 0); - lean_ctor_release(x_137, 1); - x_156 = x_137; -} else { - lean_dec_ref(x_137); - x_156 = lean_box(0); -} -if (lean_is_scalar(x_156)) { - x_157 = lean_alloc_ctor(1, 2, 0); -} else { - x_157 = x_156; -} -lean_ctor_set(x_157, 0, x_154); -lean_ctor_set(x_157, 1, x_155); -return x_157; +lean_ctor_set(x_75, 0, x_72); +lean_ctor_set(x_75, 1, x_73); +return x_75; } } } else { -uint8_t x_158; -x_158 = l_Lean_Elab_Modifiers_isPrivate(x_2); -if (x_158 == 0) -{ -lean_object* x_159; lean_object* x_160; uint8_t x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; uint8_t x_165; lean_object* x_166; -x_159 = lean_unsigned_to_nat(2u); -x_160 = l_Lean_Syntax_getArg(x_11, x_159); -x_161 = l_Lean_Syntax_isNone(x_160); -lean_dec(x_160); -x_162 = lean_unsigned_to_nat(1u); -x_163 = l_Lean_Syntax_getIdAt(x_11, x_162); -lean_inc(x_163); -x_164 = l_Lean_Name_append___main(x_3, x_163); -x_165 = lean_ctor_get_uint8(x_126, sizeof(void*)*2); -x_166 = l_Lean_Elab_applyVisibility___at_Lean_Elab_Command_expandDeclId___spec__3(x_165, x_164, x_124, x_5, x_128); -if (x_161 == 0) -{ -if (lean_obj_tag(x_166) == 0) -{ -lean_object* x_167; lean_object* x_168; lean_object* x_169; uint8_t x_170; lean_object* x_171; lean_object* x_172; -x_167 = lean_ctor_get(x_166, 0); -lean_inc(x_167); -x_168 = lean_ctor_get(x_166, 1); -lean_inc(x_168); -if (lean_is_exclusive(x_166)) { - lean_ctor_release(x_166, 0); - lean_ctor_release(x_166, 1); - x_169 = x_166; -} else { - lean_dec_ref(x_166); - x_169 = lean_box(0); -} -x_170 = 1; -x_171 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_171, 0, x_11); -lean_ctor_set(x_171, 1, x_126); -lean_ctor_set(x_171, 2, x_163); -lean_ctor_set(x_171, 3, x_167); -lean_ctor_set_uint8(x_171, sizeof(void*)*4, x_170); -if (lean_is_scalar(x_169)) { - x_172 = lean_alloc_ctor(0, 2, 0); -} else { - x_172 = x_169; -} -lean_ctor_set(x_172, 0, x_171); -lean_ctor_set(x_172, 1, x_168); -return x_172; -} -else -{ -lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; -lean_dec(x_163); -lean_dec(x_126); -lean_dec(x_11); -x_173 = lean_ctor_get(x_166, 0); -lean_inc(x_173); -x_174 = lean_ctor_get(x_166, 1); -lean_inc(x_174); -if (lean_is_exclusive(x_166)) { - lean_ctor_release(x_166, 0); - lean_ctor_release(x_166, 1); - x_175 = x_166; -} else { - lean_dec_ref(x_166); - x_175 = lean_box(0); -} -if (lean_is_scalar(x_175)) { - x_176 = lean_alloc_ctor(1, 2, 0); -} else { - x_176 = x_175; -} -lean_ctor_set(x_176, 0, x_173); -lean_ctor_set(x_176, 1, x_174); -return x_176; -} -} -else -{ -if (lean_obj_tag(x_166) == 0) -{ -lean_object* x_177; lean_object* x_178; lean_object* x_179; uint8_t x_180; lean_object* x_181; lean_object* x_182; -x_177 = lean_ctor_get(x_166, 0); -lean_inc(x_177); -x_178 = lean_ctor_get(x_166, 1); -lean_inc(x_178); -if (lean_is_exclusive(x_166)) { - lean_ctor_release(x_166, 0); - lean_ctor_release(x_166, 1); - x_179 = x_166; -} else { - lean_dec_ref(x_166); - x_179 = lean_box(0); -} -x_180 = 0; -x_181 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_181, 0, x_11); -lean_ctor_set(x_181, 1, x_126); -lean_ctor_set(x_181, 2, x_163); -lean_ctor_set(x_181, 3, x_177); -lean_ctor_set_uint8(x_181, sizeof(void*)*4, x_180); -if (lean_is_scalar(x_179)) { - x_182 = lean_alloc_ctor(0, 2, 0); -} else { - x_182 = x_179; -} -lean_ctor_set(x_182, 0, x_181); -lean_ctor_set(x_182, 1, x_178); -return x_182; -} -else -{ -lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; -lean_dec(x_163); -lean_dec(x_126); -lean_dec(x_11); -x_183 = lean_ctor_get(x_166, 0); -lean_inc(x_183); -x_184 = lean_ctor_get(x_166, 1); -lean_inc(x_184); -if (lean_is_exclusive(x_166)) { - lean_ctor_release(x_166, 0); - lean_ctor_release(x_166, 1); - x_185 = x_166; -} else { - lean_dec_ref(x_166); - x_185 = lean_box(0); -} -if (lean_is_scalar(x_185)) { - x_186 = lean_alloc_ctor(1, 2, 0); -} else { - x_186 = x_185; -} -lean_ctor_set(x_186, 0, x_183); -lean_ctor_set(x_186, 1, x_184); -return x_186; -} -} -} -else -{ -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_dec(x_126); -lean_dec(x_11); -x_187 = l___private_Lean_Elab_Structure_2__expandCtor___closed__3; -x_188 = l_Lean_throwError___at___private_Lean_Elab_Command_3__elabCommandUsing___main___spec__1___rarg(x_187, x_124, x_5, x_128); -x_189 = lean_ctor_get(x_188, 0); -lean_inc(x_189); -x_190 = lean_ctor_get(x_188, 1); -lean_inc(x_190); -if (lean_is_exclusive(x_188)) { - lean_ctor_release(x_188, 0); - lean_ctor_release(x_188, 1); - x_191 = x_188; -} else { - lean_dec_ref(x_188); - x_191 = lean_box(0); -} -if (lean_is_scalar(x_191)) { - x_192 = lean_alloc_ctor(1, 2, 0); -} else { - x_192 = x_191; -} -lean_ctor_set(x_192, 0, x_189); -lean_ctor_set(x_192, 1, x_190); -return x_192; -} -} -} -} -else -{ -lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; -lean_dec(x_124); -lean_dec(x_11); -x_208 = lean_ctor_get(x_125, 0); -lean_inc(x_208); -x_209 = lean_ctor_get(x_125, 1); -lean_inc(x_209); -if (lean_is_exclusive(x_125)) { - lean_ctor_release(x_125, 0); - lean_ctor_release(x_125, 1); - x_210 = x_125; -} else { - lean_dec_ref(x_125); - x_210 = lean_box(0); -} -if (lean_is_scalar(x_210)) { - x_211 = lean_alloc_ctor(1, 2, 0); -} else { - x_211 = x_210; -} -lean_ctor_set(x_211, 0, x_208); -lean_ctor_set(x_211, 1, x_209); -return x_211; -} -} -} -else -{ -lean_object* x_212; lean_object* x_213; lean_object* x_214; uint8_t x_215; lean_object* x_216; lean_object* x_217; +lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; lean_object* x_80; lean_object* x_81; lean_dec(x_8); lean_dec(x_4); -x_212 = l___private_Lean_Elab_Structure_1__defaultCtorName; -x_213 = l_Lean_Name_append___main(x_3, x_212); -x_214 = l_Lean_Elab_Command_CtorView_inhabited___closed__1; -x_215 = 0; -x_216 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_216, 0, x_1); -lean_ctor_set(x_216, 1, x_214); -lean_ctor_set(x_216, 2, x_212); -lean_ctor_set(x_216, 3, x_213); -lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_215); -x_217 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_217, 0, x_216); -lean_ctor_set(x_217, 1, x_6); -return x_217; +x_76 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_defaultCtorName; +x_77 = l_Lean_Name_append___main(x_3, x_76); +x_78 = l_Lean_Elab_Command_CtorView_inhabited___closed__1; +x_79 = 0; +x_80 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_80, 0, x_1); +lean_ctor_set(x_80, 1, x_78); +lean_ctor_set(x_80, 2, x_76); +lean_ctor_set(x_80, 3, x_77); +lean_ctor_set_uint8(x_80, sizeof(void*)*4, x_79); +x_81 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_81, 0, x_80); +lean_ctor_set(x_81, 1, x_6); +return x_81; } } } -lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_2__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) { +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: { lean_object* x_7; -x_7 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_2__expandCtor___spec__4___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); return x_7; } } -lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_2__expandCtor___spec__4___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_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___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_elabAttr___at___private_Lean_Elab_Structure_2__expandCtor___spec__4___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -2395,27 +2798,27 @@ lean_dec(x_1); return x_7; } } -lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_2__expandCtor___spec__4___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* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_2__expandCtor___spec__4___lambda__3(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__3(x_1, x_2, x_3, x_4, x_5); lean_dec(x_4); lean_dec(x_1); return x_6; } } -lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_2__expandCtor___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_2__expandCtor___spec__4(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_1); return x_5; } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_2__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) { +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) { _start: { size_t x_8; size_t x_9; lean_object* x_10; @@ -2423,39 +2826,49 @@ 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_2__expandCtor___spec__5(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__6(x_1, x_8, x_9, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_1); return x_10; } } -lean_object* l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_2__expandCtor___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_2__expandCtor___spec__3(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_1); return x_5; } } -lean_object* l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_Structure_2__expandCtor___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_Structure_2__expandCtor___spec__2(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__2(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_1); return x_5; } } -lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_2__expandCtor___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* 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) { +_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); +lean_dec(x_4); +lean_dec(x_1); +return x_6; +} +} +lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___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) { _start: { uint8_t x_10; lean_object* x_11; x_10 = lean_unbox(x_5); lean_dec(x_5); -x_11 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_2__expandCtor___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_10, x_6, x_7, x_8, x_9); +x_11 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_10, x_6, x_7, x_8, x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_3); @@ -2464,13 +2877,13 @@ lean_dec(x_1); return x_11; } } -lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_2__expandCtor___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* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___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) { _start: { uint8_t x_10; lean_object* x_11; x_10 = lean_unbox(x_6); lean_dec(x_6); -x_11 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_2__expandCtor___spec__1___lambda__2(x_1, x_2, x_3, x_4, x_5, x_10, x_7, x_8, x_9); +x_11 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___lambda__2(x_1, x_2, x_3, x_4, x_5, x_10, x_7, x_8, x_9); lean_dec(x_8); lean_dec(x_5); lean_dec(x_3); @@ -2479,11 +2892,11 @@ lean_dec(x_1); return x_11; } } -lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_2__expandCtor___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* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___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) { _start: { lean_object* x_10; -x_10 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_2__expandCtor___spec__1___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); @@ -2493,28 +2906,153 @@ lean_dec(x_1); return x_10; } } -lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_2__expandCtor___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_2__expandCtor___spec__1(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_1); return x_5; } } -lean_object* l___private_Lean_Elab_Structure_2__expandCtor___boxed(lean_object* 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__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) { _start: { lean_object* x_7; -x_7 = l___private_Lean_Elab_Structure_2__expandCtor(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__9___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) { +_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); +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) { +_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); +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) { +_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); +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) { +_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); +lean_dec(x_4); +return x_7; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +return x_8; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +return x_9; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___boxed(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_Structure_0__Lean_Elab_Command_expandCtor(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); return x_7; } } -static lean_object* _init_l_Lean_Elab_Command_checkValidFieldModifier___closed__1() { +static lean_object* _init_l_Lean_Elab_Command_checkValidFieldModifier___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("private fields are not supported yet"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_checkValidFieldModifier___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Command_checkValidFieldModifier___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_checkValidFieldModifier___lambda__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Command_checkValidFieldModifier___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_checkValidFieldModifier___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; +x_6 = l_Lean_Elab_Modifiers_isPrivate(x_1); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; +lean_dec(x_3); +x_7 = lean_box(0); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_5); +return x_8; +} +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); +return x_10; +} +} +} +static lean_object* _init_l_Lean_Elab_Command_checkValidFieldModifier___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -2522,6 +3060,208 @@ x_1 = lean_mk_string("invalid use of attributes in field declaration"); return x_1; } } +static lean_object* _init_l_Lean_Elab_Command_checkValidFieldModifier___lambda__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Command_checkValidFieldModifier___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_checkValidFieldModifier___lambda__2___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Command_checkValidFieldModifier___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_checkValidFieldModifier___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; 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; 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_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(1, 2, 0); +lean_ctor_set(x_15, 0, x_13); +lean_ctor_set(x_15, 1, x_14); +return x_15; +} +} +else +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_box(0); +x_17 = l_Lean_Elab_Command_checkValidFieldModifier___lambda__1(x_1, x_16, x_3, x_4, x_5); +return x_17; +} +} +} +static lean_object* _init_l_Lean_Elab_Command_checkValidFieldModifier___lambda__3___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("invalid use of 'unsafe' in field declaration"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_checkValidFieldModifier___lambda__3___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Command_checkValidFieldModifier___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_checkValidFieldModifier___lambda__3___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Command_checkValidFieldModifier___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_checkValidFieldModifier___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 + 3); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; +x_7 = lean_box(0); +x_8 = l_Lean_Elab_Command_checkValidFieldModifier___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_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_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_checkValidFieldModifier___lambda__4___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("invalid use of 'partial' in field declaration"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_checkValidFieldModifier___lambda__4___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Command_checkValidFieldModifier___lambda__4___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_checkValidFieldModifier___lambda__4___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Command_checkValidFieldModifier___lambda__4___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_checkValidFieldModifier___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; +x_6 = lean_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_checkValidFieldModifier___lambda__3(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_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_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_checkValidFieldModifier___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("invalid use of 'noncomputable' in field declaration"); +return x_1; +} +} static lean_object* _init_l_Lean_Elab_Command_checkValidFieldModifier___closed__2() { _start: { @@ -2542,287 +3282,86 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Command_checkValidFieldModifier___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("private fields are not supported yet"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_checkValidFieldModifier___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_checkValidFieldModifier___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_checkValidFieldModifier___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_checkValidFieldModifier___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_checkValidFieldModifier___closed__7() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("invalid use of 'unsafe' in field declaration"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_checkValidFieldModifier___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_checkValidFieldModifier___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_checkValidFieldModifier___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_checkValidFieldModifier___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_checkValidFieldModifier___closed__10() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("invalid use of 'partial' in field declaration"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_checkValidFieldModifier___closed__11() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_checkValidFieldModifier___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_checkValidFieldModifier___closed__12() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_checkValidFieldModifier___closed__11; -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_checkValidFieldModifier___closed__13() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("invalid use of 'noncomputable' in field declaration"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_checkValidFieldModifier___closed__14() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_checkValidFieldModifier___closed__13; -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_checkValidFieldModifier___closed__15() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_checkValidFieldModifier___closed__14; -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_checkValidFieldModifier(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_26; uint8_t x_42; -x_42 = lean_ctor_get_uint8(x_1, sizeof(void*)*2 + 1); -if (x_42 == 0) +uint8_t x_5; +x_5 = lean_ctor_get_uint8(x_1, sizeof(void*)*2 + 1); +if (x_5 == 0) { -x_26 = x_4; -goto block_41; +lean_object* x_6; lean_object* x_7; +x_6 = lean_box(0); +x_7 = l_Lean_Elab_Command_checkValidFieldModifier___lambda__4(x_1, x_6, x_2, x_3, x_4); +return x_7; } else { -lean_object* x_43; lean_object* x_44; uint8_t x_45; -x_43 = l_Lean_Elab_Command_checkValidFieldModifier___closed__15; -x_44 = l_Lean_throwError___at___private_Lean_Elab_Command_3__elabCommandUsing___main___spec__1___rarg(x_43, x_2, x_3, x_4); -x_45 = !lean_is_exclusive(x_44); -if (x_45 == 0) +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_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) { -return x_44; +return x_9; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_44, 0); -x_47 = lean_ctor_get(x_44, 1); -lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_44); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; +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; } } -block_25: -{ -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; uint8_t x_12; -x_10 = l_Lean_Elab_Command_checkValidFieldModifier___closed__3; -x_11 = l_Lean_throwError___at___private_Lean_Elab_Command_3__elabCommandUsing___main___spec__1___rarg(x_10, x_2, x_3, x_5); -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(1, 2, 0); -lean_ctor_set(x_15, 0, x_13); -lean_ctor_set(x_15, 1, x_14); -return x_15; } } -else +lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__1___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_16; -x_16 = l_Lean_Elab_Modifiers_isPrivate(x_1); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; +lean_object* x_6; +x_6 = l_Lean_Elab_Command_checkValidFieldModifier___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_checkValidFieldModifier___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_checkValidFieldModifier___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_checkValidFieldModifier___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_checkValidFieldModifier___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; +lean_object* x_6; +x_6 = l_Lean_Elab_Command_checkValidFieldModifier___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; } -else +} +lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: { -lean_object* x_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; -} -} -} -} -block_41: -{ -uint8_t x_27; -x_27 = lean_ctor_get_uint8(x_1, sizeof(void*)*2 + 2); -if (x_27 == 0) -{ -uint8_t x_28; -x_28 = lean_ctor_get_uint8(x_1, sizeof(void*)*2 + 3); -if (x_28 == 0) -{ -x_5 = x_26; -goto block_25; -} -else -{ -lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_29 = l_Lean_Elab_Command_checkValidFieldModifier___closed__9; -x_30 = l_Lean_throwError___at___private_Lean_Elab_Command_3__elabCommandUsing___main___spec__1___rarg(x_29, x_2, x_3, x_26); -x_31 = !lean_is_exclusive(x_30); -if (x_31 == 0) -{ -return x_30; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_30, 0); -x_33 = lean_ctor_get(x_30, 1); -lean_inc(x_33); -lean_inc(x_32); -lean_dec(x_30); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); -return x_34; -} -} -} -else -{ -lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_35 = l_Lean_Elab_Command_checkValidFieldModifier___closed__12; -x_36 = l_Lean_throwError___at___private_Lean_Elab_Command_3__elabCommandUsing___main___spec__1___rarg(x_35, x_2, x_3, x_26); -x_37 = !lean_is_exclusive(x_36); -if (x_37 == 0) -{ -return x_36; -} -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_6; +x_6 = l_Lean_Elab_Command_checkValidFieldModifier___lambda__4(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_checkValidFieldModifier___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { @@ -2835,7 +3374,144 @@ lean_dec(x_1); return x_5; } } -static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__1___closed__1() { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields_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_Structure_0__Lean_Elab_Command_expandFields_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields_match__2___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields_match__2___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +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); +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; +x_19 = lean_ctor_get(x_17, 0); +x_20 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_20, 0, x_4); +lean_ctor_set(x_20, 1, x_3); +lean_ctor_set(x_20, 2, x_19); +lean_ctor_set(x_20, 3, x_2); +lean_ctor_set(x_20, 4, x_7); +lean_ctor_set(x_20, 5, x_8); +lean_ctor_set(x_20, 6, x_9); +lean_ctor_set_uint8(x_20, sizeof(void*)*7, x_5); +lean_ctor_set_uint8(x_20, sizeof(void*)*7 + 1, x_6); +x_21 = lean_array_push(x_10, x_20); +lean_ctor_set(x_17, 0, x_21); +return x_17; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_22 = lean_ctor_get(x_17, 0); +x_23 = lean_ctor_get(x_17, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_17); +x_24 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_24, 0, x_4); +lean_ctor_set(x_24, 1, x_3); +lean_ctor_set(x_24, 2, x_22); +lean_ctor_set(x_24, 3, x_2); +lean_ctor_set(x_24, 4, x_7); +lean_ctor_set(x_24, 5, x_8); +lean_ctor_set(x_24, 6, x_9); +lean_ctor_set_uint8(x_24, sizeof(void*)*7, x_5); +lean_ctor_set_uint8(x_24, sizeof(void*)*7 + 1, x_6); +x_25 = lean_array_push(x_10, x_24); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_23); +return x_26; +} +} +else +{ +uint8_t x_27; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_27 = !lean_is_exclusive(x_17); +if (x_27 == 0) +{ +return x_17; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_17, 0); +x_29 = lean_ctor_get(x_17, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_17); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +} +} +static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Meta_AppBuilder_25__mkProjectionImp___main___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___closed__2() { _start: { lean_object* x_1; @@ -2843,27 +3519,16 @@ x_1 = lean_mk_string("', identifiers starting with '_' are reserved to the syste return x_1; } } -static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__1___closed__2() { +static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__1___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___closed__2; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__1___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___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_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__1(lean_object* x_1, lean_object* x_2, uint8_t 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* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1(lean_object* x_1, lean_object* x_2, uint8_t 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) { _start: { lean_object* x_15; uint8_t x_16; @@ -2885,45 +3550,19 @@ return x_17; } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_57; +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_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_18 = lean_array_fget(x_9, x_10); x_19 = lean_unsigned_to_nat(1u); x_20 = lean_nat_add(x_10, x_19); lean_dec(x_10); x_21 = l_Lean_Syntax_getId(x_18); x_22 = l_Lean_isInternalSubobjectFieldName(x_21); -x_57 = l_Lean_Elab_Command_getRef(x_12, x_13, x_14); -if (x_22 == 0) -{ -lean_object* x_58; lean_object* x_59; uint8_t x_60; -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 = 0; -x_23 = x_60; -x_24 = x_58; -x_25 = x_59; -goto block_56; -} -else -{ -lean_object* x_61; lean_object* x_62; uint8_t x_63; -x_61 = lean_ctor_get(x_57, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_57, 1); -lean_inc(x_62); -lean_dec(x_57); -x_63 = 1; -x_23 = x_63; -x_24 = x_61; -x_25 = x_62; -goto block_56; -} -block_56: -{ -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_23 = l_Lean_Elab_Command_getRef(x_12, x_13, x_14); +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_replaceRef(x_18, x_24); lean_dec(x_24); x_27 = lean_ctor_get(x_12, 0); @@ -2946,45 +3585,59 @@ lean_ctor_set(x_33, 3, x_30); lean_ctor_set(x_33, 4, x_31); lean_ctor_set(x_33, 5, x_32); lean_ctor_set(x_33, 6, x_26); -if (x_23 == 0) +if (x_22 == 0) { -lean_object* x_34; uint8_t x_35; lean_object* x_36; -lean_inc(x_21); -x_34 = l_Lean_Name_append___main(x_1, x_21); -x_35 = lean_ctor_get_uint8(x_4, sizeof(void*)*2); -x_36 = l_Lean_Elab_applyVisibility___at_Lean_Elab_Command_expandDeclId___spec__3(x_35, x_34, x_33, x_13, x_25); -if (lean_obj_tag(x_36) == 0) -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); -lean_dec(x_36); +lean_object* x_34; lean_object* x_35; +x_34 = lean_box(0); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_39 = lean_alloc_ctor(0, 7, 2); -lean_ctor_set(x_39, 0, x_18); -lean_ctor_set(x_39, 1, x_4); -lean_ctor_set(x_39, 2, x_37); -lean_ctor_set(x_39, 3, x_21); -lean_ctor_set(x_39, 4, x_6); -lean_ctor_set(x_39, 5, x_7); -lean_ctor_set(x_39, 6, x_8); -lean_ctor_set_uint8(x_39, sizeof(void*)*7, x_3); -lean_ctor_set_uint8(x_39, sizeof(void*)*7 + 1, x_5); -x_40 = lean_array_push(x_11, x_39); +x_35 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___lambda__1(x_1, x_21, x_4, x_18, x_3, x_5, x_6, x_7, x_8, x_11, x_34, x_33, x_13, x_25); +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_36; lean_object* x_37; +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_10 = x_20; -x_11 = x_40; -x_14 = x_38; +x_11 = x_36; +x_14 = x_37; goto _start; } else { -uint8_t x_42; -lean_dec(x_21); +uint8_t x_39; +lean_dec(x_20); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +x_39 = !lean_is_exclusive(x_35); +if (x_39 == 0) +{ +return x_35; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_35, 0); +x_41 = lean_ctor_get(x_35, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_35); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; lean_dec(x_20); lean_dec(x_18); lean_dec(x_11); @@ -2992,89 +3645,169 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); -x_42 = !lean_is_exclusive(x_36); -if (x_42 == 0) +x_43 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_43, 0, x_21); +x_44 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___closed__1; +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_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___closed__3; +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_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; +} +} +} +} +} +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__1(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; uint8_t x_12; uint8_t x_13; uint8_t x_14; uint8_t x_15; +x_10 = lean_unsigned_to_nat(3u); +x_11 = l_Lean_Syntax_getArg(x_1, x_10); +x_12 = l_Lean_Syntax_isNone(x_11); +lean_dec(x_11); +x_13 = 0; +x_14 = l_Lean_BinderInfo_beq(x_2, x_13); +if (x_12 == 0) +{ +uint8_t x_52; +x_52 = 1; +x_15 = x_52; +goto block_51; +} +else +{ +uint8_t x_53; +x_53 = 0; +x_15 = x_53; +goto block_51; +} +block_51: +{ +lean_object* x_16; +if (x_14 == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_38 = lean_unsigned_to_nat(4u); +x_39 = l_Lean_Syntax_getArg(x_1, x_38); +x_40 = l_Lean_Elab_expandDeclSig(x_39); +lean_dec(x_39); +x_41 = !lean_is_exclusive(x_40); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; +x_42 = lean_ctor_get(x_40, 1); +x_43 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_40, 1, x_43); +x_16 = x_40; +goto block_37; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_44 = lean_ctor_get(x_40, 0); +x_45 = lean_ctor_get(x_40, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_40); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_45); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_44); +lean_ctor_set(x_47, 1, x_46); +x_16 = x_47; +goto block_37; +} +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_unsigned_to_nat(4u); +x_49 = l_Lean_Syntax_getArg(x_1, x_48); +x_50 = l_Lean_Elab_expandOptDeclSig(x_49); +lean_dec(x_49); +x_16 = x_50; +goto block_37; +} +block_37: +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = lean_unsigned_to_nat(2u); +x_20 = l_Lean_Syntax_getArg(x_1, x_19); +x_21 = l_Lean_Syntax_getArgs(x_20); +lean_dec(x_20); +if (x_14 == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_box(0); +x_23 = lean_unsigned_to_nat(0u); +x_24 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1(x_3, x_1, x_2, x_4, x_15, x_17, x_18, x_22, x_21, x_23, x_5, x_7, x_8, x_9); +lean_dec(x_21); +return x_24; +} +else +{ +lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_25 = lean_unsigned_to_nat(5u); +x_26 = l_Lean_Syntax_getArg(x_1, x_25); +x_27 = l_Lean_Syntax_isNone(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; +x_28 = lean_unsigned_to_nat(0u); +x_29 = l_Lean_Syntax_getArg(x_26, x_28); +lean_dec(x_26); +x_30 = lean_unsigned_to_nat(1u); +x_31 = l_Lean_Syntax_getArg(x_29, x_30); +lean_dec(x_29); +x_32 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_32, 0, x_31); +x_33 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1(x_3, x_1, x_2, x_4, x_15, x_17, x_18, x_32, x_21, x_28, x_5, x_7, x_8, x_9); +lean_dec(x_21); +return x_33; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +lean_dec(x_26); +x_34 = lean_box(0); +x_35 = lean_unsigned_to_nat(0u); +x_36 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1(x_3, x_1, x_2, x_4, x_15, x_17, x_18, x_34, x_21, x_35, x_5, x_7, x_8, x_9); +lean_dec(x_21); return x_36; } -else -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_36, 0); -x_44 = lean_ctor_get(x_36, 1); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_36); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_44); -return x_45; -} -} -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; -lean_dec(x_20); -lean_dec(x_18); -lean_dec(x_11); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -x_46 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_46, 0, x_21); -x_47 = l___private_Lean_Meta_AppBuilder_25__mkProjectionImp___main___closed__7; -x_48 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_46); -x_49 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__1___closed__3; -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_throwError___at___private_Lean_Elab_Command_3__elabCommandUsing___main___spec__1___rarg(x_50, x_33, x_13, x_25); -x_52 = !lean_is_exclusive(x_51); -if (x_52 == 0) -{ -return x_51; -} -else -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_51, 0); -x_54 = lean_ctor_get(x_51, 1); -lean_inc(x_54); -lean_inc(x_53); -lean_dec(x_51); -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; } } } } } -} -static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("structExplicitBinder"); -return x_1; -} -} -static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__2; -x_2 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__3() { +static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -3082,27 +3815,81 @@ x_1 = lean_mk_string("invalid 'protected' field in a 'private' structure"); return x_1; } } -static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__4() { +static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__3; +x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___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_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__5() { +static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__2___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__4; +x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__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_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__6() { +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__2(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +uint8_t x_11; +x_11 = l_Lean_Elab_Modifiers_isProtected(x_4); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_box(0); +x_13 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__1(x_1, x_2, x_3, x_4, x_5, x_12, x_8, x_9, x_10); +lean_dec(x_8); +return x_13; +} +else +{ +uint8_t x_14; +x_14 = l_Lean_Elab_Modifiers_isPrivate(x_6); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_box(0); +x_16 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__1(x_1, x_2, x_3, x_4, x_5, x_15, x_8, x_9, x_10); +lean_dec(x_8); +return x_16; +} +else +{ +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_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +return x_18; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_18, 0); +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_18); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +} +} +static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__3___closed__1() { _start: { lean_object* x_1; @@ -3110,27 +3897,169 @@ x_1 = lean_mk_string("invalid 'private' field in a 'private' structure"); return x_1; } } -static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__7() { +static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__3___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__6; +x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___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_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__8() { +static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__3___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__7; +x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__3___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_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__9() { +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___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) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_unsigned_to_nat(0u); +x_10 = l_Lean_Syntax_getArg(x_1, x_9); +lean_inc(x_6); +x_11 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1(x_10, x_6, x_7, x_8); +lean_dec(x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +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); +lean_inc(x_6); +x_14 = l_Lean_Elab_Command_checkValidFieldModifier(x_12, x_6, x_7, x_13); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; uint8_t x_16; +x_15 = lean_ctor_get(x_14, 1); +lean_inc(x_15); +lean_dec(x_14); +x_16 = l_Lean_Elab_Modifiers_isPrivate(x_12); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_box(0); +x_18 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__2(x_1, x_5, x_2, x_12, x_3, x_4, x_17, x_6, x_7, x_15); +return x_18; +} +else +{ +uint8_t x_19; +x_19 = l_Lean_Elab_Modifiers_isPrivate(x_4); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_box(0); +x_21 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__2(x_1, x_5, x_2, x_12, x_3, x_4, x_20, x_6, x_7, x_15); +return x_21; +} +else +{ +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_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) +{ +return x_23; +} +else +{ +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_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +return x_27; +} +} +} +} +else +{ +uint8_t x_28; +lean_dec(x_12); +lean_dec(x_6); +lean_dec(x_3); +x_28 = !lean_is_exclusive(x_14); +if (x_28 == 0) +{ +return x_14; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_14, 0); +x_30 = lean_ctor_get(x_14, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_14); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +} +else +{ +uint8_t x_32; +lean_dec(x_6); +lean_dec(x_3); +x_32 = !lean_is_exclusive(x_11); +if (x_32 == 0) +{ +return x_11; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_11, 0); +x_34 = lean_ctor_get(x_11, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_11); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +return x_35; +} +} +} +} +static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("structExplicitBinder"); +return x_1; +} +} +static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__2; +x_2 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__3() { _start: { lean_object* x_1; @@ -3138,17 +4067,17 @@ x_1 = lean_mk_string("structImplicitBinder"); return x_1; } } -static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__10() { +static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__2; -x_2 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__9; +x_2 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__11() { +static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__5() { _start: { lean_object* x_1; @@ -3156,17 +4085,17 @@ x_1 = lean_mk_string("structInstBinder"); return x_1; } } -static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__12() { +static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__2; -x_2 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__11; +x_2 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__5; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__13() { +static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__7() { _start: { lean_object* x_1; @@ -3174,36 +4103,27 @@ x_1 = lean_mk_string("unexpected kind of structure field"); return x_1; } } -static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__14() { +static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__13; +x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___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_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__15() { +static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__9() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__14; +x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__8; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static uint8_t _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__16() { -_start: -{ -uint8_t x_1; uint8_t x_2; -x_1 = 0; -x_2 = l_Lean_BinderInfo_beq(x_1, x_1); -return x_2; -} -} -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___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_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; uint8_t x_11; @@ -3221,847 +4141,218 @@ return x_12; } else { -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_25; lean_object* x_26; uint8_t x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_219; +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; x_13 = lean_array_fget(x_4, x_5); x_14 = lean_unsigned_to_nat(1u); x_15 = lean_nat_add(x_5, x_14); lean_dec(x_5); lean_inc(x_13); -x_25 = l_Lean_Syntax_getKind(x_13); -x_26 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__2; -x_27 = lean_name_eq(x_25, x_26); -x_219 = l_Lean_Elab_Command_getRef(x_7, x_8, x_9); -if (x_27 == 0) -{ -lean_object* x_220; lean_object* x_221; uint8_t x_222; -x_220 = lean_ctor_get(x_219, 0); -lean_inc(x_220); -x_221 = lean_ctor_get(x_219, 1); -lean_inc(x_221); -lean_dec(x_219); -x_222 = 0; -x_28 = x_222; -x_29 = x_220; -x_30 = x_221; -goto block_218; -} -else -{ -lean_object* x_223; lean_object* x_224; uint8_t x_225; -x_223 = lean_ctor_get(x_219, 0); -lean_inc(x_223); -x_224 = lean_ctor_get(x_219, 1); -lean_inc(x_224); -lean_dec(x_219); -x_225 = 1; -x_28 = x_225; -x_29 = x_223; -x_30 = x_224; -goto block_218; -} -block_24: -{ -if (lean_obj_tag(x_16) == 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_inc(x_18); -lean_dec(x_16); -x_5 = x_15; -x_6 = x_17; -x_9 = x_18; -goto _start; -} -else -{ -uint8_t x_20; -lean_dec(x_15); -x_20 = !lean_is_exclusive(x_16); -if (x_20 == 0) -{ -return x_16; -} -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_inc(x_22); +x_16 = l_Lean_Syntax_getKind(x_13); +x_17 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__2; +x_18 = lean_name_eq(x_16, x_17); +x_19 = l_Lean_Elab_Command_getRef(x_7, x_8, x_9); +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); lean_inc(x_21); +lean_dec(x_19); +x_22 = l_Lean_replaceRef(x_13, x_20); +lean_dec(x_20); +x_23 = lean_ctor_get(x_7, 0); +x_24 = lean_ctor_get(x_7, 1); +x_25 = lean_ctor_get(x_7, 2); +x_26 = lean_ctor_get(x_7, 3); +x_27 = lean_ctor_get(x_7, 4); +x_28 = lean_ctor_get(x_7, 5); +lean_inc(x_28); +lean_inc(x_27); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +x_29 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_29, 0, x_23); +lean_ctor_set(x_29, 1, x_24); +lean_ctor_set(x_29, 2, x_25); +lean_ctor_set(x_29, 3, x_26); +lean_ctor_set(x_29, 4, x_27); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_22); +if (x_18 == 0) +{ +lean_object* x_30; uint8_t x_31; +x_30 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__4; +x_31 = lean_name_eq(x_16, x_30); +if (x_31 == 0) +{ +lean_object* x_32; uint8_t x_33; +x_32 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__6; +x_33 = lean_name_eq(x_16, x_32); 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; -} -} -} -block_218: +if (x_33 == 0) { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; -x_31 = l_Lean_replaceRef(x_13, x_29); -lean_dec(x_29); -x_32 = lean_ctor_get(x_7, 0); -x_33 = lean_ctor_get(x_7, 1); -x_34 = lean_ctor_get(x_7, 2); -x_35 = lean_ctor_get(x_7, 3); -x_36 = lean_ctor_get(x_7, 4); -x_37 = lean_ctor_get(x_7, 5); +lean_object* x_34; lean_object* x_35; uint8_t x_36; +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_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_inc(x_36); -lean_inc(x_35); -lean_inc(x_34); -lean_inc(x_33); -lean_inc(x_32); -x_38 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_38, 0, x_32); -lean_ctor_set(x_38, 1, x_33); -lean_ctor_set(x_38, 2, x_34); -lean_ctor_set(x_38, 3, x_35); -lean_ctor_set(x_38, 4, x_36); -lean_ctor_set(x_38, 5, x_37); -lean_ctor_set(x_38, 6, x_31); -if (x_28 == 0) +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; +} +} +else { -lean_object* x_112; uint8_t x_113; -x_112 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__10; -x_113 = lean_name_eq(x_25, x_112); -if (x_113 == 0) -{ -lean_object* x_114; uint8_t x_115; -x_114 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__12; -x_115 = lean_name_eq(x_25, x_114); -lean_dec(x_25); -if (x_115 == 0) -{ -lean_object* x_116; lean_object* x_117; uint8_t x_118; +uint8_t x_40; lean_object* x_41; +x_40 = 3; +x_41 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__3(x_13, x_3, x_6, x_2, x_40, x_29, x_8, x_21); lean_dec(x_13); -lean_dec(x_6); -x_116 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__15; -x_117 = l_Lean_throwError___at___private_Lean_Elab_Command_3__elabCommandUsing___main___spec__1___rarg(x_116, x_38, x_8, x_30); -x_118 = !lean_is_exclusive(x_117); -if (x_118 == 0) +if (lean_obj_tag(x_41) == 0) { -x_16 = x_117; -goto block_24; -} -else -{ -lean_object* x_119; lean_object* x_120; lean_object* x_121; -x_119 = lean_ctor_get(x_117, 0); -x_120 = lean_ctor_get(x_117, 1); -lean_inc(x_120); -lean_inc(x_119); -lean_dec(x_117); -x_121 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_121, 0, x_119); -lean_ctor_set(x_121, 1, x_120); -x_16 = x_121; -goto block_24; -} -} -else -{ -uint8_t x_122; -x_122 = 3; -x_39 = x_122; -x_40 = x_30; -goto block_111; -} -} -else -{ -uint8_t x_123; -lean_dec(x_25); -x_123 = 1; -x_39 = x_123; -x_40 = x_30; -goto block_111; -} -} -else -{ -lean_object* x_124; lean_object* x_125; lean_object* x_126; -lean_dec(x_25); -x_124 = lean_unsigned_to_nat(0u); -x_125 = l_Lean_Syntax_getArg(x_13, x_124); -lean_inc(x_38); -x_126 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_2__expandCtor___spec__1(x_125, x_38, x_8, x_30); -lean_dec(x_125); -if (lean_obj_tag(x_126) == 0) -{ -lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_192; -x_127 = lean_ctor_get(x_126, 0); -lean_inc(x_127); -x_128 = lean_ctor_get(x_126, 1); -lean_inc(x_128); -lean_dec(x_126); -lean_inc(x_38); -x_192 = l_Lean_Elab_Command_checkValidFieldModifier(x_127, x_38, x_8, x_128); -if (lean_obj_tag(x_192) == 0) -{ -lean_object* x_193; uint8_t x_194; -x_193 = lean_ctor_get(x_192, 1); -lean_inc(x_193); -lean_dec(x_192); -x_194 = l_Lean_Elab_Modifiers_isPrivate(x_127); -if (x_194 == 0) -{ -uint8_t x_195; -x_195 = l_Lean_Elab_Modifiers_isProtected(x_127); -if (x_195 == 0) -{ -x_129 = x_193; -goto block_191; -} -else -{ -uint8_t x_196; -x_196 = l_Lean_Elab_Modifiers_isPrivate(x_2); -if (x_196 == 0) -{ -x_129 = x_193; -goto block_191; -} -else -{ -lean_object* x_197; lean_object* x_198; uint8_t x_199; -lean_dec(x_127); -lean_dec(x_15); -lean_dec(x_13); -lean_dec(x_6); -x_197 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__5; -x_198 = l_Lean_throwError___at___private_Lean_Elab_Command_3__elabCommandUsing___main___spec__1___rarg(x_197, x_38, x_8, x_193); -x_199 = !lean_is_exclusive(x_198); -if (x_199 == 0) -{ -return x_198; -} -else -{ -lean_object* x_200; lean_object* x_201; lean_object* x_202; -x_200 = lean_ctor_get(x_198, 0); -x_201 = lean_ctor_get(x_198, 1); -lean_inc(x_201); -lean_inc(x_200); -lean_dec(x_198); -x_202 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_202, 0, x_200); -lean_ctor_set(x_202, 1, x_201); -return x_202; -} -} -} -} -else -{ -uint8_t x_203; -x_203 = l_Lean_Elab_Modifiers_isPrivate(x_2); -if (x_203 == 0) -{ -x_129 = x_193; -goto block_191; -} -else -{ -lean_object* x_204; lean_object* x_205; uint8_t x_206; -lean_dec(x_127); -lean_dec(x_15); -lean_dec(x_13); -lean_dec(x_6); -x_204 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__8; -x_205 = l_Lean_throwError___at___private_Lean_Elab_Command_3__elabCommandUsing___main___spec__1___rarg(x_204, x_38, x_8, x_193); -x_206 = !lean_is_exclusive(x_205); -if (x_206 == 0) -{ -return x_205; -} -else -{ -lean_object* x_207; lean_object* x_208; lean_object* x_209; -x_207 = lean_ctor_get(x_205, 0); -x_208 = lean_ctor_get(x_205, 1); -lean_inc(x_208); -lean_inc(x_207); -lean_dec(x_205); -x_209 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_209, 0, x_207); -lean_ctor_set(x_209, 1, x_208); -return x_209; -} -} -} -} -else -{ -uint8_t x_210; -lean_dec(x_127); -lean_dec(x_38); -lean_dec(x_15); -lean_dec(x_13); -lean_dec(x_6); -x_210 = !lean_is_exclusive(x_192); -if (x_210 == 0) -{ -return x_192; -} -else -{ -lean_object* x_211; lean_object* x_212; lean_object* x_213; -x_211 = lean_ctor_get(x_192, 0); -x_212 = lean_ctor_get(x_192, 1); -lean_inc(x_212); -lean_inc(x_211); -lean_dec(x_192); -x_213 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_213, 0, x_211); -lean_ctor_set(x_213, 1, x_212); -return x_213; -} -} -block_191: -{ -lean_object* x_130; lean_object* x_131; uint8_t x_132; uint8_t x_133; -x_130 = lean_unsigned_to_nat(3u); -x_131 = l_Lean_Syntax_getArg(x_13, x_130); -x_132 = l_Lean_Syntax_isNone(x_131); -lean_dec(x_131); -if (x_132 == 0) -{ -uint8_t x_189; -x_189 = 1; -x_133 = x_189; -goto block_188; -} -else -{ -uint8_t x_190; -x_190 = 0; -x_133 = x_190; -goto block_188; -} -block_188: -{ -lean_object* x_134; lean_object* x_135; uint8_t x_176; -x_176 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__16; -if (x_176 == 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; -x_177 = lean_unsigned_to_nat(4u); -x_178 = l_Lean_Syntax_getArg(x_13, x_177); -x_179 = l_Lean_Elab_expandDeclSig(x_178); -lean_dec(x_178); -x_180 = lean_ctor_get(x_179, 0); -lean_inc(x_180); -x_181 = lean_ctor_get(x_179, 1); -lean_inc(x_181); -lean_dec(x_179); -x_182 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_182, 0, x_181); -x_134 = x_180; -x_135 = x_182; -goto block_175; -} -else -{ -lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; -x_183 = lean_unsigned_to_nat(4u); -x_184 = l_Lean_Syntax_getArg(x_13, x_183); -x_185 = l_Lean_Elab_expandOptDeclSig(x_184); -lean_dec(x_184); -x_186 = lean_ctor_get(x_185, 0); -lean_inc(x_186); -x_187 = lean_ctor_get(x_185, 1); -lean_inc(x_187); -lean_dec(x_185); -x_134 = x_186; -x_135 = x_187; -goto block_175; -} -block_175: -{ -lean_object* x_136; lean_object* x_137; lean_object* x_138; uint8_t x_139; -x_136 = lean_unsigned_to_nat(2u); -x_137 = l_Lean_Syntax_getArg(x_13, x_136); -x_138 = l_Lean_Syntax_getArgs(x_137); -lean_dec(x_137); -x_139 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__16; -if (x_139 == 0) -{ -lean_object* x_140; uint8_t x_141; lean_object* x_142; -x_140 = lean_box(0); -x_141 = 0; -x_142 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__1(x_3, x_13, x_141, x_127, x_133, x_134, x_135, x_140, x_138, x_124, x_6, x_38, x_8, x_129); -lean_dec(x_38); -lean_dec(x_138); -lean_dec(x_13); -if (lean_obj_tag(x_142) == 0) -{ -lean_object* x_143; lean_object* x_144; -x_143 = lean_ctor_get(x_142, 0); -lean_inc(x_143); -x_144 = lean_ctor_get(x_142, 1); -lean_inc(x_144); -lean_dec(x_142); +lean_object* x_42; lean_object* x_43; +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_41, 1); +lean_inc(x_43); +lean_dec(x_41); x_5 = x_15; -x_6 = x_143; -x_9 = x_144; +x_6 = x_42; +x_9 = x_43; goto _start; } else { -uint8_t x_146; +uint8_t x_45; lean_dec(x_15); -x_146 = !lean_is_exclusive(x_142); -if (x_146 == 0) +x_45 = !lean_is_exclusive(x_41); +if (x_45 == 0) { -return x_142; +return x_41; } else { -lean_object* x_147; lean_object* x_148; lean_object* x_149; -x_147 = lean_ctor_get(x_142, 0); -x_148 = lean_ctor_get(x_142, 1); -lean_inc(x_148); -lean_inc(x_147); -lean_dec(x_142); -x_149 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_149, 0, x_147); -lean_ctor_set(x_149, 1, x_148); -return x_149; +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_41, 0); +x_47 = lean_ctor_get(x_41, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_41); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; +} } } } else { -lean_object* x_150; lean_object* x_151; uint8_t x_152; -x_150 = lean_unsigned_to_nat(5u); -x_151 = l_Lean_Syntax_getArg(x_13, x_150); -x_152 = l_Lean_Syntax_isNone(x_151); -if (x_152 == 0) -{ -lean_object* x_153; lean_object* x_154; lean_object* x_155; uint8_t x_156; lean_object* x_157; -x_153 = l_Lean_Syntax_getArg(x_151, x_124); -lean_dec(x_151); -x_154 = l_Lean_Syntax_getArg(x_153, x_14); -lean_dec(x_153); -x_155 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_155, 0, x_154); -x_156 = 0; -x_157 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__1(x_3, x_13, x_156, x_127, x_133, x_134, x_135, x_155, x_138, x_124, x_6, x_38, x_8, x_129); -lean_dec(x_38); -lean_dec(x_138); +uint8_t x_49; lean_object* x_50; +lean_dec(x_16); +x_49 = 1; +x_50 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__3(x_13, x_3, x_6, x_2, x_49, x_29, x_8, x_21); lean_dec(x_13); -if (lean_obj_tag(x_157) == 0) +if (lean_obj_tag(x_50) == 0) { -lean_object* x_158; lean_object* x_159; -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); +lean_object* x_51; lean_object* x_52; +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_5 = x_15; -x_6 = x_158; -x_9 = x_159; +x_6 = x_51; +x_9 = x_52; goto _start; } else { -uint8_t x_161; +uint8_t x_54; lean_dec(x_15); -x_161 = !lean_is_exclusive(x_157); -if (x_161 == 0) +x_54 = !lean_is_exclusive(x_50); +if (x_54 == 0) { -return x_157; +return x_50; } else { -lean_object* x_162; lean_object* x_163; lean_object* x_164; -x_162 = lean_ctor_get(x_157, 0); -x_163 = lean_ctor_get(x_157, 1); -lean_inc(x_163); -lean_inc(x_162); -lean_dec(x_157); -x_164 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_164, 0, x_162); -lean_ctor_set(x_164, 1, x_163); -return x_164; -} -} -} -else -{ -lean_object* x_165; uint8_t x_166; lean_object* x_167; -lean_dec(x_151); -x_165 = lean_box(0); -x_166 = 0; -x_167 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__1(x_3, x_13, x_166, x_127, x_133, x_134, x_135, x_165, x_138, x_124, x_6, x_38, x_8, x_129); -lean_dec(x_38); -lean_dec(x_138); -lean_dec(x_13); -if (lean_obj_tag(x_167) == 0) -{ -lean_object* x_168; lean_object* x_169; -x_168 = lean_ctor_get(x_167, 0); -lean_inc(x_168); -x_169 = lean_ctor_get(x_167, 1); -lean_inc(x_169); -lean_dec(x_167); -x_5 = x_15; -x_6 = x_168; -x_9 = x_169; -goto _start; -} -else -{ -uint8_t x_171; -lean_dec(x_15); -x_171 = !lean_is_exclusive(x_167); -if (x_171 == 0) -{ -return x_167; -} -else -{ -lean_object* x_172; lean_object* x_173; lean_object* x_174; -x_172 = lean_ctor_get(x_167, 0); -x_173 = lean_ctor_get(x_167, 1); -lean_inc(x_173); -lean_inc(x_172); -lean_dec(x_167); -x_174 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_174, 0, x_172); -lean_ctor_set(x_174, 1, x_173); -return x_174; -} -} -} -} -} -} -} -} -else -{ -uint8_t x_214; -lean_dec(x_38); -lean_dec(x_15); -lean_dec(x_13); -lean_dec(x_6); -x_214 = !lean_is_exclusive(x_126); -if (x_214 == 0) -{ -return x_126; -} -else -{ -lean_object* x_215; lean_object* x_216; lean_object* x_217; -x_215 = lean_ctor_get(x_126, 0); -x_216 = lean_ctor_get(x_126, 1); -lean_inc(x_216); -lean_inc(x_215); -lean_dec(x_126); -x_217 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_217, 0, x_215); -lean_ctor_set(x_217, 1, x_216); -return x_217; -} -} -} -block_111: -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_unsigned_to_nat(0u); -x_42 = l_Lean_Syntax_getArg(x_13, x_41); -lean_inc(x_38); -x_43 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_2__expandCtor___spec__1(x_42, x_38, x_8, x_40); -lean_dec(x_42); -if (lean_obj_tag(x_43) == 0) -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_85; -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_38); -x_85 = l_Lean_Elab_Command_checkValidFieldModifier(x_44, x_38, x_8, x_45); -if (lean_obj_tag(x_85) == 0) -{ -lean_object* x_86; uint8_t x_87; -x_86 = lean_ctor_get(x_85, 1); -lean_inc(x_86); -lean_dec(x_85); -x_87 = l_Lean_Elab_Modifiers_isPrivate(x_44); -if (x_87 == 0) -{ -uint8_t x_88; -x_88 = l_Lean_Elab_Modifiers_isProtected(x_44); -if (x_88 == 0) -{ -x_46 = x_86; -goto block_84; -} -else -{ -uint8_t x_89; -x_89 = l_Lean_Elab_Modifiers_isPrivate(x_2); -if (x_89 == 0) -{ -x_46 = x_86; -goto block_84; -} -else -{ -lean_object* x_90; lean_object* x_91; uint8_t x_92; -lean_dec(x_44); -lean_dec(x_13); -lean_dec(x_6); -x_90 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__5; -x_91 = l_Lean_throwError___at___private_Lean_Elab_Command_3__elabCommandUsing___main___spec__1___rarg(x_90, x_38, x_8, x_86); -x_92 = !lean_is_exclusive(x_91); -if (x_92 == 0) -{ -x_16 = x_91; -goto block_24; -} -else -{ -lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_93 = lean_ctor_get(x_91, 0); -x_94 = lean_ctor_get(x_91, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_91); -x_95 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_95, 0, x_93); -lean_ctor_set(x_95, 1, x_94); -x_16 = x_95; -goto block_24; -} -} -} -} -else -{ -uint8_t x_96; -x_96 = l_Lean_Elab_Modifiers_isPrivate(x_2); -if (x_96 == 0) -{ -x_46 = x_86; -goto block_84; -} -else -{ -lean_object* x_97; lean_object* x_98; uint8_t x_99; -lean_dec(x_44); -lean_dec(x_13); -lean_dec(x_6); -x_97 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__8; -x_98 = l_Lean_throwError___at___private_Lean_Elab_Command_3__elabCommandUsing___main___spec__1___rarg(x_97, x_38, x_8, x_86); -x_99 = !lean_is_exclusive(x_98); -if (x_99 == 0) -{ -x_16 = x_98; -goto block_24; -} -else -{ -lean_object* x_100; lean_object* x_101; lean_object* x_102; -x_100 = lean_ctor_get(x_98, 0); -x_101 = lean_ctor_get(x_98, 1); -lean_inc(x_101); -lean_inc(x_100); -lean_dec(x_98); -x_102 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_102, 0, x_100); -lean_ctor_set(x_102, 1, x_101); -x_16 = x_102; -goto block_24; -} -} -} -} -else -{ -uint8_t x_103; -lean_dec(x_44); -lean_dec(x_38); -lean_dec(x_13); -lean_dec(x_6); -x_103 = !lean_is_exclusive(x_85); -if (x_103 == 0) -{ -x_16 = x_85; -goto block_24; -} -else -{ -lean_object* x_104; lean_object* x_105; lean_object* x_106; -x_104 = lean_ctor_get(x_85, 0); -x_105 = lean_ctor_get(x_85, 1); -lean_inc(x_105); -lean_inc(x_104); -lean_dec(x_85); -x_106 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_106, 0, x_104); -lean_ctor_set(x_106, 1, x_105); -x_16 = x_106; -goto block_24; -} -} -block_84: -{ -lean_object* x_47; lean_object* x_48; uint8_t x_49; uint8_t x_50; uint8_t x_51; uint8_t x_52; -x_47 = lean_unsigned_to_nat(3u); -x_48 = l_Lean_Syntax_getArg(x_13, x_47); -x_49 = l_Lean_Syntax_isNone(x_48); -lean_dec(x_48); -x_50 = 0; -x_51 = l_Lean_BinderInfo_beq(x_39, x_50); -if (x_49 == 0) -{ -uint8_t x_82; -x_82 = 1; -x_52 = x_82; -goto block_81; -} -else -{ -uint8_t x_83; -x_83 = 0; -x_52 = x_83; -goto block_81; -} -block_81: -{ -lean_object* x_53; lean_object* x_54; -if (x_51 == 0) -{ -lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_70 = lean_unsigned_to_nat(4u); -x_71 = l_Lean_Syntax_getArg(x_13, x_70); -x_72 = l_Lean_Elab_expandDeclSig(x_71); -lean_dec(x_71); -x_73 = lean_ctor_get(x_72, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_72, 1); -lean_inc(x_74); -lean_dec(x_72); -x_75 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_75, 0, x_74); -x_53 = x_73; -x_54 = x_75; -goto block_69; -} -else -{ -lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_76 = lean_unsigned_to_nat(4u); -x_77 = l_Lean_Syntax_getArg(x_13, x_76); -x_78 = l_Lean_Elab_expandOptDeclSig(x_77); -lean_dec(x_77); -x_79 = lean_ctor_get(x_78, 0); -lean_inc(x_79); -x_80 = lean_ctor_get(x_78, 1); -lean_inc(x_80); -lean_dec(x_78); -x_53 = x_79; -x_54 = x_80; -goto block_69; -} -block_69: -{ lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_unsigned_to_nat(2u); -x_56 = l_Lean_Syntax_getArg(x_13, x_55); -x_57 = l_Lean_Syntax_getArgs(x_56); -lean_dec(x_56); -if (x_51 == 0) -{ -lean_object* x_58; lean_object* x_59; -x_58 = lean_box(0); -x_59 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__1(x_3, x_13, x_39, x_44, x_52, x_53, x_54, x_58, x_57, x_41, x_6, x_38, x_8, x_46); -lean_dec(x_38); -lean_dec(x_57); -lean_dec(x_13); -x_16 = x_59; -goto block_24; -} -else -{ -lean_object* x_60; lean_object* x_61; uint8_t x_62; -x_60 = lean_unsigned_to_nat(5u); -x_61 = l_Lean_Syntax_getArg(x_13, x_60); -x_62 = l_Lean_Syntax_isNone(x_61); -if (x_62 == 0) -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_63 = l_Lean_Syntax_getArg(x_61, x_41); -lean_dec(x_61); -x_64 = l_Lean_Syntax_getArg(x_63, x_14); -lean_dec(x_63); -x_65 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_65, 0, x_64); -x_66 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__1(x_3, x_13, x_39, x_44, x_52, x_53, x_54, x_65, x_57, x_41, x_6, x_38, x_8, x_46); -lean_dec(x_38); -lean_dec(x_57); -lean_dec(x_13); -x_16 = x_66; -goto block_24; -} -else -{ -lean_object* x_67; lean_object* x_68; -lean_dec(x_61); -x_67 = lean_box(0); -x_68 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__1(x_3, x_13, x_39, x_44, x_52, x_53, x_54, x_67, x_57, x_41, x_6, x_38, x_8, x_46); -lean_dec(x_38); -lean_dec(x_57); -lean_dec(x_13); -x_16 = x_68; -goto block_24; -} -} +x_55 = lean_ctor_get(x_50, 0); +x_56 = lean_ctor_get(x_50, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_50); +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +return x_57; } } } } else { -uint8_t x_107; -lean_dec(x_38); +uint8_t x_58; lean_object* x_59; +lean_dec(x_16); +x_58 = 0; +x_59 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__3(x_13, x_3, x_6, x_2, x_58, x_29, x_8, x_21); lean_dec(x_13); -lean_dec(x_6); -x_107 = !lean_is_exclusive(x_43); -if (x_107 == 0) +if (lean_obj_tag(x_59) == 0) { -x_16 = x_43; -goto block_24; +lean_object* x_60; lean_object* x_61; +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +lean_dec(x_59); +x_5 = x_15; +x_6 = x_60; +x_9 = x_61; +goto _start; } else { -lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_108 = lean_ctor_get(x_43, 0); -x_109 = lean_ctor_get(x_43, 1); -lean_inc(x_109); -lean_inc(x_108); -lean_dec(x_43); -x_110 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_110, 0, x_108); -lean_ctor_set(x_110, 1, x_109); -x_16 = x_110; -goto block_24; +uint8_t x_63; +lean_dec(x_15); +x_63 = !lean_is_exclusive(x_59); +if (x_63 == 0) +{ +return x_59; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_59, 0); +x_65 = lean_ctor_get(x_59, 1); +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_59); +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_64); +lean_ctor_set(x_66, 1, x_65); +return x_66; } } } } } } -} -lean_object* l___private_Lean_Elab_Structure_3__expandFields(lean_object* 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___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; @@ -4073,12 +4364,27 @@ lean_dec(x_8); x_11 = l_Lean_Syntax_getArgs(x_10); lean_dec(x_10); x_12 = l_Array_empty___closed__1; -x_13 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2(x_1, x_2, x_3, x_11, x_9, x_12, x_4, x_5, x_6); +x_13 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2(x_1, x_2, x_3, x_11, x_9, x_12, x_4, x_5, x_6); lean_dec(x_11); return x_13; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___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* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___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* x_14) { +_start: +{ +uint8_t x_15; uint8_t x_16; lean_object* x_17; +x_15 = lean_unbox(x_5); +lean_dec(x_5); +x_16 = lean_unbox(x_6); +lean_dec(x_6); +x_17 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_15, x_16, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_1); +return x_17; +} +} +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___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) { _start: { uint8_t x_15; uint8_t x_16; lean_object* x_17; @@ -4086,7 +4392,7 @@ x_15 = lean_unbox(x_3); lean_dec(x_3); x_16 = lean_unbox(x_5); lean_dec(x_5); -x_17 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__1(x_1, x_2, x_15, x_4, x_16, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +x_17 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1(x_1, x_2, x_15, x_4, x_16, x_6, 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_9); @@ -4095,11 +4401,55 @@ lean_dec(x_1); return x_17; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___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_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___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) { +_start: +{ +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_2); +lean_dec(x_2); +x_11 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__1(x_1, x_10, 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_3); +lean_dec(x_1); +return x_11; +} +} +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___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: +{ +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_2); +lean_dec(x_2); +x_12 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__2(x_1, x_11, 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); +lean_dec(x_3); +lean_dec(x_1); +return x_12; +} +} +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_5); +lean_dec(x_5); +x_10 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__3(x_1, x_2, x_3, x_4, x_9, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_10; +} +} +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___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_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___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_4); @@ -4109,11 +4459,11 @@ lean_dec(x_1); return x_10; } } -lean_object* l___private_Lean_Elab_Structure_3__expandFields___boxed(lean_object* 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___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___boxed(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_Structure_3__expandFields(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -4122,7 +4472,56 @@ lean_dec(x_1); return x_7; } } -uint8_t l___private_Lean_Elab_Structure_4__validStructType(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_validStructType_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 3) +{ +lean_object* x_4; +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +if (lean_obj_tag(x_4) == 1) +{ +uint64_t x_5; lean_object* x_6; uint64_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_3); +x_5 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); +lean_dec(x_1); +x_6 = lean_ctor_get(x_4, 0); +lean_inc(x_6); +x_7 = lean_ctor_get_uint64(x_4, sizeof(void*)*1); +lean_dec(x_4); +x_8 = lean_box_uint64(x_7); +x_9 = lean_box_uint64(x_5); +x_10 = lean_apply_3(x_2, x_6, x_8, x_9); +return x_10; +} +else +{ +lean_object* x_11; +lean_dec(x_4); +lean_dec(x_2); +x_11 = lean_apply_1(x_3, x_1); +return x_11; +} +} +else +{ +lean_object* x_12; +lean_dec(x_2); +x_12 = lean_apply_1(x_3, x_1); +return x_12; +} +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_validStructType_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_validStructType_match__1___rarg), 3, 0); +return x_2; +} +} +uint8_t l___private_Lean_Elab_Structure_0__Lean_Elab_Command_validStructType(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 3) @@ -4150,17 +4549,51 @@ return x_5; } } } -lean_object* l___private_Lean_Elab_Structure_4__validStructType___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_validStructType___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Elab_Structure_4__validStructType(x_1); +x_2 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_validStructType(x_1); lean_dec(x_1); x_3 = lean_box(x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__1() { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure_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_Structure_0__Lean_Elab_Command_checkParentIsStructure_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure_match__1___rarg), 3, 0); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__1() { _start: { lean_object* x_1; @@ -4168,27 +4601,27 @@ x_1 = lean_mk_string("expected structure"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__2() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__1; +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___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_Structure_5__checkParentIsStructure___closed__3() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__2; +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___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_Structure_5__checkParentIsStructure___closed__4() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__4() { _start: { lean_object* x_1; @@ -4196,27 +4629,16 @@ x_1 = lean_mk_string("' is not a structure"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__5() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__4; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__4; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_5__checkParentIsStructure___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_Structure_5__checkParentIsStructure(lean_object* x_1, lean_object* x_2, lean_object* 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_Structure_0__Lean_Elab_Command_checkParentIsStructure(lean_object* x_1, lean_object* x_2, 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; @@ -4241,40 +4663,36 @@ lean_inc(x_10); x_16 = l_Lean_isStructure(x_15, x_10); if (x_16 == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_free_object(x_11); -x_17 = l_System_FilePath_dirName___closed__1; -x_18 = l_Lean_Name_toStringWithSep___main(x_17, x_10); -x_19 = lean_alloc_ctor(2, 1, 0); +x_17 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_17, 0, x_10); +x_18 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__3___closed__3; +x_19 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_19, 0, x_18); -x_20 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_20, 0, x_19); -x_21 = l_Lean_throwUnknownConstant___rarg___closed__5; -x_22 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_20); -x_23 = l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__6; -x_24 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -x_25 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_24, x_2, x_3, x_4, x_5, x_6, x_7, x_14); -x_26 = !lean_is_exclusive(x_25); -if (x_26 == 0) +lean_ctor_set(x_19, 1, x_17); +x_20 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__5; +x_21 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +x_22 = 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_14); +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) { -return x_25; +return x_22; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_25, 0); -x_28 = lean_ctor_get(x_25, 1); -lean_inc(x_28); -lean_inc(x_27); -lean_dec(x_25); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_27); -lean_ctor_set(x_29, 1, x_28); -return x_29; +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_22, 0); +x_25 = lean_ctor_get(x_22, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_22); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; } } else @@ -4286,82 +4704,78 @@ return x_11; } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_30 = lean_ctor_get(x_11, 0); -x_31 = lean_ctor_get(x_11, 1); -lean_inc(x_31); -lean_inc(x_30); +lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; +x_27 = lean_ctor_get(x_11, 0); +x_28 = lean_ctor_get(x_11, 1); +lean_inc(x_28); +lean_inc(x_27); lean_dec(x_11); -x_32 = lean_ctor_get(x_30, 0); -lean_inc(x_32); -lean_dec(x_30); +x_29 = lean_ctor_get(x_27, 0); +lean_inc(x_29); +lean_dec(x_27); lean_inc(x_10); -x_33 = l_Lean_isStructure(x_32, x_10); -if (x_33 == 0) +x_30 = l_Lean_isStructure(x_29, x_10); +if (x_30 == 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; 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_34 = l_System_FilePath_dirName___closed__1; -x_35 = l_Lean_Name_toStringWithSep___main(x_34, x_10); -x_36 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_36, 0, x_35); -x_37 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_37, 0, x_36); -x_38 = l_Lean_throwUnknownConstant___rarg___closed__5; -x_39 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_37); -x_40 = l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__6; -x_41 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -x_42 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_41, x_2, x_3, x_4, x_5, x_6, x_7, x_31); -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 1); -lean_inc(x_44); -if (lean_is_exclusive(x_42)) { - lean_ctor_release(x_42, 0); - lean_ctor_release(x_42, 1); - x_45 = x_42; +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_31 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_31, 0, x_10); +x_32 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__3___closed__3; +x_33 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_31); +x_34 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___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_2, x_3, x_4, x_5, x_6, x_7, x_28); +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_39 = x_36; } else { - lean_dec_ref(x_42); - x_45 = lean_box(0); + lean_dec_ref(x_36); + x_39 = lean_box(0); } -if (lean_is_scalar(x_45)) { - x_46 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_39)) { + x_40 = lean_alloc_ctor(1, 2, 0); } else { - x_46 = x_45; + x_40 = x_39; } -lean_ctor_set(x_46, 0, x_43); -lean_ctor_set(x_46, 1, x_44); -return x_46; +lean_ctor_set(x_40, 0, x_37); +lean_ctor_set(x_40, 1, x_38); +return x_40; } else { -lean_object* x_47; +lean_object* x_41; lean_dec(x_2); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_10); -lean_ctor_set(x_47, 1, x_31); -return x_47; +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_10); +lean_ctor_set(x_41, 1, x_28); +return x_41; } } } else { -lean_object* x_48; lean_object* x_49; +lean_object* x_42; lean_object* x_43; lean_dec(x_9); -x_48 = l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__3; -x_49 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_48, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -return x_49; +x_42 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__3; +x_43 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_42, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +return x_43; } } } -lean_object* l___private_Lean_Elab_Structure_5__checkParentIsStructure___boxed(lean_object* x_1, lean_object* x_2, lean_object* 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_Structure_0__Lean_Elab_Command_checkParentIsStructure___boxed(lean_object* x_1, lean_object* x_2, 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_Structure_5__checkParentIsStructure(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure(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); @@ -4371,7 +4785,7 @@ lean_dec(x_1); return x_9; } } -lean_object* l_Array_findMAux___main___at___private_Lean_Elab_Structure_6__findFieldInfo_x3f___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_findMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -4414,41 +4828,41 @@ return x_13; } } } -lean_object* l___private_Lean_Elab_Structure_6__findFieldInfo_x3f(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; x_3 = lean_unsigned_to_nat(0u); -x_4 = l_Array_findMAux___main___at___private_Lean_Elab_Structure_6__findFieldInfo_x3f___spec__1(x_2, x_1, x_3); +x_4 = l_Array_findMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f___spec__1(x_2, x_1, x_3); return x_4; } } -lean_object* l_Array_findMAux___main___at___private_Lean_Elab_Structure_6__findFieldInfo_x3f___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_findMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Array_findMAux___main___at___private_Lean_Elab_Structure_6__findFieldInfo_x3f___spec__1(x_1, x_2, x_3); +x_4 = l_Array_findMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f___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_Structure_6__findFieldInfo_x3f___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l___private_Lean_Elab_Structure_6__findFieldInfo_x3f(x_1, x_2); +x_3 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -uint8_t l___private_Lean_Elab_Structure_7__containsFieldName(lean_object* x_1, lean_object* x_2) { +uint8_t l___private_Lean_Elab_Structure_0__Lean_Elab_Command_containsFieldName(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; x_3 = lean_unsigned_to_nat(0u); -x_4 = l_Array_findMAux___main___at___private_Lean_Elab_Structure_6__findFieldInfo_x3f___spec__1(x_2, x_1, x_3); +x_4 = l_Array_findMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f___spec__1(x_2, x_1, x_3); if (lean_obj_tag(x_4) == 0) { uint8_t x_5; @@ -4464,18 +4878,18 @@ return x_6; } } } -lean_object* l___private_Lean_Elab_Structure_7__containsFieldName___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_containsFieldName___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l___private_Lean_Elab_Structure_7__containsFieldName(x_1, x_2); +x_3 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_containsFieldName(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_Meta_mkProjection___at___private_Lean_Elab_Structure_8__processSubfields___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* l_Lean_Meta_mkProjection___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_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, lean_object* x_9) { _start: { lean_object* x_10; @@ -4483,70 +4897,7 @@ x_10 = l___private_Lean_Meta_AppBuilder_25__mkProjectionImp___main(x_1, x_2, x_5 return x_10; } } -lean_object* l_Lean_Meta_withLetDecl___at___private_Lean_Elab_Structure_8__processSubfields___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* x_11) { -_start: -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_alloc_closure((void*)(l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_20__elabImplicitLambda___main___spec__1___rarg___lambda__1), 9, 3); -lean_closure_set(x_12, 0, x_4); -lean_closure_set(x_12, 1, x_5); -lean_closure_set(x_12, 2, x_6); -x_13 = l___private_Lean_Meta_Basic_28__withLetDeclImp___rarg(x_1, x_2, x_3, x_12, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_13) == 0) -{ -uint8_t x_14; -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) -{ -return x_13; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_13, 0); -x_16 = lean_ctor_get(x_13, 1); -lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_13); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_15); -lean_ctor_set(x_17, 1, x_16); -return x_17; -} -} -else -{ -uint8_t x_18; -x_18 = !lean_is_exclusive(x_13); -if (x_18 == 0) -{ -return x_13; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_13, 0); -x_20 = lean_ctor_get(x_13, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_13); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_20); -return x_21; -} -} -} -} -lean_object* l_Lean_Meta_withLetDecl___at___private_Lean_Elab_Structure_8__processSubfields___main___spec__2(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withLetDecl___at___private_Lean_Elab_Structure_8__processSubfields___main___spec__2___rarg), 11, 0); -return x_2; -} -} -lean_object* l___private_Lean_Elab_Structure_8__processSubfields___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* x_14, lean_object* x_15, lean_object* x_16) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_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, lean_object* x_14, lean_object* x_15, lean_object* x_16) { _start: { lean_object* x_17; lean_object* x_18; uint8_t 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; @@ -4565,11 +4916,133 @@ lean_ctor_set_uint8(x_21, sizeof(void*)*4 + 1, x_20); x_22 = lean_array_push(x_3, x_21); x_23 = lean_unsigned_to_nat(1u); x_24 = lean_nat_add(x_4, x_23); -x_25 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg(x_1, x_5, x_6, x_7, x_24, x_22, x_8, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +x_25 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg(x_1, x_5, x_6, x_7, x_8, x_24, x_22, x_10, x_11, x_12, x_13, x_14, x_15, x_16); return x_25; } } -static lean_object* _init_l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__1() { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +_start: +{ +lean_object* x_17; +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_2); +lean_inc(x_1); +x_17 = l___private_Lean_Meta_AppBuilder_25__mkProjectionImp___main(x_1, x_2, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_18); +x_20 = l_Lean_Meta_inferType___at_Lean_Elab_Term_removeUnused___spec__2(x_18, x_10, x_11, x_12, x_13, x_14, x_15, x_19); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_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_2); +x_23 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___lambda__1___boxed), 16, 8); +lean_closure_set(x_23, 0, x_3); +lean_closure_set(x_23, 1, x_2); +lean_closure_set(x_23, 2, x_4); +lean_closure_set(x_23, 3, x_5); +lean_closure_set(x_23, 4, x_1); +lean_closure_set(x_23, 5, x_6); +lean_closure_set(x_23, 6, x_7); +lean_closure_set(x_23, 7, x_8); +x_24 = l_Lean_Meta_withLetDecl___at_Lean_Elab_Term_elabLetDeclAux___spec__4___rarg(x_2, x_21, x_18, x_23, x_10, x_11, x_12, x_13, x_14, x_15, x_22); +return x_24; +} +else +{ +uint8_t x_25; +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); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_25 = !lean_is_exclusive(x_20); +if (x_25 == 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_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; +} +} +} +else +{ +uint8_t x_29; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_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; +} +} +} +} +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__1() { _start: { lean_object* x_1; @@ -4577,27 +5050,16 @@ x_1 = lean_mk_string("field '"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__2() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_8__processSubfields___main___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_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_8__processSubfields___main___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_Structure_8__processSubfields___main___rarg___closed__4() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__3() { _start: { lean_object* x_1; @@ -4605,303 +5067,181 @@ x_1 = lean_mk_string("' from '"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__5() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__4; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_8__processSubfields___main___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_Structure_8__processSubfields___main___rarg___closed__7() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___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___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__7; -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_Structure_8__processSubfields___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* x_13, lean_object* x_14) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_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, lean_object* x_13, lean_object* x_14) { _start: { lean_object* x_15; uint8_t x_16; x_15 = lean_array_get_size(x_4); -x_16 = lean_nat_dec_lt(x_5, x_15); +x_16 = lean_nat_dec_lt(x_6, x_15); lean_dec(x_15); if (x_16 == 0) { lean_object* x_17; -lean_dec(x_5); +lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_17 = lean_apply_8(x_7, x_6, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +x_17 = lean_apply_8(x_5, x_7, 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_array_fget(x_4, x_5); -x_19 = lean_st_ref_get(x_13, x_14); -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -lean_dec(x_19); -x_21 = l___private_Lean_Elab_Structure_7__containsFieldName(x_6, x_18); -if (x_21 == 0) +lean_object* x_18; uint8_t x_19; +x_18 = lean_array_fget(x_4, x_6); +x_19 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_containsFieldName(x_7, x_18); +if (x_19 == 0) { -lean_object* x_22; -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_18); -lean_inc(x_2); -x_22 = l___private_Lean_Meta_AppBuilder_25__mkProjectionImp___main(x_2, x_18, x_10, x_11, x_12, x_13, x_20); -if (lean_obj_tag(x_22) == 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_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_23); -x_25 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_23, x_8, x_9, x_10, x_11, x_12, x_13, x_24); -if (lean_obj_tag(x_25) == 0) -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -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_18); -x_28 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___lambda__1___boxed), 16, 8); -lean_closure_set(x_28, 0, x_1); -lean_closure_set(x_28, 1, x_18); -lean_closure_set(x_28, 2, x_6); -lean_closure_set(x_28, 3, x_5); -lean_closure_set(x_28, 4, x_2); -lean_closure_set(x_28, 5, x_3); -lean_closure_set(x_28, 6, x_4); -lean_closure_set(x_28, 7, x_7); -x_29 = l_Lean_Meta_withLetDecl___at___private_Lean_Elab_Structure_8__processSubfields___main___spec__2___rarg(x_18, x_26, x_23, x_28, x_8, x_9, x_10, x_11, x_12, x_13, x_27); -return x_29; +lean_object* x_20; lean_object* x_21; +x_20 = lean_box(0); +x_21 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___lambda__2(x_2, x_18, x_1, x_7, x_6, x_3, x_4, x_5, x_20, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +return x_21; } else { -uint8_t x_30; -lean_dec(x_23); -lean_dec(x_18); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_30 = !lean_is_exclusive(x_25); -if (x_30 == 0) -{ -return x_25; -} -else -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_25, 0); -x_32 = lean_ctor_get(x_25, 1); -lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_25); -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 -{ -uint8_t x_34; -lean_dec(x_18); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_34 = !lean_is_exclusive(x_22); -if (x_34 == 0) -{ -return x_22; -} -else -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_22, 0); -x_36 = lean_ctor_get(x_22, 1); -lean_inc(x_36); -lean_inc(x_35); -lean_dec(x_22); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_35); -lean_ctor_set(x_37, 1, x_36); -return x_37; -} -} -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; +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_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_38 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_38, 0, x_18); -x_39 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__3; -x_40 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -x_41 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__6; -x_42 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -x_43 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_43, 0, x_3); -x_44 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -x_45 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__8; -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_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_46, x_8, x_9, x_10, x_11, x_12, x_13, x_20); +x_22 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_22, 0, x_18); +x_23 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__2; +x_24 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_22); +x_25 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__4; +x_26 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +x_27 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_27, 0, x_3); +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_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__4; +x_30 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +x_31 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(x_30, 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); -x_48 = !lean_is_exclusive(x_47); -if (x_48 == 0) +x_32 = !lean_is_exclusive(x_31); +if (x_32 == 0) { -return x_47; +return x_31; } 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; +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_31, 0); +x_34 = lean_ctor_get(x_31, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_31); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +return x_35; } } } } } -lean_object* l___private_Lean_Elab_Structure_8__processSubfields___main(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_8__processSubfields___main___rarg), 14, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg), 14, 0); return x_2; } } -lean_object* l_Lean_Meta_mkProjection___at___private_Lean_Elab_Structure_8__processSubfields___main___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_Lean_Meta_mkProjection___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_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, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l_Lean_Meta_mkProjection___at___private_Lean_Elab_Structure_8__processSubfields___main___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_Meta_mkProjection___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___spec__1(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); return x_10; } } -lean_object* l___private_Lean_Elab_Structure_8__processSubfields___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* x_14, lean_object* x_15, lean_object* x_16) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_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, lean_object* x_14, lean_object* x_15, lean_object* x_16) { _start: { lean_object* x_17; -x_17 = l___private_Lean_Elab_Structure_8__processSubfields___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, x_15, x_16); +x_17 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_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, x_14, x_15, x_16); lean_dec(x_4); return x_17; } } -lean_object* l___private_Lean_Elab_Structure_8__processSubfields___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* x_13, lean_object* x_14) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { _start: { -lean_object* x_15; -x_15 = l___private_Lean_Elab_Structure_8__processSubfields___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, x_13, x_14); +lean_object* x_17; +x_17 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +lean_dec(x_9); +return x_17; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields___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* x_13) { +_start: +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_unsigned_to_nat(0u); +x_15 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg(x_1, x_2, x_3, x_4, x_6, 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_Structure_8__processSubfields(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_8__processSubfields___rarg), 14, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields___rarg), 13, 0); return x_2; } } -lean_object* l___private_Lean_Elab_Structure_9__withParents___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* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_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_apply_3(x_4, x_1, x_2, x_3); +return x_5; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_match__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_match__1___rarg), 4, 0); +return x_3; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; lean_object* x_13; lean_object* x_14; x_12 = lean_unsigned_to_nat(1u); x_13 = lean_nat_add(x_1, x_12); -x_14 = l___private_Lean_Elab_Structure_9__withParents___main___rarg(x_2, x_13, x_4, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_14 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg(x_2, x_13, x_4, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11); return x_14; } } -lean_object* l___private_Lean_Elab_Structure_9__withParents___main___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; @@ -4923,16 +5263,71 @@ lean_ctor_set_uint8(x_21, sizeof(void*)*4 + 1, x_20); x_22 = lean_array_push(x_3, x_21); lean_inc(x_5); x_23 = l_Lean_getStructureFieldsFlattened(x_4, x_5); -x_24 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_9__withParents___main___rarg___lambda__1___boxed), 11, 3); +x_24 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg___lambda__1___boxed), 11, 3); lean_closure_set(x_24, 0, x_6); lean_closure_set(x_24, 1, x_1); lean_closure_set(x_24, 2, x_7); x_25 = lean_unsigned_to_nat(0u); -x_26 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg(x_16, x_8, x_5, x_23, x_25, x_22, x_24, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +x_26 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg(x_16, x_8, x_5, x_23, x_24, x_25, x_22, x_9, x_10, x_11, x_12, x_13, x_14, x_15); return x_26; } } -static lean_object* _init_l___private_Lean_Elab_Structure_9__withParents___main___rarg___closed__1() { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +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_st_ref_get(x_14, x_15); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = lean_ctor_get(x_17, 0); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_ctor_get_uint8(x_1, sizeof(void*)*11); +lean_inc(x_4); +lean_inc(x_19); +lean_inc(x_2); +x_21 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg___lambda__2), 15, 7); +lean_closure_set(x_21, 0, x_1); +lean_closure_set(x_21, 1, x_2); +lean_closure_set(x_21, 2, x_3); +lean_closure_set(x_21, 3, x_19); +lean_closure_set(x_21, 4, x_4); +lean_closure_set(x_21, 5, x_5); +lean_closure_set(x_21, 6, x_6); +if (x_20 == 0) +{ +uint8_t x_22; lean_object* x_23; +lean_dec(x_19); +lean_dec(x_4); +x_22 = 0; +x_23 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_elabLetDeclAux___spec__3___rarg(x_2, x_22, x_7, x_21, x_9, x_10, x_11, x_12, x_13, x_14, x_18); +return x_23; +} +else +{ +uint8_t x_24; +x_24 = lean_is_class(x_19, x_4); +if (x_24 == 0) +{ +uint8_t x_25; lean_object* x_26; +x_25 = 0; +x_26 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_elabLetDeclAux___spec__3___rarg(x_2, x_25, x_7, x_21, x_9, x_10, x_11, x_12, x_13, x_14, x_18); +return x_26; +} +else +{ +uint8_t x_27; lean_object* x_28; +x_27 = 3; +x_28 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_elabLetDeclAux___spec__3___rarg(x_2, x_27, x_7, x_21, x_9, x_10, x_11, x_12, x_13, x_14, x_18); +return x_28; +} +} +} +} +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg___closed__1() { _start: { lean_object* x_1; @@ -4940,7 +5335,7 @@ x_1 = lean_mk_string("to"); return x_1; } } -lean_object* l___private_Lean_Elab_Structure_9__withParents___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* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; lean_object* x_13; uint8_t x_14; @@ -4992,10 +5387,10 @@ x_24 = lean_ctor_get(x_22, 1); lean_inc(x_24); lean_dec(x_22); lean_inc(x_5); -x_25 = l___private_Lean_Elab_Structure_5__checkParentIsStructure(x_23, x_5, x_6, x_7, x_8, x_9, x_10, x_24); +x_25 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure(x_23, x_5, x_6, x_7, x_8, x_9, x_10, x_24); if (lean_obj_tag(x_25) == 0) { -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_46; +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; x_26 = lean_ctor_get(x_25, 0); lean_inc(x_26); x_27 = lean_ctor_get(x_25, 1); @@ -5005,121 +5400,68 @@ lean_inc(x_26); x_28 = lean_erase_macro_scopes(x_26); x_29 = l_Lean_Name_getString_x21(x_28); lean_dec(x_28); -x_30 = l___private_Lean_Elab_Structure_9__withParents___main___rarg___closed__1; +x_30 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg___closed__1; x_31 = lean_string_append(x_30, x_29); lean_dec(x_29); x_32 = lean_box(0); x_33 = lean_name_mk_string(x_32, x_31); -x_46 = l___private_Lean_Elab_Structure_7__containsFieldName(x_3, x_33); -if (x_46 == 0) +x_34 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_containsFieldName(x_3, x_33); +if (x_34 == 0) { -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +lean_object* x_35; lean_object* x_36; lean_dec(x_16); -x_47 = lean_st_ref_get(x_10, x_27); -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_ctor_get(x_48, 0); -lean_inc(x_50); -lean_dec(x_48); -x_34 = x_50; -x_35 = x_49; -goto block_45; +x_35 = lean_box(0); +x_36 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg___lambda__3(x_1, x_33, x_3, x_26, x_2, x_4, x_23, x_35, x_5, x_6, x_7, x_8, x_9, x_10, x_27); +return x_36; } 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; uint8_t x_57; +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; lean_dec(x_26); lean_dec(x_23); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_51 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_51, 0, x_33); -x_52 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__3; -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___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__8; -x_55 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_55, 0, x_53); -lean_ctor_set(x_55, 1, x_54); -x_56 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_16, x_55, x_5, x_6, x_7, x_8, x_9, x_10, x_27); +x_37 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_37, 0, x_33); +x_38 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__2; +x_39 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_37); +x_40 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__4; +x_41 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +x_42 = l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2___rarg(x_16, x_41, x_5, x_6, x_7, x_8, x_9, x_10, x_27); lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_16); -x_57 = !lean_is_exclusive(x_56); -if (x_57 == 0) +x_43 = !lean_is_exclusive(x_42); +if (x_43 == 0) { -return x_56; -} -else -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_56, 0); -x_59 = lean_ctor_get(x_56, 1); -lean_inc(x_59); -lean_inc(x_58); -lean_dec(x_56); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_59); -return x_60; -} -} -block_45: -{ -uint8_t x_36; lean_object* x_37; -x_36 = lean_ctor_get_uint8(x_1, sizeof(void*)*11); -lean_inc(x_26); -lean_inc(x_34); -lean_inc(x_33); -x_37 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_9__withParents___main___rarg___lambda__2), 15, 7); -lean_closure_set(x_37, 0, x_1); -lean_closure_set(x_37, 1, x_33); -lean_closure_set(x_37, 2, x_3); -lean_closure_set(x_37, 3, x_34); -lean_closure_set(x_37, 4, x_26); -lean_closure_set(x_37, 5, x_2); -lean_closure_set(x_37, 6, x_4); -if (x_36 == 0) -{ -uint8_t x_38; lean_object* x_39; -lean_dec(x_34); -lean_dec(x_26); -x_38 = 0; -x_39 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_20__elabImplicitLambda___main___spec__1___rarg(x_33, x_38, x_23, x_37, x_5, x_6, x_7, x_8, x_9, x_10, x_35); -return x_39; -} -else -{ -uint8_t x_40; -x_40 = lean_is_class(x_34, x_26); -if (x_40 == 0) -{ -uint8_t x_41; lean_object* x_42; -x_41 = 0; -x_42 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_20__elabImplicitLambda___main___spec__1___rarg(x_33, x_41, x_23, x_37, x_5, x_6, x_7, x_8, x_9, x_10, x_35); return x_42; } else { -uint8_t x_43; lean_object* x_44; -x_43 = 3; -x_44 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_20__elabImplicitLambda___main___spec__1___rarg(x_33, x_43, x_23, x_37, x_5, x_6, x_7, x_8, x_9, x_10, x_35); -return x_44; -} +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_42, 0); +x_45 = lean_ctor_get(x_42, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_42); +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_61; +uint8_t x_47; lean_dec(x_23); lean_dec(x_9); lean_dec(x_16); @@ -5132,29 +5474,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_61 = !lean_is_exclusive(x_25); -if (x_61 == 0) +x_47 = !lean_is_exclusive(x_25); +if (x_47 == 0) { return x_25; } else { -lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_25, 0); -x_63 = lean_ctor_get(x_25, 1); -lean_inc(x_63); -lean_inc(x_62); +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_25, 0); +x_49 = lean_ctor_get(x_25, 1); +lean_inc(x_49); +lean_inc(x_48); lean_dec(x_25); -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_62); -lean_ctor_set(x_64, 1, x_63); -return x_64; +x_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_65; +uint8_t x_51; lean_dec(x_9); lean_dec(x_16); lean_dec(x_10); @@ -5166,198 +5508,181 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_65 = !lean_is_exclusive(x_22); -if (x_65 == 0) +x_51 = !lean_is_exclusive(x_22); +if (x_51 == 0) { return x_22; } else { -lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = lean_ctor_get(x_22, 0); -x_67 = lean_ctor_get(x_22, 1); -lean_inc(x_67); -lean_inc(x_66); +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_22, 0); +x_53 = lean_ctor_get(x_22, 1); +lean_inc(x_53); +lean_inc(x_52); lean_dec(x_22); -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; +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_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_69 = lean_ctor_get(x_9, 0); -x_70 = lean_ctor_get(x_9, 1); -x_71 = lean_ctor_get(x_9, 2); -x_72 = lean_ctor_get(x_9, 3); -lean_inc(x_72); -lean_inc(x_71); -lean_inc(x_70); -lean_inc(x_69); +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_55 = lean_ctor_get(x_9, 0); +x_56 = lean_ctor_get(x_9, 1); +x_57 = lean_ctor_get(x_9, 2); +x_58 = lean_ctor_get(x_9, 3); +lean_inc(x_58); +lean_inc(x_57); +lean_inc(x_56); +lean_inc(x_55); lean_dec(x_9); -x_73 = l_Lean_replaceRef(x_16, x_72); -x_74 = l_Lean_replaceRef(x_73, x_72); -lean_dec(x_73); -x_75 = l_Lean_replaceRef(x_74, x_72); -lean_dec(x_72); -lean_dec(x_74); -x_76 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_76, 0, x_69); -lean_ctor_set(x_76, 1, x_70); -lean_ctor_set(x_76, 2, x_71); -lean_ctor_set(x_76, 3, x_75); +x_59 = l_Lean_replaceRef(x_16, x_58); +x_60 = l_Lean_replaceRef(x_59, x_58); +lean_dec(x_59); +x_61 = l_Lean_replaceRef(x_60, x_58); +lean_dec(x_58); +lean_dec(x_60); +x_62 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_62, 0, x_55); +lean_ctor_set(x_62, 1, x_56); +lean_ctor_set(x_62, 2, x_57); +lean_ctor_set(x_62, 3, x_61); lean_inc(x_10); -lean_inc(x_76); +lean_inc(x_62); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_16); -x_77 = l_Lean_Elab_Term_elabType(x_16, x_5, x_6, x_7, x_8, x_76, x_10, x_11); -if (lean_obj_tag(x_77) == 0) +x_63 = l_Lean_Elab_Term_elabType(x_16, x_5, x_6, x_7, x_8, x_62, x_10, x_11); +if (lean_obj_tag(x_63) == 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_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +lean_dec(x_63); lean_inc(x_5); -x_80 = l___private_Lean_Elab_Structure_5__checkParentIsStructure(x_78, x_5, x_6, x_7, x_8, x_76, x_10, x_79); -if (lean_obj_tag(x_80) == 0) +x_66 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure(x_64, x_5, x_6, x_7, x_8, x_62, x_10, x_65); +if (lean_obj_tag(x_66) == 0) { -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; uint8_t x_101; -x_81 = lean_ctor_get(x_80, 0); -lean_inc(x_81); -x_82 = lean_ctor_get(x_80, 1); -lean_inc(x_82); -lean_dec(x_80); -lean_inc(x_81); -x_83 = lean_erase_macro_scopes(x_81); -x_84 = l_Lean_Name_getString_x21(x_83); -lean_dec(x_83); -x_85 = l___private_Lean_Elab_Structure_9__withParents___main___rarg___closed__1; -x_86 = lean_string_append(x_85, x_84); -lean_dec(x_84); -x_87 = lean_box(0); -x_88 = lean_name_mk_string(x_87, x_86); -x_101 = l___private_Lean_Elab_Structure_7__containsFieldName(x_3, x_88); -if (x_101 == 0) +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; uint8_t x_75; +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_66, 1); +lean_inc(x_68); +lean_dec(x_66); +lean_inc(x_67); +x_69 = lean_erase_macro_scopes(x_67); +x_70 = l_Lean_Name_getString_x21(x_69); +lean_dec(x_69); +x_71 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg___closed__1; +x_72 = lean_string_append(x_71, x_70); +lean_dec(x_70); +x_73 = lean_box(0); +x_74 = lean_name_mk_string(x_73, x_72); +x_75 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_containsFieldName(x_3, x_74); +if (x_75 == 0) { -lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +lean_object* x_76; lean_object* x_77; lean_dec(x_16); -x_102 = lean_st_ref_get(x_10, x_82); -x_103 = lean_ctor_get(x_102, 0); -lean_inc(x_103); -x_104 = lean_ctor_get(x_102, 1); -lean_inc(x_104); -lean_dec(x_102); -x_105 = lean_ctor_get(x_103, 0); -lean_inc(x_105); -lean_dec(x_103); -x_89 = x_105; -x_90 = x_104; -goto block_100; +x_76 = lean_box(0); +x_77 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg___lambda__3(x_1, x_74, x_3, x_67, x_2, x_4, x_64, x_76, x_5, x_6, x_7, x_8, x_62, x_10, x_68); +return x_77; } 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; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -lean_dec(x_81); -lean_dec(x_78); +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_dec(x_67); +lean_dec(x_64); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_106 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_106, 0, x_88); -x_107 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__3; -x_108 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_108, 0, x_107); -lean_ctor_set(x_108, 1, x_106); -x_109 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__8; -x_110 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_110, 0, x_108); -lean_ctor_set(x_110, 1, x_109); -x_111 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_16, x_110, x_5, x_6, x_7, x_8, x_76, x_10, x_82); +x_78 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_78, 0, x_74); +x_79 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__2; +x_80 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_80, 0, x_79); +lean_ctor_set(x_80, 1, x_78); +x_81 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__4; +x_82 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_82, 0, x_80); +lean_ctor_set(x_82, 1, x_81); +x_83 = l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2___rarg(x_16, x_82, x_5, x_6, x_7, x_8, x_62, x_10, x_68); lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_16); -x_112 = lean_ctor_get(x_111, 0); -lean_inc(x_112); -x_113 = lean_ctor_get(x_111, 1); -lean_inc(x_113); -if (lean_is_exclusive(x_111)) { - lean_ctor_release(x_111, 0); - lean_ctor_release(x_111, 1); - x_114 = x_111; +x_84 = lean_ctor_get(x_83, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_83, 1); +lean_inc(x_85); +if (lean_is_exclusive(x_83)) { + lean_ctor_release(x_83, 0); + lean_ctor_release(x_83, 1); + x_86 = x_83; } else { - lean_dec_ref(x_111); - x_114 = lean_box(0); + lean_dec_ref(x_83); + x_86 = lean_box(0); } -if (lean_is_scalar(x_114)) { - x_115 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_86)) { + x_87 = lean_alloc_ctor(1, 2, 0); } else { - x_115 = x_114; + x_87 = x_86; } -lean_ctor_set(x_115, 0, x_112); -lean_ctor_set(x_115, 1, x_113); -return x_115; +lean_ctor_set(x_87, 0, x_84); +lean_ctor_set(x_87, 1, x_85); +return x_87; } -block_100: +} +else { -uint8_t x_91; lean_object* x_92; -x_91 = lean_ctor_get_uint8(x_1, sizeof(void*)*11); -lean_inc(x_81); -lean_inc(x_89); +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +lean_dec(x_64); +lean_dec(x_62); +lean_dec(x_16); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_88 = lean_ctor_get(x_66, 0); lean_inc(x_88); -x_92 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_9__withParents___main___rarg___lambda__2), 15, 7); -lean_closure_set(x_92, 0, x_1); -lean_closure_set(x_92, 1, x_88); -lean_closure_set(x_92, 2, x_3); -lean_closure_set(x_92, 3, x_89); -lean_closure_set(x_92, 4, x_81); -lean_closure_set(x_92, 5, x_2); -lean_closure_set(x_92, 6, x_4); -if (x_91 == 0) -{ -uint8_t x_93; lean_object* x_94; -lean_dec(x_89); -lean_dec(x_81); -x_93 = 0; -x_94 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_20__elabImplicitLambda___main___spec__1___rarg(x_88, x_93, x_78, x_92, x_5, x_6, x_7, x_8, x_76, x_10, x_90); -return x_94; -} -else -{ -uint8_t x_95; -x_95 = lean_is_class(x_89, x_81); -if (x_95 == 0) -{ -uint8_t x_96; lean_object* x_97; -x_96 = 0; -x_97 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_20__elabImplicitLambda___main___spec__1___rarg(x_88, x_96, x_78, x_92, x_5, x_6, x_7, x_8, x_76, x_10, x_90); -return x_97; -} -else -{ -uint8_t x_98; lean_object* x_99; -x_98 = 3; -x_99 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_20__elabImplicitLambda___main___spec__1___rarg(x_88, x_98, x_78, x_92, x_5, x_6, x_7, x_8, x_76, x_10, x_90); -return x_99; +x_89 = lean_ctor_get(x_66, 1); +lean_inc(x_89); +if (lean_is_exclusive(x_66)) { + lean_ctor_release(x_66, 0); + lean_ctor_release(x_66, 1); + x_90 = x_66; +} else { + lean_dec_ref(x_66); + x_90 = lean_box(0); } +if (lean_is_scalar(x_90)) { + x_91 = lean_alloc_ctor(1, 2, 0); +} else { + x_91 = x_90; } +lean_ctor_set(x_91, 0, x_88); +lean_ctor_set(x_91, 1, x_89); +return x_91; } } else { -lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; -lean_dec(x_78); -lean_dec(x_76); +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +lean_dec(x_62); lean_dec(x_16); lean_dec(x_10); lean_dec(x_8); @@ -5368,101 +5693,151 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_116 = lean_ctor_get(x_80, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_80, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_80)) { - lean_ctor_release(x_80, 0); - lean_ctor_release(x_80, 1); - x_118 = x_80; +x_92 = lean_ctor_get(x_63, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_63, 1); +lean_inc(x_93); +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + lean_ctor_release(x_63, 1); + x_94 = x_63; } else { - lean_dec_ref(x_80); - x_118 = lean_box(0); + lean_dec_ref(x_63); + x_94 = lean_box(0); } -if (lean_is_scalar(x_118)) { - x_119 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_94)) { + x_95 = lean_alloc_ctor(1, 2, 0); } else { - x_119 = x_118; + x_95 = x_94; } -lean_ctor_set(x_119, 0, x_116); -lean_ctor_set(x_119, 1, x_117); -return x_119; +lean_ctor_set(x_95, 0, x_92); +lean_ctor_set(x_95, 1, x_93); +return x_95; } } +} +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg), 11, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___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); +lean_dec(x_1); +return x_12; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg___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: +{ +lean_object* x_16; +x_16 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg___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); +lean_dec(x_8); +return x_16; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue_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_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; -lean_dec(x_76); -lean_dec(x_16); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); +lean_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_120 = lean_ctor_get(x_77, 0); -lean_inc(x_120); -x_121 = lean_ctor_get(x_77, 1); -lean_inc(x_121); -if (lean_is_exclusive(x_77)) { - lean_ctor_release(x_77, 0); - lean_ctor_release(x_77, 1); - x_122 = x_77; -} else { - lean_dec_ref(x_77); - x_122 = lean_box(0); -} -if (lean_is_scalar(x_122)) { - x_123 = lean_alloc_ctor(1, 2, 0); -} else { - x_123 = x_122; -} -lean_ctor_set(x_123, 0, x_120); -lean_ctor_set(x_123, 1, x_121); -return x_123; +x_7 = lean_apply_1(x_3, x_6); +return x_7; } } } -} -} -lean_object* l___private_Lean_Elab_Structure_9__withParents___main(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue_match__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_9__withParents___main___rarg), 11, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue_match__1___rarg), 3, 0); return x_2; } } -lean_object* l___private_Lean_Elab_Structure_9__withParents___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* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_12; -x_12 = l___private_Lean_Elab_Structure_9__withParents___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); +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); -return x_12; +x_7 = lean_apply_1(x_3, x_6); +return x_7; } } -lean_object* l___private_Lean_Elab_Structure_9__withParents___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = l___private_Lean_Elab_Structure_9__withParents___main___rarg(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_Structure_9__withParents(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue_match__2(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_9__withParents___rarg), 11, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue_match__2___rarg), 3, 0); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Structure_10__elabFieldTypeValue___closed__1() { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue_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_Structure_0__Lean_Elab_Command_elabFieldTypeValue_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue_match__3___rarg), 3, 0); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -5473,7 +5848,7 @@ lean_ctor_set(x_2, 1, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Structure_10__elabFieldTypeValue(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_Structure_0__Lean_Elab_Command_elabFieldTypeValue(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; @@ -5495,7 +5870,7 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_12 = l___private_Lean_Elab_Structure_10__elabFieldTypeValue___closed__1; +x_12 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___closed__1; x_13 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_13, 0, x_12); lean_ctor_set(x_13, 1, x_9); @@ -5526,7 +5901,7 @@ lean_inc(x_19); x_20 = lean_ctor_get(x_18, 1); lean_inc(x_20); lean_dec(x_18); -x_21 = l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_Term_19__elabImplicitLambdaAux___spec__1(x_2, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_20); +x_21 = l_Lean_Meta_mkLambdaFVars___at_Lean_Elab_Term_elabFun___spec__1(x_2, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_20); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -5643,7 +6018,7 @@ lean_inc(x_41); x_42 = lean_ctor_get(x_40, 1); lean_inc(x_42); lean_dec(x_40); -x_43 = l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_Term_19__elabImplicitLambdaAux___spec__1(x_2, x_41, x_3, x_4, x_5, x_6, x_7, x_8, x_42); +x_43 = l_Lean_Meta_mkLambdaFVars___at_Lean_Elab_Term_elabFun___spec__1(x_2, x_41, x_3, x_4, x_5, x_6, x_7, x_8, x_42); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -5766,7 +6141,7 @@ lean_inc(x_62); x_63 = lean_ctor_get(x_60, 1); lean_inc(x_63); lean_dec(x_60); -x_64 = l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_Inductive_5__mkTypeFor___spec__1(x_2, x_62, x_3, x_4, x_5, x_6, x_7, x_8, x_63); +x_64 = l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(x_2, x_62, x_3, x_4, x_5, x_6, x_7, x_8, x_63); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -5865,7 +6240,7 @@ lean_inc(x_86); lean_dec(x_84); lean_inc(x_5); lean_inc(x_2); -x_87 = l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_Inductive_5__mkTypeFor___spec__1(x_2, x_78, x_3, x_4, x_5, x_6, x_7, x_8, x_86); +x_87 = l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(x_2, x_78, x_3, x_4, x_5, x_6, x_7, x_8, x_86); if (lean_obj_tag(x_87) == 0) { lean_object* x_88; lean_object* x_89; lean_object* x_90; @@ -5874,7 +6249,7 @@ lean_inc(x_88); x_89 = lean_ctor_get(x_87, 1); lean_inc(x_89); lean_dec(x_87); -x_90 = l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_Term_19__elabImplicitLambdaAux___spec__1(x_2, x_85, x_3, x_4, x_5, x_6, x_7, x_8, x_89); +x_90 = l_Lean_Meta_mkLambdaFVars___at_Lean_Elab_Term_elabFun___spec__1(x_2, x_85, x_3, x_4, x_5, x_6, x_7, x_8, x_89); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -6034,7 +6409,7 @@ lean_inc(x_118); lean_dec(x_116); lean_inc(x_5); lean_inc(x_2); -x_119 = l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_Inductive_5__mkTypeFor___spec__1(x_2, x_78, x_3, x_4, x_5, x_6, x_7, x_8, x_118); +x_119 = l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(x_2, x_78, x_3, x_4, x_5, x_6, x_7, x_8, x_118); if (lean_obj_tag(x_119) == 0) { lean_object* x_120; lean_object* x_121; lean_object* x_122; @@ -6043,7 +6418,7 @@ lean_inc(x_120); x_121 = lean_ctor_get(x_119, 1); lean_inc(x_121); lean_dec(x_119); -x_122 = l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_Term_19__elabImplicitLambdaAux___spec__1(x_2, x_117, x_3, x_4, x_5, x_6, x_7, x_8, x_121); +x_122 = l_Lean_Meta_mkLambdaFVars___at_Lean_Elab_Term_elabFun___spec__1(x_2, x_117, x_3, x_4, x_5, x_6, x_7, x_8, x_121); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -6235,7 +6610,7 @@ lean_inc(x_148); x_149 = lean_ctor_get(x_146, 1); lean_inc(x_149); lean_dec(x_146); -x_150 = l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_Inductive_5__mkTypeFor___spec__1(x_2, x_148, x_3, x_4, x_5, x_6, x_7, x_8, x_149); +x_150 = l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(x_2, x_148, x_3, x_4, x_5, x_6, x_7, x_8, x_149); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -6339,7 +6714,7 @@ lean_inc(x_171); lean_dec(x_169); lean_inc(x_5); lean_inc(x_2); -x_172 = l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_Inductive_5__mkTypeFor___spec__1(x_2, x_162, x_3, x_4, x_5, x_6, x_7, x_8, x_171); +x_172 = l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(x_2, x_162, x_3, x_4, x_5, x_6, x_7, x_8, x_171); if (lean_obj_tag(x_172) == 0) { lean_object* x_173; lean_object* x_174; lean_object* x_175; @@ -6348,7 +6723,7 @@ lean_inc(x_173); x_174 = lean_ctor_get(x_172, 1); lean_inc(x_174); lean_dec(x_172); -x_175 = l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_Term_19__elabImplicitLambdaAux___spec__1(x_2, x_170, x_3, x_4, x_5, x_6, x_7, x_8, x_174); +x_175 = l_Lean_Meta_mkLambdaFVars___at_Lean_Elab_Term_elabFun___spec__1(x_2, x_170, 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); @@ -6514,7 +6889,227 @@ return x_198; } } } -lean_object* l___private_Lean_Elab_Structure_11__withFields___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* x_14, lean_object* x_15) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_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_dec(x_4); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_5); +x_6 = lean_box(0); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +x_8 = lean_ctor_get(x_2, 0); +lean_inc(x_8); +lean_dec(x_2); +x_9 = lean_apply_1(x_5, x_8); +return x_9; +} +} +else +{ +lean_object* x_10; lean_object* x_11; +lean_dec(x_5); +lean_dec(x_3); +x_10 = lean_ctor_get(x_1, 0); +lean_inc(x_10); +lean_dec(x_1); +x_11 = lean_apply_2(x_4, x_10, x_2); +return x_11; +} +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__1___rarg), 5, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__2___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__2___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_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_Structure_0__Lean_Elab_Command_withFields_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__3___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__4___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +switch (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_box(0); +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_Structure_0__Lean_Elab_Command_withFields_match__4(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__4___rarg___boxed), 4, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__4___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__4___rarg(x_5, x_2, x_3, x_4); +return x_6; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_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_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_Structure_0__Lean_Elab_Command_withFields_match__5(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__5___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__6___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_apply_3(x_4, x_1, x_2, x_3); +return x_5; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__6(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__6___rarg), 4, 0); +return x_3; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___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* x_14) { +_start: +{ +lean_object* x_15; uint8_t x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_15 = lean_ctor_get(x_1, 2); +x_16 = lean_ctor_get_uint8(x_1, sizeof(void*)*7 + 1); +x_17 = lean_box(0); +x_18 = 0; +lean_inc(x_15); +x_19 = lean_alloc_ctor(0, 4, 2); +lean_ctor_set(x_19, 0, x_2); +lean_ctor_set(x_19, 1, x_15); +lean_ctor_set(x_19, 2, x_7); +lean_ctor_set(x_19, 3, x_17); +lean_ctor_set_uint8(x_19, sizeof(void*)*4, x_18); +lean_ctor_set_uint8(x_19, sizeof(void*)*4 + 1, x_16); +x_20 = lean_array_push(x_3, x_19); +x_21 = lean_unsigned_to_nat(1u); +x_22 = lean_nat_add(x_4, x_21); +x_23 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg(x_5, x_22, x_20, x_6, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +return x_23; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { lean_object* x_16; uint8_t x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; @@ -6532,11 +7127,135 @@ lean_ctor_set_uint8(x_19, sizeof(void*)*4 + 1, x_17); x_20 = lean_array_push(x_4, x_19); x_21 = lean_unsigned_to_nat(1u); x_22 = lean_nat_add(x_5, x_21); -x_23 = l___private_Lean_Elab_Structure_11__withFields___main___rarg(x_6, x_22, x_20, x_7, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +x_23 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg(x_6, x_22, x_20, x_7, x_9, x_10, x_11, x_12, x_13, x_14, x_15); return x_23; } } -static lean_object* _init_l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__1() { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18) { +_start: +{ +lean_object* x_19; +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_1); +x_19 = l_Lean_Meta_inferType___at_Lean_Elab_Term_removeUnused___spec__2(x_1, x_12, x_13, x_14, x_15, x_16, x_17, x_18); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_22, 0, x_20); +x_23 = lean_box(0); +x_24 = 1; +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +x_25 = l_Lean_Elab_Term_elabTermEnsuringType(x_2, x_22, x_24, x_23, x_12, x_13, x_14, x_15, x_16, x_17, x_21); +if (lean_obj_tag(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; +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_alloc_ctor(1, 1, 0); +lean_ctor_set(x_28, 0, x_26); +x_29 = lean_alloc_ctor(0, 4, 2); +lean_ctor_set(x_29, 0, x_3); +lean_ctor_set(x_29, 1, x_4); +lean_ctor_set(x_29, 2, x_1); +lean_ctor_set(x_29, 3, x_28); +lean_ctor_set_uint8(x_29, sizeof(void*)*4, x_5); +lean_ctor_set_uint8(x_29, sizeof(void*)*4 + 1, x_6); +x_30 = lean_array_push(x_7, x_29); +x_31 = lean_unsigned_to_nat(1u); +x_32 = lean_nat_add(x_8, x_31); +x_33 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg(x_9, x_32, x_30, x_10, x_12, x_13, x_14, x_15, x_16, x_17, x_27); +return x_33; +} +else +{ +uint8_t x_34; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_34 = !lean_is_exclusive(x_25); +if (x_34 == 0) +{ +return x_25; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_25, 0); +x_36 = lean_ctor_get(x_25, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_25); +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_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_38 = !lean_is_exclusive(x_19); +if (x_38 == 0) +{ +return x_19; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_19, 0); +x_40 = lean_ctor_get(x_19, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_19); +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; +} +} +} +} +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__1() { _start: { lean_object* x_1; @@ -6544,27 +7263,27 @@ x_1 = lean_mk_string("invalid field, type expected"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__2() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__1; +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___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_Structure_11__withFields___main___rarg___closed__3() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__2; +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___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_Structure_11__withFields___main___rarg___closed__4() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__4() { _start: { lean_object* x_1; @@ -6572,27 +7291,16 @@ x_1 = lean_mk_string("' has been declared in parent structure"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__5() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__4; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__4; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_11__withFields___main___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_Structure_11__withFields___main___rarg___closed__7() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__6() { _start: { lean_object* x_1; @@ -6600,27 +7308,16 @@ x_1 = lean_mk_string("omit field '"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__8() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__7() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_11__withFields___main___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_Structure_0__Lean_Elab_Command_withFields___rarg___closed__6; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_11__withFields___main___rarg___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___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__10() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__8() { _start: { lean_object* x_1; @@ -6628,27 +7325,45 @@ x_1 = lean_mk_string("' type to set default value"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__11() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__9() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__10; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__8; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__12() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__10() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__11; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string("Lean.Elab.Structure"); +return x_1; } } -lean_object* l___private_Lean_Elab_Structure_11__withFields___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) { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__11() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("_private.Lean.Elab.Structure.0.Lean.Elab.Command.withFields"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__12() { +_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_Structure_0__Lean_Elab_Command_withFields___rarg___closed__10; +x_2 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__11; +x_3 = lean_unsigned_to_nat(300u); +x_4 = lean_unsigned_to_nat(37u); +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_Structure_0__Lean_Elab_Command_withFields___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; uint8_t x_13; @@ -6672,7 +7387,7 @@ lean_inc(x_16); x_17 = lean_ctor_get(x_15, 3); lean_inc(x_17); x_18 = lean_unsigned_to_nat(0u); -x_19 = l_Array_findMAux___main___at___private_Lean_Elab_Structure_6__findFieldInfo_x3f___spec__1(x_17, x_3, x_18); +x_19 = l_Array_findMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f___spec__1(x_17, x_3, x_18); x_20 = !lean_is_exclusive(x_9); if (x_20 == 0) { @@ -6694,7 +7409,7 @@ lean_inc(x_25); x_26 = l_Lean_Syntax_getArgs(x_25); lean_dec(x_25); lean_inc(x_15); -x_27 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_10__elabFieldTypeValue), 9, 1); +x_27 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue), 9, 1); lean_closure_set(x_27, 0, x_15); lean_inc(x_10); lean_inc(x_9); @@ -6729,8 +7444,8 @@ lean_dec(x_1); x_32 = lean_ctor_get(x_28, 1); lean_inc(x_32); lean_dec(x_28); -x_33 = l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__3; -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_32); +x_33 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__3; +x_34 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(x_33, x_5, x_6, x_7, x_8, x_9, x_10, x_32); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -6751,7 +7466,7 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_37 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_36, x_5, x_6, x_7, x_8, x_9, x_10, x_35); +x_37 = l_Lean_Meta_inferType___at_Lean_Elab_Term_removeUnused___spec__2(x_36, x_5, x_6, x_7, x_8, x_9, x_10, x_35); if (lean_obj_tag(x_37) == 0) { lean_object* x_38; lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; @@ -6762,15 +7477,14 @@ lean_inc(x_39); lean_dec(x_37); x_40 = lean_ctor_get_uint8(x_15, sizeof(void*)*7); lean_inc(x_17); -x_41 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_11__withFields___main___rarg___lambda__1___boxed), 15, 7); +x_41 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__1___boxed), 14, 6); lean_closure_set(x_41, 0, x_15); lean_closure_set(x_41, 1, x_17); -lean_closure_set(x_41, 2, x_30); -lean_closure_set(x_41, 3, x_3); -lean_closure_set(x_41, 4, x_2); -lean_closure_set(x_41, 5, x_1); -lean_closure_set(x_41, 6, x_4); -x_42 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_20__elabImplicitLambda___main___spec__1___rarg(x_17, x_40, x_38, x_41, x_5, x_6, x_7, x_8, x_9, x_10, x_39); +lean_closure_set(x_41, 2, x_3); +lean_closure_set(x_41, 3, x_2); +lean_closure_set(x_41, 4, x_1); +lean_closure_set(x_41, 5, x_4); +x_42 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_elabLetDeclAux___spec__3___rarg(x_17, x_40, x_38, x_41, x_5, x_6, x_7, x_8, x_9, x_10, x_39); return x_42; } else @@ -6823,7 +7537,7 @@ lean_inc(x_49); lean_dec(x_30); x_50 = lean_ctor_get_uint8(x_15, sizeof(void*)*7); lean_inc(x_17); -x_51 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_11__withFields___main___rarg___lambda__1___boxed), 15, 7); +x_51 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__2___boxed), 15, 7); lean_closure_set(x_51, 0, x_15); lean_closure_set(x_51, 1, x_17); lean_closure_set(x_51, 2, x_48); @@ -6831,7 +7545,7 @@ lean_closure_set(x_51, 3, x_3); lean_closure_set(x_51, 4, x_2); lean_closure_set(x_51, 5, x_1); lean_closure_set(x_51, 6, x_4); -x_52 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_20__elabImplicitLambda___main___spec__1___rarg(x_17, x_50, x_49, x_51, x_5, x_6, x_7, x_8, x_9, x_10, x_47); +x_52 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_elabLetDeclAux___spec__3___rarg(x_17, x_50, x_49, x_51, x_5, x_6, x_7, x_8, x_9, x_10, x_47); return x_52; } } @@ -6872,1435 +7586,354 @@ return x_56; } else { -uint8_t x_57; -x_57 = !lean_is_exclusive(x_19); -if (x_57 == 0) -{ -lean_object* x_58; uint8_t x_59; -x_58 = lean_ctor_get(x_19, 0); -x_59 = lean_ctor_get_uint8(x_58, sizeof(void*)*4); -switch (x_59) { +lean_object* x_57; uint8_t x_58; +x_57 = lean_ctor_get(x_19, 0); +lean_inc(x_57); +lean_dec(x_19); +x_58 = lean_ctor_get_uint8(x_57, sizeof(void*)*4); +switch (x_58) { case 0: { -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_free_object(x_19); -lean_dec(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_dec(x_57); lean_dec(x_15); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_60 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_60, 0, x_17); -x_61 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__3; -x_62 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_60); -x_63 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__8; -x_64 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_64, 0, x_62); -lean_ctor_set(x_64, 1, x_63); -x_65 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_64, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_59 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_59, 0, x_17); +x_60 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__2; +x_61 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_59); +x_62 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__4; +x_63 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set(x_63, 1, x_62); +x_64 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(x_63, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -return x_65; +return x_64; } case 1: { -lean_object* x_66; -x_66 = lean_ctor_get(x_15, 6); -lean_inc(x_66); -if (lean_obj_tag(x_66) == 0) +lean_object* x_65; +x_65 = lean_ctor_get(x_15, 6); +lean_inc(x_65); +if (lean_obj_tag(x_65) == 0) { -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_free_object(x_19); -lean_dec(x_58); +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_dec(x_57); lean_dec(x_15); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_67 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_67, 0, x_17); -x_68 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__3; -x_69 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_69, 0, x_68); -lean_ctor_set(x_69, 1, x_67); -x_70 = l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__6; -x_71 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_71, 0, x_69); -lean_ctor_set(x_71, 1, x_70); -x_72 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_71, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_66 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_66, 0, x_17); +x_67 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__2; +x_68 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +x_69 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__5; +x_70 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_70, 0, x_68); +lean_ctor_set(x_70, 1, x_69); +x_71 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(x_70, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -return x_72; +return x_71; } else { -uint8_t x_73; -x_73 = !lean_is_exclusive(x_58); -if (x_73 == 0) -{ -lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78; -x_74 = lean_ctor_get(x_58, 0); -x_75 = lean_ctor_get(x_58, 1); -x_76 = lean_ctor_get(x_58, 2); -x_77 = lean_ctor_get(x_58, 3); -lean_dec(x_77); -x_78 = !lean_is_exclusive(x_66); -if (x_78 == 0) -{ -lean_object* x_79; lean_object* x_80; lean_object* x_102; lean_object* x_103; uint8_t x_104; -x_79 = lean_ctor_get(x_66, 0); -x_102 = lean_ctor_get(x_15, 4); -lean_inc(x_102); -x_103 = l_Lean_Syntax_getArgs(x_102); +lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; lean_object* x_76; uint8_t x_77; lean_object* x_101; lean_object* x_102; uint8_t x_103; +x_72 = lean_ctor_get(x_57, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_57, 1); +lean_inc(x_73); +x_74 = lean_ctor_get(x_57, 2); +lean_inc(x_74); +x_75 = lean_ctor_get_uint8(x_57, sizeof(void*)*4 + 1); +lean_dec(x_57); +x_76 = lean_ctor_get(x_65, 0); +lean_inc(x_76); +lean_dec(x_65); +x_101 = lean_ctor_get(x_15, 4); +lean_inc(x_101); +x_102 = l_Lean_Syntax_getArgs(x_101); +lean_dec(x_101); +x_103 = l_Array_isEmpty___rarg(x_102); lean_dec(x_102); -x_104 = l_Array_isEmpty___rarg(x_103); -lean_dec(x_103); -if (x_104 == 0) +if (x_103 == 0) +{ +uint8_t x_104; +x_104 = 1; +x_77 = x_104; +goto block_100; +} +else { lean_object* x_105; -lean_free_object(x_66); -lean_dec(x_79); -lean_free_object(x_58); -lean_dec(x_76); -lean_dec(x_75); -lean_dec(x_74); -lean_free_object(x_19); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_105 = lean_box(0); -x_80 = x_105; -goto block_101; +x_105 = lean_ctor_get(x_15, 5); +lean_inc(x_105); +if (lean_obj_tag(x_105) == 0) +{ +uint8_t x_106; +x_106 = 0; +x_77 = x_106; +goto block_100; } else { -lean_object* x_106; -x_106 = lean_ctor_get(x_15, 5); -lean_inc(x_106); -if (lean_obj_tag(x_106) == 0) +uint8_t x_107; +lean_dec(x_105); +x_107 = 1; +x_77 = x_107; +goto block_100; +} +} +block_100: { -lean_object* x_107; +if (x_77 == 0) +{ +lean_object* x_78; lean_object* x_79; lean_dec(x_17); lean_dec(x_15); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_76); -x_107 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_76, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_107) == 0) -{ -lean_object* x_108; lean_object* x_109; lean_object* x_110; uint8_t x_111; lean_object* x_112; -x_108 = lean_ctor_get(x_107, 0); -lean_inc(x_108); -x_109 = lean_ctor_get(x_107, 1); -lean_inc(x_109); -lean_dec(x_107); -lean_ctor_set(x_66, 0, x_108); -x_110 = lean_box(0); -x_111 = 1; -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_112 = l_Lean_Elab_Term_elabTermEnsuringType(x_79, x_66, x_111, x_110, x_5, x_6, x_7, x_8, x_9, x_10, x_109); -if (lean_obj_tag(x_112) == 0) -{ -lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; -x_113 = lean_ctor_get(x_112, 0); -lean_inc(x_113); -x_114 = lean_ctor_get(x_112, 1); -lean_inc(x_114); -lean_dec(x_112); -lean_ctor_set(x_19, 0, x_113); -lean_ctor_set(x_58, 3, x_19); -x_115 = lean_array_push(x_3, x_58); -x_116 = lean_unsigned_to_nat(1u); -x_117 = lean_nat_add(x_2, x_116); +x_78 = lean_box(0); +x_79 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3(x_74, x_76, x_72, x_73, x_58, x_75, x_3, x_2, x_1, x_4, x_78, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_2); -x_2 = x_117; -x_3 = x_115; -x_11 = x_114; -goto _start; +return x_79; } else { -uint8_t x_119; -lean_free_object(x_58); +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_dec(x_76); -lean_dec(x_75); lean_dec(x_74); -lean_free_object(x_19); -lean_dec(x_9); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); +lean_dec(x_73); +lean_dec(x_72); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_119 = !lean_is_exclusive(x_112); -if (x_119 == 0) -{ -return x_112; -} -else -{ -lean_object* x_120; lean_object* x_121; lean_object* x_122; -x_120 = lean_ctor_get(x_112, 0); -x_121 = lean_ctor_get(x_112, 1); -lean_inc(x_121); -lean_inc(x_120); -lean_dec(x_112); -x_122 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_122, 0, x_120); -lean_ctor_set(x_122, 1, x_121); -return x_122; -} -} -} -else -{ -uint8_t x_123; -lean_free_object(x_66); -lean_dec(x_79); -lean_free_object(x_58); -lean_dec(x_76); -lean_dec(x_75); -lean_dec(x_74); -lean_free_object(x_19); -lean_dec(x_9); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_123 = !lean_is_exclusive(x_107); -if (x_123 == 0) -{ -return x_107; -} -else -{ -lean_object* x_124; lean_object* x_125; lean_object* x_126; -x_124 = lean_ctor_get(x_107, 0); -x_125 = lean_ctor_get(x_107, 1); -lean_inc(x_125); -lean_inc(x_124); -lean_dec(x_107); -x_126 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_126, 0, x_124); -lean_ctor_set(x_126, 1, x_125); -return x_126; -} -} -} -else -{ -lean_object* x_127; -lean_dec(x_106); -lean_free_object(x_66); -lean_dec(x_79); -lean_free_object(x_58); -lean_dec(x_76); -lean_dec(x_75); -lean_dec(x_74); -lean_free_object(x_19); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_127 = lean_box(0); -x_80 = x_127; -goto block_101; -} -} -block_101: -{ -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_dec(x_80); -x_81 = lean_ctor_get(x_15, 5); -lean_inc(x_81); +x_80 = lean_ctor_get(x_15, 5); +lean_inc(x_80); lean_dec(x_15); -x_82 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_82, 0, x_17); -x_83 = l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__9; -x_84 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_82); -x_85 = l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__12; -x_86 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_86, 0, x_84); -lean_ctor_set(x_86, 1, x_85); -if (lean_obj_tag(x_81) == 0) +x_81 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_81, 0, x_17); +x_82 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__7; +x_83 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_83, 0, x_82); +lean_ctor_set(x_83, 1, x_81); +x_84 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__9; +x_85 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_85, 0, x_83); +lean_ctor_set(x_85, 1, x_84); +if (lean_obj_tag(x_80) == 0) { -lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t x_91; -x_87 = l_Lean_Syntax_inhabited; -x_88 = l_Option_get_x21___rarg___closed__3; -x_89 = lean_panic_fn(x_87, x_88); -x_90 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_89, x_86, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; +x_86 = l_Lean_Syntax_inhabited; +x_87 = l_Option_get_x21___rarg___closed__3; +x_88 = lean_panic_fn(x_86, x_87); +x_89 = l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2___rarg(x_88, x_85, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_89); -x_91 = !lean_is_exclusive(x_90); -if (x_91 == 0) +lean_dec(x_88); +x_90 = !lean_is_exclusive(x_89); +if (x_90 == 0) { -return x_90; +return x_89; } else { -lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_92 = lean_ctor_get(x_90, 0); -x_93 = lean_ctor_get(x_90, 1); -lean_inc(x_93); +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_89, 0); +x_92 = lean_ctor_get(x_89, 1); lean_inc(x_92); -lean_dec(x_90); -x_94 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_94, 0, x_92); -lean_ctor_set(x_94, 1, x_93); -return x_94; +lean_inc(x_91); +lean_dec(x_89); +x_93 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_92); +return x_93; } } else { -lean_object* x_95; lean_object* x_96; uint8_t x_97; -x_95 = lean_ctor_get(x_81, 0); -lean_inc(x_95); -lean_dec(x_81); -x_96 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_95, x_86, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_object* x_94; lean_object* x_95; uint8_t x_96; +x_94 = lean_ctor_get(x_80, 0); +lean_inc(x_94); +lean_dec(x_80); +x_95 = l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2___rarg(x_94, x_85, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_95); -x_97 = !lean_is_exclusive(x_96); -if (x_97 == 0) +lean_dec(x_94); +x_96 = !lean_is_exclusive(x_95); +if (x_96 == 0) { -return x_96; +return x_95; } else { -lean_object* x_98; lean_object* x_99; lean_object* x_100; -x_98 = lean_ctor_get(x_96, 0); -x_99 = lean_ctor_get(x_96, 1); -lean_inc(x_99); +lean_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_dec(x_96); -x_100 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_100, 0, x_98); -lean_ctor_set(x_100, 1, x_99); -return x_100; +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_128; lean_object* x_129; lean_object* x_151; lean_object* x_152; uint8_t x_153; -x_128 = lean_ctor_get(x_66, 0); -lean_inc(x_128); -lean_dec(x_66); -x_151 = lean_ctor_get(x_15, 4); -lean_inc(x_151); -x_152 = l_Lean_Syntax_getArgs(x_151); -lean_dec(x_151); -x_153 = l_Array_isEmpty___rarg(x_152); -lean_dec(x_152); -if (x_153 == 0) -{ -lean_object* x_154; -lean_dec(x_128); -lean_free_object(x_58); -lean_dec(x_76); -lean_dec(x_75); -lean_dec(x_74); -lean_free_object(x_19); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_154 = lean_box(0); -x_129 = x_154; -goto block_150; -} -else -{ -lean_object* x_155; -x_155 = lean_ctor_get(x_15, 5); -lean_inc(x_155); -if (lean_obj_tag(x_155) == 0) -{ -lean_object* x_156; -lean_dec(x_17); -lean_dec(x_15); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_76); -x_156 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_76, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_156) == 0) -{ -lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; uint8_t x_161; lean_object* x_162; -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_alloc_ctor(1, 1, 0); -lean_ctor_set(x_159, 0, x_157); -x_160 = lean_box(0); -x_161 = 1; -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_162 = l_Lean_Elab_Term_elabTermEnsuringType(x_128, x_159, x_161, x_160, x_5, x_6, x_7, x_8, x_9, x_10, x_158); -if (lean_obj_tag(x_162) == 0) -{ -lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; -x_163 = lean_ctor_get(x_162, 0); -lean_inc(x_163); -x_164 = lean_ctor_get(x_162, 1); -lean_inc(x_164); -lean_dec(x_162); -lean_ctor_set(x_19, 0, x_163); -lean_ctor_set(x_58, 3, x_19); -x_165 = lean_array_push(x_3, x_58); -x_166 = lean_unsigned_to_nat(1u); -x_167 = lean_nat_add(x_2, x_166); -lean_dec(x_2); -x_2 = x_167; -x_3 = x_165; -x_11 = x_164; -goto _start; -} -else -{ -lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; -lean_free_object(x_58); -lean_dec(x_76); -lean_dec(x_75); -lean_dec(x_74); -lean_free_object(x_19); -lean_dec(x_9); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_169 = lean_ctor_get(x_162, 0); -lean_inc(x_169); -x_170 = lean_ctor_get(x_162, 1); -lean_inc(x_170); -if (lean_is_exclusive(x_162)) { - lean_ctor_release(x_162, 0); - lean_ctor_release(x_162, 1); - x_171 = x_162; -} else { - lean_dec_ref(x_162); - x_171 = lean_box(0); -} -if (lean_is_scalar(x_171)) { - x_172 = lean_alloc_ctor(1, 2, 0); -} else { - x_172 = x_171; -} -lean_ctor_set(x_172, 0, x_169); -lean_ctor_set(x_172, 1, x_170); -return x_172; -} -} -else -{ -lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; -lean_dec(x_128); -lean_free_object(x_58); -lean_dec(x_76); -lean_dec(x_75); -lean_dec(x_74); -lean_free_object(x_19); -lean_dec(x_9); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_173 = lean_ctor_get(x_156, 0); -lean_inc(x_173); -x_174 = lean_ctor_get(x_156, 1); -lean_inc(x_174); -if (lean_is_exclusive(x_156)) { - lean_ctor_release(x_156, 0); - lean_ctor_release(x_156, 1); - x_175 = x_156; -} else { - lean_dec_ref(x_156); - x_175 = lean_box(0); -} -if (lean_is_scalar(x_175)) { - x_176 = lean_alloc_ctor(1, 2, 0); -} else { - x_176 = x_175; -} -lean_ctor_set(x_176, 0, x_173); -lean_ctor_set(x_176, 1, x_174); -return x_176; -} -} -else -{ -lean_object* x_177; -lean_dec(x_155); -lean_dec(x_128); -lean_free_object(x_58); -lean_dec(x_76); -lean_dec(x_75); -lean_dec(x_74); -lean_free_object(x_19); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_177 = lean_box(0); -x_129 = x_177; -goto block_150; -} -} -block_150: -{ -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_dec(x_129); -x_130 = lean_ctor_get(x_15, 5); -lean_inc(x_130); -lean_dec(x_15); -x_131 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_131, 0, x_17); -x_132 = l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__9; -x_133 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_133, 0, x_132); -lean_ctor_set(x_133, 1, x_131); -x_134 = l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__12; -x_135 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_135, 0, x_133); -lean_ctor_set(x_135, 1, x_134); -if (lean_obj_tag(x_130) == 0) -{ -lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; -x_136 = l_Lean_Syntax_inhabited; -x_137 = l_Option_get_x21___rarg___closed__3; -x_138 = lean_panic_fn(x_136, x_137); -x_139 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_138, x_135, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_138); -x_140 = lean_ctor_get(x_139, 0); -lean_inc(x_140); -x_141 = lean_ctor_get(x_139, 1); -lean_inc(x_141); -if (lean_is_exclusive(x_139)) { - lean_ctor_release(x_139, 0); - lean_ctor_release(x_139, 1); - x_142 = x_139; -} else { - lean_dec_ref(x_139); - x_142 = lean_box(0); -} -if (lean_is_scalar(x_142)) { - x_143 = lean_alloc_ctor(1, 2, 0); -} else { - x_143 = x_142; -} -lean_ctor_set(x_143, 0, x_140); -lean_ctor_set(x_143, 1, x_141); -return x_143; -} -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; -x_144 = lean_ctor_get(x_130, 0); -lean_inc(x_144); -lean_dec(x_130); -x_145 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_144, x_135, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_144); -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; -} -} -} -} -else -{ -lean_object* x_178; lean_object* x_179; lean_object* x_180; uint8_t x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_206; lean_object* x_207; uint8_t x_208; -x_178 = lean_ctor_get(x_58, 0); -x_179 = lean_ctor_get(x_58, 1); -x_180 = lean_ctor_get(x_58, 2); -x_181 = lean_ctor_get_uint8(x_58, sizeof(void*)*4 + 1); -lean_inc(x_180); -lean_inc(x_179); -lean_inc(x_178); -lean_dec(x_58); -x_182 = lean_ctor_get(x_66, 0); -lean_inc(x_182); -if (lean_is_exclusive(x_66)) { - lean_ctor_release(x_66, 0); - x_183 = x_66; -} else { - lean_dec_ref(x_66); - x_183 = lean_box(0); -} -x_206 = lean_ctor_get(x_15, 4); -lean_inc(x_206); -x_207 = l_Lean_Syntax_getArgs(x_206); -lean_dec(x_206); -x_208 = l_Array_isEmpty___rarg(x_207); -lean_dec(x_207); -if (x_208 == 0) -{ -lean_object* x_209; -lean_dec(x_183); -lean_dec(x_182); -lean_dec(x_180); -lean_dec(x_179); -lean_dec(x_178); -lean_free_object(x_19); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_209 = lean_box(0); -x_184 = x_209; -goto block_205; -} -else -{ -lean_object* x_210; -x_210 = lean_ctor_get(x_15, 5); -lean_inc(x_210); -if (lean_obj_tag(x_210) == 0) -{ -lean_object* x_211; -lean_dec(x_17); -lean_dec(x_15); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_180); -x_211 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_180, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_211) == 0) -{ -lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; uint8_t x_216; lean_object* x_217; -x_212 = lean_ctor_get(x_211, 0); -lean_inc(x_212); -x_213 = lean_ctor_get(x_211, 1); -lean_inc(x_213); -lean_dec(x_211); -if (lean_is_scalar(x_183)) { - x_214 = lean_alloc_ctor(1, 1, 0); -} else { - x_214 = x_183; -} -lean_ctor_set(x_214, 0, x_212); -x_215 = lean_box(0); -x_216 = 1; -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_217 = l_Lean_Elab_Term_elabTermEnsuringType(x_182, x_214, x_216, x_215, x_5, x_6, x_7, x_8, x_9, x_10, x_213); -if (lean_obj_tag(x_217) == 0) -{ -lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; -x_218 = lean_ctor_get(x_217, 0); -lean_inc(x_218); -x_219 = lean_ctor_get(x_217, 1); -lean_inc(x_219); -lean_dec(x_217); -lean_ctor_set(x_19, 0, x_218); -x_220 = lean_alloc_ctor(0, 4, 2); -lean_ctor_set(x_220, 0, x_178); -lean_ctor_set(x_220, 1, x_179); -lean_ctor_set(x_220, 2, x_180); -lean_ctor_set(x_220, 3, x_19); -lean_ctor_set_uint8(x_220, sizeof(void*)*4, x_59); -lean_ctor_set_uint8(x_220, sizeof(void*)*4 + 1, x_181); -x_221 = lean_array_push(x_3, x_220); -x_222 = lean_unsigned_to_nat(1u); -x_223 = lean_nat_add(x_2, x_222); -lean_dec(x_2); -x_2 = x_223; -x_3 = x_221; -x_11 = x_219; -goto _start; -} -else -{ -lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; -lean_dec(x_180); -lean_dec(x_179); -lean_dec(x_178); -lean_free_object(x_19); -lean_dec(x_9); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_225 = lean_ctor_get(x_217, 0); -lean_inc(x_225); -x_226 = lean_ctor_get(x_217, 1); -lean_inc(x_226); -if (lean_is_exclusive(x_217)) { - lean_ctor_release(x_217, 0); - lean_ctor_release(x_217, 1); - x_227 = x_217; -} else { - lean_dec_ref(x_217); - x_227 = lean_box(0); -} -if (lean_is_scalar(x_227)) { - x_228 = lean_alloc_ctor(1, 2, 0); -} else { - x_228 = x_227; -} -lean_ctor_set(x_228, 0, x_225); -lean_ctor_set(x_228, 1, x_226); -return x_228; -} -} -else -{ -lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; -lean_dec(x_183); -lean_dec(x_182); -lean_dec(x_180); -lean_dec(x_179); -lean_dec(x_178); -lean_free_object(x_19); -lean_dec(x_9); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_229 = lean_ctor_get(x_211, 0); -lean_inc(x_229); -x_230 = lean_ctor_get(x_211, 1); -lean_inc(x_230); -if (lean_is_exclusive(x_211)) { - lean_ctor_release(x_211, 0); - lean_ctor_release(x_211, 1); - x_231 = x_211; -} else { - lean_dec_ref(x_211); - x_231 = lean_box(0); -} -if (lean_is_scalar(x_231)) { - x_232 = lean_alloc_ctor(1, 2, 0); -} else { - x_232 = x_231; -} -lean_ctor_set(x_232, 0, x_229); -lean_ctor_set(x_232, 1, x_230); -return x_232; -} -} -else -{ -lean_object* x_233; -lean_dec(x_210); -lean_dec(x_183); -lean_dec(x_182); -lean_dec(x_180); -lean_dec(x_179); -lean_dec(x_178); -lean_free_object(x_19); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_233 = lean_box(0); -x_184 = x_233; -goto block_205; -} -} -block_205: -{ -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_dec(x_184); -x_185 = lean_ctor_get(x_15, 5); -lean_inc(x_185); -lean_dec(x_15); -x_186 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_186, 0, x_17); -x_187 = l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__9; -x_188 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_188, 0, x_187); -lean_ctor_set(x_188, 1, x_186); -x_189 = l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__12; -x_190 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_190, 0, x_188); -lean_ctor_set(x_190, 1, x_189); -if (lean_obj_tag(x_185) == 0) -{ -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; -x_191 = l_Lean_Syntax_inhabited; -x_192 = l_Option_get_x21___rarg___closed__3; -x_193 = lean_panic_fn(x_191, x_192); -x_194 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_193, x_190, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_193); -x_195 = lean_ctor_get(x_194, 0); -lean_inc(x_195); -x_196 = lean_ctor_get(x_194, 1); -lean_inc(x_196); -if (lean_is_exclusive(x_194)) { - lean_ctor_release(x_194, 0); - lean_ctor_release(x_194, 1); - x_197 = x_194; -} else { - lean_dec_ref(x_194); - x_197 = lean_box(0); -} -if (lean_is_scalar(x_197)) { - x_198 = lean_alloc_ctor(1, 2, 0); -} else { - x_198 = x_197; -} -lean_ctor_set(x_198, 0, x_195); -lean_ctor_set(x_198, 1, x_196); -return x_198; -} -else -{ -lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; -x_199 = lean_ctor_get(x_185, 0); -lean_inc(x_199); -lean_dec(x_185); -x_200 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_199, x_190, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_199); -x_201 = lean_ctor_get(x_200, 0); -lean_inc(x_201); -x_202 = lean_ctor_get(x_200, 1); -lean_inc(x_202); -if (lean_is_exclusive(x_200)) { - lean_ctor_release(x_200, 0); - lean_ctor_release(x_200, 1); - x_203 = x_200; -} else { - lean_dec_ref(x_200); - x_203 = lean_box(0); -} -if (lean_is_scalar(x_203)) { - x_204 = lean_alloc_ctor(1, 2, 0); -} else { - x_204 = x_203; -} -lean_ctor_set(x_204, 0, x_201); -lean_ctor_set(x_204, 1, x_202); -return x_204; -} -} -} } } default: { -lean_object* x_234; lean_object* x_235; lean_object* x_236; -lean_free_object(x_19); -lean_dec(x_58); +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +lean_dec(x_57); lean_dec(x_17); lean_dec(x_15); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_234 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -x_235 = l_unreachable_x21___rarg(x_234); -x_236 = lean_apply_7(x_235, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_236; +x_108 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; +x_109 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__12; +x_110 = lean_panic_fn(x_108, x_109); +x_111 = lean_apply_7(x_110, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_111; +} } } } else { -lean_object* x_237; uint8_t x_238; -x_237 = lean_ctor_get(x_19, 0); -lean_inc(x_237); -lean_dec(x_19); -x_238 = lean_ctor_get_uint8(x_237, sizeof(void*)*4); -switch (x_238) { -case 0: -{ -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_dec(x_237); -lean_dec(x_15); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_239 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_239, 0, x_17); -x_240 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__3; -x_241 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_241, 0, x_240); -lean_ctor_set(x_241, 1, x_239); -x_242 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__8; -x_243 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_243, 0, x_241); -lean_ctor_set(x_243, 1, x_242); -x_244 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_243, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_10); +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; +x_112 = lean_ctor_get(x_9, 0); +x_113 = lean_ctor_get(x_9, 1); +x_114 = lean_ctor_get(x_9, 2); +x_115 = lean_ctor_get(x_9, 3); +lean_inc(x_115); +lean_inc(x_114); +lean_inc(x_113); +lean_inc(x_112); lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -return x_244; -} -case 1: -{ -lean_object* x_245; -x_245 = lean_ctor_get(x_15, 6); -lean_inc(x_245); -if (lean_obj_tag(x_245) == 0) -{ -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_dec(x_237); -lean_dec(x_15); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_246 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_246, 0, x_17); -x_247 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__3; -x_248 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_248, 0, x_247); -lean_ctor_set(x_248, 1, x_246); -x_249 = l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__6; -x_250 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_250, 0, x_248); -lean_ctor_set(x_250, 1, x_249); -x_251 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_250, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -return x_251; -} -else -{ -lean_object* x_252; lean_object* x_253; lean_object* x_254; uint8_t x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_281; lean_object* x_282; uint8_t x_283; -x_252 = lean_ctor_get(x_237, 0); -lean_inc(x_252); -x_253 = lean_ctor_get(x_237, 1); -lean_inc(x_253); -x_254 = lean_ctor_get(x_237, 2); -lean_inc(x_254); -x_255 = lean_ctor_get_uint8(x_237, sizeof(void*)*4 + 1); -if (lean_is_exclusive(x_237)) { - lean_ctor_release(x_237, 0); - lean_ctor_release(x_237, 1); - lean_ctor_release(x_237, 2); - lean_ctor_release(x_237, 3); - x_256 = x_237; -} else { - lean_dec_ref(x_237); - x_256 = lean_box(0); -} -x_257 = lean_ctor_get(x_245, 0); -lean_inc(x_257); -if (lean_is_exclusive(x_245)) { - lean_ctor_release(x_245, 0); - x_258 = x_245; -} else { - lean_dec_ref(x_245); - x_258 = lean_box(0); -} -x_281 = lean_ctor_get(x_15, 4); -lean_inc(x_281); -x_282 = l_Lean_Syntax_getArgs(x_281); -lean_dec(x_281); -x_283 = l_Array_isEmpty___rarg(x_282); -lean_dec(x_282); -if (x_283 == 0) -{ -lean_object* x_284; -lean_dec(x_258); -lean_dec(x_257); -lean_dec(x_256); -lean_dec(x_254); -lean_dec(x_253); -lean_dec(x_252); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_284 = lean_box(0); -x_259 = x_284; -goto block_280; -} -else -{ -lean_object* x_285; -x_285 = lean_ctor_get(x_15, 5); -lean_inc(x_285); -if (lean_obj_tag(x_285) == 0) -{ -lean_object* x_286; -lean_dec(x_17); -lean_dec(x_15); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_254); -x_286 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_254, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_286) == 0) -{ -lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; uint8_t x_291; lean_object* x_292; -x_287 = lean_ctor_get(x_286, 0); -lean_inc(x_287); -x_288 = lean_ctor_get(x_286, 1); -lean_inc(x_288); -lean_dec(x_286); -if (lean_is_scalar(x_258)) { - x_289 = lean_alloc_ctor(1, 1, 0); -} else { - x_289 = x_258; -} -lean_ctor_set(x_289, 0, x_287); -x_290 = lean_box(0); -x_291 = 1; -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_292 = l_Lean_Elab_Term_elabTermEnsuringType(x_257, x_289, x_291, x_290, x_5, x_6, x_7, x_8, x_9, x_10, x_288); -if (lean_obj_tag(x_292) == 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; -x_293 = lean_ctor_get(x_292, 0); -lean_inc(x_293); -x_294 = lean_ctor_get(x_292, 1); -lean_inc(x_294); -lean_dec(x_292); -x_295 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_295, 0, x_293); -if (lean_is_scalar(x_256)) { - x_296 = lean_alloc_ctor(0, 4, 2); -} else { - x_296 = x_256; -} -lean_ctor_set(x_296, 0, x_252); -lean_ctor_set(x_296, 1, x_253); -lean_ctor_set(x_296, 2, x_254); -lean_ctor_set(x_296, 3, x_295); -lean_ctor_set_uint8(x_296, sizeof(void*)*4, x_238); -lean_ctor_set_uint8(x_296, sizeof(void*)*4 + 1, x_255); -x_297 = lean_array_push(x_3, x_296); -x_298 = lean_unsigned_to_nat(1u); -x_299 = lean_nat_add(x_2, x_298); -lean_dec(x_2); -x_2 = x_299; -x_3 = x_297; -x_11 = x_294; -goto _start; -} -else -{ -lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; -lean_dec(x_256); -lean_dec(x_254); -lean_dec(x_253); -lean_dec(x_252); -lean_dec(x_9); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_301 = lean_ctor_get(x_292, 0); -lean_inc(x_301); -x_302 = lean_ctor_get(x_292, 1); -lean_inc(x_302); -if (lean_is_exclusive(x_292)) { - lean_ctor_release(x_292, 0); - lean_ctor_release(x_292, 1); - x_303 = x_292; -} else { - lean_dec_ref(x_292); - x_303 = lean_box(0); -} -if (lean_is_scalar(x_303)) { - x_304 = lean_alloc_ctor(1, 2, 0); -} else { - x_304 = x_303; -} -lean_ctor_set(x_304, 0, x_301); -lean_ctor_set(x_304, 1, x_302); -return x_304; -} -} -else -{ -lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; -lean_dec(x_258); -lean_dec(x_257); -lean_dec(x_256); -lean_dec(x_254); -lean_dec(x_253); -lean_dec(x_252); -lean_dec(x_9); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_305 = lean_ctor_get(x_286, 0); -lean_inc(x_305); -x_306 = lean_ctor_get(x_286, 1); -lean_inc(x_306); -if (lean_is_exclusive(x_286)) { - lean_ctor_release(x_286, 0); - lean_ctor_release(x_286, 1); - x_307 = x_286; -} else { - lean_dec_ref(x_286); - x_307 = lean_box(0); -} -if (lean_is_scalar(x_307)) { - x_308 = lean_alloc_ctor(1, 2, 0); -} else { - x_308 = x_307; -} -lean_ctor_set(x_308, 0, x_305); -lean_ctor_set(x_308, 1, x_306); -return x_308; -} -} -else -{ -lean_object* x_309; -lean_dec(x_285); -lean_dec(x_258); -lean_dec(x_257); -lean_dec(x_256); -lean_dec(x_254); -lean_dec(x_253); -lean_dec(x_252); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_309 = lean_box(0); -x_259 = x_309; -goto block_280; -} -} -block_280: -{ -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_dec(x_259); -x_260 = lean_ctor_get(x_15, 5); -lean_inc(x_260); -lean_dec(x_15); -x_261 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_261, 0, x_17); -x_262 = l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__9; -x_263 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_263, 0, x_262); -lean_ctor_set(x_263, 1, x_261); -x_264 = l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__12; -x_265 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_265, 0, x_263); -lean_ctor_set(x_265, 1, x_264); -if (lean_obj_tag(x_260) == 0) -{ -lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; -x_266 = l_Lean_Syntax_inhabited; -x_267 = l_Option_get_x21___rarg___closed__3; -x_268 = lean_panic_fn(x_266, x_267); -x_269 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_268, x_265, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_268); -x_270 = lean_ctor_get(x_269, 0); -lean_inc(x_270); -x_271 = lean_ctor_get(x_269, 1); -lean_inc(x_271); -if (lean_is_exclusive(x_269)) { - lean_ctor_release(x_269, 0); - lean_ctor_release(x_269, 1); - x_272 = x_269; -} else { - lean_dec_ref(x_269); - x_272 = lean_box(0); -} -if (lean_is_scalar(x_272)) { - x_273 = lean_alloc_ctor(1, 2, 0); -} else { - x_273 = x_272; -} -lean_ctor_set(x_273, 0, x_270); -lean_ctor_set(x_273, 1, x_271); -return x_273; -} -else -{ -lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; -x_274 = lean_ctor_get(x_260, 0); -lean_inc(x_274); -lean_dec(x_260); -x_275 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_274, x_265, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_274); -x_276 = lean_ctor_get(x_275, 0); -lean_inc(x_276); -x_277 = lean_ctor_get(x_275, 1); -lean_inc(x_277); -if (lean_is_exclusive(x_275)) { - lean_ctor_release(x_275, 0); - lean_ctor_release(x_275, 1); - x_278 = x_275; -} else { - lean_dec_ref(x_275); - x_278 = lean_box(0); -} -if (lean_is_scalar(x_278)) { - x_279 = lean_alloc_ctor(1, 2, 0); -} else { - x_279 = x_278; -} -lean_ctor_set(x_279, 0, x_276); -lean_ctor_set(x_279, 1, x_277); -return x_279; -} -} -} -} -default: -{ -lean_object* x_310; lean_object* x_311; lean_object* x_312; -lean_dec(x_237); -lean_dec(x_17); -lean_dec(x_15); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_310 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -x_311 = l_unreachable_x21___rarg(x_310); -x_312 = lean_apply_7(x_311, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_312; -} -} -} -} -} -else -{ -lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; -x_313 = lean_ctor_get(x_9, 0); -x_314 = lean_ctor_get(x_9, 1); -x_315 = lean_ctor_get(x_9, 2); -x_316 = lean_ctor_get(x_9, 3); -lean_inc(x_316); -lean_inc(x_315); -lean_inc(x_314); -lean_inc(x_313); -lean_dec(x_9); -x_317 = l_Lean_replaceRef(x_16, x_316); +x_116 = l_Lean_replaceRef(x_16, x_115); lean_dec(x_16); -x_318 = l_Lean_replaceRef(x_317, x_316); -lean_dec(x_317); -x_319 = l_Lean_replaceRef(x_318, x_316); -lean_dec(x_316); -lean_dec(x_318); -x_320 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_320, 0, x_313); -lean_ctor_set(x_320, 1, x_314); -lean_ctor_set(x_320, 2, x_315); -lean_ctor_set(x_320, 3, x_319); +x_117 = l_Lean_replaceRef(x_116, x_115); +lean_dec(x_116); +x_118 = l_Lean_replaceRef(x_117, x_115); +lean_dec(x_115); +lean_dec(x_117); +x_119 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_119, 0, x_112); +lean_ctor_set(x_119, 1, x_113); +lean_ctor_set(x_119, 2, x_114); +lean_ctor_set(x_119, 3, x_118); if (lean_obj_tag(x_19) == 0) { -lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; -x_321 = lean_ctor_get(x_15, 4); -lean_inc(x_321); -x_322 = l_Lean_Syntax_getArgs(x_321); -lean_dec(x_321); +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_120 = lean_ctor_get(x_15, 4); +lean_inc(x_120); +x_121 = l_Lean_Syntax_getArgs(x_120); +lean_dec(x_120); lean_inc(x_15); -x_323 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_10__elabFieldTypeValue), 9, 1); -lean_closure_set(x_323, 0, x_15); +x_122 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue), 9, 1); +lean_closure_set(x_122, 0, x_15); lean_inc(x_10); -lean_inc(x_320); +lean_inc(x_119); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_324 = l_Lean_Elab_Term_elabBinders___rarg(x_322, x_323, x_5, x_6, x_7, x_8, x_320, x_10, x_11); -lean_dec(x_322); -if (lean_obj_tag(x_324) == 0) +x_123 = l_Lean_Elab_Term_elabBinders___rarg(x_121, x_122, x_5, x_6, x_7, x_8, x_119, x_10, x_11); +lean_dec(x_121); +if (lean_obj_tag(x_123) == 0) { -lean_object* x_325; lean_object* x_326; -x_325 = lean_ctor_get(x_324, 0); -lean_inc(x_325); -x_326 = lean_ctor_get(x_325, 0); -lean_inc(x_326); -if (lean_obj_tag(x_326) == 0) +lean_object* x_124; lean_object* x_125; +x_124 = lean_ctor_get(x_123, 0); +lean_inc(x_124); +x_125 = lean_ctor_get(x_124, 0); +lean_inc(x_125); +if (lean_obj_tag(x_125) == 0) { -lean_object* x_327; -x_327 = lean_ctor_get(x_325, 1); -lean_inc(x_327); -lean_dec(x_325); -if (lean_obj_tag(x_327) == 0) +lean_object* x_126; +x_126 = lean_ctor_get(x_124, 1); +lean_inc(x_126); +lean_dec(x_124); +if (lean_obj_tag(x_126) == 0) { -lean_object* x_328; lean_object* x_329; lean_object* x_330; +lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_dec(x_17); lean_dec(x_15); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_328 = lean_ctor_get(x_324, 1); -lean_inc(x_328); -lean_dec(x_324); -x_329 = l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__3; -x_330 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_329, x_5, x_6, x_7, x_8, x_320, x_10, x_328); +x_127 = lean_ctor_get(x_123, 1); +lean_inc(x_127); +lean_dec(x_123); +x_128 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__3; +x_129 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(x_128, x_5, x_6, x_7, x_8, x_119, x_10, x_127); lean_dec(x_10); -lean_dec(x_320); +lean_dec(x_119); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -return x_330; +return x_129; } else { -lean_object* x_331; lean_object* x_332; lean_object* x_333; -x_331 = lean_ctor_get(x_324, 1); -lean_inc(x_331); -lean_dec(x_324); -x_332 = lean_ctor_get(x_327, 0); -lean_inc(x_332); -lean_dec(x_327); +lean_object* x_130; lean_object* x_131; lean_object* x_132; +x_130 = lean_ctor_get(x_123, 1); +lean_inc(x_130); +lean_dec(x_123); +x_131 = lean_ctor_get(x_126, 0); +lean_inc(x_131); +lean_dec(x_126); lean_inc(x_10); -lean_inc(x_320); +lean_inc(x_119); lean_inc(x_8); lean_inc(x_7); -x_333 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_332, x_5, x_6, x_7, x_8, x_320, x_10, x_331); -if (lean_obj_tag(x_333) == 0) +x_132 = l_Lean_Meta_inferType___at_Lean_Elab_Term_removeUnused___spec__2(x_131, x_5, x_6, x_7, x_8, x_119, x_10, x_130); +if (lean_obj_tag(x_132) == 0) { -lean_object* x_334; lean_object* x_335; uint8_t x_336; lean_object* x_337; lean_object* x_338; -x_334 = lean_ctor_get(x_333, 0); -lean_inc(x_334); -x_335 = lean_ctor_get(x_333, 1); -lean_inc(x_335); -lean_dec(x_333); -x_336 = lean_ctor_get_uint8(x_15, sizeof(void*)*7); +lean_object* x_133; lean_object* x_134; uint8_t x_135; lean_object* x_136; lean_object* x_137; +x_133 = lean_ctor_get(x_132, 0); +lean_inc(x_133); +x_134 = lean_ctor_get(x_132, 1); +lean_inc(x_134); +lean_dec(x_132); +x_135 = lean_ctor_get_uint8(x_15, sizeof(void*)*7); lean_inc(x_17); -x_337 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_11__withFields___main___rarg___lambda__1___boxed), 15, 7); -lean_closure_set(x_337, 0, x_15); -lean_closure_set(x_337, 1, x_17); -lean_closure_set(x_337, 2, x_326); -lean_closure_set(x_337, 3, x_3); -lean_closure_set(x_337, 4, x_2); -lean_closure_set(x_337, 5, x_1); -lean_closure_set(x_337, 6, x_4); -x_338 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_20__elabImplicitLambda___main___spec__1___rarg(x_17, x_336, x_334, x_337, x_5, x_6, x_7, x_8, x_320, x_10, x_335); -return x_338; +x_136 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__1___boxed), 14, 6); +lean_closure_set(x_136, 0, x_15); +lean_closure_set(x_136, 1, x_17); +lean_closure_set(x_136, 2, x_3); +lean_closure_set(x_136, 3, x_2); +lean_closure_set(x_136, 4, x_1); +lean_closure_set(x_136, 5, x_4); +x_137 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_elabLetDeclAux___spec__3___rarg(x_17, x_135, x_133, x_136, x_5, x_6, x_7, x_8, x_119, x_10, x_134); +return x_137; } else { -lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; -lean_dec(x_320); +lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; +lean_dec(x_119); lean_dec(x_17); lean_dec(x_15); lean_dec(x_10); @@ -8312,59 +7945,59 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_339 = lean_ctor_get(x_333, 0); -lean_inc(x_339); -x_340 = lean_ctor_get(x_333, 1); -lean_inc(x_340); -if (lean_is_exclusive(x_333)) { - lean_ctor_release(x_333, 0); - lean_ctor_release(x_333, 1); - x_341 = x_333; +x_138 = lean_ctor_get(x_132, 0); +lean_inc(x_138); +x_139 = lean_ctor_get(x_132, 1); +lean_inc(x_139); +if (lean_is_exclusive(x_132)) { + lean_ctor_release(x_132, 0); + lean_ctor_release(x_132, 1); + x_140 = x_132; } else { - lean_dec_ref(x_333); - x_341 = lean_box(0); + lean_dec_ref(x_132); + x_140 = lean_box(0); } -if (lean_is_scalar(x_341)) { - x_342 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_140)) { + x_141 = lean_alloc_ctor(1, 2, 0); } else { - x_342 = x_341; + x_141 = x_140; } -lean_ctor_set(x_342, 0, x_339); -lean_ctor_set(x_342, 1, x_340); -return x_342; +lean_ctor_set(x_141, 0, x_138); +lean_ctor_set(x_141, 1, x_139); +return x_141; } } } else { -lean_object* x_343; lean_object* x_344; lean_object* x_345; uint8_t x_346; lean_object* x_347; lean_object* x_348; -x_343 = lean_ctor_get(x_324, 1); -lean_inc(x_343); -lean_dec(x_324); -x_344 = lean_ctor_get(x_325, 1); -lean_inc(x_344); -lean_dec(x_325); -x_345 = lean_ctor_get(x_326, 0); -lean_inc(x_345); -lean_dec(x_326); -x_346 = lean_ctor_get_uint8(x_15, sizeof(void*)*7); +lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; lean_object* x_146; lean_object* x_147; +x_142 = lean_ctor_get(x_123, 1); +lean_inc(x_142); +lean_dec(x_123); +x_143 = lean_ctor_get(x_124, 1); +lean_inc(x_143); +lean_dec(x_124); +x_144 = lean_ctor_get(x_125, 0); +lean_inc(x_144); +lean_dec(x_125); +x_145 = lean_ctor_get_uint8(x_15, sizeof(void*)*7); lean_inc(x_17); -x_347 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_11__withFields___main___rarg___lambda__1___boxed), 15, 7); -lean_closure_set(x_347, 0, x_15); -lean_closure_set(x_347, 1, x_17); -lean_closure_set(x_347, 2, x_344); -lean_closure_set(x_347, 3, x_3); -lean_closure_set(x_347, 4, x_2); -lean_closure_set(x_347, 5, x_1); -lean_closure_set(x_347, 6, x_4); -x_348 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_20__elabImplicitLambda___main___spec__1___rarg(x_17, x_346, x_345, x_347, x_5, x_6, x_7, x_8, x_320, x_10, x_343); -return x_348; +x_146 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__2___boxed), 15, 7); +lean_closure_set(x_146, 0, x_15); +lean_closure_set(x_146, 1, x_17); +lean_closure_set(x_146, 2, x_143); +lean_closure_set(x_146, 3, x_3); +lean_closure_set(x_146, 4, x_2); +lean_closure_set(x_146, 5, x_1); +lean_closure_set(x_146, 6, x_4); +x_147 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_elabLetDeclAux___spec__3___rarg(x_17, x_145, x_144, x_146, x_5, x_6, x_7, x_8, x_119, x_10, x_142); +return x_147; } } else { -lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; -lean_dec(x_320); +lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; +lean_dec(x_119); lean_dec(x_17); lean_dec(x_15); lean_dec(x_10); @@ -8376,433 +8009,264 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_349 = lean_ctor_get(x_324, 0); -lean_inc(x_349); -x_350 = lean_ctor_get(x_324, 1); -lean_inc(x_350); -if (lean_is_exclusive(x_324)) { - lean_ctor_release(x_324, 0); - lean_ctor_release(x_324, 1); - x_351 = x_324; +x_148 = lean_ctor_get(x_123, 0); +lean_inc(x_148); +x_149 = lean_ctor_get(x_123, 1); +lean_inc(x_149); +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + lean_ctor_release(x_123, 1); + x_150 = x_123; } else { - lean_dec_ref(x_324); - x_351 = lean_box(0); + lean_dec_ref(x_123); + x_150 = lean_box(0); } -if (lean_is_scalar(x_351)) { - x_352 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_150)) { + x_151 = lean_alloc_ctor(1, 2, 0); } else { - x_352 = x_351; + x_151 = x_150; } -lean_ctor_set(x_352, 0, x_349); -lean_ctor_set(x_352, 1, x_350); -return x_352; +lean_ctor_set(x_151, 0, x_148); +lean_ctor_set(x_151, 1, x_149); +return x_151; } } else { -lean_object* x_353; lean_object* x_354; uint8_t x_355; -x_353 = lean_ctor_get(x_19, 0); -lean_inc(x_353); -if (lean_is_exclusive(x_19)) { - lean_ctor_release(x_19, 0); - x_354 = x_19; -} else { - lean_dec_ref(x_19); - x_354 = lean_box(0); -} -x_355 = lean_ctor_get_uint8(x_353, sizeof(void*)*4); -switch (x_355) { +lean_object* x_152; uint8_t x_153; +x_152 = lean_ctor_get(x_19, 0); +lean_inc(x_152); +lean_dec(x_19); +x_153 = lean_ctor_get_uint8(x_152, sizeof(void*)*4); +switch (x_153) { case 0: { -lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; -lean_dec(x_354); -lean_dec(x_353); +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_dec(x_152); lean_dec(x_15); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_356 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_356, 0, x_17); -x_357 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__3; -x_358 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_358, 0, x_357); -lean_ctor_set(x_358, 1, x_356); -x_359 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__8; -x_360 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_360, 0, x_358); -lean_ctor_set(x_360, 1, x_359); -x_361 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_360, x_5, x_6, x_7, x_8, x_320, x_10, x_11); +x_154 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_154, 0, x_17); +x_155 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__2; +x_156 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_156, 0, x_155); +lean_ctor_set(x_156, 1, x_154); +x_157 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__4; +x_158 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_158, 0, x_156); +lean_ctor_set(x_158, 1, x_157); +x_159 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(x_158, x_5, x_6, x_7, x_8, x_119, x_10, x_11); lean_dec(x_10); -lean_dec(x_320); +lean_dec(x_119); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -return x_361; +return x_159; } case 1: { -lean_object* x_362; -x_362 = lean_ctor_get(x_15, 6); -lean_inc(x_362); -if (lean_obj_tag(x_362) == 0) +lean_object* x_160; +x_160 = lean_ctor_get(x_15, 6); +lean_inc(x_160); +if (lean_obj_tag(x_160) == 0) { -lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; -lean_dec(x_354); -lean_dec(x_353); +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_152); lean_dec(x_15); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_363 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_363, 0, x_17); -x_364 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__3; -x_365 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_365, 0, x_364); -lean_ctor_set(x_365, 1, x_363); -x_366 = l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__6; -x_367 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_367, 0, x_365); -lean_ctor_set(x_367, 1, x_366); -x_368 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_367, x_5, x_6, x_7, x_8, x_320, x_10, x_11); +x_161 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_161, 0, x_17); +x_162 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__2; +x_163 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_163, 0, x_162); +lean_ctor_set(x_163, 1, x_161); +x_164 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__5; +x_165 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_165, 0, x_163); +lean_ctor_set(x_165, 1, x_164); +x_166 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(x_165, x_5, x_6, x_7, x_8, x_119, x_10, x_11); lean_dec(x_10); -lean_dec(x_320); +lean_dec(x_119); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -return x_368; +return x_166; } else { -lean_object* x_369; lean_object* x_370; lean_object* x_371; uint8_t x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_398; lean_object* x_399; uint8_t x_400; -x_369 = lean_ctor_get(x_353, 0); -lean_inc(x_369); -x_370 = lean_ctor_get(x_353, 1); -lean_inc(x_370); -x_371 = lean_ctor_get(x_353, 2); -lean_inc(x_371); -x_372 = lean_ctor_get_uint8(x_353, sizeof(void*)*4 + 1); -if (lean_is_exclusive(x_353)) { - lean_ctor_release(x_353, 0); - lean_ctor_release(x_353, 1); - lean_ctor_release(x_353, 2); - lean_ctor_release(x_353, 3); - x_373 = x_353; -} else { - lean_dec_ref(x_353); - x_373 = lean_box(0); -} -x_374 = lean_ctor_get(x_362, 0); -lean_inc(x_374); -if (lean_is_exclusive(x_362)) { - lean_ctor_release(x_362, 0); - x_375 = x_362; -} else { - lean_dec_ref(x_362); - x_375 = lean_box(0); -} -x_398 = lean_ctor_get(x_15, 4); -lean_inc(x_398); -x_399 = l_Lean_Syntax_getArgs(x_398); -lean_dec(x_398); -x_400 = l_Array_isEmpty___rarg(x_399); -lean_dec(x_399); -if (x_400 == 0) +lean_object* x_167; lean_object* x_168; lean_object* x_169; uint8_t x_170; lean_object* x_171; uint8_t x_172; lean_object* x_196; lean_object* x_197; uint8_t x_198; +x_167 = lean_ctor_get(x_152, 0); +lean_inc(x_167); +x_168 = lean_ctor_get(x_152, 1); +lean_inc(x_168); +x_169 = lean_ctor_get(x_152, 2); +lean_inc(x_169); +x_170 = lean_ctor_get_uint8(x_152, sizeof(void*)*4 + 1); +lean_dec(x_152); +x_171 = lean_ctor_get(x_160, 0); +lean_inc(x_171); +lean_dec(x_160); +x_196 = lean_ctor_get(x_15, 4); +lean_inc(x_196); +x_197 = l_Lean_Syntax_getArgs(x_196); +lean_dec(x_196); +x_198 = l_Array_isEmpty___rarg(x_197); +lean_dec(x_197); +if (x_198 == 0) { -lean_object* x_401; -lean_dec(x_375); -lean_dec(x_374); -lean_dec(x_373); -lean_dec(x_371); -lean_dec(x_370); -lean_dec(x_369); -lean_dec(x_354); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_401 = lean_box(0); -x_376 = x_401; -goto block_397; +uint8_t x_199; +x_199 = 1; +x_172 = x_199; +goto block_195; } else { -lean_object* x_402; -x_402 = lean_ctor_get(x_15, 5); -lean_inc(x_402); -if (lean_obj_tag(x_402) == 0) +lean_object* x_200; +x_200 = lean_ctor_get(x_15, 5); +lean_inc(x_200); +if (lean_obj_tag(x_200) == 0) { -lean_object* x_403; +uint8_t x_201; +x_201 = 0; +x_172 = x_201; +goto block_195; +} +else +{ +uint8_t x_202; +lean_dec(x_200); +x_202 = 1; +x_172 = x_202; +goto block_195; +} +} +block_195: +{ +if (x_172 == 0) +{ +lean_object* x_173; lean_object* x_174; lean_dec(x_17); lean_dec(x_15); -lean_inc(x_10); -lean_inc(x_320); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_371); -x_403 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_371, x_5, x_6, x_7, x_8, x_320, x_10, x_11); -if (lean_obj_tag(x_403) == 0) -{ -lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; uint8_t x_408; lean_object* x_409; -x_404 = lean_ctor_get(x_403, 0); -lean_inc(x_404); -x_405 = lean_ctor_get(x_403, 1); -lean_inc(x_405); -lean_dec(x_403); -if (lean_is_scalar(x_375)) { - x_406 = lean_alloc_ctor(1, 1, 0); -} else { - x_406 = x_375; -} -lean_ctor_set(x_406, 0, x_404); -x_407 = lean_box(0); -x_408 = 1; -lean_inc(x_10); -lean_inc(x_320); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_409 = l_Lean_Elab_Term_elabTermEnsuringType(x_374, x_406, x_408, x_407, x_5, x_6, x_7, x_8, x_320, x_10, x_405); -if (lean_obj_tag(x_409) == 0) -{ -lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; -x_410 = lean_ctor_get(x_409, 0); -lean_inc(x_410); -x_411 = lean_ctor_get(x_409, 1); -lean_inc(x_411); -lean_dec(x_409); -if (lean_is_scalar(x_354)) { - x_412 = lean_alloc_ctor(1, 1, 0); -} else { - x_412 = x_354; -} -lean_ctor_set(x_412, 0, x_410); -if (lean_is_scalar(x_373)) { - x_413 = lean_alloc_ctor(0, 4, 2); -} else { - x_413 = x_373; -} -lean_ctor_set(x_413, 0, x_369); -lean_ctor_set(x_413, 1, x_370); -lean_ctor_set(x_413, 2, x_371); -lean_ctor_set(x_413, 3, x_412); -lean_ctor_set_uint8(x_413, sizeof(void*)*4, x_355); -lean_ctor_set_uint8(x_413, sizeof(void*)*4 + 1, x_372); -x_414 = lean_array_push(x_3, x_413); -x_415 = lean_unsigned_to_nat(1u); -x_416 = lean_nat_add(x_2, x_415); +x_173 = lean_box(0); +x_174 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3(x_169, x_171, x_167, x_168, x_153, x_170, x_3, x_2, x_1, x_4, x_173, x_5, x_6, x_7, x_8, x_119, x_10, x_11); lean_dec(x_2); -x_2 = x_416; -x_3 = x_414; -x_9 = x_320; -x_11 = x_411; -goto _start; +return x_174; } else { -lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; -lean_dec(x_373); -lean_dec(x_371); -lean_dec(x_370); -lean_dec(x_369); -lean_dec(x_354); -lean_dec(x_320); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); +lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; +lean_dec(x_171); +lean_dec(x_169); +lean_dec(x_168); +lean_dec(x_167); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_418 = lean_ctor_get(x_409, 0); -lean_inc(x_418); -x_419 = lean_ctor_get(x_409, 1); -lean_inc(x_419); -if (lean_is_exclusive(x_409)) { - lean_ctor_release(x_409, 0); - lean_ctor_release(x_409, 1); - x_420 = x_409; -} else { - lean_dec_ref(x_409); - x_420 = lean_box(0); -} -if (lean_is_scalar(x_420)) { - x_421 = lean_alloc_ctor(1, 2, 0); -} else { - x_421 = x_420; -} -lean_ctor_set(x_421, 0, x_418); -lean_ctor_set(x_421, 1, x_419); -return x_421; -} -} -else -{ -lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; -lean_dec(x_375); -lean_dec(x_374); -lean_dec(x_373); -lean_dec(x_371); -lean_dec(x_370); -lean_dec(x_369); -lean_dec(x_354); -lean_dec(x_320); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_422 = lean_ctor_get(x_403, 0); -lean_inc(x_422); -x_423 = lean_ctor_get(x_403, 1); -lean_inc(x_423); -if (lean_is_exclusive(x_403)) { - lean_ctor_release(x_403, 0); - lean_ctor_release(x_403, 1); - x_424 = x_403; -} else { - lean_dec_ref(x_403); - x_424 = lean_box(0); -} -if (lean_is_scalar(x_424)) { - x_425 = lean_alloc_ctor(1, 2, 0); -} else { - x_425 = x_424; -} -lean_ctor_set(x_425, 0, x_422); -lean_ctor_set(x_425, 1, x_423); -return x_425; -} -} -else -{ -lean_object* x_426; -lean_dec(x_402); -lean_dec(x_375); -lean_dec(x_374); -lean_dec(x_373); -lean_dec(x_371); -lean_dec(x_370); -lean_dec(x_369); -lean_dec(x_354); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_426 = lean_box(0); -x_376 = x_426; -goto block_397; -} -} -block_397: -{ -lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; -lean_dec(x_376); -x_377 = lean_ctor_get(x_15, 5); -lean_inc(x_377); +x_175 = lean_ctor_get(x_15, 5); +lean_inc(x_175); lean_dec(x_15); -x_378 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_378, 0, x_17); -x_379 = l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__9; -x_380 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_380, 0, x_379); -lean_ctor_set(x_380, 1, x_378); -x_381 = l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__12; -x_382 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_382, 0, x_380); -lean_ctor_set(x_382, 1, x_381); -if (lean_obj_tag(x_377) == 0) +x_176 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_176, 0, x_17); +x_177 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__7; +x_178 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_178, 0, x_177); +lean_ctor_set(x_178, 1, x_176); +x_179 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__9; +x_180 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_180, 0, x_178); +lean_ctor_set(x_180, 1, x_179); +if (lean_obj_tag(x_175) == 0) { -lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; -x_383 = l_Lean_Syntax_inhabited; -x_384 = l_Option_get_x21___rarg___closed__3; -x_385 = lean_panic_fn(x_383, x_384); -x_386 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_385, x_382, x_5, x_6, x_7, x_8, x_320, x_10, x_11); +lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; +x_181 = l_Lean_Syntax_inhabited; +x_182 = l_Option_get_x21___rarg___closed__3; +x_183 = lean_panic_fn(x_181, x_182); +x_184 = l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2___rarg(x_183, x_180, x_5, x_6, x_7, x_8, x_119, x_10, x_11); lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_385); -x_387 = lean_ctor_get(x_386, 0); -lean_inc(x_387); -x_388 = lean_ctor_get(x_386, 1); -lean_inc(x_388); -if (lean_is_exclusive(x_386)) { - lean_ctor_release(x_386, 0); - lean_ctor_release(x_386, 1); - x_389 = x_386; +lean_dec(x_183); +x_185 = lean_ctor_get(x_184, 0); +lean_inc(x_185); +x_186 = lean_ctor_get(x_184, 1); +lean_inc(x_186); +if (lean_is_exclusive(x_184)) { + lean_ctor_release(x_184, 0); + lean_ctor_release(x_184, 1); + x_187 = x_184; } else { - lean_dec_ref(x_386); - x_389 = lean_box(0); + lean_dec_ref(x_184); + x_187 = lean_box(0); } -if (lean_is_scalar(x_389)) { - x_390 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_187)) { + x_188 = lean_alloc_ctor(1, 2, 0); } else { - x_390 = x_389; + x_188 = x_187; } -lean_ctor_set(x_390, 0, x_387); -lean_ctor_set(x_390, 1, x_388); -return x_390; +lean_ctor_set(x_188, 0, x_185); +lean_ctor_set(x_188, 1, x_186); +return x_188; } else { -lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; -x_391 = lean_ctor_get(x_377, 0); -lean_inc(x_391); -lean_dec(x_377); -x_392 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_391, x_382, x_5, x_6, x_7, x_8, x_320, x_10, x_11); +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_189 = lean_ctor_get(x_175, 0); +lean_inc(x_189); +lean_dec(x_175); +x_190 = l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2___rarg(x_189, x_180, x_5, x_6, x_7, x_8, x_119, x_10, x_11); lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_391); -x_393 = lean_ctor_get(x_392, 0); -lean_inc(x_393); -x_394 = lean_ctor_get(x_392, 1); -lean_inc(x_394); -if (lean_is_exclusive(x_392)) { - lean_ctor_release(x_392, 0); - lean_ctor_release(x_392, 1); - x_395 = x_392; +lean_dec(x_189); +x_191 = lean_ctor_get(x_190, 0); +lean_inc(x_191); +x_192 = lean_ctor_get(x_190, 1); +lean_inc(x_192); +if (lean_is_exclusive(x_190)) { + lean_ctor_release(x_190, 0); + lean_ctor_release(x_190, 1); + x_193 = x_190; } else { - lean_dec_ref(x_392); - x_395 = lean_box(0); + lean_dec_ref(x_190); + x_193 = lean_box(0); } -if (lean_is_scalar(x_395)) { - x_396 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_193)) { + x_194 = lean_alloc_ctor(1, 2, 0); } else { - x_396 = x_395; + x_194 = x_193; +} +lean_ctor_set(x_194, 0, x_191); +lean_ctor_set(x_194, 1, x_192); +return x_194; } -lean_ctor_set(x_396, 0, x_393); -lean_ctor_set(x_396, 1, x_394); -return x_396; } } } } default: { -lean_object* x_427; lean_object* x_428; lean_object* x_429; -lean_dec(x_354); -lean_dec(x_353); +lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; +lean_dec(x_152); lean_dec(x_17); lean_dec(x_15); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_427 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -x_428 = l_unreachable_x21___rarg(x_427); -x_429 = lean_apply_7(x_428, x_5, x_6, x_7, x_8, x_320, x_10, x_11); -return x_429; +x_203 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; +x_204 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__12; +x_205 = lean_panic_fn(x_203, x_204); +x_206 = lean_apply_7(x_205, x_5, x_6, x_7, x_8, x_119, x_10, x_11); +return x_206; } } } @@ -8810,41 +8274,99 @@ return x_429; } } } -lean_object* l___private_Lean_Elab_Structure_11__withFields___main(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_11__withFields___main___rarg), 11, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg), 11, 0); return x_2; } } -lean_object* l___private_Lean_Elab_Structure_11__withFields___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* x_14, lean_object* x_15) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___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* x_14) { +_start: +{ +lean_object* x_15; +x_15 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___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); +lean_dec(x_4); +lean_dec(x_1); +return x_15; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { lean_object* x_16; -x_16 = l___private_Lean_Elab_Structure_11__withFields___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, x_15); +x_16 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); lean_dec(x_5); lean_dec(x_1); return x_16; } } -lean_object* l___private_Lean_Elab_Structure_11__withFields___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3___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]; +lean_object* x_18 = _args[17]; _start: { -lean_object* x_12; -x_12 = l___private_Lean_Elab_Structure_11__withFields___main___rarg(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; +uint8_t x_19; uint8_t x_20; lean_object* x_21; +x_19 = lean_unbox(x_5); +lean_dec(x_5); +x_20 = lean_unbox(x_6); +lean_dec(x_6); +x_21 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3(x_1, x_2, x_3, x_4, x_19, x_20, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); +lean_dec(x_11); +lean_dec(x_8); +return x_21; } } -lean_object* l___private_Lean_Elab_Structure_11__withFields(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse_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_Structure_0__Lean_Elab_Command_getResultUniverse_match__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_11__withFields___rarg), 11, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse_match__1___rarg), 3, 0); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Structure_12__getResultUniverse___closed__1() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse___closed__1() { _start: { lean_object* x_1; @@ -8852,27 +8374,27 @@ x_1 = lean_mk_string("unexpected structure resulting type"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Structure_12__getResultUniverse___closed__2() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_12__getResultUniverse___closed__1; +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse___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_Structure_12__getResultUniverse___closed__3() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_12__getResultUniverse___closed__2; +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse___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_Structure_12__getResultUniverse(lean_object* x_1, lean_object* x_2, lean_object* 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_Structure_0__Lean_Elab_Command_getResultUniverse(lean_object* x_1, lean_object* x_2, 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; @@ -8880,7 +8402,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_9 = l_Lean_Meta_whnf___at___private_Lean_Elab_Term_6__isTypeApp_x3f___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_Meta_whnf___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_propagateExpectedType___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); if (lean_obj_tag(x_9) == 0) { lean_object* x_10; @@ -8928,8 +8450,8 @@ lean_dec(x_10); x_17 = lean_ctor_get(x_9, 1); lean_inc(x_17); lean_dec(x_9); -x_18 = l___private_Lean_Elab_Structure_12__getResultUniverse___closed__3; -x_19 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_17); +x_18 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse___closed__3; +x_19 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_17); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -8966,116 +8488,47 @@ return x_23; } } } -lean_object* l___private_Lean_Elab_Structure_12__getResultUniverse___boxed(lean_object* x_1, lean_object* x_2, lean_object* 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_Structure_0__Lean_Elab_Command_getResultUniverse___boxed(lean_object* x_1, lean_object* x_2, 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_Structure_12__getResultUniverse(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_3); return x_9; } } -lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_Structure_13__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___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUsed_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_10 = lean_ctor_get(x_7, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_7, 1); -lean_inc(x_11); -x_12 = lean_ctor_get(x_7, 2); -lean_inc(x_12); -x_13 = lean_ctor_get(x_7, 3); -lean_inc(x_13); -x_14 = lean_nat_dec_eq(x_11, x_12); -if (x_14 == 0) +if (lean_obj_tag(x_1) == 0) { -uint8_t x_15; -x_15 = !lean_is_exclusive(x_7); -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; -x_16 = lean_ctor_get(x_7, 3); -lean_dec(x_16); -x_17 = lean_ctor_get(x_7, 2); -lean_dec(x_17); -x_18 = lean_ctor_get(x_7, 1); -lean_dec(x_18); -x_19 = lean_ctor_get(x_7, 0); -lean_dec(x_19); -x_20 = lean_unsigned_to_nat(1u); -x_21 = lean_nat_add(x_11, x_20); -lean_dec(x_11); -lean_ctor_set(x_7, 1, x_21); -x_22 = l_Lean_Meta_inferTypeRef; -x_23 = lean_st_ref_get(x_22, x_9); -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_apply_6(x_24, x_1, x_5, x_6, x_7, x_8, x_25); -return x_26; +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_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_dec(x_7); -x_27 = lean_unsigned_to_nat(1u); -x_28 = lean_nat_add(x_11, x_27); -lean_dec(x_11); -x_29 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_29, 0, x_10); -lean_ctor_set(x_29, 1, x_28); -lean_ctor_set(x_29, 2, x_12); -lean_ctor_set(x_29, 3, x_13); -x_30 = l_Lean_Meta_inferTypeRef; -x_31 = lean_st_ref_get(x_30, x_9); -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -x_33 = lean_ctor_get(x_31, 1); -lean_inc(x_33); -lean_dec(x_31); -x_34 = lean_apply_6(x_32, x_1, x_5, x_6, x_29, x_8, x_33); -return x_34; -} -} -else -{ -lean_object* x_35; lean_object* x_36; uint8_t x_37; -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); +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_35 = l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; -x_36 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_35, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_37 = !lean_is_exclusive(x_36); -if (x_37 == 0) +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUsed_match__1(lean_object* x_1) { +_start: { -return x_36; -} -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_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUsed_match__1___rarg), 3, 0); +return x_2; } } -} -} -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_13__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* x_10) { +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_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, lean_object* x_10) { _start: { lean_object* x_11; uint8_t x_12; @@ -9104,7 +8557,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_16 = l_Lean_Meta_inferType___at___private_Lean_Elab_Structure_13__collectUsed___spec__1(x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_16 = l_Lean_Meta_inferType___at_Lean_Elab_Term_collectUsedFVarsAtFVars___spec__1(x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); 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; @@ -9154,7 +8607,7 @@ return x_27; } } } -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_13__collectUsed___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* l_Array_forMAux___main___at___private_Lean_Elab_Structure_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, lean_object* x_10) { _start: { lean_object* x_11; uint8_t x_12; @@ -9185,7 +8638,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_17 = l_Lean_Meta_inferType___at___private_Lean_Elab_Structure_13__collectUsed___spec__1(x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_17 = l_Lean_Meta_inferType___at_Lean_Elab_Term_collectUsedFVarsAtFVars___spec__1(x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); if (lean_obj_tag(x_17) == 0) { lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; @@ -9263,7 +8716,7 @@ return x_36; } } } -lean_object* l___private_Lean_Elab_Structure_13__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* x_10) { +lean_object* l___private_Lean_Elab_Structure_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, lean_object* x_10) { _start: { lean_object* x_11; lean_object* x_12; @@ -9272,14 +8725,14 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_12 = l_Array_forMAux___main___at___private_Lean_Elab_Structure_13__collectUsed___spec__2(x_1, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_12 = l_Array_forMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUsed___spec__1(x_1, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); if (lean_obj_tag(x_12) == 0) { lean_object* x_13; lean_object* x_14; x_13 = lean_ctor_get(x_12, 1); lean_inc(x_13); lean_dec(x_12); -x_14 = l_Array_forMAux___main___at___private_Lean_Elab_Structure_13__collectUsed___spec__3(x_2, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +x_14 = l_Array_forMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUsed___spec__2(x_2, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); return x_14; } else @@ -9310,22 +8763,11 @@ return x_18; } } } -lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_Structure_13__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_Lean_Meta_inferType___at___private_Lean_Elab_Structure_13__collectUsed___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_10; -} -} -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_13__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* x_10) { +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_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, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l_Array_forMAux___main___at___private_Lean_Elab_Structure_13__collectUsed___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_Array_forMAux___main___at___private_Lean_Elab_Structure_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, x_10); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -9333,11 +8775,11 @@ lean_dec(x_1); return x_11; } } -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_13__collectUsed___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* l_Array_forMAux___main___at___private_Lean_Elab_Structure_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, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l_Array_forMAux___main___at___private_Lean_Elab_Structure_13__collectUsed___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Array_forMAux___main___at___private_Lean_Elab_Structure_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, x_10); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -9345,11 +8787,11 @@ lean_dec(x_1); return x_11; } } -lean_object* l___private_Lean_Elab_Structure_13__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* x_10) { +lean_object* l___private_Lean_Elab_Structure_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, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l___private_Lean_Elab_Structure_13__collectUsed(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_Structure_0__Lean_Elab_Command_collectUsed(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); lean_dec(x_3); @@ -9358,7 +8800,28 @@ lean_dec(x_1); return x_11; } } -lean_object* l___private_Lean_Elab_Structure_14__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* x_10) { +lean_object* l___private_Lean_Elab_Structure_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_Structure_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_Structure_0__Lean_Elab_Command_removeUnused_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Structure_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, 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; @@ -9373,7 +8836,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_15 = l___private_Lean_Elab_Structure_13__collectUsed(x_2, x_3, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_14); +x_15 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUsed(x_2, x_3, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_14); 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; @@ -9419,11 +8882,11 @@ return x_24; } } } -lean_object* l___private_Lean_Elab_Structure_14__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* x_10) { +lean_object* l___private_Lean_Elab_Structure_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, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l___private_Lean_Elab_Structure_14__removeUnused(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_Structure_0__Lean_Elab_Command_removeUnused(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); lean_dec(x_3); @@ -9432,7 +8895,33 @@ lean_dec(x_1); return x_11; } } -lean_object* l___private_Lean_Elab_Structure_15__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* x_11) { +lean_object* l___private_Lean_Elab_Structure_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_Structure_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_Structure_0__Lean_Elab_Command_withUsed_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Structure_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, lean_object* x_11) { _start: { lean_object* x_12; @@ -9440,7 +8929,7 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_12 = l___private_Lean_Elab_Structure_14__removeUnused(x_1, x_2, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_12 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_removeUnused(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_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; @@ -9460,7 +8949,7 @@ x_18 = lean_ctor_get(x_14, 1); lean_inc(x_18); lean_dec(x_14); x_19 = lean_apply_1(x_4, x_18); -x_20 = l_Lean_Meta_withLCtx___at_Lean_Elab_Term_elabSyntheticHole___spec__1___rarg(x_16, x_17, x_19, x_5, x_6, x_7, x_8, x_9, x_10, x_15); +x_20 = l_Lean_Meta_withLCtx___at_Lean_Elab_Term_elabBinders___spec__2___rarg(x_16, x_17, x_19, x_5, x_6, x_7, x_8, x_9, x_10, x_15); return x_20; } else @@ -9494,26 +8983,26 @@ return x_24; } } } -lean_object* l___private_Lean_Elab_Structure_15__withUsed(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withUsed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_15__withUsed___rarg___boxed), 11, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withUsed___rarg___boxed), 11, 0); return x_2; } } -lean_object* l___private_Lean_Elab_Structure_15__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* x_11) { +lean_object* l___private_Lean_Elab_Structure_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, lean_object* x_11) { _start: { lean_object* x_12; -x_12 = l___private_Lean_Elab_Structure_15__withUsed___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___private_Lean_Elab_Structure_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, x_11); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); return x_12; } } -lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_Structure_16__levelMVarToParamFVar___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_Lean_Meta_inferType___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamFVar___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; @@ -9613,7 +9102,7 @@ return x_40; } } } -lean_object* l___private_Lean_Elab_Structure_16__levelMVarToParamFVar(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_Structure_0__Lean_Elab_Command_levelMVarToParamFVar(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; @@ -9621,7 +9110,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_10 = l_Lean_Meta_inferType___at___private_Lean_Elab_Structure_16__levelMVarToParamFVar___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_Meta_inferType___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamFVar___spec__1(x_1, 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; uint8_t x_14; @@ -9687,28 +9176,28 @@ return x_23; } } } -lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_Structure_16__levelMVarToParamFVar___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_Lean_Meta_inferType___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamFVar___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_inferType___at___private_Lean_Elab_Structure_16__levelMVarToParamFVar___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_Meta_inferType___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamFVar___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); return x_10; } } -lean_object* l___private_Lean_Elab_Structure_16__levelMVarToParamFVar___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_Structure_0__Lean_Elab_Command_levelMVarToParamFVar___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_Structure_16__levelMVarToParamFVar(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamFVar(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_2); return x_10; } } -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_17__levelMVarToParamFVars___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_forMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamFVars___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; uint8_t x_12; @@ -9739,7 +9228,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_16 = l___private_Lean_Elab_Structure_16__levelMVarToParamFVar(x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_16 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamFVar(x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); if (lean_obj_tag(x_16) == 0) { lean_object* x_17; lean_object* x_18; lean_object* x_19; @@ -9784,38 +9273,69 @@ return x_24; } } } -lean_object* l___private_Lean_Elab_Structure_17__levelMVarToParamFVars(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_Structure_0__Lean_Elab_Command_levelMVarToParamFVars(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_unsigned_to_nat(0u); -x_11 = l_Array_forMAux___main___at___private_Lean_Elab_Structure_17__levelMVarToParamFVars___spec__1(x_1, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_11 = l_Array_forMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamFVars___spec__1(x_1, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_11; } } -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_17__levelMVarToParamFVars___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_forMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamFVars___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l_Array_forMAux___main___at___private_Lean_Elab_Structure_17__levelMVarToParamFVars___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Array_forMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamFVars___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_5); lean_dec(x_3); lean_dec(x_1); return x_11; } } -lean_object* l___private_Lean_Elab_Structure_17__levelMVarToParamFVars___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_Structure_0__Lean_Elab_Command_levelMVarToParamFVars___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_Structure_17__levelMVarToParamFVars(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamFVars(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_2); lean_dec(x_1); return x_10; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Structure_18__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* x_10) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamAux_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_Structure_0__Lean_Elab_Command_levelMVarToParamAux_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamAux_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Structure_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, lean_object* x_10) { _start: { lean_object* x_11; uint8_t x_12; @@ -9860,7 +9380,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); lean_inc(x_21); -x_25 = l___private_Lean_Elab_Structure_16__levelMVarToParamFVar(x_21, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_25 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamFVar(x_21, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); if (lean_obj_tag(x_25) == 0) { if (lean_obj_tag(x_24) == 0) @@ -10035,7 +9555,7 @@ return x_74; } } } -lean_object* l___private_Lean_Elab_Structure_18__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* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_Structure_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, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; lean_object* x_13; @@ -10045,7 +9565,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_5); -x_13 = l_Array_forMAux___main___at___private_Lean_Elab_Structure_17__levelMVarToParamFVars___spec__1(x_1, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_13 = l_Array_forMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamFVars___spec__1(x_1, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_13) == 0) { lean_object* x_14; lean_object* x_15; @@ -10057,7 +9577,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_5); -x_15 = l_Array_forMAux___main___at___private_Lean_Elab_Structure_17__levelMVarToParamFVars___spec__1(x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +x_15 = l_Array_forMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamFVars___spec__1(x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); 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; @@ -10065,7 +9585,7 @@ x_16 = lean_ctor_get(x_15, 1); lean_inc(x_16); lean_dec(x_15); x_17 = x_3; -x_18 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Structure_18__levelMVarToParamAux___spec__1___boxed), 10, 2); +x_18 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamAux___spec__1___boxed), 10, 2); lean_closure_set(x_18, 0, x_12); lean_closure_set(x_18, 1, x_17); x_19 = x_18; @@ -10135,27 +9655,27 @@ return x_28; } } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Structure_18__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* x_10) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Structure_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, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l_Array_umapMAux___main___at___private_Lean_Elab_Structure_18__levelMVarToParamAux___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Array_umapMAux___main___at___private_Lean_Elab_Structure_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, x_10); lean_dec(x_5); lean_dec(x_3); return x_11; } } -lean_object* l___private_Lean_Elab_Structure_18__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* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_Structure_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, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; -x_12 = l___private_Lean_Elab_Structure_18__levelMVarToParamAux(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_Structure_0__Lean_Elab_Command_levelMVarToParamAux(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_Structure_19__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* x_9, lean_object* x_10) { +lean_object* l___private_Lean_Elab_Structure_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, 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; @@ -10167,7 +9687,7 @@ x_14 = lean_ctor_get(x_12, 1); lean_inc(x_14); lean_dec(x_12); lean_inc(x_13); -x_15 = l___private_Lean_Elab_Structure_18__levelMVarToParamAux(x_1, x_2, x_3, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_14); +x_15 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamAux(x_1, x_2, x_3, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_14); if (lean_obj_tag(x_15) == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; @@ -10224,17 +9744,100 @@ return x_26; } } } -lean_object* l___private_Lean_Elab_Structure_19__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* x_9, lean_object* x_10) { +lean_object* l___private_Lean_Elab_Structure_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, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l___private_Lean_Elab_Structure_19__levelMVarToParam(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_Structure_0__Lean_Elab_Command_levelMVarToParam(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_2); lean_dec(x_1); return x_11; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_20__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) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields_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_Structure_0__Lean_Elab_Command_collectUniversesFromFields_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields_match__1___rarg), 3, 0); +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) { _start: { lean_object* x_14; uint8_t x_15; @@ -10270,7 +9873,7 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_21 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_20, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_21 = l_Lean_Meta_inferType___at_Lean_Elab_Term_removeUnused___spec__2(x_20, x_7, x_8, x_9, x_10, x_11, x_12, x_13); if (lean_obj_tag(x_21) == 0) { lean_object* x_22; lean_object* x_23; lean_object* x_24; @@ -10292,7 +9895,7 @@ 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_Lean_Elab_Command_shouldInferResultUniverse___spec__1(x_25, x_7, x_8, x_9, x_10, x_11, x_12, x_26); +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_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); x_29 = lean_ctor_get(x_27, 1); @@ -10312,7 +9915,7 @@ x_32 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_32, 0, x_31); x_33 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_33, 0, x_32); -x_34 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_33, x_7, x_8, x_9, x_10, x_11, x_12, x_29); +x_34 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(x_33, x_7, x_8, x_9, x_10, x_11, x_12, x_29); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -10412,21 +10015,45 @@ return x_48; } } } -lean_object* l___private_Lean_Elab_Structure_20__collectUniversesFromFields(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* 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_Structure_0__Lean_Elab_Command_collectUniversesFromFields(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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_unsigned_to_nat(0u); x_12 = l_Array_empty___closed__1; -x_13 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_20__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); +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); return x_13; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_20__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) { +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) { _start: { lean_object* x_14; -x_14 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_20__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); +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); lean_dec(x_8); lean_dec(x_4); lean_dec(x_3); @@ -10434,18 +10061,50 @@ lean_dec(x_1); return x_14; } } -lean_object* l___private_Lean_Elab_Structure_20__collectUniversesFromFields___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* 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_Structure_0__Lean_Elab_Command_collectUniversesFromFields___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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_Structure_20__collectUniversesFromFields(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_Structure_0__Lean_Elab_Command_collectUniversesFromFields(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_3); lean_dec(x_1); return x_11; } } -lean_object* l_Lean_Meta_assignLevelMVar___at___private_Lean_Elab_Structure_21__updateResultingUniverse___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___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse_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___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_assignLevelMVar___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; @@ -10524,7 +10183,7 @@ return x_32; } } } -static lean_object* _init_l___private_Lean_Elab_Structure_21__updateResultingUniverse___closed__1() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse___closed__1() { _start: { lean_object* x_1; @@ -10532,27 +10191,27 @@ x_1 = lean_mk_string("failed to compute resulting universe level of structure, p return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Structure_21__updateResultingUniverse___closed__2() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_21__updateResultingUniverse___closed__1; +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse___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_Structure_21__updateResultingUniverse___closed__3() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_21__updateResultingUniverse___closed__2; +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse___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_Structure_21__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_Structure_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; @@ -10562,7 +10221,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_3); lean_inc(x_2); -x_10 = l___private_Lean_Elab_Structure_12__getResultUniverse(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse(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; @@ -10585,7 +10244,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_3); -x_17 = l___private_Lean_Elab_Structure_20__collectUniversesFromFields(x_15, x_14, x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +x_17 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields(x_15, x_14, x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_12); lean_dec(x_15); if (lean_obj_tag(x_17) == 0) { @@ -10598,11 +10257,11 @@ lean_dec(x_17); x_20 = l_Array_toList___rarg(x_18); lean_dec(x_18); x_21 = l_Lean_Level_mkNaryMax___main(x_20); -x_22 = l_Lean_Meta_assignLevelMVar___at___private_Lean_Elab_Structure_21__updateResultingUniverse___spec__1(x_16, x_21, x_3, x_4, x_5, x_6, x_7, x_8, x_19); +x_22 = l_Lean_Meta_assignLevelMVar___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse___spec__1(x_16, x_21, x_3, x_4, x_5, x_6, x_7, x_8, x_19); x_23 = lean_ctor_get(x_22, 1); lean_inc(x_23); lean_dec(x_22); -x_24 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_23); +x_24 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_declareTacticSyntax___spec__1(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_23); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -10646,8 +10305,8 @@ lean_object* x_29; lean_object* x_30; lean_dec(x_15); lean_dec(x_14); lean_dec(x_2); -x_29 = l___private_Lean_Elab_Structure_21__updateResultingUniverse___closed__3; -x_30 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +x_29 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse___closed__3; +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_12); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -10685,11 +10344,11 @@ return x_34; } } } -lean_object* l_Lean_Meta_assignLevelMVar___at___private_Lean_Elab_Structure_21__updateResultingUniverse___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_Lean_Meta_assignLevelMVar___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse___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_assignLevelMVar___at___private_Lean_Elab_Structure_21__updateResultingUniverse___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_Meta_assignLevelMVar___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse___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); @@ -10699,17 +10358,17 @@ lean_dec(x_3); return x_10; } } -lean_object* l___private_Lean_Elab_Structure_21__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_Structure_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_Structure_21__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_Structure_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_4); lean_dec(x_1); return x_10; } } -lean_object* l___private_Lean_Elab_Structure_22__collectLevelParamsInFVar(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_Structure_0__Lean_Elab_Command_collectLevelParamsInFVar(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; @@ -10717,7 +10376,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; uint8_t x_14; @@ -10726,7 +10385,7 @@ lean_inc(x_11); x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); lean_dec(x_10); -x_13 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +x_13 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_declareTacticSyntax___spec__1(x_11, 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); @@ -10784,17 +10443,17 @@ return x_24; } } } -lean_object* l___private_Lean_Elab_Structure_22__collectLevelParamsInFVar___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_Structure_0__Lean_Elab_Command_collectLevelParamsInFVar___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_Structure_22__collectLevelParamsInFVar(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInFVar(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); return x_10; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_23__collectLevelParamsInFVars___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_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInFVars___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; @@ -10825,7 +10484,7 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_18 = l___private_Lean_Elab_Structure_22__collectLevelParamsInFVar(x_4, x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_18 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInFVar(x_4, x_15, 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; @@ -10869,20 +10528,20 @@ return x_25; } } } -lean_object* l___private_Lean_Elab_Structure_23__collectLevelParamsInFVars(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_Structure_0__Lean_Elab_Command_collectLevelParamsInFVars(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_unsigned_to_nat(0u); -x_11 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_23__collectLevelParamsInFVars___spec__1(x_1, x_1, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_11 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInFVars___spec__1(x_1, x_1, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_11; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_23__collectLevelParamsInFVars___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_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInFVars___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_iterateMAux___main___at___private_Lean_Elab_Structure_23__collectLevelParamsInFVars___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_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInFVars___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_6); lean_dec(x_5); lean_dec(x_2); @@ -10890,18 +10549,18 @@ lean_dec(x_1); return x_12; } } -lean_object* l___private_Lean_Elab_Structure_23__collectLevelParamsInFVars___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_Structure_0__Lean_Elab_Command_collectLevelParamsInFVars___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_Structure_23__collectLevelParamsInFVars(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInFVars(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_Array_iterateMAux___main___at___private_Lean_Elab_Structure_24__collectLevelParamsInStructure___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_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInStructure___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; @@ -10935,7 +10594,7 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_19 = l___private_Lean_Elab_Structure_22__collectLevelParamsInFVar(x_4, x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_19 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInFVar(x_4, x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_19) == 0) { lean_object* x_20; lean_object* x_21; @@ -10979,7 +10638,7 @@ return x_26; } } } -lean_object* l___private_Lean_Elab_Structure_24__collectLevelParamsInStructure(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* 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_Structure_0__Lean_Elab_Command_collectLevelParamsInStructure(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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; @@ -10989,7 +10648,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_13 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_23__collectLevelParamsInFVars___spec__1(x_1, x_1, 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_collectLevelParamsInFVars___spec__1(x_1, x_1, x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); if (lean_obj_tag(x_13) == 0) { lean_object* x_14; lean_object* x_15; lean_object* x_16; @@ -11002,7 +10661,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_16 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_23__collectLevelParamsInFVars___spec__1(x_2, x_2, x_11, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_15); +x_16 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInFVars___spec__1(x_2, x_2, x_11, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_15); if (lean_obj_tag(x_16) == 0) { lean_object* x_17; lean_object* x_18; lean_object* x_19; @@ -11011,7 +10670,7 @@ lean_inc(x_17); x_18 = lean_ctor_get(x_16, 1); lean_inc(x_18); lean_dec(x_16); -x_19 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_24__collectLevelParamsInStructure___spec__1(x_3, x_3, x_11, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_18); +x_19 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInStructure___spec__1(x_3, x_3, x_11, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_18); if (lean_obj_tag(x_19) == 0) { uint8_t x_20; @@ -11121,11 +10780,11 @@ return x_38; } } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_24__collectLevelParamsInStructure___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_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInStructure___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_iterateMAux___main___at___private_Lean_Elab_Structure_24__collectLevelParamsInStructure___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_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInStructure___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_6); lean_dec(x_5); lean_dec(x_2); @@ -11133,11 +10792,11 @@ lean_dec(x_1); return x_12; } } -lean_object* l___private_Lean_Elab_Structure_24__collectLevelParamsInStructure___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* 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_Structure_0__Lean_Elab_Command_collectLevelParamsInStructure___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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_Structure_24__collectLevelParamsInStructure(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_Structure_0__Lean_Elab_Command_collectLevelParamsInStructure(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); lean_dec(x_3); @@ -11146,7 +10805,100 @@ lean_dec(x_1); return x_11; } } -lean_object* l___private_Lean_Elab_Structure_25__addCtorFields___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_Structure_0__Lean_Elab_Command_addCtorFields_match__1___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +switch (x_1) { +case 0: +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_3); +lean_dec(x_2); +x_5 = lean_box(0); +x_6 = lean_apply_1(x_4, x_5); +return x_6; +} +case 1: +{ +lean_object* x_7; lean_object* x_8; +lean_dec(x_4); +lean_dec(x_3); +x_7 = lean_box(0); +x_8 = lean_apply_1(x_2, 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___private_Lean_Elab_Structure_0__Lean_Elab_Command_addCtorFields_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addCtorFields_match__1___rarg___boxed), 4, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addCtorFields_match__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addCtorFields_match__1___rarg(x_5, x_2, x_3, x_4); +return x_6; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addCtorFields_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; uint8_t x_6; +x_5 = lean_unsigned_to_nat(0u); +x_6 = lean_nat_dec_eq(x_1, x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +x_7 = lean_unsigned_to_nat(1u); +x_8 = lean_nat_sub(x_1, x_7); +x_9 = lean_apply_2(x_4, x_8, x_2); +return x_9; +} +else +{ +lean_object* x_10; +lean_dec(x_4); +x_10 = lean_apply_1(x_3, x_2); +return x_10; +} +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addCtorFields_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addCtorFields_match__2___rarg___boxed), 4, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addCtorFields_match__2___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___private_Lean_Elab_Structure_0__Lean_Elab_Command_addCtorFields_match__2___rarg(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addCtorFields(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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; @@ -11177,7 +10929,7 @@ lean_inc(x_19); x_20 = lean_ctor_get(x_18, 1); lean_inc(x_20); lean_dec(x_18); -x_21 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_20); +x_21 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_declareTacticSyntax___spec__1(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_20); x_22 = lean_ctor_get(x_21, 0); lean_inc(x_22); x_23 = lean_ctor_get(x_21, 1); @@ -11284,33 +11036,16 @@ return x_47; } } } -lean_object* l___private_Lean_Elab_Structure_25__addCtorFields___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* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addCtorFields___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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_Structure_25__addCtorFields___main(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_Structure_0__Lean_Elab_Command_addCtorFields(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___private_Lean_Elab_Structure_25__addCtorFields(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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_Structure_25__addCtorFields___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_11; -} -} -lean_object* l___private_Lean_Elab_Structure_25__addCtorFields___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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_Structure_25__addCtorFields(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___private_Lean_Elab_Structure_26__mkCtor(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* 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_Structure_0__Lean_Elab_Command_mkCtor(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; @@ -11342,7 +11077,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_24 = l___private_Lean_Elab_Structure_25__addCtorFields___main(x_4, x_18, x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_24 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addCtorFields(x_4, x_18, x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_24) == 0) { lean_object* x_25; lean_object* x_26; lean_object* x_27; @@ -11353,7 +11088,7 @@ lean_inc(x_26); lean_dec(x_24); lean_inc(x_7); lean_inc(x_3); -x_27 = l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_Inductive_5__mkTypeFor___spec__1(x_3, x_25, x_5, x_6, x_7, x_8, x_9, x_10, x_26); +x_27 = l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(x_3, x_25, x_5, x_6, x_7, x_8, x_9, x_10, x_26); if (lean_obj_tag(x_27) == 0) { lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; @@ -11362,7 +11097,7 @@ lean_inc(x_28); x_29 = lean_ctor_get(x_27, 1); lean_inc(x_29); lean_dec(x_27); -x_30 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_28, x_5, x_6, x_7, x_8, x_9, x_10, x_29); +x_30 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_declareTacticSyntax___spec__1(x_28, x_5, x_6, x_7, x_8, x_9, x_10, x_29); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -11553,7 +11288,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_75 = l___private_Lean_Elab_Structure_25__addCtorFields___main(x_4, x_18, x_17, x_5, x_6, x_7, x_8, x_74, x_10, x_11); +x_75 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addCtorFields(x_4, x_18, x_17, x_5, x_6, x_7, x_8, x_74, x_10, x_11); if (lean_obj_tag(x_75) == 0) { lean_object* x_76; lean_object* x_77; lean_object* x_78; @@ -11564,7 +11299,7 @@ lean_inc(x_77); lean_dec(x_75); lean_inc(x_7); lean_inc(x_3); -x_78 = l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_Inductive_5__mkTypeFor___spec__1(x_3, x_76, x_5, x_6, x_7, x_8, x_74, x_10, x_77); +x_78 = l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(x_3, x_76, x_5, x_6, x_7, x_8, x_74, x_10, x_77); if (lean_obj_tag(x_78) == 0) { lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; @@ -11573,7 +11308,7 @@ lean_inc(x_79); x_80 = lean_ctor_get(x_78, 1); lean_inc(x_80); lean_dec(x_78); -x_81 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_79, x_5, x_6, x_7, x_8, x_74, x_10, x_80); +x_81 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_declareTacticSyntax___spec__1(x_79, x_5, x_6, x_7, x_8, x_74, x_10, x_80); lean_dec(x_10); lean_dec(x_74); lean_dec(x_8); @@ -11709,28 +11444,59 @@ return x_105; } } } -lean_object* l___private_Lean_Elab_Structure_26__mkCtor___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* 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_Structure_0__Lean_Elab_Command_mkCtor___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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_Structure_26__mkCtor(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_Structure_0__Lean_Elab_Command_mkCtor(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_4); return x_12; } } -lean_object* l___private_Lean_Elab_Structure_27__mkProjections___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkProjections___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; lean_object* x_6; x_5 = lean_unbox(x_4); lean_dec(x_4); x_6 = lean_mk_projections(x_1, x_2, x_3, x_5); -lean_dec(x_3); -lean_dec(x_2); return x_6; } } -lean_object* l___private_Lean_Elab_Structure_28__addProjections(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* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; @@ -11754,7 +11520,7 @@ 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_13); +x_19 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg(x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_13); return x_19; } else @@ -11763,345 +11529,352 @@ lean_object* x_20; lean_object* x_21; x_20 = lean_ctor_get(x_15, 0); lean_inc(x_20); lean_dec(x_15); -x_21 = l_Lean_setEnv___at_Lean_Elab_Command_elabEvalUnsafe___spec__4(x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +x_21 = l_Lean_setEnv___at_Lean_Elab_Term_declareTacticSyntax___spec__4(x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_13); lean_dec(x_4); return x_21; } } } -lean_object* l___private_Lean_Elab_Structure_28__addProjections___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* 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_Structure_0__Lean_Elab_Command_addProjections___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { uint8_t x_11; lean_object* x_12; x_11 = lean_unbox(x_3); lean_dec(x_3); -x_12 = l___private_Lean_Elab_Structure_28__addProjections(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_12 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); return x_12; } } -lean_object* l___private_Lean_Elab_Structure_29__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_Structure_0__Lean_Elab_Command_mkAuxConstructions___lambda__1(uint8_t x_1, uint8_t 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) { _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; uint8_t x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; +if (x_1 == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_box(0); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_12); +return x_14; +} +else +{ +if (x_2 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_box(0); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_12); +return x_16; +} +else +{ +if (x_3 == 0) +{ +lean_object* x_17; lean_object* x_18; +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_12); +return x_18; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_19 = lean_st_ref_take(x_11, x_12); +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = !lean_is_exclusive(x_20); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_23 = lean_ctor_get(x_20, 0); +x_24 = lean_mk_no_confusion(x_23, x_4); +lean_ctor_set(x_20, 0, x_24); +x_25 = lean_st_ref_set(x_11, x_20, x_21); +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_25, 0); +lean_dec(x_27); +x_28 = lean_box(0); +lean_ctor_set(x_25, 0, x_28); +return x_25; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_25, 1); +lean_inc(x_29); +lean_dec(x_25); +x_30 = lean_box(0); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_29); +return x_31; +} +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_32 = lean_ctor_get(x_20, 0); +x_33 = lean_ctor_get(x_20, 1); +x_34 = lean_ctor_get(x_20, 2); +x_35 = lean_ctor_get(x_20, 3); +lean_inc(x_35); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_20); +x_36 = lean_mk_no_confusion(x_32, x_4); +x_37 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_33); +lean_ctor_set(x_37, 2, x_34); +lean_ctor_set(x_37, 3, x_35); +x_38 = lean_st_ref_set(x_11, x_37, x_21); +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + x_40 = x_38; +} else { + lean_dec_ref(x_38); + x_40 = lean_box(0); +} +x_41 = lean_box(0); +if (lean_is_scalar(x_40)) { + x_42 = lean_alloc_ctor(0, 2, 0); +} else { + x_42 = x_40; +} +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_39); +return x_42; +} +} +} +} +} +} +lean_object* l___private_Lean_Elab_Structure_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; lean_object* x_20; lean_object* x_21; uint8_t x_22; x_9 = lean_st_ref_get(x_7, x_8); x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); x_11 = lean_ctor_get(x_9, 1); lean_inc(x_11); -if (lean_is_exclusive(x_9)) { - lean_ctor_release(x_9, 0); - lean_ctor_release(x_9, 1); - x_12 = x_9; -} else { - lean_dec_ref(x_9); - x_12 = lean_box(0); -} -x_13 = lean_ctor_get(x_10, 0); -lean_inc(x_13); +lean_dec(x_9); +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); lean_dec(x_10); -x_14 = l___private_Lean_Elab_Inductive_34__mkAuxConstructions___closed__2; -lean_inc(x_13); -x_15 = l_Lean_Environment_contains(x_13, x_14); -x_16 = l_Lean_Expr_eq_x3f___closed__2; -lean_inc(x_13); -x_17 = l_Lean_Environment_contains(x_13, x_16); -x_18 = l_Lean_Expr_heq_x3f___closed__2; -x_19 = l_Lean_Environment_contains(x_13, x_18); -x_52 = lean_st_ref_take(x_7, x_11); -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_is_exclusive(x_53); -if (x_55 == 0) +x_13 = l___private_Lean_Elab_Inductive_34__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; +lean_inc(x_12); +x_16 = l_Lean_Environment_contains(x_12, x_15); +x_17 = l_Lean_Expr_heq_x3f___closed__2; +x_18 = l_Lean_Environment_contains(x_12, x_17); +x_19 = lean_st_ref_take(x_7, x_11); +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = !lean_is_exclusive(x_20); +if (x_22 == 0) { -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_53, 0); -x_57 = lean_mk_rec_on(x_56, x_1); -lean_ctor_set(x_53, 0, x_57); -x_58 = lean_st_ref_set(x_7, x_53, x_54); -if (x_15 == 0) +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_20, 0); +x_24 = lean_mk_rec_on(x_23, x_1); +lean_ctor_set(x_20, 0, x_24); +x_25 = lean_st_ref_set(x_7, x_20, x_21); +if (x_14 == 0) { -lean_object* x_59; -x_59 = lean_ctor_get(x_58, 1); -lean_inc(x_59); -lean_dec(x_58); -x_20 = x_59; -goto block_51; +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_25, 1); +lean_inc(x_26); +lean_dec(x_25); +x_27 = lean_box(0); +x_28 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkAuxConstructions___lambda__1(x_14, x_16, x_18, x_1, x_27, x_2, x_3, x_4, x_5, x_6, x_7, x_26); +return x_28; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; -x_60 = lean_ctor_get(x_58, 1); +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_29 = lean_ctor_get(x_25, 1); +lean_inc(x_29); +lean_dec(x_25); +x_30 = lean_st_ref_take(x_7, x_29); +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_cases_on(x_34, x_1); +lean_ctor_set(x_31, 0, x_35); +x_36 = lean_st_ref_set(x_7, 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___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkAuxConstructions___lambda__1(x_14, x_16, x_18, x_1, x_38, x_2, x_3, x_4, x_5, x_6, x_7, x_37); +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; +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_cases_on(x_40, x_1); +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_7, 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___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkAuxConstructions___lambda__1(x_14, x_16, x_18, x_1, x_48, x_2, x_3, x_4, x_5, x_6, x_7, 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; +x_50 = lean_ctor_get(x_20, 0); +x_51 = lean_ctor_get(x_20, 1); +x_52 = lean_ctor_get(x_20, 2); +x_53 = lean_ctor_get(x_20, 3); +lean_inc(x_53); +lean_inc(x_52); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_20); +x_54 = lean_mk_rec_on(x_50, x_1); +x_55 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_51); +lean_ctor_set(x_55, 2, x_52); +lean_ctor_set(x_55, 3, x_53); +x_56 = lean_st_ref_set(x_7, x_55, x_21); +if (x_14 == 0) +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_56, 1); +lean_inc(x_57); +lean_dec(x_56); +x_58 = lean_box(0); +x_59 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkAuxConstructions___lambda__1(x_14, x_16, x_18, x_1, x_58, x_2, x_3, x_4, x_5, x_6, x_7, x_57); +return x_59; +} +else +{ +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; +x_60 = lean_ctor_get(x_56, 1); lean_inc(x_60); -lean_dec(x_58); +lean_dec(x_56); x_61 = lean_st_ref_take(x_7, x_60); x_62 = lean_ctor_get(x_61, 0); lean_inc(x_62); x_63 = lean_ctor_get(x_61, 1); lean_inc(x_63); lean_dec(x_61); -x_64 = !lean_is_exclusive(x_62); -if (x_64 == 0) -{ -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_65 = lean_ctor_get(x_62, 0); -x_66 = lean_mk_cases_on(x_65, x_1); -lean_ctor_set(x_62, 0, x_66); -x_67 = lean_st_ref_set(x_7, x_62, x_63); -x_68 = lean_ctor_get(x_67, 1); -lean_inc(x_68); -lean_dec(x_67); -x_20 = x_68; -goto block_51; +x_64 = lean_ctor_get(x_62, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_62, 1); +lean_inc(x_65); +x_66 = lean_ctor_get(x_62, 2); +lean_inc(x_66); +x_67 = lean_ctor_get(x_62, 3); +lean_inc(x_67); +if (lean_is_exclusive(x_62)) { + lean_ctor_release(x_62, 0); + lean_ctor_release(x_62, 1); + lean_ctor_release(x_62, 2); + lean_ctor_release(x_62, 3); + x_68 = x_62; +} else { + lean_dec_ref(x_62); + x_68 = lean_box(0); } -else -{ -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_69 = lean_ctor_get(x_62, 0); -x_70 = lean_ctor_get(x_62, 1); -x_71 = lean_ctor_get(x_62, 2); -x_72 = lean_ctor_get(x_62, 3); +x_69 = lean_mk_cases_on(x_64, x_1); +if (lean_is_scalar(x_68)) { + x_70 = lean_alloc_ctor(0, 4, 0); +} else { + x_70 = x_68; +} +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_65); +lean_ctor_set(x_70, 2, x_66); +lean_ctor_set(x_70, 3, x_67); +x_71 = lean_st_ref_set(x_7, x_70, x_63); +x_72 = lean_ctor_get(x_71, 1); lean_inc(x_72); -lean_inc(x_71); -lean_inc(x_70); -lean_inc(x_69); -lean_dec(x_62); -x_73 = lean_mk_cases_on(x_69, x_1); -x_74 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_74, 0, x_73); -lean_ctor_set(x_74, 1, x_70); -lean_ctor_set(x_74, 2, x_71); -lean_ctor_set(x_74, 3, x_72); -x_75 = lean_st_ref_set(x_7, x_74, x_63); -x_76 = lean_ctor_get(x_75, 1); -lean_inc(x_76); -lean_dec(x_75); -x_20 = x_76; -goto block_51; +lean_dec(x_71); +x_73 = lean_box(0); +x_74 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkAuxConstructions___lambda__1(x_14, x_16, x_18, x_1, x_73, x_2, x_3, x_4, x_5, x_6, x_7, x_72); +return x_74; } } } -else +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkAuxConstructions___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_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_77 = lean_ctor_get(x_53, 0); -x_78 = lean_ctor_get(x_53, 1); -x_79 = lean_ctor_get(x_53, 2); -x_80 = lean_ctor_get(x_53, 3); -lean_inc(x_80); -lean_inc(x_79); -lean_inc(x_78); -lean_inc(x_77); -lean_dec(x_53); -x_81 = lean_mk_rec_on(x_77, x_1); -x_82 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_82, 0, x_81); -lean_ctor_set(x_82, 1, x_78); -lean_ctor_set(x_82, 2, x_79); -lean_ctor_set(x_82, 3, x_80); -x_83 = lean_st_ref_set(x_7, x_82, x_54); -if (x_15 == 0) -{ -lean_object* x_84; -x_84 = lean_ctor_get(x_83, 1); -lean_inc(x_84); -lean_dec(x_83); -x_20 = x_84; -goto block_51; -} -else -{ -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; -x_85 = lean_ctor_get(x_83, 1); -lean_inc(x_85); -lean_dec(x_83); -x_86 = lean_st_ref_take(x_7, x_85); -x_87 = lean_ctor_get(x_86, 0); -lean_inc(x_87); -x_88 = lean_ctor_get(x_86, 1); -lean_inc(x_88); -lean_dec(x_86); -x_89 = lean_ctor_get(x_87, 0); -lean_inc(x_89); -x_90 = lean_ctor_get(x_87, 1); -lean_inc(x_90); -x_91 = lean_ctor_get(x_87, 2); -lean_inc(x_91); -x_92 = lean_ctor_get(x_87, 3); -lean_inc(x_92); -if (lean_is_exclusive(x_87)) { - lean_ctor_release(x_87, 0); - lean_ctor_release(x_87, 1); - lean_ctor_release(x_87, 2); - lean_ctor_release(x_87, 3); - x_93 = x_87; -} else { - lean_dec_ref(x_87); - x_93 = lean_box(0); -} -x_94 = lean_mk_cases_on(x_89, x_1); -if (lean_is_scalar(x_93)) { - x_95 = lean_alloc_ctor(0, 4, 0); -} else { - x_95 = x_93; -} -lean_ctor_set(x_95, 0, x_94); -lean_ctor_set(x_95, 1, x_90); -lean_ctor_set(x_95, 2, x_91); -lean_ctor_set(x_95, 3, x_92); -x_96 = lean_st_ref_set(x_7, x_95, x_88); -x_97 = lean_ctor_get(x_96, 1); -lean_inc(x_97); -lean_dec(x_96); -x_20 = x_97; -goto block_51; +uint8_t x_13; uint8_t x_14; uint8_t x_15; lean_object* x_16; +x_13 = lean_unbox(x_1); +lean_dec(x_1); +x_14 = lean_unbox(x_2); +lean_dec(x_2); +x_15 = lean_unbox(x_3); +lean_dec(x_3); +x_16 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkAuxConstructions___lambda__1(x_13, x_14, x_15, 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); +return x_16; } } -block_51: -{ -if (x_15 == 0) -{ -lean_object* x_21; lean_object* x_22; -x_21 = lean_box(0); -if (lean_is_scalar(x_12)) { - x_22 = lean_alloc_ctor(0, 2, 0); -} else { - x_22 = x_12; -} -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_20); -return x_22; -} -else -{ -if (x_17 == 0) -{ -lean_object* x_23; lean_object* x_24; -x_23 = lean_box(0); -if (lean_is_scalar(x_12)) { - x_24 = lean_alloc_ctor(0, 2, 0); -} else { - x_24 = x_12; -} -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_20); -return x_24; -} -else -{ -if (x_19 == 0) -{ -lean_object* x_25; lean_object* x_26; -x_25 = lean_box(0); -if (lean_is_scalar(x_12)) { - x_26 = lean_alloc_ctor(0, 2, 0); -} else { - x_26 = x_12; -} -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_20); -return x_26; -} -else -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; -lean_dec(x_12); -x_27 = lean_st_ref_take(x_7, x_20); -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; uint8_t x_34; -x_31 = lean_ctor_get(x_28, 0); -x_32 = lean_mk_no_confusion(x_31, x_1); -lean_ctor_set(x_28, 0, x_32); -x_33 = lean_st_ref_set(x_7, x_28, x_29); -x_34 = !lean_is_exclusive(x_33); -if (x_34 == 0) -{ -lean_object* x_35; lean_object* x_36; -x_35 = lean_ctor_get(x_33, 0); -lean_dec(x_35); -x_36 = lean_box(0); -lean_ctor_set(x_33, 0, x_36); -return x_33; -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_33, 1); -lean_inc(x_37); -lean_dec(x_33); -x_38 = lean_box(0); -x_39 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_37); -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, 2); -x_43 = lean_ctor_get(x_28, 3); -lean_inc(x_43); -lean_inc(x_42); -lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_28); -x_44 = lean_mk_no_confusion(x_40, x_1); -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_7, x_45, x_29); -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); -} -x_49 = lean_box(0); -if (lean_is_scalar(x_48)) { - x_50 = lean_alloc_ctor(0, 2, 0); -} else { - x_50 = x_48; -} -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_47); -return x_50; -} -} -} -} -} -} -} -lean_object* l___private_Lean_Elab_Structure_29__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___private_Lean_Elab_Structure_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_Structure_29__mkAuxConstructions(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_Structure_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); @@ -12112,7 +11885,33 @@ lean_dec(x_1); return x_9; } } -lean_object* l_Lean_Meta_mkId___at___private_Lean_Elab_Structure_30__addDefaults___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_Structure_0__Lean_Elab_Command_addDefaults_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_Structure_0__Lean_Elab_Command_addDefaults_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_mkId___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___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; @@ -12120,7 +11919,7 @@ x_9 = l___private_Lean_Meta_AppBuilder_1__mkIdImp(x_1, x_4, x_5, x_6, x_7, x_8); return x_9; } } -static lean_object* _init_l_Lean_Meta_mkAuxDefinition___at___private_Lean_Elab_Structure_30__addDefaults___spec__2___closed__1() { +static lean_object* _init_l_Lean_Meta_mkAuxDefinition___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__2___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -12130,7 +11929,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Lean_Meta_mkAuxDefinition___at___private_Lean_Elab_Structure_30__addDefaults___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* l_Lean_Meta_mkAuxDefinition___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___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) { _start: { lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; @@ -12141,7 +11940,7 @@ x_12 = lean_alloc_closure((void*)(l___private_Lean_Meta_Closure_1__mkAuxDefiniti lean_closure_set(x_12, 0, x_1); lean_closure_set(x_12, 1, x_2); lean_closure_set(x_12, 2, x_3); -x_13 = l_Lean_Meta_mkAuxDefinition___at___private_Lean_Elab_Structure_30__addDefaults___spec__2___closed__1; +x_13 = l_Lean_Meta_mkAuxDefinition___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__2___closed__1; x_14 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_13, x_12, x_7, x_8, x_9, x_10, x_11); x_15 = lean_ctor_get(x_14, 1); lean_inc(x_15); @@ -12150,7 +11949,7 @@ x_16 = l___private_Lean_Meta_Closure_1__mkAuxDefinitionImp(x_1, x_2, x_3, x_4, x return x_16; } } -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_30__addDefaults___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* l_Array_forMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; uint8_t x_11; @@ -12204,7 +12003,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_16); -x_23 = l_Lean_Meta_mkAuxDefinition___at___private_Lean_Elab_Structure_30__addDefaults___spec__2(x_16, x_17, x_20, x_22, x_3, x_4, x_5, x_6, x_7, x_8, x_21); +x_23 = l_Lean_Meta_mkAuxDefinition___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__2(x_16, x_17, x_20, x_22, x_3, x_4, x_5, x_6, x_7, x_8, 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; uint8_t x_28; @@ -12328,58 +12127,91 @@ return x_56; } } } -lean_object* l___private_Lean_Elab_Structure_30__addDefaults(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_Structure_0__Lean_Elab_Command_addDefaults(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; -x_10 = l_Lean_Meta_getLocalInstances___at___private_Lean_Elab_Inductive_1__elabHeaderAux___main___spec__1___rarg(x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_Meta_getLocalInstances___at_Lean_Elab_Term_removeUnused___spec__1___rarg(x_5, x_6, x_7, x_8, x_9); x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); lean_dec(x_10); x_13 = lean_unsigned_to_nat(0u); -x_14 = lean_alloc_closure((void*)(l_Array_forMAux___main___at___private_Lean_Elab_Structure_30__addDefaults___spec__3___boxed), 9, 2); +x_14 = lean_alloc_closure((void*)(l_Array_forMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__3___boxed), 9, 2); lean_closure_set(x_14, 0, x_2); lean_closure_set(x_14, 1, x_13); -x_15 = l_Lean_Meta_withLCtx___at_Lean_Elab_Term_elabSyntheticHole___spec__1___rarg(x_1, x_11, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +x_15 = l_Lean_Meta_withLCtx___at_Lean_Elab_Term_elabBinders___spec__2___rarg(x_1, x_11, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_12); return x_15; } } -lean_object* l_Lean_Meta_mkId___at___private_Lean_Elab_Structure_30__addDefaults___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_Lean_Meta_mkId___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___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_mkId___at___private_Lean_Elab_Structure_30__addDefaults___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_Meta_mkId___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___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_mkAuxDefinition___at___private_Lean_Elab_Structure_30__addDefaults___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_Lean_Meta_mkAuxDefinition___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___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: { uint8_t x_12; lean_object* x_13; x_12 = lean_unbox(x_4); lean_dec(x_4); -x_13 = l_Lean_Meta_mkAuxDefinition___at___private_Lean_Elab_Structure_30__addDefaults___spec__2(x_1, x_2, x_3, x_12, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_13 = l_Lean_Meta_mkAuxDefinition___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__2(x_1, x_2, x_3, x_12, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_6); lean_dec(x_5); return x_13; } } -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_30__addDefaults___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* l_Array_forMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l_Array_forMAux___main___at___private_Lean_Elab_Structure_30__addDefaults___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Array_forMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__3(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_Array_filterAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView_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_Structure_0__Lean_Elab_Command_elabStructureView_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Array_filterAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -12443,7 +12275,7 @@ goto _start; } } } -lean_object* l_List_map___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__2(lean_object* x_1) { +lean_object* l_List_map___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__2(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -12468,7 +12300,7 @@ lean_dec(x_4); x_8 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_8, 0, x_6); lean_ctor_set_uint8(x_8, sizeof(void*)*1, x_7); -x_9 = l_List_map___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__2(x_5); +x_9 = l_List_map___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__2(x_5); lean_ctor_set(x_1, 1, x_9); lean_ctor_set(x_1, 0, x_8); return x_1; @@ -12488,7 +12320,7 @@ lean_dec(x_10); x_14 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_14, 0, x_12); lean_ctor_set_uint8(x_14, sizeof(void*)*1, x_13); -x_15 = l_List_map___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__2(x_11); +x_15 = l_List_map___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__2(x_11); x_16 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_16, 0, x_14); lean_ctor_set(x_16, 1, x_15); @@ -12497,7 +12329,7 @@ return x_16; } } } -lean_object* l_Array_filterMAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___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* l_Array_filterMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___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) { _start: { lean_object* x_11; uint8_t x_12; @@ -12646,7 +12478,7 @@ goto _start; } } } -lean_object* l_List_map___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__4(lean_object* x_1) { +lean_object* l_List_map___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -12667,7 +12499,7 @@ x_5 = lean_ctor_get(x_1, 1); x_6 = lean_ctor_get(x_4, 1); lean_inc(x_6); lean_dec(x_4); -x_7 = l_List_map___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__4(x_5); +x_7 = l_List_map___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -12683,7 +12515,7 @@ lean_dec(x_1); x_10 = lean_ctor_get(x_8, 1); lean_inc(x_10); lean_dec(x_8); -x_11 = l_List_map___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__4(x_9); +x_11 = l_List_map___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -12692,7 +12524,7 @@ return x_12; } } } -lean_object* l_Lean_Meta_addGlobalInstance___at___private_Lean_Elab_Structure_31__elabStructureView___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_Lean_Meta_addGlobalInstance___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; @@ -12715,7 +12547,7 @@ lean_inc(x_15); x_16 = lean_ctor_get(x_14, 1); lean_inc(x_16); lean_dec(x_14); -x_17 = l_Lean_setEnv___at_Lean_Elab_Command_elabEvalUnsafe___spec__4(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_16); +x_17 = l_Lean_setEnv___at_Lean_Elab_Term_declareTacticSyntax___spec__4(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_16); return x_17; } else @@ -12763,7 +12595,7 @@ return x_30; } } } -lean_object* l_List_forM___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_List_forM___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { if (lean_obj_tag(x_1) == 0) @@ -12783,7 +12615,7 @@ lean_inc(x_11); x_12 = lean_ctor_get(x_1, 1); lean_inc(x_12); lean_dec(x_1); -x_13 = l_Lean_Meta_addGlobalInstance___at___private_Lean_Elab_Structure_31__elabStructureView___spec__5(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_13 = l_Lean_Meta_addGlobalInstance___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__5(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8); if (lean_obj_tag(x_13) == 0) { lean_object* x_14; @@ -12820,7 +12652,7 @@ return x_19; } } } -lean_object* l_Array_filterAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_filterAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -12886,7 +12718,7 @@ goto _start; } } } -static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__8___closed__1() { +static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__8___closed__1() { _start: { lean_object* x_1; @@ -12894,17 +12726,17 @@ x_1 = lean_mk_string("_default"); return x_1; } } -static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__8___closed__2() { +static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__8___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Array_umapMAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__8___closed__1; +x_2 = l_Array_umapMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__8___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; uint8_t x_11; @@ -12938,7 +12770,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_19 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_19 = l_Lean_Meta_inferType___at_Lean_Elab_Term_removeUnused___spec__2(x_18, 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; lean_object* x_23; lean_object* x_24; lean_object* x_25; @@ -12949,7 +12781,7 @@ lean_inc(x_21); lean_dec(x_19); x_22 = lean_ctor_get(x_17, 1); lean_inc(x_22); -x_23 = l_Array_umapMAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__8___closed__2; +x_23 = l_Array_umapMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__8___closed__2; x_24 = l_Lean_Name_append___main(x_22, x_23); lean_dec(x_22); x_25 = lean_ctor_get(x_17, 3); @@ -13032,7 +12864,7 @@ return x_47; } } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; uint8_t x_7; @@ -13061,7 +12893,7 @@ goto _start; } } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__10(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_Structure_0__Lean_Elab_Command_elabStructureView___spec__10(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; @@ -13104,7 +12936,577 @@ goto _start; } } } -lean_object* l___private_Lean_Elab_Structure_31__elabStructureView___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___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_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_13 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInStructure(x_1, x_2, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +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_4, 2); +lean_inc(x_16); +x_17 = lean_ctor_get(x_4, 3); +lean_inc(x_17); +x_18 = l_Lean_Elab_sortDeclLevelParams(x_16, x_17, x_14); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +lean_dec(x_18); +x_20 = lean_alloc_ctor(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_6, x_7, x_8, x_9, x_10, x_11, x_15); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_22; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_23 = lean_ctor_get(x_18, 0); +lean_inc(x_23); +lean_dec(x_18); +x_24 = lean_unsigned_to_nat(0u); +lean_inc(x_1); +x_25 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_2, x_2, x_24, x_1); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_25); +lean_inc(x_23); +lean_inc(x_4); +x_26 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCtor(x_4, x_23, x_25, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_15); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); +lean_inc(x_8); +lean_inc(x_25); +x_29 = l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(x_25, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_28); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; 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; uint8_t x_42; lean_object* x_43; lean_object* x_44; +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +lean_dec(x_29); +x_32 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_declareTacticSyntax___spec__1(x_30, x_6, x_7, x_8, x_9, x_10, x_11, x_31); +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_ctor_get(x_4, 4); +lean_inc(x_35); +x_36 = lean_box(0); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_27); +lean_ctor_set(x_37, 1, x_36); +lean_inc(x_35); +x_38 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_38, 0, x_35); +lean_ctor_set(x_38, 1, x_33); +lean_ctor_set(x_38, 2, x_37); +x_39 = lean_array_get_size(x_25); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_36); +x_41 = lean_ctor_get(x_4, 1); +lean_inc(x_41); +x_42 = lean_ctor_get_uint8(x_41, sizeof(void*)*2 + 3); +x_43 = lean_alloc_ctor(6, 3, 1); +lean_ctor_set(x_43, 0, x_23); +lean_ctor_set(x_43, 1, x_39); +lean_ctor_set(x_43, 2, x_40); +lean_ctor_set_uint8(x_43, sizeof(void*)*3, x_42); +lean_inc(x_43); +x_44 = l_Lean_Elab_Term_ensureNoUnassignedMVars(x_43, x_6, x_7, x_8, x_9, x_10, x_11, x_34); +if (lean_obj_tag(x_44) == 0) +{ +lean_object* x_45; lean_object* x_46; +x_45 = lean_ctor_get(x_44, 1); +lean_inc(x_45); +lean_dec(x_44); +lean_inc(x_10); +lean_inc(x_6); +x_46 = l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__2(x_43, x_6, x_7, x_8, x_9, x_10, x_11, x_45); +lean_dec(x_43); +if (lean_obj_tag(x_46) == 0) +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; +x_47 = lean_ctor_get(x_46, 1); +lean_inc(x_47); +lean_dec(x_46); +lean_inc(x_3); +x_48 = l_Array_filterAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__1(x_3, x_24, x_24); +x_49 = l_Array_toList___rarg(x_48); +lean_dec(x_48); +x_50 = l_List_map___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__2(x_49); +x_51 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +lean_inc(x_6); +lean_inc(x_35); +x_52 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections(x_35, x_50, x_51, x_6, x_7, x_8, x_9, x_10, x_11, x_47); +if (lean_obj_tag(x_52) == 0) +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_53 = lean_ctor_get(x_52, 1); +lean_inc(x_53); +lean_dec(x_52); +x_54 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkAuxConstructions(x_35, x_6, x_7, x_8, x_9, x_10, x_11, x_53); +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +lean_dec(x_54); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_3); +x_56 = l_Array_filterMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__3(x_3, x_24, x_24, x_6, x_7, x_8, x_9, x_10, x_11, x_55); +if (lean_obj_tag(x_56) == 0) +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; uint8_t x_63; lean_object* x_64; +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_Array_toList___rarg(x_57); +lean_dec(x_57); +x_60 = l_List_map___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4(x_59); +x_61 = lean_ctor_get(x_41, 1); +lean_inc(x_61); +lean_dec(x_41); +x_62 = 0; +x_63 = 1; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_6); +x_64 = l_Lean_Elab_Term_applyAttributesAt(x_35, x_61, x_62, x_63, x_6, x_7, x_8, x_9, x_10, x_11, x_58); +lean_dec(x_61); +if (lean_obj_tag(x_64) == 0) +{ +lean_object* x_65; lean_object* x_66; +x_65 = lean_ctor_get(x_64, 1); +lean_inc(x_65); +lean_dec(x_64); +x_66 = l_List_forM___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__6(x_60, x_6, x_7, x_8, x_9, x_10, x_11, x_65); +if (lean_obj_tag(x_66) == 0) +{ +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_67 = lean_ctor_get(x_66, 1); +lean_inc(x_67); +lean_dec(x_66); +x_68 = lean_ctor_get(x_8, 1); +lean_inc(x_68); +lean_inc(x_3); +x_69 = l_Array_filterAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__7(x_3, x_24, x_24); +x_70 = x_69; +x_71 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__8___boxed), 9, 2); +lean_closure_set(x_71, 0, x_24); +lean_closure_set(x_71, 1, x_70); +x_72 = x_71; +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_73 = lean_apply_7(x_72, x_6, x_7, x_8, x_9, x_10, x_11, x_67); +if (lean_obj_tag(x_73) == 0) +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_74 = lean_ctor_get(x_73, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_73, 1); +lean_inc(x_75); +lean_dec(x_73); +x_76 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__9(x_4, x_1, x_25, x_24, x_68); +lean_dec(x_25); +lean_dec(x_1); +lean_dec(x_4); +x_77 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__10(x_3, x_3, x_24, x_76); +lean_dec(x_3); +x_78 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_77, x_74, x_6, x_7, x_8, x_9, x_10, x_11, x_75); +return x_78; +} +else +{ +uint8_t x_79; +lean_dec(x_68); +lean_dec(x_25); +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); +lean_dec(x_3); +lean_dec(x_1); +x_79 = !lean_is_exclusive(x_73); +if (x_79 == 0) +{ +return x_73; +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_73, 0); +x_81 = lean_ctor_get(x_73, 1); +lean_inc(x_81); +lean_inc(x_80); +lean_dec(x_73); +x_82 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_82, 0, x_80); +lean_ctor_set(x_82, 1, x_81); +return x_82; +} +} +} +else +{ +uint8_t x_83; +lean_dec(x_25); +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); +lean_dec(x_3); +lean_dec(x_1); +x_83 = !lean_is_exclusive(x_66); +if (x_83 == 0) +{ +return x_66; +} +else +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_ctor_get(x_66, 0); +x_85 = lean_ctor_get(x_66, 1); +lean_inc(x_85); +lean_inc(x_84); +lean_dec(x_66); +x_86 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_86, 0, x_84); +lean_ctor_set(x_86, 1, x_85); +return x_86; +} +} +} +else +{ +uint8_t x_87; +lean_dec(x_60); +lean_dec(x_25); +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); +lean_dec(x_3); +lean_dec(x_1); +x_87 = !lean_is_exclusive(x_64); +if (x_87 == 0) +{ +return x_64; +} +else +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_64, 0); +x_89 = lean_ctor_get(x_64, 1); +lean_inc(x_89); +lean_inc(x_88); +lean_dec(x_64); +x_90 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_90, 0, x_88); +lean_ctor_set(x_90, 1, x_89); +return x_90; +} +} +} +else +{ +uint8_t x_91; +lean_dec(x_41); +lean_dec(x_35); +lean_dec(x_25); +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); +lean_dec(x_3); +lean_dec(x_1); +x_91 = !lean_is_exclusive(x_56); +if (x_91 == 0) +{ +return x_56; +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_92 = lean_ctor_get(x_56, 0); +x_93 = lean_ctor_get(x_56, 1); +lean_inc(x_93); +lean_inc(x_92); +lean_dec(x_56); +x_94 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_94, 0, x_92); +lean_ctor_set(x_94, 1, x_93); +return x_94; +} +} +} +else +{ +uint8_t x_95; +lean_dec(x_41); +lean_dec(x_35); +lean_dec(x_25); +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); +lean_dec(x_3); +lean_dec(x_1); +x_95 = !lean_is_exclusive(x_52); +if (x_95 == 0) +{ +return x_52; +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_96 = lean_ctor_get(x_52, 0); +x_97 = lean_ctor_get(x_52, 1); +lean_inc(x_97); +lean_inc(x_96); +lean_dec(x_52); +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; +} +} +} +else +{ +uint8_t x_99; +lean_dec(x_41); +lean_dec(x_35); +lean_dec(x_25); +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); +lean_dec(x_3); +lean_dec(x_1); +x_99 = !lean_is_exclusive(x_46); +if (x_99 == 0) +{ +return x_46; +} +else +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; +x_100 = lean_ctor_get(x_46, 0); +x_101 = lean_ctor_get(x_46, 1); +lean_inc(x_101); +lean_inc(x_100); +lean_dec(x_46); +x_102 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_102, 0, x_100); +lean_ctor_set(x_102, 1, x_101); +return x_102; +} +} +} +else +{ +uint8_t x_103; +lean_dec(x_43); +lean_dec(x_41); +lean_dec(x_35); +lean_dec(x_25); +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); +lean_dec(x_3); +lean_dec(x_1); +x_103 = !lean_is_exclusive(x_44); +if (x_103 == 0) +{ +return x_44; +} +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_104 = lean_ctor_get(x_44, 0); +x_105 = lean_ctor_get(x_44, 1); +lean_inc(x_105); +lean_inc(x_104); +lean_dec(x_44); +x_106 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_106, 0, x_104); +lean_ctor_set(x_106, 1, x_105); +return x_106; +} +} +} +else +{ +uint8_t x_107; +lean_dec(x_27); +lean_dec(x_25); +lean_dec(x_23); +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); +lean_dec(x_3); +lean_dec(x_1); +x_107 = !lean_is_exclusive(x_29); +if (x_107 == 0) +{ +return x_29; +} +else +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_108 = lean_ctor_get(x_29, 0); +x_109 = lean_ctor_get(x_29, 1); +lean_inc(x_109); +lean_inc(x_108); +lean_dec(x_29); +x_110 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_110, 0, x_108); +lean_ctor_set(x_110, 1, x_109); +return x_110; +} +} +} +else +{ +uint8_t x_111; +lean_dec(x_25); +lean_dec(x_23); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_111 = !lean_is_exclusive(x_26); +if (x_111 == 0) +{ +return x_26; +} +else +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_112 = lean_ctor_get(x_26, 0); +x_113 = lean_ctor_get(x_26, 1); +lean_inc(x_113); +lean_inc(x_112); +lean_dec(x_26); +x_114 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_114, 0, x_112); +lean_ctor_set(x_114, 1, x_113); +return x_114; +} +} +} +} +else +{ +uint8_t x_115; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_115 = !lean_is_exclusive(x_13); +if (x_115 == 0) +{ +return x_13; +} +else +{ +lean_object* x_116; lean_object* x_117; lean_object* x_118; +x_116 = lean_ctor_get(x_13, 0); +x_117 = lean_ctor_get(x_13, 1); +lean_inc(x_117); +lean_inc(x_116); +lean_dec(x_13); +x_118 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_118, 0, x_116); +lean_ctor_set(x_118, 1, x_117); +return x_118; +} +} +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__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* x_13) { _start: { lean_object* x_14; @@ -13114,646 +13516,81 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_14 = l___private_Lean_Elab_Structure_19__levelMVarToParam(x_6, x_1, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_14 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParam(x_6, x_1, x_2, 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; +if (x_4 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); x_16 = lean_ctor_get(x_14, 1); lean_inc(x_16); lean_dec(x_14); -if (x_4 == 0) -{ -x_17 = x_5; -x_18 = x_16; -goto block_125; +x_17 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1(x_6, x_1, x_15, x_3, x_5, x_7, x_8, x_9, x_10, x_11, x_12, x_16); +return x_17; } else { -lean_object* x_126; +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_14, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_14, 1); +lean_inc(x_19); +lean_dec(x_14); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_7); -x_126 = l___private_Lean_Elab_Structure_21__updateResultingUniverse(x_15, x_5, x_7, x_8, x_9, x_10, x_11, x_12, x_16); -if (lean_obj_tag(x_126) == 0) +x_20 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse(x_18, x_5, x_7, x_8, x_9, x_10, x_11, x_12, x_19); +if (lean_obj_tag(x_20) == 0) { -lean_object* x_127; lean_object* x_128; -x_127 = lean_ctor_get(x_126, 0); -lean_inc(x_127); -x_128 = lean_ctor_get(x_126, 1); -lean_inc(x_128); -lean_dec(x_126); -x_17 = x_127; -x_18 = x_128; -goto block_125; -} -else -{ -uint8_t x_129; -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_6); -lean_dec(x_3); -x_129 = !lean_is_exclusive(x_126); -if (x_129 == 0) -{ -return x_126; -} -else -{ -lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_130 = lean_ctor_get(x_126, 0); -x_131 = lean_ctor_get(x_126, 1); -lean_inc(x_131); -lean_inc(x_130); -lean_dec(x_126); -x_132 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_132, 0, x_130); -lean_ctor_set(x_132, 1, x_131); -return x_132; -} -} -} -block_125: -{ -lean_object* x_19; -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_19 = l___private_Lean_Elab_Structure_24__collectLevelParamsInStructure(x_6, x_1, x_15, x_7, x_8, x_9, x_10, x_11, x_12, x_18); -if (lean_obj_tag(x_19) == 0) -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_19, 1); +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); -lean_dec(x_19); -x_22 = lean_ctor_get(x_3, 2); +x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); -x_23 = lean_ctor_get(x_3, 3); -lean_inc(x_23); -x_24 = l_Lean_Elab_sortDeclLevelParams(x_22, x_23, x_20); -if (lean_obj_tag(x_24) == 0) +lean_dec(x_20); +x_23 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1(x_6, x_1, x_18, x_3, x_21, x_7, x_8, x_9, x_10, x_11, x_12, x_22); +return x_23; +} +else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -lean_dec(x_17); -lean_dec(x_15); +uint8_t x_24; +lean_dec(x_18); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_3); -x_25 = lean_ctor_get(x_24, 0); +x_24 = !lean_is_exclusive(x_20); +if (x_24 == 0) +{ +return x_20; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_20, 0); +x_26 = lean_ctor_get(x_20, 1); +lean_inc(x_26); lean_inc(x_25); -lean_dec(x_24); -x_26 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_26, 0, x_25); -x_27 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_27, 0, x_26); -x_28 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_27, x_7, x_8, x_9, x_10, x_11, x_12, x_21); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -return x_28; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_29 = lean_ctor_get(x_24, 0); -lean_inc(x_29); -lean_dec(x_24); -x_30 = lean_unsigned_to_nat(0u); -lean_inc(x_6); -x_31 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1, x_1, x_30, x_6); -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_31); -lean_inc(x_29); -lean_inc(x_3); -x_32 = l___private_Lean_Elab_Structure_26__mkCtor(x_3, x_29, x_31, x_15, x_7, x_8, x_9, x_10, x_11, x_12, x_21); -if (lean_obj_tag(x_32) == 0) -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_32, 0); -lean_inc(x_33); -x_34 = lean_ctor_get(x_32, 1); -lean_inc(x_34); -lean_dec(x_32); -lean_inc(x_9); -lean_inc(x_31); -x_35 = l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_Inductive_5__mkTypeFor___spec__1(x_31, x_17, x_7, x_8, x_9, x_10, x_11, x_12, x_34); -if (lean_obj_tag(x_35) == 0) -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; -x_36 = lean_ctor_get(x_35, 0); -lean_inc(x_36); -x_37 = lean_ctor_get(x_35, 1); -lean_inc(x_37); -lean_dec(x_35); -x_38 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_36, x_7, x_8, x_9, x_10, x_11, x_12, x_37); -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_38, 1); -lean_inc(x_40); -lean_dec(x_38); -x_41 = lean_ctor_get(x_3, 4); -lean_inc(x_41); -x_42 = lean_box(0); -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_33); -lean_ctor_set(x_43, 1, x_42); -lean_inc(x_41); -x_44 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_44, 0, x_41); -lean_ctor_set(x_44, 1, x_39); -lean_ctor_set(x_44, 2, x_43); -x_45 = lean_array_get_size(x_31); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_42); -x_47 = lean_ctor_get(x_3, 1); -lean_inc(x_47); -x_48 = lean_ctor_get_uint8(x_47, sizeof(void*)*2 + 3); -x_49 = lean_alloc_ctor(6, 3, 1); -lean_ctor_set(x_49, 0, x_29); -lean_ctor_set(x_49, 1, x_45); -lean_ctor_set(x_49, 2, x_46); -lean_ctor_set_uint8(x_49, sizeof(void*)*3, x_48); -lean_inc(x_49); -x_50 = l_Lean_Elab_Term_ensureNoUnassignedMVars(x_49, x_7, x_8, x_9, x_10, x_11, x_12, x_40); -if (lean_obj_tag(x_50) == 0) -{ -lean_object* x_51; lean_object* x_52; -x_51 = lean_ctor_get(x_50, 1); -lean_inc(x_51); -lean_dec(x_50); -lean_inc(x_11); -lean_inc(x_7); -x_52 = l_Lean_addDecl___at_Lean_Elab_Command_elabEvalUnsafe___spec__2(x_49, x_7, x_8, x_9, x_10, x_11, x_12, x_51); -lean_dec(x_49); -if (lean_obj_tag(x_52) == 0) -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; lean_object* x_58; -x_53 = lean_ctor_get(x_52, 1); -lean_inc(x_53); -lean_dec(x_52); -lean_inc(x_15); -x_54 = l_Array_filterAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__1(x_15, x_30, x_30); -x_55 = l_Array_toList___rarg(x_54); -lean_dec(x_54); -x_56 = l_List_map___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__2(x_55); -x_57 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); -lean_inc(x_7); -x_58 = l___private_Lean_Elab_Structure_28__addProjections(x_41, x_56, x_57, x_7, x_8, x_9, x_10, x_11, x_12, x_53); -lean_dec(x_56); -if (lean_obj_tag(x_58) == 0) -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_59 = lean_ctor_get(x_58, 1); -lean_inc(x_59); -lean_dec(x_58); -x_60 = l___private_Lean_Elab_Structure_29__mkAuxConstructions(x_41, x_7, x_8, x_9, x_10, x_11, x_12, x_59); -x_61 = lean_ctor_get(x_60, 1); -lean_inc(x_61); -lean_dec(x_60); -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_15); -x_62 = l_Array_filterMAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__3(x_15, x_30, x_30, x_7, x_8, x_9, x_10, x_11, x_12, x_61); -if (lean_obj_tag(x_62) == 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; uint8_t x_69; lean_object* x_70; -x_63 = lean_ctor_get(x_62, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_62, 1); -lean_inc(x_64); -lean_dec(x_62); -x_65 = l_Array_toList___rarg(x_63); -lean_dec(x_63); -x_66 = l_List_map___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__4(x_65); -x_67 = lean_ctor_get(x_47, 1); -lean_inc(x_67); -lean_dec(x_47); -x_68 = 0; -x_69 = 1; -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_7); -x_70 = l_Lean_Elab_Term_applyAttributesAt(x_41, x_67, x_68, x_69, x_7, x_8, x_9, x_10, x_11, x_12, x_64); -lean_dec(x_67); -if (lean_obj_tag(x_70) == 0) -{ -lean_object* x_71; lean_object* x_72; -x_71 = lean_ctor_get(x_70, 1); -lean_inc(x_71); -lean_dec(x_70); -x_72 = l_List_forM___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__6(x_66, x_7, x_8, x_9, x_10, x_11, x_12, x_71); -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; lean_object* x_78; lean_object* x_79; -x_73 = lean_ctor_get(x_72, 1); -lean_inc(x_73); -lean_dec(x_72); -x_74 = lean_ctor_get(x_9, 1); -lean_inc(x_74); -lean_inc(x_15); -x_75 = l_Array_filterAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__7(x_15, x_30, x_30); -x_76 = x_75; -x_77 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__8___boxed), 9, 2); -lean_closure_set(x_77, 0, x_30); -lean_closure_set(x_77, 1, x_76); -x_78 = x_77; -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_79 = lean_apply_7(x_78, x_7, x_8, x_9, x_10, x_11, x_12, x_73); -if (lean_obj_tag(x_79) == 0) -{ -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_80 = lean_ctor_get(x_79, 0); -lean_inc(x_80); -x_81 = lean_ctor_get(x_79, 1); -lean_inc(x_81); -lean_dec(x_79); -x_82 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__9(x_3, x_6, x_31, x_30, x_74); -lean_dec(x_31); -lean_dec(x_6); -lean_dec(x_3); -x_83 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__10(x_15, x_15, x_30, x_82); -lean_dec(x_15); -x_84 = l___private_Lean_Elab_Structure_30__addDefaults(x_83, x_80, x_7, x_8, x_9, x_10, x_11, x_12, x_81); -return x_84; -} -else -{ -uint8_t x_85; -lean_dec(x_74); -lean_dec(x_31); -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_6); -lean_dec(x_3); -x_85 = !lean_is_exclusive(x_79); -if (x_85 == 0) -{ -return x_79; -} -else -{ -lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_86 = lean_ctor_get(x_79, 0); -x_87 = lean_ctor_get(x_79, 1); -lean_inc(x_87); -lean_inc(x_86); -lean_dec(x_79); -x_88 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_88, 0, x_86); -lean_ctor_set(x_88, 1, x_87); -return x_88; -} -} -} -else -{ -uint8_t x_89; -lean_dec(x_31); -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_6); -lean_dec(x_3); -x_89 = !lean_is_exclusive(x_72); -if (x_89 == 0) -{ -return x_72; -} -else -{ -lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_90 = lean_ctor_get(x_72, 0); -x_91 = lean_ctor_get(x_72, 1); -lean_inc(x_91); -lean_inc(x_90); -lean_dec(x_72); -x_92 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_92, 0, x_90); -lean_ctor_set(x_92, 1, x_91); -return x_92; -} -} -} -else -{ -uint8_t x_93; -lean_dec(x_66); -lean_dec(x_31); -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_6); -lean_dec(x_3); -x_93 = !lean_is_exclusive(x_70); -if (x_93 == 0) -{ -return x_70; -} -else -{ -lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_94 = lean_ctor_get(x_70, 0); -x_95 = lean_ctor_get(x_70, 1); -lean_inc(x_95); -lean_inc(x_94); -lean_dec(x_70); -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_97; -lean_dec(x_47); -lean_dec(x_41); -lean_dec(x_31); -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_6); -lean_dec(x_3); -x_97 = !lean_is_exclusive(x_62); -if (x_97 == 0) -{ -return x_62; -} -else -{ -lean_object* x_98; lean_object* x_99; lean_object* x_100; -x_98 = lean_ctor_get(x_62, 0); -x_99 = lean_ctor_get(x_62, 1); -lean_inc(x_99); -lean_inc(x_98); -lean_dec(x_62); -x_100 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_100, 0, x_98); -lean_ctor_set(x_100, 1, x_99); -return x_100; -} -} -} -else -{ -uint8_t x_101; -lean_dec(x_47); -lean_dec(x_41); -lean_dec(x_31); -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_6); -lean_dec(x_3); -x_101 = !lean_is_exclusive(x_58); -if (x_101 == 0) -{ -return x_58; -} -else -{ -lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_102 = lean_ctor_get(x_58, 0); -x_103 = lean_ctor_get(x_58, 1); -lean_inc(x_103); -lean_inc(x_102); -lean_dec(x_58); -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 -{ -uint8_t x_105; -lean_dec(x_47); -lean_dec(x_41); -lean_dec(x_31); -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_6); -lean_dec(x_3); -x_105 = !lean_is_exclusive(x_52); -if (x_105 == 0) -{ -return x_52; -} -else -{ -lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_106 = lean_ctor_get(x_52, 0); -x_107 = lean_ctor_get(x_52, 1); -lean_inc(x_107); -lean_inc(x_106); -lean_dec(x_52); -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_49); -lean_dec(x_47); -lean_dec(x_41); -lean_dec(x_31); -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_6); -lean_dec(x_3); -x_109 = !lean_is_exclusive(x_50); -if (x_109 == 0) -{ -return x_50; -} -else -{ -lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_110 = lean_ctor_get(x_50, 0); -x_111 = lean_ctor_get(x_50, 1); -lean_inc(x_111); -lean_inc(x_110); -lean_dec(x_50); -x_112 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_112, 0, x_110); -lean_ctor_set(x_112, 1, x_111); -return x_112; -} -} -} -else -{ -uint8_t x_113; -lean_dec(x_33); -lean_dec(x_31); -lean_dec(x_29); -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_6); -lean_dec(x_3); -x_113 = !lean_is_exclusive(x_35); -if (x_113 == 0) -{ -return x_35; -} -else -{ -lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_114 = lean_ctor_get(x_35, 0); -x_115 = lean_ctor_get(x_35, 1); -lean_inc(x_115); -lean_inc(x_114); -lean_dec(x_35); -x_116 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_116, 0, x_114); -lean_ctor_set(x_116, 1, x_115); -return x_116; -} -} -} -else -{ -uint8_t x_117; -lean_dec(x_31); -lean_dec(x_29); -lean_dec(x_17); -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_6); -lean_dec(x_3); -x_117 = !lean_is_exclusive(x_32); -if (x_117 == 0) -{ -return x_32; -} -else -{ -lean_object* x_118; lean_object* x_119; lean_object* x_120; -x_118 = lean_ctor_get(x_32, 0); -x_119 = lean_ctor_get(x_32, 1); -lean_inc(x_119); -lean_inc(x_118); -lean_dec(x_32); -x_120 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_120, 0, x_118); -lean_ctor_set(x_120, 1, x_119); -return x_120; +lean_dec(x_20); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +return x_27; } } } } else { -uint8_t x_121; -lean_dec(x_17); -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_6); -lean_dec(x_3); -x_121 = !lean_is_exclusive(x_19); -if (x_121 == 0) -{ -return x_19; -} -else -{ -lean_object* x_122; lean_object* x_123; lean_object* x_124; -x_122 = lean_ctor_get(x_19, 0); -x_123 = lean_ctor_get(x_19, 1); -lean_inc(x_123); -lean_inc(x_122); -lean_dec(x_19); -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; -} -} -} -} -else -{ -uint8_t x_133; +uint8_t x_28; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -13763,91 +13600,92 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_133 = !lean_is_exclusive(x_14); -if (x_133 == 0) +x_28 = !lean_is_exclusive(x_14); +if (x_28 == 0) { return x_14; } else { -lean_object* x_134; lean_object* x_135; lean_object* x_136; -x_134 = lean_ctor_get(x_14, 0); -x_135 = lean_ctor_get(x_14, 1); -lean_inc(x_135); -lean_inc(x_134); +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_14, 0); +x_30 = lean_ctor_get(x_14, 1); +lean_inc(x_30); +lean_inc(x_29); lean_dec(x_14); -x_136 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_136, 0, x_134); -lean_ctor_set(x_136, 1, x_135); -return x_136; +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___private_Lean_Elab_Structure_31__elabStructureView___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* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___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: { -uint8_t x_12; lean_object* x_13; lean_object* x_14; -x_12 = 0; -x_13 = lean_box(0); -lean_inc(x_10); +uint8_t x_11; lean_object* x_12; lean_object* x_13; +x_11 = 0; +x_12 = lean_box(0); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_14 = l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(x_12, x_13, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_14) == 0) +lean_inc(x_4); +x_13 = l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_15; lean_object* x_16; -x_15 = lean_ctor_get(x_14, 1); -lean_inc(x_15); -lean_dec(x_14); -lean_inc(x_10); +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -lean_inc(x_5); -lean_inc(x_1); -x_16 = l___private_Lean_Elab_Structure_12__getResultUniverse(x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_15); -if (lean_obj_tag(x_16) == 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_5); -x_19 = l_Lean_Elab_Command_shouldInferResultUniverse(x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_18); -if (lean_obj_tag(x_19) == 0) -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_19, 1); -lean_inc(x_21); -lean_dec(x_19); -x_22 = lean_ctor_get(x_2, 5); -lean_inc(x_22); +lean_inc(x_6); lean_inc(x_4); +lean_inc(x_1); +x_15 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_14); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +lean_inc(x_4); +x_18 = l_Lean_Elab_Command_shouldInferResultUniverse(x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_17); +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; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = lean_ctor_get(x_2, 5); +lean_inc(x_21); +x_22 = lean_ctor_get(x_2, 6); +lean_inc(x_22); lean_inc(x_3); -x_23 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_31__elabStructureView___lambda__1___boxed), 13, 5); -lean_closure_set(x_23, 0, x_3); -lean_closure_set(x_23, 1, x_4); +lean_inc(x_22); +x_23 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__2___boxed), 13, 5); +lean_closure_set(x_23, 0, x_22); +lean_closure_set(x_23, 1, x_3); lean_closure_set(x_23, 2, x_2); -lean_closure_set(x_23, 3, x_20); +lean_closure_set(x_23, 3, x_19); lean_closure_set(x_23, 4, x_1); -x_24 = l___private_Lean_Elab_Structure_15__withUsed___rarg(x_22, x_3, x_4, x_23, x_5, x_6, x_7, x_8, x_9, x_10, x_21); -lean_dec(x_4); +x_24 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withUsed___rarg(x_21, x_22, x_3, x_23, x_4, x_5, x_6, x_7, x_8, x_9, x_20); lean_dec(x_3); lean_dec(x_22); +lean_dec(x_21); return x_24; } else { uint8_t x_25; -lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -13857,19 +13695,19 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_25 = !lean_is_exclusive(x_19); +x_25 = !lean_is_exclusive(x_18); if (x_25 == 0) { -return x_19; +return x_18; } else { lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_19, 0); -x_27 = lean_ctor_get(x_19, 1); +x_26 = lean_ctor_get(x_18, 0); +x_27 = lean_ctor_get(x_18, 1); lean_inc(x_27); lean_inc(x_26); -lean_dec(x_19); +lean_dec(x_18); x_28 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_28, 0, x_26); lean_ctor_set(x_28, 1, x_27); @@ -13880,7 +13718,6 @@ return x_28; else { uint8_t x_29; -lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -13890,19 +13727,19 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_29 = !lean_is_exclusive(x_16); +x_29 = !lean_is_exclusive(x_15); if (x_29 == 0) { -return x_16; +return x_15; } else { lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_16, 0); -x_31 = lean_ctor_get(x_16, 1); +x_30 = lean_ctor_get(x_15, 0); +x_31 = lean_ctor_get(x_15, 1); lean_inc(x_31); lean_inc(x_30); -lean_dec(x_16); +lean_dec(x_15); x_32 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_32, 0, x_30); lean_ctor_set(x_32, 1, x_31); @@ -13913,7 +13750,6 @@ return x_32; else { uint8_t x_33; -lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -13923,19 +13759,19 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_33 = !lean_is_exclusive(x_14); +x_33 = !lean_is_exclusive(x_13); if (x_33 == 0) { -return x_14; +return x_13; } else { lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_14, 0); -x_35 = lean_ctor_get(x_14, 1); +x_34 = lean_ctor_get(x_13, 0); +x_35 = lean_ctor_get(x_13, 1); lean_inc(x_35); lean_inc(x_34); -lean_dec(x_14); +lean_dec(x_13); x_36 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_36, 0, x_34); lean_ctor_set(x_36, 1, x_35); @@ -13944,22 +13780,80 @@ return x_36; } } } -lean_object* l___private_Lean_Elab_Structure_31__elabStructureView___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* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___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) { _start: { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_12 = lean_ctor_get(x_1, 10); -lean_inc(x_12); -x_13 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_31__elabStructureView___lambda__2), 11, 3); -lean_closure_set(x_13, 0, x_2); -lean_closure_set(x_13, 1, x_1); -lean_closure_set(x_13, 2, x_3); -x_14 = lean_unsigned_to_nat(0u); -x_15 = l___private_Lean_Elab_Structure_11__withFields___main___rarg(x_12, x_14, x_4, x_13, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_15; +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_ctor_get(x_1, 10); +lean_inc(x_11); +x_12 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__3), 10, 2); +lean_closure_set(x_12, 0, x_2); +lean_closure_set(x_12, 1, x_1); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg(x_11, x_13, x_3, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_14; } } -static lean_object* _init_l___private_Lean_Elab_Structure_31__elabStructureView___closed__1() { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_11 = lean_ctor_get(x_1, 0); +lean_inc(x_11); +lean_inc(x_1); +x_12 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__4), 10, 2); +lean_closure_set(x_12, 0, x_1); +lean_closure_set(x_12, 1, x_2); +x_13 = !lean_is_exclusive(x_8); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_14 = lean_ctor_get(x_8, 3); +x_15 = l_Lean_replaceRef(x_11, x_14); +lean_dec(x_11); +x_16 = l_Lean_replaceRef(x_15, x_14); +lean_dec(x_15); +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 = lean_unsigned_to_nat(0u); +x_19 = l_Array_empty___closed__1; +x_20 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg(x_1, x_18, x_19, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +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; lean_object* x_31; +x_21 = lean_ctor_get(x_8, 0); +x_22 = lean_ctor_get(x_8, 1); +x_23 = lean_ctor_get(x_8, 2); +x_24 = lean_ctor_get(x_8, 3); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_8); +x_25 = l_Lean_replaceRef(x_11, x_24); +lean_dec(x_11); +x_26 = l_Lean_replaceRef(x_25, x_24); +lean_dec(x_25); +x_27 = l_Lean_replaceRef(x_26, x_24); +lean_dec(x_24); +lean_dec(x_26); +x_28 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_28, 0, x_21); +lean_ctor_set(x_28, 1, x_22); +lean_ctor_set(x_28, 2, x_23); +lean_ctor_set(x_28, 3, x_27); +x_29 = lean_unsigned_to_nat(0u); +x_30 = l_Array_empty___closed__1; +x_31 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg(x_1, x_29, x_30, x_12, x_4, x_5, x_6, x_7, x_28, x_9, x_10); +return x_31; +} +} +} +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___closed__1() { _start: { lean_object* x_1; @@ -13967,152 +13861,92 @@ x_1 = lean_mk_string("expected Type"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Structure_31__elabStructureView___closed__2() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_31__elabStructureView___closed__1; +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___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_Structure_31__elabStructureView___closed__3() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_31__elabStructureView___closed__2; +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___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_Structure_31__elabStructureView(lean_object* x_1, lean_object* x_2, lean_object* 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_Structure_0__Lean_Elab_Command_elabStructureView(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = lean_ctor_get(x_1, 6); +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_1, 8); lean_inc(x_9); -x_10 = lean_ctor_get(x_1, 8); -lean_inc(x_10); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -lean_inc(x_10); -x_11 = l_Lean_Elab_Term_elabType(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_11) == 0) +lean_inc(x_9); +x_10 = l_Lean_Elab_Term_elabType(x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_10) == 0) { -lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_37; -x_12 = lean_ctor_get(x_11, 0); +lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 1); -lean_inc(x_13); -lean_dec(x_11); -x_37 = l___private_Lean_Elab_Structure_4__validStructType(x_12); -if (x_37 == 0) +lean_dec(x_10); +x_13 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_validStructType(x_11); +if (x_13 == 0) { -lean_object* x_38; lean_object* x_39; uint8_t x_40; -lean_dec(x_12); -lean_dec(x_9); +lean_object* x_14; lean_object* x_15; uint8_t x_16; +lean_dec(x_11); lean_dec(x_1); -x_38 = l___private_Lean_Elab_Structure_31__elabStructureView___closed__3; -x_39 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_10, x_38, x_2, x_3, x_4, x_5, x_6, x_7, x_13); +x_14 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___closed__3; +x_15 = l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2___rarg(x_9, x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_12); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_10); -x_40 = !lean_is_exclusive(x_39); -if (x_40 == 0) +lean_dec(x_9); +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) { -return x_39; +return x_15; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_39, 0); -x_42 = lean_ctor_get(x_39, 1); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_39); -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_41); -lean_ctor_set(x_43, 1, x_42); -return x_43; -} -} -else -{ -lean_dec(x_10); -x_14 = x_13; -goto block_36; -} -block_36: -{ -lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_15 = lean_ctor_get(x_1, 0); -lean_inc(x_15); -lean_inc(x_1); -x_16 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_31__elabStructureView___lambda__3), 11, 3); -lean_closure_set(x_16, 0, x_1); -lean_closure_set(x_16, 1, x_12); -lean_closure_set(x_16, 2, x_9); -x_17 = !lean_is_exclusive(x_6); -if (x_17 == 0) -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_18 = lean_ctor_get(x_6, 3); -x_19 = l_Lean_replaceRef(x_15, x_18); +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_15, 0); +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_inc(x_17); lean_dec(x_15); -x_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_6, 3, x_21); -x_22 = lean_unsigned_to_nat(0u); -x_23 = l_Array_empty___closed__1; -x_24 = l___private_Lean_Elab_Structure_9__withParents___main___rarg(x_1, x_22, x_23, x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_14); -return x_24; -} -else -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_25 = lean_ctor_get(x_6, 0); -x_26 = lean_ctor_get(x_6, 1); -x_27 = lean_ctor_get(x_6, 2); -x_28 = lean_ctor_get(x_6, 3); -lean_inc(x_28); -lean_inc(x_27); -lean_inc(x_26); -lean_inc(x_25); -lean_dec(x_6); -x_29 = l_Lean_replaceRef(x_15, x_28); -lean_dec(x_15); -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); -x_32 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_32, 0, x_25); -lean_ctor_set(x_32, 1, x_26); -lean_ctor_set(x_32, 2, x_27); -lean_ctor_set(x_32, 3, x_31); -x_33 = lean_unsigned_to_nat(0u); -x_34 = l_Array_empty___closed__1; -x_35 = l___private_Lean_Elab_Structure_9__withParents___main___rarg(x_1, x_33, x_34, x_16, x_2, x_3, x_4, x_5, x_32, x_7, x_14); -return x_35; -} +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; } } else { -uint8_t x_44; -lean_dec(x_10); +lean_object* x_20; lean_object* x_21; +lean_dec(x_9); +x_20 = lean_box(0); +x_21 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__5(x_1, x_11, x_20, x_2, x_3, x_4, x_5, x_6, x_7, x_12); +return x_21; +} +} +else +{ +uint8_t x_22; lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); @@ -14121,32 +13955,32 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_44 = !lean_is_exclusive(x_11); -if (x_44 == 0) +x_22 = !lean_is_exclusive(x_10); +if (x_22 == 0) { -return x_11; +return x_10; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_11, 0); -x_46 = lean_ctor_get(x_11, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_11); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -return x_47; +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_10, 0); +x_24 = lean_ctor_get(x_10, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_10); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +return x_25; } } } } -lean_object* l_Lean_Meta_addGlobalInstance___at___private_Lean_Elab_Structure_31__elabStructureView___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_Lean_Meta_addGlobalInstance___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___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_Lean_Meta_addGlobalInstance___at___private_Lean_Elab_Structure_31__elabStructureView___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_Meta_addGlobalInstance___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___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); @@ -14156,11 +13990,11 @@ lean_dec(x_2); return x_9; } } -lean_object* l_List_forM___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_List_forM___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l_List_forM___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__6(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_Structure_0__Lean_Elab_Command_elabStructureView___spec__6(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); @@ -14170,48 +14004,89 @@ lean_dec(x_2); return x_9; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l_Array_umapMAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__8(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Array_umapMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__8(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); return x_10; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___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* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__9(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__9(x_1, x_2, x_3, x_4, x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); return x_6; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__10___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_Structure_0__Lean_Elab_Command_elabStructureView___spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__10(x_1, x_2, x_3, x_4); +x_5 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__10(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_Structure_31__elabStructureView___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_Structure_0__Lean_Elab_Command_elabStructureView___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_Structure_0__Lean_Elab_Command_elabStructureView___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_2); +return x_13; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { uint8_t x_14; lean_object* x_15; x_14 = lean_unbox(x_4); lean_dec(x_4); -x_15 = l___private_Lean_Elab_Structure_31__elabStructureView___lambda__1(x_1, x_2, x_3, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_15 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__2(x_1, x_2, x_3, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_1); return x_15; } } +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___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) { +_start: +{ +lean_object* x_11; +x_11 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_3); +return x_11; +} +} +lean_object* l_Lean_Elab_Command_elabStructure_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; +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_Lean_Elab_Command_elabStructure_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabStructure_match__1___rarg), 2, 0); +return x_2; +} +} lean_object* l_Lean_Elab_Command_elabStructure___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19) { _start: { @@ -14229,7 +14104,7 @@ lean_ctor_set(x_20, 8, x_9); lean_ctor_set(x_20, 9, x_10); lean_ctor_set(x_20, 10, x_11); lean_ctor_set_uint8(x_20, sizeof(void*)*11, x_5); -x_21 = l___private_Lean_Elab_Structure_31__elabStructureView(x_20, x_13, x_14, x_15, x_16, x_17, x_18, x_19); +x_21 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView(x_20, x_13, x_14, x_15, x_16, x_17, x_18, x_19); return x_21; } } @@ -14262,6 +14137,177 @@ x_25 = l_Lean_Elab_Term_withLevelNames___rarg(x_4, x_24, x_13, x_14, x_15, x_16, return x_25; } } +lean_object* l_Lean_Elab_Command_elabStructure___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = l_Lean_Elab_Command_getLevelNames___rarg(x_9, x_10); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +lean_inc(x_8); +x_14 = l_Lean_Elab_Command_expandDeclId(x_1, x_2, x_8, x_9, 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; lean_object* x_19; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +x_18 = lean_ctor_get(x_15, 2); +lean_inc(x_18); +lean_dec(x_15); +lean_inc(x_8); +lean_inc(x_3); +x_19 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor(x_3, x_2, x_17, x_8, x_9, x_16); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields(x_3, x_2, x_17, x_8, x_9, x_21); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +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_inc(x_17); +x_25 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_25, 0, x_17); +x_26 = lean_st_ref_get(x_9, x_24); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); +x_29 = l___private_Lean_Elab_Command_4__getVarDecls(x_27); +lean_dec(x_27); +x_30 = lean_box(x_4); +x_31 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabStructure___lambda__2___boxed), 19, 11); +lean_closure_set(x_31, 0, x_3); +lean_closure_set(x_31, 1, x_2); +lean_closure_set(x_31, 2, x_12); +lean_closure_set(x_31, 3, x_18); +lean_closure_set(x_31, 4, x_30); +lean_closure_set(x_31, 5, x_17); +lean_closure_set(x_31, 6, x_5); +lean_closure_set(x_31, 7, x_7); +lean_closure_set(x_31, 8, x_20); +lean_closure_set(x_31, 9, x_23); +lean_closure_set(x_31, 10, x_6); +x_32 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg___boxed), 9, 2); +lean_closure_set(x_32, 0, x_29); +lean_closure_set(x_32, 1, x_31); +x_33 = l_Lean_Elab_Command_liftTermElabM___rarg(x_25, x_32, x_8, x_9, x_28); +return x_33; +} +else +{ +uint8_t x_34; +lean_dec(x_20); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_12); +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_34 = !lean_is_exclusive(x_22); +if (x_34 == 0) +{ +return x_22; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_22, 0); +x_36 = lean_ctor_get(x_22, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_22); +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_18); +lean_dec(x_17); +lean_dec(x_12); +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_38 = !lean_is_exclusive(x_19); +if (x_38 == 0) +{ +return x_19; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_19, 0); +x_40 = lean_ctor_get(x_19, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_19); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +} +} +else +{ +uint8_t x_42; +lean_dec(x_12); +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_42 = !lean_is_exclusive(x_14); +if (x_42 == 0) +{ +return x_14; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_14, 0); +x_44 = lean_ctor_get(x_14, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_14); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; +} +} +} +} static lean_object* _init_l_Lean_Elab_Command_elabStructure___closed__1() { _start: { @@ -14411,266 +14457,95 @@ x_23 = l_Lean_Syntax_isNone(x_22); if (x_12 == 0) { x_24 = x_1; -goto block_76; +goto block_40; } else { -lean_object* x_77; lean_object* x_78; -x_77 = l_Lean_Elab_Command_elabStructure___closed__11; -x_78 = l_Lean_Elab_Modifiers_addAttribute(x_1, x_77); -x_24 = x_78; -goto block_76; +lean_object* x_41; lean_object* x_42; +x_41 = l_Lean_Elab_Command_elabStructure___closed__11; +x_42 = l_Lean_Elab_Modifiers_addAttribute(x_1, x_41); +x_24 = x_42; +goto block_40; } -block_76: +block_40: { lean_object* x_25; if (x_20 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = l_Lean_Syntax_getArg(x_19, x_8); +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = l_Lean_Syntax_getArg(x_19, x_8); lean_dec(x_19); -x_73 = l_Lean_Syntax_getArg(x_72, x_13); -lean_dec(x_72); -x_74 = l_Lean_Syntax_getSepArgs(x_73); -lean_dec(x_73); -x_25 = x_74; -goto block_71; +x_37 = l_Lean_Syntax_getArg(x_36, x_13); +lean_dec(x_36); +x_38 = l_Lean_Syntax_getSepArgs(x_37); +lean_dec(x_37); +x_25 = x_38; +goto block_35; } else { -lean_object* x_75; +lean_object* x_39; lean_dec(x_19); -x_75 = l_Array_empty___closed__1; -x_25 = x_75; -goto block_71; +x_39 = l_Array_empty___closed__1; +x_25 = x_39; +goto block_35; } -block_71: +block_35: { -lean_object* x_26; lean_object* x_27; if (x_23 == 0) { -lean_object* x_64; lean_object* x_65; -x_64 = l_Lean_Syntax_getArg(x_22, x_8); +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = l_Lean_Syntax_getArg(x_22, x_8); lean_dec(x_22); -x_65 = l_Lean_Syntax_getArg(x_64, x_13); -lean_dec(x_64); -x_26 = x_65; -x_27 = x_7; -goto block_63; -} -else -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; -lean_dec(x_22); -x_66 = l_Lean_Elab_Command_getCurrMacroScope(x_3, x_4, x_7); -x_67 = lean_ctor_get(x_66, 1); -lean_inc(x_67); -lean_dec(x_66); -x_68 = l_Lean_Elab_Command_getMainModule___rarg(x_4, x_67); -x_69 = lean_ctor_get(x_68, 1); -lean_inc(x_69); -lean_dec(x_68); -x_70 = l_Lean_Elab_Command_elabStructure___closed__10; -x_26 = x_70; -x_27 = x_69; -goto block_63; -} -block_63: -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_28 = l_Lean_Elab_Command_getLevelNames___rarg(x_4, x_27); -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(x_28); -lean_inc(x_3); -x_31 = l_Lean_Elab_Command_expandDeclId(x_14, x_24, x_3, x_4, x_30); +x_27 = l_Lean_Syntax_getArg(x_26, x_13); +lean_dec(x_26); +x_28 = l_Lean_Elab_Command_elabStructure___lambda__3(x_14, x_24, x_2, x_12, x_25, x_17, x_27, x_3, x_4, x_7); lean_dec(x_14); -if (lean_obj_tag(x_31) == 0) +return x_28; +} +else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_32 = lean_ctor_get(x_31, 0); +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +lean_dec(x_22); +x_29 = l_Lean_Elab_Command_getCurrMacroScope(x_3, x_4, x_7); +x_30 = lean_ctor_get(x_29, 1); +lean_inc(x_30); +lean_dec(x_29); +x_31 = l_Lean_Elab_Command_getMainModule___rarg(x_4, x_30); +x_32 = lean_ctor_get(x_31, 1); lean_inc(x_32); -x_33 = lean_ctor_get(x_31, 1); -lean_inc(x_33); lean_dec(x_31); -x_34 = lean_ctor_get(x_32, 1); -lean_inc(x_34); -x_35 = lean_ctor_get(x_32, 2); -lean_inc(x_35); -lean_dec(x_32); -lean_inc(x_3); -lean_inc(x_2); -x_36 = l___private_Lean_Elab_Structure_2__expandCtor(x_2, x_24, x_34, x_3, x_4, x_33); -if (lean_obj_tag(x_36) == 0) -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); -lean_dec(x_36); -x_39 = l___private_Lean_Elab_Structure_3__expandFields(x_2, x_24, x_34, x_3, x_4, x_38); -if (lean_obj_tag(x_39) == 0) -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -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); -lean_inc(x_34); -x_42 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_42, 0, x_34); -x_43 = lean_st_ref_get(x_4, x_41); -x_44 = lean_ctor_get(x_43, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_43, 1); -lean_inc(x_45); -lean_dec(x_43); -x_46 = l___private_Lean_Elab_Command_4__getVarDecls(x_44); -lean_dec(x_44); -x_47 = lean_box(x_12); -x_48 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabStructure___lambda__2___boxed), 19, 11); -lean_closure_set(x_48, 0, x_2); -lean_closure_set(x_48, 1, x_24); -lean_closure_set(x_48, 2, x_29); -lean_closure_set(x_48, 3, x_35); -lean_closure_set(x_48, 4, x_47); -lean_closure_set(x_48, 5, x_34); -lean_closure_set(x_48, 6, x_25); -lean_closure_set(x_48, 7, x_26); -lean_closure_set(x_48, 8, x_37); -lean_closure_set(x_48, 9, x_40); -lean_closure_set(x_48, 10, x_17); -x_49 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg___boxed), 9, 2); -lean_closure_set(x_49, 0, x_46); -lean_closure_set(x_49, 1, x_48); -x_50 = l_Lean_Elab_Command_liftTermElabM___rarg(x_42, x_49, x_3, x_4, x_45); -return x_50; -} -else -{ -uint8_t x_51; -lean_dec(x_37); -lean_dec(x_35); -lean_dec(x_34); -lean_dec(x_29); -lean_dec(x_26); -lean_dec(x_25); -lean_dec(x_24); -lean_dec(x_17); -lean_dec(x_3); -lean_dec(x_2); -x_51 = !lean_is_exclusive(x_39); -if (x_51 == 0) -{ -return x_39; -} -else -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_39, 0); -x_53 = lean_ctor_get(x_39, 1); -lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_39); -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 -{ -uint8_t x_55; -lean_dec(x_35); -lean_dec(x_34); -lean_dec(x_29); -lean_dec(x_26); -lean_dec(x_25); -lean_dec(x_24); -lean_dec(x_17); -lean_dec(x_3); -lean_dec(x_2); -x_55 = !lean_is_exclusive(x_36); -if (x_55 == 0) -{ -return x_36; -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_36, 0); -x_57 = lean_ctor_get(x_36, 1); -lean_inc(x_57); -lean_inc(x_56); -lean_dec(x_36); -x_58 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_58, 0, x_56); -lean_ctor_set(x_58, 1, x_57); -return x_58; -} -} -} -else -{ -uint8_t x_59; -lean_dec(x_29); -lean_dec(x_26); -lean_dec(x_25); -lean_dec(x_24); -lean_dec(x_17); -lean_dec(x_3); -lean_dec(x_2); -x_59 = !lean_is_exclusive(x_31); -if (x_59 == 0) -{ -return x_31; -} -else -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_31, 0); -x_61 = lean_ctor_get(x_31, 1); -lean_inc(x_61); -lean_inc(x_60); -lean_dec(x_31); -x_62 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_62, 0, x_60); -lean_ctor_set(x_62, 1, x_61); -return x_62; -} -} +x_33 = l_Lean_Elab_Command_elabStructure___closed__10; +x_34 = l_Lean_Elab_Command_elabStructure___lambda__3(x_14, x_24, x_2, x_12, x_25, x_17, x_33, x_3, x_4, x_32); +lean_dec(x_14); +return x_34; } } } } else { -uint8_t x_79; +uint8_t x_43; lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_79 = !lean_is_exclusive(x_6); -if (x_79 == 0) +x_43 = !lean_is_exclusive(x_6); +if (x_43 == 0) { return x_6; } else { -lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_80 = lean_ctor_get(x_6, 0); -x_81 = lean_ctor_get(x_6, 1); -lean_inc(x_81); -lean_inc(x_80); +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_6, 0); +x_45 = lean_ctor_get(x_6, 1); +lean_inc(x_45); +lean_inc(x_44); lean_dec(x_6); -x_82 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_82, 0, x_80); -lean_ctor_set(x_82, 1, x_81); -return x_82; +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; } } } @@ -14733,6 +14608,18 @@ x_21 = l_Lean_Elab_Command_elabStructure___lambda__2(x_1, x_2, x_3, x_4, x_20, x return x_21; } } +lean_object* l_Lean_Elab_Command_elabStructure___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: +{ +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_4); +lean_dec(x_4); +x_12 = l_Lean_Elab_Command_elabStructure___lambda__3(x_1, x_2, x_3, x_11, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_1); +return x_12; +} +} lean_object* l_Lean_Elab_Command_elabStructure___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { @@ -14771,173 +14658,165 @@ lean_dec_ref(res); res = initialize_Lean_Elab_Inductive(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l_Lean_Elab_Command_StructFieldInfo_inferMod___default = _init_l_Lean_Elab_Command_StructFieldInfo_inferMod___default(); +l_Lean_Elab_Command_StructFieldInfo_value_x3f___default = _init_l_Lean_Elab_Command_StructFieldInfo_value_x3f___default(); +lean_mark_persistent(l_Lean_Elab_Command_StructFieldInfo_value_x3f___default); l_Lean_Elab_Command_StructFieldInfo_inhabited___closed__1 = _init_l_Lean_Elab_Command_StructFieldInfo_inhabited___closed__1(); lean_mark_persistent(l_Lean_Elab_Command_StructFieldInfo_inhabited___closed__1); l_Lean_Elab_Command_StructFieldInfo_inhabited = _init_l_Lean_Elab_Command_StructFieldInfo_inhabited(); lean_mark_persistent(l_Lean_Elab_Command_StructFieldInfo_inhabited); -l___private_Lean_Elab_Structure_1__defaultCtorName___closed__1 = _init_l___private_Lean_Elab_Structure_1__defaultCtorName___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Structure_1__defaultCtorName___closed__1); -l___private_Lean_Elab_Structure_1__defaultCtorName = _init_l___private_Lean_Elab_Structure_1__defaultCtorName(); -lean_mark_persistent(l___private_Lean_Elab_Structure_1__defaultCtorName); -l___private_Lean_Elab_Structure_2__expandCtor___closed__1 = _init_l___private_Lean_Elab_Structure_2__expandCtor___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Structure_2__expandCtor___closed__1); -l___private_Lean_Elab_Structure_2__expandCtor___closed__2 = _init_l___private_Lean_Elab_Structure_2__expandCtor___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Structure_2__expandCtor___closed__2); -l___private_Lean_Elab_Structure_2__expandCtor___closed__3 = _init_l___private_Lean_Elab_Structure_2__expandCtor___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Structure_2__expandCtor___closed__3); -l___private_Lean_Elab_Structure_2__expandCtor___closed__4 = _init_l___private_Lean_Elab_Structure_2__expandCtor___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_Structure_2__expandCtor___closed__4); -l___private_Lean_Elab_Structure_2__expandCtor___closed__5 = _init_l___private_Lean_Elab_Structure_2__expandCtor___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_Structure_2__expandCtor___closed__5); -l___private_Lean_Elab_Structure_2__expandCtor___closed__6 = _init_l___private_Lean_Elab_Structure_2__expandCtor___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_Structure_2__expandCtor___closed__6); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_defaultCtorName___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_defaultCtorName___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_defaultCtorName___closed__1); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_defaultCtorName = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_defaultCtorName(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_defaultCtorName); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__2___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__2___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__2___closed__1); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__2___closed__2 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__2___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__2___closed__2); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__2___closed__3 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__2___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__2___closed__3); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___closed__1); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___closed__2 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___closed__2); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___closed__3 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___closed__3); +l_Lean_Elab_Command_checkValidFieldModifier___lambda__1___closed__1 = _init_l_Lean_Elab_Command_checkValidFieldModifier___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_checkValidFieldModifier___lambda__1___closed__1); +l_Lean_Elab_Command_checkValidFieldModifier___lambda__1___closed__2 = _init_l_Lean_Elab_Command_checkValidFieldModifier___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_checkValidFieldModifier___lambda__1___closed__2); +l_Lean_Elab_Command_checkValidFieldModifier___lambda__1___closed__3 = _init_l_Lean_Elab_Command_checkValidFieldModifier___lambda__1___closed__3(); +lean_mark_persistent(l_Lean_Elab_Command_checkValidFieldModifier___lambda__1___closed__3); +l_Lean_Elab_Command_checkValidFieldModifier___lambda__2___closed__1 = _init_l_Lean_Elab_Command_checkValidFieldModifier___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_checkValidFieldModifier___lambda__2___closed__1); +l_Lean_Elab_Command_checkValidFieldModifier___lambda__2___closed__2 = _init_l_Lean_Elab_Command_checkValidFieldModifier___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_checkValidFieldModifier___lambda__2___closed__2); +l_Lean_Elab_Command_checkValidFieldModifier___lambda__2___closed__3 = _init_l_Lean_Elab_Command_checkValidFieldModifier___lambda__2___closed__3(); +lean_mark_persistent(l_Lean_Elab_Command_checkValidFieldModifier___lambda__2___closed__3); +l_Lean_Elab_Command_checkValidFieldModifier___lambda__3___closed__1 = _init_l_Lean_Elab_Command_checkValidFieldModifier___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_checkValidFieldModifier___lambda__3___closed__1); +l_Lean_Elab_Command_checkValidFieldModifier___lambda__3___closed__2 = _init_l_Lean_Elab_Command_checkValidFieldModifier___lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_checkValidFieldModifier___lambda__3___closed__2); +l_Lean_Elab_Command_checkValidFieldModifier___lambda__3___closed__3 = _init_l_Lean_Elab_Command_checkValidFieldModifier___lambda__3___closed__3(); +lean_mark_persistent(l_Lean_Elab_Command_checkValidFieldModifier___lambda__3___closed__3); +l_Lean_Elab_Command_checkValidFieldModifier___lambda__4___closed__1 = _init_l_Lean_Elab_Command_checkValidFieldModifier___lambda__4___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_checkValidFieldModifier___lambda__4___closed__1); +l_Lean_Elab_Command_checkValidFieldModifier___lambda__4___closed__2 = _init_l_Lean_Elab_Command_checkValidFieldModifier___lambda__4___closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_checkValidFieldModifier___lambda__4___closed__2); +l_Lean_Elab_Command_checkValidFieldModifier___lambda__4___closed__3 = _init_l_Lean_Elab_Command_checkValidFieldModifier___lambda__4___closed__3(); +lean_mark_persistent(l_Lean_Elab_Command_checkValidFieldModifier___lambda__4___closed__3); l_Lean_Elab_Command_checkValidFieldModifier___closed__1 = _init_l_Lean_Elab_Command_checkValidFieldModifier___closed__1(); lean_mark_persistent(l_Lean_Elab_Command_checkValidFieldModifier___closed__1); l_Lean_Elab_Command_checkValidFieldModifier___closed__2 = _init_l_Lean_Elab_Command_checkValidFieldModifier___closed__2(); lean_mark_persistent(l_Lean_Elab_Command_checkValidFieldModifier___closed__2); l_Lean_Elab_Command_checkValidFieldModifier___closed__3 = _init_l_Lean_Elab_Command_checkValidFieldModifier___closed__3(); lean_mark_persistent(l_Lean_Elab_Command_checkValidFieldModifier___closed__3); -l_Lean_Elab_Command_checkValidFieldModifier___closed__4 = _init_l_Lean_Elab_Command_checkValidFieldModifier___closed__4(); -lean_mark_persistent(l_Lean_Elab_Command_checkValidFieldModifier___closed__4); -l_Lean_Elab_Command_checkValidFieldModifier___closed__5 = _init_l_Lean_Elab_Command_checkValidFieldModifier___closed__5(); -lean_mark_persistent(l_Lean_Elab_Command_checkValidFieldModifier___closed__5); -l_Lean_Elab_Command_checkValidFieldModifier___closed__6 = _init_l_Lean_Elab_Command_checkValidFieldModifier___closed__6(); -lean_mark_persistent(l_Lean_Elab_Command_checkValidFieldModifier___closed__6); -l_Lean_Elab_Command_checkValidFieldModifier___closed__7 = _init_l_Lean_Elab_Command_checkValidFieldModifier___closed__7(); -lean_mark_persistent(l_Lean_Elab_Command_checkValidFieldModifier___closed__7); -l_Lean_Elab_Command_checkValidFieldModifier___closed__8 = _init_l_Lean_Elab_Command_checkValidFieldModifier___closed__8(); -lean_mark_persistent(l_Lean_Elab_Command_checkValidFieldModifier___closed__8); -l_Lean_Elab_Command_checkValidFieldModifier___closed__9 = _init_l_Lean_Elab_Command_checkValidFieldModifier___closed__9(); -lean_mark_persistent(l_Lean_Elab_Command_checkValidFieldModifier___closed__9); -l_Lean_Elab_Command_checkValidFieldModifier___closed__10 = _init_l_Lean_Elab_Command_checkValidFieldModifier___closed__10(); -lean_mark_persistent(l_Lean_Elab_Command_checkValidFieldModifier___closed__10); -l_Lean_Elab_Command_checkValidFieldModifier___closed__11 = _init_l_Lean_Elab_Command_checkValidFieldModifier___closed__11(); -lean_mark_persistent(l_Lean_Elab_Command_checkValidFieldModifier___closed__11); -l_Lean_Elab_Command_checkValidFieldModifier___closed__12 = _init_l_Lean_Elab_Command_checkValidFieldModifier___closed__12(); -lean_mark_persistent(l_Lean_Elab_Command_checkValidFieldModifier___closed__12); -l_Lean_Elab_Command_checkValidFieldModifier___closed__13 = _init_l_Lean_Elab_Command_checkValidFieldModifier___closed__13(); -lean_mark_persistent(l_Lean_Elab_Command_checkValidFieldModifier___closed__13); -l_Lean_Elab_Command_checkValidFieldModifier___closed__14 = _init_l_Lean_Elab_Command_checkValidFieldModifier___closed__14(); -lean_mark_persistent(l_Lean_Elab_Command_checkValidFieldModifier___closed__14); -l_Lean_Elab_Command_checkValidFieldModifier___closed__15 = _init_l_Lean_Elab_Command_checkValidFieldModifier___closed__15(); -lean_mark_persistent(l_Lean_Elab_Command_checkValidFieldModifier___closed__15); -l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__1___closed__1 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__1___closed__1(); -lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__1___closed__1); -l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__1___closed__2 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__1___closed__2(); -lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__1___closed__2); -l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__1___closed__3 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__1___closed__3(); -lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__1___closed__3); -l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__1 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__1(); -lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__1); -l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__2 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__2(); -lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__2); -l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__3 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__3(); -lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__3); -l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__4 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__4(); -lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__4); -l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__5 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__5(); -lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__5); -l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__6 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__6(); -lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__6); -l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__7 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__7(); -lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__7); -l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__8 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__8(); -lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__8); -l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__9 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__9(); -lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__9); -l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__10 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__10(); -lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__10); -l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__11 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__11(); -lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__11); -l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__12 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__12(); -lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__12); -l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__13 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__13(); -lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__13); -l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__14 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__14(); -lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__14); -l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__15 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__15(); -lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__15); -l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__16 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__16(); -l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__1 = _init_l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__1); -l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__2 = _init_l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__2); -l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__3 = _init_l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__3); -l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__4 = _init_l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__4); -l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__5 = _init_l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__5); -l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__6 = _init_l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__6); -l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__1 = _init_l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__1); -l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__2 = _init_l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__2); -l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__3 = _init_l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__3); -l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__4 = _init_l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__4); -l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__5 = _init_l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__5); -l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__6 = _init_l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__6); -l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__7 = _init_l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__7(); -lean_mark_persistent(l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__7); -l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__8 = _init_l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__8(); -lean_mark_persistent(l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__8); -l___private_Lean_Elab_Structure_9__withParents___main___rarg___closed__1 = _init_l___private_Lean_Elab_Structure_9__withParents___main___rarg___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Structure_9__withParents___main___rarg___closed__1); -l___private_Lean_Elab_Structure_10__elabFieldTypeValue___closed__1 = _init_l___private_Lean_Elab_Structure_10__elabFieldTypeValue___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Structure_10__elabFieldTypeValue___closed__1); -l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__1 = _init_l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__1); -l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__2 = _init_l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__2); -l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__3 = _init_l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__3); -l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__4 = _init_l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__4); -l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__5 = _init_l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__5); -l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__6 = _init_l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__6); -l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__7 = _init_l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__7(); -lean_mark_persistent(l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__7); -l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__8 = _init_l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__8(); -lean_mark_persistent(l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__8); -l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__9 = _init_l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__9(); -lean_mark_persistent(l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__9); -l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__10 = _init_l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__10(); -lean_mark_persistent(l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__10); -l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__11 = _init_l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__11(); -lean_mark_persistent(l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__11); -l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__12 = _init_l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__12(); -lean_mark_persistent(l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__12); -l___private_Lean_Elab_Structure_12__getResultUniverse___closed__1 = _init_l___private_Lean_Elab_Structure_12__getResultUniverse___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Structure_12__getResultUniverse___closed__1); -l___private_Lean_Elab_Structure_12__getResultUniverse___closed__2 = _init_l___private_Lean_Elab_Structure_12__getResultUniverse___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Structure_12__getResultUniverse___closed__2); -l___private_Lean_Elab_Structure_12__getResultUniverse___closed__3 = _init_l___private_Lean_Elab_Structure_12__getResultUniverse___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Structure_12__getResultUniverse___closed__3); -l___private_Lean_Elab_Structure_21__updateResultingUniverse___closed__1 = _init_l___private_Lean_Elab_Structure_21__updateResultingUniverse___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Structure_21__updateResultingUniverse___closed__1); -l___private_Lean_Elab_Structure_21__updateResultingUniverse___closed__2 = _init_l___private_Lean_Elab_Structure_21__updateResultingUniverse___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Structure_21__updateResultingUniverse___closed__2); -l___private_Lean_Elab_Structure_21__updateResultingUniverse___closed__3 = _init_l___private_Lean_Elab_Structure_21__updateResultingUniverse___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Structure_21__updateResultingUniverse___closed__3); -l_Lean_Meta_mkAuxDefinition___at___private_Lean_Elab_Structure_30__addDefaults___spec__2___closed__1 = _init_l_Lean_Meta_mkAuxDefinition___at___private_Lean_Elab_Structure_30__addDefaults___spec__2___closed__1(); -lean_mark_persistent(l_Lean_Meta_mkAuxDefinition___at___private_Lean_Elab_Structure_30__addDefaults___spec__2___closed__1); -l_Array_umapMAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__8___closed__1 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__8___closed__1(); -lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__8___closed__1); -l_Array_umapMAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__8___closed__2 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__8___closed__2(); -lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__8___closed__2); -l___private_Lean_Elab_Structure_31__elabStructureView___closed__1 = _init_l___private_Lean_Elab_Structure_31__elabStructureView___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Structure_31__elabStructureView___closed__1); -l___private_Lean_Elab_Structure_31__elabStructureView___closed__2 = _init_l___private_Lean_Elab_Structure_31__elabStructureView___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Structure_31__elabStructureView___closed__2); -l___private_Lean_Elab_Structure_31__elabStructureView___closed__3 = _init_l___private_Lean_Elab_Structure_31__elabStructureView___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Structure_31__elabStructureView___closed__3); +l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___closed__1 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___closed__1(); +lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___closed__1); +l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___closed__2 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___closed__2(); +lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___closed__2); +l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___closed__3 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___closed__3(); +lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___closed__3); +l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__2___closed__1 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__2___closed__1(); +lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__2___closed__1); +l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__2___closed__2 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__2___closed__2(); +lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__2___closed__2); +l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__2___closed__3 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__2___closed__3(); +lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__2___closed__3); +l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__3___closed__1 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__3___closed__1(); +lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__3___closed__1); +l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__3___closed__2 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__3___closed__2(); +lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__3___closed__2); +l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__3___closed__3 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__3___closed__3(); +lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___lambda__3___closed__3); +l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__1 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__1(); +lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__1); +l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__2 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__2(); +lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__2); +l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__3 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__3(); +lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__3); +l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__4 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__4(); +lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__4); +l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__5 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__5(); +lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__5); +l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__6 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__6(); +lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__6); +l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__7 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__7(); +lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__7); +l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__8 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__8(); +lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__8); +l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__9 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__9(); +lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2___closed__9); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__1); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__2 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__2); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__3 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__3); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__4 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__4); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__5 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__5); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__1); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__2 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__2); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__3 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__3); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__4 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__4); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg___closed__1); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___closed__1); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__1); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__2 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__2); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__3 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__3); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__4 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__4); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__5 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__5); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__6 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__6); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__7 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__7(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__7); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__8 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__8(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__8); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__9 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__9(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__9); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__10 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__10(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__10); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__11 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__11(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__11); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__12 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__12(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__12); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse___closed__1); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse___closed__2 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse___closed__2); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse___closed__3 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse___closed__3); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse___closed__1); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse___closed__2 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse___closed__2); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse___closed__3 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse___closed__3); +l_Lean_Meta_mkAuxDefinition___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__2___closed__1 = _init_l_Lean_Meta_mkAuxDefinition___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__2___closed__1(); +lean_mark_persistent(l_Lean_Meta_mkAuxDefinition___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__2___closed__1); +l_Array_umapMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__8___closed__1 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__8___closed__1(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__8___closed__1); +l_Array_umapMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__8___closed__2 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__8___closed__2(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__8___closed__2); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___closed__1); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___closed__2 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___closed__2); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___closed__3 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___closed__3); l_Lean_Elab_Command_elabStructure___closed__1 = _init_l_Lean_Elab_Command_elabStructure___closed__1(); lean_mark_persistent(l_Lean_Elab_Command_elabStructure___closed__1); l_Lean_Elab_Command_elabStructure___closed__2 = _init_l_Lean_Elab_Command_elabStructure___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Syntax.c b/stage0/stdlib/Lean/Elab/Syntax.c index c2c20b7000..4db795cbdd 100644 --- a/stage0/stdlib/Lean/Elab/Syntax.c +++ b/stage0/stdlib/Lean/Elab/Syntax.c @@ -61,7 +61,6 @@ lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev_match__1(lean_object*); lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__58; extern lean_object* l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__3; lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Parser_notFollowedByFn___closed__1; lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__4; lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__26; lean_object* l_Lean_Elab_Command_expandMixfix___closed__14; @@ -309,6 +308,7 @@ lean_object* l___regBuiltin_Lean_Elab_Command_expandElab___closed__2; lean_object* l_Lean_Elab_Command_expandElab___closed__49; lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Term_toParserDescrAux___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__7; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__177; lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__24; extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__5; @@ -4304,14 +4304,22 @@ return x_3; static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__14() { _start: { +lean_object* x_1; +x_1 = lean_mk_string("notFollowedBy"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__15() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Term_checkLeftRec___closed__4; -x_2 = l_Lean_Parser_notFollowedByFn___closed__1; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__14; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__15() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__16() { _start: { lean_object* x_1; @@ -4319,17 +4327,17 @@ x_1 = lean_mk_string("lookahead"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__16() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__17() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Term_checkLeftRec___closed__4; -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__15; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__16; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__17() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -4339,7 +4347,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__18() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__19() { _start: { lean_object* x_1; @@ -4347,17 +4355,17 @@ x_1 = lean_mk_string("sepBy"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__19() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__20() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Term_checkLeftRec___closed__4; -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__18; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__19; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__20() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__21() { _start: { lean_object* x_1; @@ -4365,17 +4373,17 @@ x_1 = lean_mk_string("sepBy1"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__21() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__22() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Term_checkLeftRec___closed__4; -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__20; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__21; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__22() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__23() { _start: { lean_object* x_1; @@ -4383,17 +4391,17 @@ x_1 = lean_mk_string("many"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__23() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__24() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Term_checkLeftRec___closed__4; -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__22; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__23; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__24() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__25() { _start: { lean_object* x_1; @@ -4401,17 +4409,17 @@ x_1 = lean_mk_string("many1"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__25() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__26() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Term_checkLeftRec___closed__4; -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__24; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__25; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__26() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__27() { _start: { lean_object* x_1; @@ -4419,22 +4427,12 @@ x_1 = lean_mk_string("optional"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__27() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_checkLeftRec___closed__4; -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__26; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__28() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Term_checkLeftRec___closed__4; -x_2 = l_Lean_Elab_Tactic_evalOrelse___closed__1; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__27; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -4442,21 +4440,31 @@ return x_3; static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__29() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("unexpected syntax kind of category `syntax`: "); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Term_checkLeftRec___closed__4; +x_2 = l_Lean_Elab_Tactic_evalOrelse___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__30() { _start: { +lean_object* x_1; +x_1 = lean_mk_string("unexpected syntax kind of category `syntax`: "); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__31() { +_start: +{ lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__29; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__30; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__31() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__32() { _start: { lean_object* x_1; @@ -4464,22 +4472,22 @@ x_1 = lean_mk_string("ParserDescr.orelse"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__32() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__33() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__31; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__32; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__33() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__34() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__31; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__32; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__32; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__33; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -4487,21 +4495,11 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__34() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; -x_2 = l_Lean_Elab_Tactic_evalOrelse___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__35() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; x_2 = l_Lean_Elab_Tactic_evalOrelse___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -4511,11 +4509,9 @@ static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__36() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__35; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_2 = l_Lean_Elab_Tactic_evalOrelse___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -4525,7 +4521,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__36; -x_3 = lean_alloc_ctor(1, 2, 0); +x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; @@ -4534,27 +4530,39 @@ return x_3; static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__38() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("ParserDescr.optional"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__37; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; } } static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__39() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__38; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string("ParserDescr.optional"); +return x_1; } } static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__40() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__39; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__41() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__38; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__39; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__39; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__40; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -4562,22 +4570,12 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__41() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__26; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__42() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__26; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__27; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -4586,11 +4584,9 @@ static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__43() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__42; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__27; +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -4600,7 +4596,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__43; -x_3 = lean_alloc_ctor(1, 2, 0); +x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; @@ -4609,27 +4605,39 @@ return x_3; static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__45() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("ParserDescr.many1"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__44; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; } } static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__46() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__45; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string("ParserDescr.many1"); +return x_1; } } static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__47() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__46; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__48() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__45; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__46; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__46; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__47; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -4637,22 +4645,12 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__48() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__24; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__49() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__24; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__25; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -4661,11 +4659,9 @@ static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__50() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__49; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__25; +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -4675,7 +4671,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__50; -x_3 = lean_alloc_ctor(1, 2, 0); +x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; @@ -4684,27 +4680,39 @@ return x_3; static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__52() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("ParserDescr.many"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__51; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; } } static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__53() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__52; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string("ParserDescr.many"); +return x_1; } } static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__54() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__53; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__55() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__52; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__53; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__53; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__54; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -4712,22 +4720,12 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__55() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__22; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__56() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__22; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__23; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -4736,11 +4734,9 @@ static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__57() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__56; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__23; +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -4750,7 +4746,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__57; -x_3 = lean_alloc_ctor(1, 2, 0); +x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; @@ -4759,27 +4755,39 @@ return x_3; static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__59() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("ParserDescr.sepBy1"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__58; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; } } static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__60() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__59; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string("ParserDescr.sepBy1"); +return x_1; } } static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__61() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__60; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__62() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__59; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__60; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__60; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__61; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -4787,22 +4795,12 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__62() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__20; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__63() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__20; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__21; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -4811,11 +4809,9 @@ static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__64() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__63; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__21; +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -4825,7 +4821,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__64; -x_3 = lean_alloc_ctor(1, 2, 0); +x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; @@ -4834,27 +4830,39 @@ return x_3; static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__66() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("ParserDescr.sepBy"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__65; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; } } static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__67() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__66; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string("ParserDescr.sepBy"); +return x_1; } } static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__68() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__67; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__69() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__66; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__67; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__67; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__68; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -4862,22 +4870,12 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__69() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__18; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__70() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__18; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__19; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -4886,11 +4884,9 @@ static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__71() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__70; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__19; +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -4900,7 +4896,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__71; -x_3 = lean_alloc_ctor(1, 2, 0); +x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; @@ -4909,27 +4905,39 @@ return x_3; static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__73() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("ParserDescr.interpolatedStr"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__72; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; } } static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__74() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__73; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string("ParserDescr.interpolatedStr"); +return x_1; } } static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__75() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__74; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__76() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__73; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__74; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__74; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__75; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -4937,21 +4945,11 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__76() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; -x_2 = l_Lean_Parser_interpolatedStrNoAntiquot___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__77() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; x_2 = l_Lean_Parser_interpolatedStrNoAntiquot___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -4961,11 +4959,9 @@ static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__78() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__77; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_2 = l_Lean_Parser_interpolatedStrNoAntiquot___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -4975,7 +4971,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__78; -x_3 = lean_alloc_ctor(1, 2, 0); +x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; @@ -4984,27 +4980,39 @@ return x_3; static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__80() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("ParserDescr.lookahead"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__79; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; } } static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__81() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__80; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string("ParserDescr.lookahead"); +return x_1; } } static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__82() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__81; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__83() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__80; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__81; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__81; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__82; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -5012,22 +5020,12 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__83() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__15; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__84() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__15; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__16; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -5036,11 +5034,9 @@ static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__85() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__84; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__16; +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -5050,7 +5046,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__85; -x_3 = lean_alloc_ctor(1, 2, 0); +x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; @@ -5059,27 +5055,39 @@ return x_3; static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__87() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("ParserDescr.notFollowedBy"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__86; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; } } static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__88() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__87; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string("ParserDescr.notFollowedBy"); +return x_1; } } static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__89() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__88; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__90() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__87; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__88; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__88; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__89; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -5087,22 +5095,12 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__90() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; -x_2 = l_Lean_Parser_notFollowedByFn___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__91() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; -x_2 = l_Lean_Parser_notFollowedByFn___closed__1; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__14; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -5111,11 +5109,9 @@ static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__92() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__91; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__14; +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -5125,7 +5121,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__92; -x_3 = lean_alloc_ctor(1, 2, 0); +x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; @@ -5134,27 +5130,39 @@ return x_3; static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__94() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("ParserDescr.try"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__93; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; } } static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__95() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__94; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string("ParserDescr.try"); +return x_1; } } static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__96() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__95; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__97() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__94; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__95; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__95; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__96; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -5162,21 +5170,11 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__97() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__12; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__98() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__12; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -5186,11 +5184,9 @@ static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__99() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__98; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__12; +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -5200,7 +5196,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__99; -x_3 = lean_alloc_ctor(1, 2, 0); +x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; @@ -5209,27 +5205,39 @@ return x_3; static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__101() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("ParserDescr.noWs"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__100; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; } } static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__102() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__101; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string("ParserDescr.noWs"); +return x_1; } } static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__103() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__102; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__104() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__101; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__102; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__102; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__103; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -5237,21 +5245,11 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__104() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__10; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__105() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__10; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -5261,11 +5259,9 @@ static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__106() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__105; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__10; +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -5275,7 +5271,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__106; -x_3 = lean_alloc_ctor(1, 2, 0); +x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; @@ -5284,27 +5280,39 @@ return x_3; static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__108() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("ParserDescr.ident"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__107; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; } } static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__109() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__108; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string("ParserDescr.ident"); +return x_1; } } static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__110() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__109; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__111() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__108; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__109; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__109; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__110; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -5312,21 +5320,11 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__111() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; -x_2 = l_Lean_identKind___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__112() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; x_2 = l_Lean_identKind___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -5336,11 +5334,9 @@ static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__113() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__112; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_2 = l_Lean_identKind___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -5350,7 +5346,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__113; -x_3 = lean_alloc_ctor(1, 2, 0); +x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; @@ -5359,27 +5355,39 @@ return x_3; static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__115() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("ParserDescr.charLit"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__114; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; } } static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__116() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__115; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string("ParserDescr.charLit"); +return x_1; } } static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__117() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__116; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__118() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__115; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__116; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__116; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__117; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -5387,21 +5395,11 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__118() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; -x_2 = l_Lean_charLitKind___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__119() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; x_2 = l_Lean_charLitKind___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -5411,11 +5409,9 @@ static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__120() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__119; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_2 = l_Lean_charLitKind___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -5425,7 +5421,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__120; -x_3 = lean_alloc_ctor(1, 2, 0); +x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; @@ -5434,27 +5430,39 @@ return x_3; static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__122() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("ParserDescr.strLit"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__121; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; } } static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__123() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__122; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string("ParserDescr.strLit"); +return x_1; } } static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__124() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__123; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__125() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__122; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__123; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__123; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__124; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -5462,21 +5470,11 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__125() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; -x_2 = l_Lean_strLitKind___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__126() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; x_2 = l_Lean_strLitKind___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -5486,11 +5484,9 @@ static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__127() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__126; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_2 = l_Lean_strLitKind___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -5500,7 +5496,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__127; -x_3 = lean_alloc_ctor(1, 2, 0); +x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; @@ -5509,27 +5505,39 @@ return x_3; static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__129() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("ParserDescr.numLit"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__128; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; } } static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__130() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__129; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string("ParserDescr.numLit"); +return x_1; } } static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__131() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__130; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__132() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__129; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__130; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__130; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__131; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -5537,21 +5545,11 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__132() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; -x_2 = l_Lean_numLitKind___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__133() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; x_2 = l_Lean_numLitKind___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -5561,11 +5559,9 @@ static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__134() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__133; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_2 = l_Lean_numLitKind___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -5575,7 +5571,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__134; -x_3 = lean_alloc_ctor(1, 2, 0); +x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; @@ -5584,27 +5580,39 @@ return x_3; static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__136() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("ParserDescr.symbol"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__135; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; } } static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__137() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__136; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string("ParserDescr.symbol"); +return x_1; } } static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__138() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__137; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__139() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__136; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__137; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__137; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__138; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -5612,21 +5620,11 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__139() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; -x_2 = l_Lean_Parser_unquotedSymbolFn___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__140() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; x_2 = l_Lean_Parser_unquotedSymbolFn___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -5636,11 +5634,9 @@ static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__141() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__140; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_2 = l_Lean_Parser_unquotedSymbolFn___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -5650,7 +5646,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__141; -x_3 = lean_alloc_ctor(1, 2, 0); +x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; @@ -5659,27 +5655,39 @@ return x_3; static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__143() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("ParserDescr.nonReservedSymbol"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__142; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; } } static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__144() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__143; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string("ParserDescr.nonReservedSymbol"); +return x_1; } } static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__145() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__144; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__146() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__143; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__144; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__144; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__145; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -5687,7 +5695,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__146() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__147() { _start: { lean_object* x_1; @@ -5695,22 +5703,12 @@ x_1 = lean_mk_string("nonReservedSymbol"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__147() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__146; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__148() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__146; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__147; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -5719,11 +5717,9 @@ static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__149() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__148; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__147; +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -5733,7 +5729,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__149; -x_3 = lean_alloc_ctor(1, 2, 0); +x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; @@ -5742,19 +5738,31 @@ return x_3; static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__151() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__150; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__152() { +_start: +{ lean_object* x_1; lean_object* x_2; x_1 = l_Bool_HasRepr___closed__1; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__152() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__153() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Bool_HasRepr___closed__1; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__151; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__152; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -5762,7 +5770,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__153() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__154() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -5772,7 +5780,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__154() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__155() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -5782,25 +5790,13 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__155() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__154; -x_2 = l_Bool_HasRepr___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__156() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__155; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__155; +x_2 = l_Bool_HasRepr___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -5810,7 +5806,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__156; -x_3 = lean_alloc_ctor(1, 2, 0); +x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; @@ -5819,27 +5815,39 @@ return x_3; static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__158() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("ParserDescr.cat"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__157; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; } } static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__159() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__158; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string("ParserDescr.cat"); +return x_1; } } static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__160() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__159; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__161() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__158; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__159; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__159; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__160; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -5847,7 +5855,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__161() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__162() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -5857,7 +5865,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__162() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__163() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -5867,25 +5875,13 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__163() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__162; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; -} -} static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__164() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__163; -x_3 = lean_alloc_ctor(1, 2, 0); +x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; @@ -5894,21 +5890,33 @@ return x_3; static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__165() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("unknown category '"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__164; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; } } static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__166() { _start: { +lean_object* x_1; +x_1 = lean_mk_string("unknown category '"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__167() { +_start: +{ lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__165; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__166; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__167() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__168() { _start: { lean_object* x_1; @@ -5916,16 +5924,16 @@ x_1 = lean_mk_string("' or parser declaration"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__168() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__169() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__167; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__168; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__169() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__170() { _start: { lean_object* x_1; @@ -5933,22 +5941,12 @@ x_1 = lean_mk_string("unexpected precedence"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__170() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__169; -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_toParserDescrAux___closed__171() { _start: { lean_object* x_1; lean_object* x_2; x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__170; -x_2 = lean_alloc_ctor(0, 1, 0); +x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } @@ -5956,21 +5954,31 @@ return x_2; static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__172() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("ambiguous parser declaration "); -return x_1; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__171; +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_toParserDescrAux___closed__173() { _start: { +lean_object* x_1; +x_1 = lean_mk_string("ambiguous parser declaration "); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__174() { +_start: +{ lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__172; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__173; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__174() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__175() { _start: { lean_object* x_1; @@ -5978,21 +5986,21 @@ x_1 = lean_mk_string("invalid atomic left recursive syntax"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__175() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__174; -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_toParserDescrAux___closed__176() { _start: { lean_object* x_1; lean_object* x_2; x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__175; +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_toParserDescrAux___closed__177() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__176; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; @@ -6059,47 +6067,47 @@ x_33 = lean_name_eq(x_11, x_32); if (x_33 == 0) { lean_object* x_34; uint8_t x_35; -x_34 = l_Lean_Elab_Term_toParserDescrAux___closed__14; +x_34 = l_Lean_Elab_Term_toParserDescrAux___closed__15; x_35 = lean_name_eq(x_11, x_34); if (x_35 == 0) { lean_object* x_36; uint8_t x_37; -x_36 = l_Lean_Elab_Term_toParserDescrAux___closed__16; +x_36 = l_Lean_Elab_Term_toParserDescrAux___closed__17; x_37 = lean_name_eq(x_11, x_36); if (x_37 == 0) { lean_object* x_38; uint8_t x_39; -x_38 = l_Lean_Elab_Term_toParserDescrAux___closed__17; +x_38 = l_Lean_Elab_Term_toParserDescrAux___closed__18; x_39 = lean_name_eq(x_11, x_38); if (x_39 == 0) { lean_object* x_40; uint8_t x_41; -x_40 = l_Lean_Elab_Term_toParserDescrAux___closed__19; +x_40 = l_Lean_Elab_Term_toParserDescrAux___closed__20; x_41 = lean_name_eq(x_11, x_40); if (x_41 == 0) { lean_object* x_42; uint8_t x_43; -x_42 = l_Lean_Elab_Term_toParserDescrAux___closed__21; +x_42 = l_Lean_Elab_Term_toParserDescrAux___closed__22; x_43 = lean_name_eq(x_11, x_42); if (x_43 == 0) { lean_object* x_44; uint8_t x_45; -x_44 = l_Lean_Elab_Term_toParserDescrAux___closed__23; +x_44 = l_Lean_Elab_Term_toParserDescrAux___closed__24; x_45 = lean_name_eq(x_11, x_44); if (x_45 == 0) { lean_object* x_46; uint8_t x_47; -x_46 = l_Lean_Elab_Term_toParserDescrAux___closed__25; +x_46 = l_Lean_Elab_Term_toParserDescrAux___closed__26; x_47 = lean_name_eq(x_11, x_46); if (x_47 == 0) { lean_object* x_48; uint8_t x_49; -x_48 = l_Lean_Elab_Term_toParserDescrAux___closed__27; +x_48 = l_Lean_Elab_Term_toParserDescrAux___closed__28; x_49 = lean_name_eq(x_11, x_48); if (x_49 == 0) { lean_object* x_50; uint8_t x_51; -x_50 = l_Lean_Elab_Term_toParserDescrAux___closed__28; +x_50 = l_Lean_Elab_Term_toParserDescrAux___closed__29; x_51 = lean_name_eq(x_11, x_50); if (x_51 == 0) { @@ -6282,7 +6290,7 @@ if (lean_obj_tag(x_52) == 0) lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; x_54 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_54, 0, x_11); -x_55 = l_Lean_Elab_Term_toParserDescrAux___closed__30; +x_55 = l_Lean_Elab_Term_toParserDescrAux___closed__31; x_56 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_56, 0, x_55); lean_ctor_set(x_56, 1, x_54); @@ -6380,11 +6388,11 @@ if (x_127 == 0) { lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; x_128 = lean_ctor_get(x_126, 0); -x_129 = l_Lean_Elab_Term_toParserDescrAux___closed__34; +x_129 = l_Lean_Elab_Term_toParserDescrAux___closed__35; x_130 = l_Lean_addMacroScope(x_128, x_129, x_124); x_131 = l_Lean_SourceInfo_inhabited___closed__1; -x_132 = l_Lean_Elab_Term_toParserDescrAux___closed__33; -x_133 = l_Lean_Elab_Term_toParserDescrAux___closed__37; +x_132 = l_Lean_Elab_Term_toParserDescrAux___closed__34; +x_133 = l_Lean_Elab_Term_toParserDescrAux___closed__38; x_134 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_134, 0, x_131); lean_ctor_set(x_134, 1, x_132); @@ -6414,11 +6422,11 @@ x_145 = lean_ctor_get(x_126, 1); lean_inc(x_145); lean_inc(x_144); lean_dec(x_126); -x_146 = l_Lean_Elab_Term_toParserDescrAux___closed__34; +x_146 = l_Lean_Elab_Term_toParserDescrAux___closed__35; x_147 = l_Lean_addMacroScope(x_144, x_146, x_124); x_148 = l_Lean_SourceInfo_inhabited___closed__1; -x_149 = l_Lean_Elab_Term_toParserDescrAux___closed__33; -x_150 = l_Lean_Elab_Term_toParserDescrAux___closed__37; +x_149 = l_Lean_Elab_Term_toParserDescrAux___closed__34; +x_150 = l_Lean_Elab_Term_toParserDescrAux___closed__38; x_151 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_151, 0, x_148); lean_ctor_set(x_151, 1, x_149); @@ -6579,11 +6587,11 @@ if (lean_is_exclusive(x_186)) { lean_dec_ref(x_186); x_189 = lean_box(0); } -x_190 = l_Lean_Elab_Term_toParserDescrAux___closed__34; +x_190 = l_Lean_Elab_Term_toParserDescrAux___closed__35; x_191 = l_Lean_addMacroScope(x_187, x_190, x_184); x_192 = l_Lean_SourceInfo_inhabited___closed__1; -x_193 = l_Lean_Elab_Term_toParserDescrAux___closed__33; -x_194 = l_Lean_Elab_Term_toParserDescrAux___closed__37; +x_193 = l_Lean_Elab_Term_toParserDescrAux___closed__34; +x_194 = l_Lean_Elab_Term_toParserDescrAux___closed__38; x_195 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_195, 0, x_192); lean_ctor_set(x_195, 1, x_193); @@ -6725,11 +6733,11 @@ if (x_225 == 0) { lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; 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; x_226 = lean_ctor_get(x_224, 0); -x_227 = l_Lean_Elab_Term_toParserDescrAux___closed__41; +x_227 = l_Lean_Elab_Term_toParserDescrAux___closed__42; x_228 = l_Lean_addMacroScope(x_226, x_227, x_222); x_229 = l_Lean_SourceInfo_inhabited___closed__1; -x_230 = l_Lean_Elab_Term_toParserDescrAux___closed__40; -x_231 = l_Lean_Elab_Term_toParserDescrAux___closed__44; +x_230 = l_Lean_Elab_Term_toParserDescrAux___closed__41; +x_231 = l_Lean_Elab_Term_toParserDescrAux___closed__45; x_232 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_232, 0, x_229); lean_ctor_set(x_232, 1, x_230); @@ -6758,11 +6766,11 @@ x_242 = lean_ctor_get(x_224, 1); lean_inc(x_242); lean_inc(x_241); lean_dec(x_224); -x_243 = l_Lean_Elab_Term_toParserDescrAux___closed__41; +x_243 = l_Lean_Elab_Term_toParserDescrAux___closed__42; x_244 = l_Lean_addMacroScope(x_241, x_243, x_222); x_245 = l_Lean_SourceInfo_inhabited___closed__1; -x_246 = l_Lean_Elab_Term_toParserDescrAux___closed__40; -x_247 = l_Lean_Elab_Term_toParserDescrAux___closed__44; +x_246 = l_Lean_Elab_Term_toParserDescrAux___closed__41; +x_247 = l_Lean_Elab_Term_toParserDescrAux___closed__45; x_248 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_248, 0, x_245); lean_ctor_set(x_248, 1, x_246); @@ -6869,11 +6877,11 @@ if (lean_is_exclusive(x_273)) { lean_dec_ref(x_273); x_276 = lean_box(0); } -x_277 = l_Lean_Elab_Term_toParserDescrAux___closed__41; +x_277 = l_Lean_Elab_Term_toParserDescrAux___closed__42; x_278 = l_Lean_addMacroScope(x_274, x_277, x_271); x_279 = l_Lean_SourceInfo_inhabited___closed__1; -x_280 = l_Lean_Elab_Term_toParserDescrAux___closed__40; -x_281 = l_Lean_Elab_Term_toParserDescrAux___closed__44; +x_280 = l_Lean_Elab_Term_toParserDescrAux___closed__41; +x_281 = l_Lean_Elab_Term_toParserDescrAux___closed__45; x_282 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_282, 0, x_279); lean_ctor_set(x_282, 1, x_280); @@ -6979,11 +6987,11 @@ if (x_307 == 0) { lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; x_308 = lean_ctor_get(x_306, 0); -x_309 = l_Lean_Elab_Term_toParserDescrAux___closed__48; +x_309 = l_Lean_Elab_Term_toParserDescrAux___closed__49; x_310 = l_Lean_addMacroScope(x_308, x_309, x_304); x_311 = l_Lean_SourceInfo_inhabited___closed__1; -x_312 = l_Lean_Elab_Term_toParserDescrAux___closed__47; -x_313 = l_Lean_Elab_Term_toParserDescrAux___closed__51; +x_312 = l_Lean_Elab_Term_toParserDescrAux___closed__48; +x_313 = l_Lean_Elab_Term_toParserDescrAux___closed__52; x_314 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_314, 0, x_311); lean_ctor_set(x_314, 1, x_312); @@ -7012,11 +7020,11 @@ x_324 = lean_ctor_get(x_306, 1); lean_inc(x_324); lean_inc(x_323); lean_dec(x_306); -x_325 = l_Lean_Elab_Term_toParserDescrAux___closed__48; +x_325 = l_Lean_Elab_Term_toParserDescrAux___closed__49; x_326 = l_Lean_addMacroScope(x_323, x_325, x_304); x_327 = l_Lean_SourceInfo_inhabited___closed__1; -x_328 = l_Lean_Elab_Term_toParserDescrAux___closed__47; -x_329 = l_Lean_Elab_Term_toParserDescrAux___closed__51; +x_328 = l_Lean_Elab_Term_toParserDescrAux___closed__48; +x_329 = l_Lean_Elab_Term_toParserDescrAux___closed__52; x_330 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_330, 0, x_327); lean_ctor_set(x_330, 1, x_328); @@ -7123,11 +7131,11 @@ if (lean_is_exclusive(x_355)) { lean_dec_ref(x_355); x_358 = lean_box(0); } -x_359 = l_Lean_Elab_Term_toParserDescrAux___closed__48; +x_359 = l_Lean_Elab_Term_toParserDescrAux___closed__49; x_360 = l_Lean_addMacroScope(x_356, x_359, x_353); x_361 = l_Lean_SourceInfo_inhabited___closed__1; -x_362 = l_Lean_Elab_Term_toParserDescrAux___closed__47; -x_363 = l_Lean_Elab_Term_toParserDescrAux___closed__51; +x_362 = l_Lean_Elab_Term_toParserDescrAux___closed__48; +x_363 = l_Lean_Elab_Term_toParserDescrAux___closed__52; x_364 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_364, 0, x_361); lean_ctor_set(x_364, 1, x_362); @@ -7233,11 +7241,11 @@ if (x_389 == 0) { lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; x_390 = lean_ctor_get(x_388, 0); -x_391 = l_Lean_Elab_Term_toParserDescrAux___closed__55; +x_391 = l_Lean_Elab_Term_toParserDescrAux___closed__56; x_392 = l_Lean_addMacroScope(x_390, x_391, x_386); x_393 = l_Lean_SourceInfo_inhabited___closed__1; -x_394 = l_Lean_Elab_Term_toParserDescrAux___closed__54; -x_395 = l_Lean_Elab_Term_toParserDescrAux___closed__58; +x_394 = l_Lean_Elab_Term_toParserDescrAux___closed__55; +x_395 = l_Lean_Elab_Term_toParserDescrAux___closed__59; x_396 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_396, 0, x_393); lean_ctor_set(x_396, 1, x_394); @@ -7266,11 +7274,11 @@ x_406 = lean_ctor_get(x_388, 1); lean_inc(x_406); lean_inc(x_405); lean_dec(x_388); -x_407 = l_Lean_Elab_Term_toParserDescrAux___closed__55; +x_407 = l_Lean_Elab_Term_toParserDescrAux___closed__56; x_408 = l_Lean_addMacroScope(x_405, x_407, x_386); x_409 = l_Lean_SourceInfo_inhabited___closed__1; -x_410 = l_Lean_Elab_Term_toParserDescrAux___closed__54; -x_411 = l_Lean_Elab_Term_toParserDescrAux___closed__58; +x_410 = l_Lean_Elab_Term_toParserDescrAux___closed__55; +x_411 = l_Lean_Elab_Term_toParserDescrAux___closed__59; x_412 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_412, 0, x_409); lean_ctor_set(x_412, 1, x_410); @@ -7377,11 +7385,11 @@ if (lean_is_exclusive(x_437)) { lean_dec_ref(x_437); x_440 = lean_box(0); } -x_441 = l_Lean_Elab_Term_toParserDescrAux___closed__55; +x_441 = l_Lean_Elab_Term_toParserDescrAux___closed__56; x_442 = l_Lean_addMacroScope(x_438, x_441, x_435); x_443 = l_Lean_SourceInfo_inhabited___closed__1; -x_444 = l_Lean_Elab_Term_toParserDescrAux___closed__54; -x_445 = l_Lean_Elab_Term_toParserDescrAux___closed__58; +x_444 = l_Lean_Elab_Term_toParserDescrAux___closed__55; +x_445 = l_Lean_Elab_Term_toParserDescrAux___closed__59; x_446 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_446, 0, x_443); lean_ctor_set(x_446, 1, x_444); @@ -7506,11 +7514,11 @@ if (x_476 == 0) { lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; x_477 = lean_ctor_get(x_475, 0); -x_478 = l_Lean_Elab_Term_toParserDescrAux___closed__62; +x_478 = l_Lean_Elab_Term_toParserDescrAux___closed__63; x_479 = l_Lean_addMacroScope(x_477, x_478, x_473); x_480 = l_Lean_SourceInfo_inhabited___closed__1; -x_481 = l_Lean_Elab_Term_toParserDescrAux___closed__61; -x_482 = l_Lean_Elab_Term_toParserDescrAux___closed__65; +x_481 = l_Lean_Elab_Term_toParserDescrAux___closed__62; +x_482 = l_Lean_Elab_Term_toParserDescrAux___closed__66; x_483 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_483, 0, x_480); lean_ctor_set(x_483, 1, x_481); @@ -7540,11 +7548,11 @@ x_494 = lean_ctor_get(x_475, 1); lean_inc(x_494); lean_inc(x_493); lean_dec(x_475); -x_495 = l_Lean_Elab_Term_toParserDescrAux___closed__62; +x_495 = l_Lean_Elab_Term_toParserDescrAux___closed__63; x_496 = l_Lean_addMacroScope(x_493, x_495, x_473); x_497 = l_Lean_SourceInfo_inhabited___closed__1; -x_498 = l_Lean_Elab_Term_toParserDescrAux___closed__61; -x_499 = l_Lean_Elab_Term_toParserDescrAux___closed__65; +x_498 = l_Lean_Elab_Term_toParserDescrAux___closed__62; +x_499 = l_Lean_Elab_Term_toParserDescrAux___closed__66; x_500 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_500, 0, x_497); lean_ctor_set(x_500, 1, x_498); @@ -7705,11 +7713,11 @@ if (lean_is_exclusive(x_535)) { lean_dec_ref(x_535); x_538 = lean_box(0); } -x_539 = l_Lean_Elab_Term_toParserDescrAux___closed__62; +x_539 = l_Lean_Elab_Term_toParserDescrAux___closed__63; x_540 = l_Lean_addMacroScope(x_536, x_539, x_533); x_541 = l_Lean_SourceInfo_inhabited___closed__1; -x_542 = l_Lean_Elab_Term_toParserDescrAux___closed__61; -x_543 = l_Lean_Elab_Term_toParserDescrAux___closed__65; +x_542 = l_Lean_Elab_Term_toParserDescrAux___closed__62; +x_543 = l_Lean_Elab_Term_toParserDescrAux___closed__66; x_544 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_544, 0, x_541); lean_ctor_set(x_544, 1, x_542); @@ -7870,11 +7878,11 @@ if (x_579 == 0) { lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; x_580 = lean_ctor_get(x_578, 0); -x_581 = l_Lean_Elab_Term_toParserDescrAux___closed__69; +x_581 = l_Lean_Elab_Term_toParserDescrAux___closed__70; x_582 = l_Lean_addMacroScope(x_580, x_581, x_576); x_583 = l_Lean_SourceInfo_inhabited___closed__1; -x_584 = l_Lean_Elab_Term_toParserDescrAux___closed__68; -x_585 = l_Lean_Elab_Term_toParserDescrAux___closed__72; +x_584 = l_Lean_Elab_Term_toParserDescrAux___closed__69; +x_585 = l_Lean_Elab_Term_toParserDescrAux___closed__73; x_586 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_586, 0, x_583); lean_ctor_set(x_586, 1, x_584); @@ -7904,11 +7912,11 @@ x_597 = lean_ctor_get(x_578, 1); lean_inc(x_597); lean_inc(x_596); lean_dec(x_578); -x_598 = l_Lean_Elab_Term_toParserDescrAux___closed__69; +x_598 = l_Lean_Elab_Term_toParserDescrAux___closed__70; x_599 = l_Lean_addMacroScope(x_596, x_598, x_576); x_600 = l_Lean_SourceInfo_inhabited___closed__1; -x_601 = l_Lean_Elab_Term_toParserDescrAux___closed__68; -x_602 = l_Lean_Elab_Term_toParserDescrAux___closed__72; +x_601 = l_Lean_Elab_Term_toParserDescrAux___closed__69; +x_602 = l_Lean_Elab_Term_toParserDescrAux___closed__73; x_603 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_603, 0, x_600); lean_ctor_set(x_603, 1, x_601); @@ -8069,11 +8077,11 @@ if (lean_is_exclusive(x_638)) { lean_dec_ref(x_638); x_641 = lean_box(0); } -x_642 = l_Lean_Elab_Term_toParserDescrAux___closed__69; +x_642 = l_Lean_Elab_Term_toParserDescrAux___closed__70; x_643 = l_Lean_addMacroScope(x_639, x_642, x_636); x_644 = l_Lean_SourceInfo_inhabited___closed__1; -x_645 = l_Lean_Elab_Term_toParserDescrAux___closed__68; -x_646 = l_Lean_Elab_Term_toParserDescrAux___closed__72; +x_645 = l_Lean_Elab_Term_toParserDescrAux___closed__69; +x_646 = l_Lean_Elab_Term_toParserDescrAux___closed__73; x_647 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_647, 0, x_644); lean_ctor_set(x_647, 1, x_645); @@ -8215,11 +8223,11 @@ if (x_677 == 0) { lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; x_678 = lean_ctor_get(x_676, 0); -x_679 = l_Lean_Elab_Term_toParserDescrAux___closed__76; +x_679 = l_Lean_Elab_Term_toParserDescrAux___closed__77; x_680 = l_Lean_addMacroScope(x_678, x_679, x_674); x_681 = l_Lean_SourceInfo_inhabited___closed__1; -x_682 = l_Lean_Elab_Term_toParserDescrAux___closed__75; -x_683 = l_Lean_Elab_Term_toParserDescrAux___closed__79; +x_682 = l_Lean_Elab_Term_toParserDescrAux___closed__76; +x_683 = l_Lean_Elab_Term_toParserDescrAux___closed__80; x_684 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_684, 0, x_681); lean_ctor_set(x_684, 1, x_682); @@ -8248,11 +8256,11 @@ x_694 = lean_ctor_get(x_676, 1); lean_inc(x_694); lean_inc(x_693); lean_dec(x_676); -x_695 = l_Lean_Elab_Term_toParserDescrAux___closed__76; +x_695 = l_Lean_Elab_Term_toParserDescrAux___closed__77; x_696 = l_Lean_addMacroScope(x_693, x_695, x_674); x_697 = l_Lean_SourceInfo_inhabited___closed__1; -x_698 = l_Lean_Elab_Term_toParserDescrAux___closed__75; -x_699 = l_Lean_Elab_Term_toParserDescrAux___closed__79; +x_698 = l_Lean_Elab_Term_toParserDescrAux___closed__76; +x_699 = l_Lean_Elab_Term_toParserDescrAux___closed__80; x_700 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_700, 0, x_697); lean_ctor_set(x_700, 1, x_698); @@ -8359,11 +8367,11 @@ if (lean_is_exclusive(x_725)) { lean_dec_ref(x_725); x_728 = lean_box(0); } -x_729 = l_Lean_Elab_Term_toParserDescrAux___closed__76; +x_729 = l_Lean_Elab_Term_toParserDescrAux___closed__77; x_730 = l_Lean_addMacroScope(x_726, x_729, x_723); x_731 = l_Lean_SourceInfo_inhabited___closed__1; -x_732 = l_Lean_Elab_Term_toParserDescrAux___closed__75; -x_733 = l_Lean_Elab_Term_toParserDescrAux___closed__79; +x_732 = l_Lean_Elab_Term_toParserDescrAux___closed__76; +x_733 = l_Lean_Elab_Term_toParserDescrAux___closed__80; x_734 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_734, 0, x_731); lean_ctor_set(x_734, 1, x_732); @@ -8469,11 +8477,11 @@ if (x_759 == 0) { lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; lean_object* x_774; x_760 = lean_ctor_get(x_758, 0); -x_761 = l_Lean_Elab_Term_toParserDescrAux___closed__83; +x_761 = l_Lean_Elab_Term_toParserDescrAux___closed__84; x_762 = l_Lean_addMacroScope(x_760, x_761, x_756); x_763 = l_Lean_SourceInfo_inhabited___closed__1; -x_764 = l_Lean_Elab_Term_toParserDescrAux___closed__82; -x_765 = l_Lean_Elab_Term_toParserDescrAux___closed__86; +x_764 = l_Lean_Elab_Term_toParserDescrAux___closed__83; +x_765 = l_Lean_Elab_Term_toParserDescrAux___closed__87; x_766 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_766, 0, x_763); lean_ctor_set(x_766, 1, x_764); @@ -8502,11 +8510,11 @@ x_776 = lean_ctor_get(x_758, 1); lean_inc(x_776); lean_inc(x_775); lean_dec(x_758); -x_777 = l_Lean_Elab_Term_toParserDescrAux___closed__83; +x_777 = l_Lean_Elab_Term_toParserDescrAux___closed__84; x_778 = l_Lean_addMacroScope(x_775, x_777, x_756); x_779 = l_Lean_SourceInfo_inhabited___closed__1; -x_780 = l_Lean_Elab_Term_toParserDescrAux___closed__82; -x_781 = l_Lean_Elab_Term_toParserDescrAux___closed__86; +x_780 = l_Lean_Elab_Term_toParserDescrAux___closed__83; +x_781 = l_Lean_Elab_Term_toParserDescrAux___closed__87; x_782 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_782, 0, x_779); lean_ctor_set(x_782, 1, x_780); @@ -8613,11 +8621,11 @@ if (lean_is_exclusive(x_807)) { lean_dec_ref(x_807); x_810 = lean_box(0); } -x_811 = l_Lean_Elab_Term_toParserDescrAux___closed__83; +x_811 = l_Lean_Elab_Term_toParserDescrAux___closed__84; x_812 = l_Lean_addMacroScope(x_808, x_811, x_805); x_813 = l_Lean_SourceInfo_inhabited___closed__1; -x_814 = l_Lean_Elab_Term_toParserDescrAux___closed__82; -x_815 = l_Lean_Elab_Term_toParserDescrAux___closed__86; +x_814 = l_Lean_Elab_Term_toParserDescrAux___closed__83; +x_815 = l_Lean_Elab_Term_toParserDescrAux___closed__87; x_816 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_816, 0, x_813); lean_ctor_set(x_816, 1, x_814); @@ -8723,11 +8731,11 @@ if (x_841 == 0) { lean_object* x_842; lean_object* x_843; lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; lean_object* x_848; lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; lean_object* x_855; lean_object* x_856; x_842 = lean_ctor_get(x_840, 0); -x_843 = l_Lean_Elab_Term_toParserDescrAux___closed__90; +x_843 = l_Lean_Elab_Term_toParserDescrAux___closed__91; x_844 = l_Lean_addMacroScope(x_842, x_843, x_838); x_845 = l_Lean_SourceInfo_inhabited___closed__1; -x_846 = l_Lean_Elab_Term_toParserDescrAux___closed__89; -x_847 = l_Lean_Elab_Term_toParserDescrAux___closed__93; +x_846 = l_Lean_Elab_Term_toParserDescrAux___closed__90; +x_847 = l_Lean_Elab_Term_toParserDescrAux___closed__94; x_848 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_848, 0, x_845); lean_ctor_set(x_848, 1, x_846); @@ -8756,11 +8764,11 @@ x_858 = lean_ctor_get(x_840, 1); lean_inc(x_858); lean_inc(x_857); lean_dec(x_840); -x_859 = l_Lean_Elab_Term_toParserDescrAux___closed__90; +x_859 = l_Lean_Elab_Term_toParserDescrAux___closed__91; x_860 = l_Lean_addMacroScope(x_857, x_859, x_838); x_861 = l_Lean_SourceInfo_inhabited___closed__1; -x_862 = l_Lean_Elab_Term_toParserDescrAux___closed__89; -x_863 = l_Lean_Elab_Term_toParserDescrAux___closed__93; +x_862 = l_Lean_Elab_Term_toParserDescrAux___closed__90; +x_863 = l_Lean_Elab_Term_toParserDescrAux___closed__94; x_864 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_864, 0, x_861); lean_ctor_set(x_864, 1, x_862); @@ -8867,11 +8875,11 @@ if (lean_is_exclusive(x_889)) { lean_dec_ref(x_889); x_892 = lean_box(0); } -x_893 = l_Lean_Elab_Term_toParserDescrAux___closed__90; +x_893 = l_Lean_Elab_Term_toParserDescrAux___closed__91; x_894 = l_Lean_addMacroScope(x_890, x_893, x_887); x_895 = l_Lean_SourceInfo_inhabited___closed__1; -x_896 = l_Lean_Elab_Term_toParserDescrAux___closed__89; -x_897 = l_Lean_Elab_Term_toParserDescrAux___closed__93; +x_896 = l_Lean_Elab_Term_toParserDescrAux___closed__90; +x_897 = l_Lean_Elab_Term_toParserDescrAux___closed__94; x_898 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_898, 0, x_895); lean_ctor_set(x_898, 1, x_896); @@ -8977,11 +8985,11 @@ if (x_923 == 0) { lean_object* x_924; lean_object* x_925; lean_object* x_926; lean_object* x_927; lean_object* x_928; lean_object* x_929; lean_object* x_930; lean_object* x_931; lean_object* x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; lean_object* x_936; lean_object* x_937; lean_object* x_938; x_924 = lean_ctor_get(x_922, 0); -x_925 = l_Lean_Elab_Term_toParserDescrAux___closed__97; +x_925 = l_Lean_Elab_Term_toParserDescrAux___closed__98; x_926 = l_Lean_addMacroScope(x_924, x_925, x_920); x_927 = l_Lean_SourceInfo_inhabited___closed__1; -x_928 = l_Lean_Elab_Term_toParserDescrAux___closed__96; -x_929 = l_Lean_Elab_Term_toParserDescrAux___closed__100; +x_928 = l_Lean_Elab_Term_toParserDescrAux___closed__97; +x_929 = l_Lean_Elab_Term_toParserDescrAux___closed__101; x_930 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_930, 0, x_927); lean_ctor_set(x_930, 1, x_928); @@ -9010,11 +9018,11 @@ x_940 = lean_ctor_get(x_922, 1); lean_inc(x_940); lean_inc(x_939); lean_dec(x_922); -x_941 = l_Lean_Elab_Term_toParserDescrAux___closed__97; +x_941 = l_Lean_Elab_Term_toParserDescrAux___closed__98; x_942 = l_Lean_addMacroScope(x_939, x_941, x_920); x_943 = l_Lean_SourceInfo_inhabited___closed__1; -x_944 = l_Lean_Elab_Term_toParserDescrAux___closed__96; -x_945 = l_Lean_Elab_Term_toParserDescrAux___closed__100; +x_944 = l_Lean_Elab_Term_toParserDescrAux___closed__97; +x_945 = l_Lean_Elab_Term_toParserDescrAux___closed__101; x_946 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_946, 0, x_943); lean_ctor_set(x_946, 1, x_944); @@ -9121,11 +9129,11 @@ if (lean_is_exclusive(x_971)) { lean_dec_ref(x_971); x_974 = lean_box(0); } -x_975 = l_Lean_Elab_Term_toParserDescrAux___closed__97; +x_975 = l_Lean_Elab_Term_toParserDescrAux___closed__98; x_976 = l_Lean_addMacroScope(x_972, x_975, x_969); x_977 = l_Lean_SourceInfo_inhabited___closed__1; -x_978 = l_Lean_Elab_Term_toParserDescrAux___closed__96; -x_979 = l_Lean_Elab_Term_toParserDescrAux___closed__100; +x_978 = l_Lean_Elab_Term_toParserDescrAux___closed__97; +x_979 = l_Lean_Elab_Term_toParserDescrAux___closed__101; x_980 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_980, 0, x_977); lean_ctor_set(x_980, 1, x_978); @@ -9210,11 +9218,11 @@ if (x_998 == 0) { lean_object* x_999; lean_object* x_1000; lean_object* x_1001; lean_object* x_1002; lean_object* x_1003; lean_object* x_1004; lean_object* x_1005; x_999 = lean_ctor_get(x_997, 0); -x_1000 = l_Lean_Elab_Term_toParserDescrAux___closed__104; +x_1000 = l_Lean_Elab_Term_toParserDescrAux___closed__105; x_1001 = l_Lean_addMacroScope(x_999, x_1000, x_995); x_1002 = l_Lean_SourceInfo_inhabited___closed__1; -x_1003 = l_Lean_Elab_Term_toParserDescrAux___closed__103; -x_1004 = l_Lean_Elab_Term_toParserDescrAux___closed__107; +x_1003 = l_Lean_Elab_Term_toParserDescrAux___closed__104; +x_1004 = l_Lean_Elab_Term_toParserDescrAux___closed__108; x_1005 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_1005, 0, x_1002); lean_ctor_set(x_1005, 1, x_1003); @@ -9231,11 +9239,11 @@ x_1007 = lean_ctor_get(x_997, 1); lean_inc(x_1007); lean_inc(x_1006); lean_dec(x_997); -x_1008 = l_Lean_Elab_Term_toParserDescrAux___closed__104; +x_1008 = l_Lean_Elab_Term_toParserDescrAux___closed__105; x_1009 = l_Lean_addMacroScope(x_1006, x_1008, x_995); x_1010 = l_Lean_SourceInfo_inhabited___closed__1; -x_1011 = l_Lean_Elab_Term_toParserDescrAux___closed__103; -x_1012 = l_Lean_Elab_Term_toParserDescrAux___closed__107; +x_1011 = l_Lean_Elab_Term_toParserDescrAux___closed__104; +x_1012 = l_Lean_Elab_Term_toParserDescrAux___closed__108; x_1013 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_1013, 0, x_1010); lean_ctor_set(x_1013, 1, x_1011); @@ -9273,11 +9281,11 @@ if (x_1019 == 0) { lean_object* x_1020; lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; lean_object* x_1024; lean_object* x_1025; lean_object* x_1026; x_1020 = lean_ctor_get(x_1018, 0); -x_1021 = l_Lean_Elab_Term_toParserDescrAux___closed__111; +x_1021 = l_Lean_Elab_Term_toParserDescrAux___closed__112; x_1022 = l_Lean_addMacroScope(x_1020, x_1021, x_1016); x_1023 = l_Lean_SourceInfo_inhabited___closed__1; -x_1024 = l_Lean_Elab_Term_toParserDescrAux___closed__110; -x_1025 = l_Lean_Elab_Term_toParserDescrAux___closed__114; +x_1024 = l_Lean_Elab_Term_toParserDescrAux___closed__111; +x_1025 = l_Lean_Elab_Term_toParserDescrAux___closed__115; x_1026 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_1026, 0, x_1023); lean_ctor_set(x_1026, 1, x_1024); @@ -9294,11 +9302,11 @@ x_1028 = lean_ctor_get(x_1018, 1); lean_inc(x_1028); lean_inc(x_1027); lean_dec(x_1018); -x_1029 = l_Lean_Elab_Term_toParserDescrAux___closed__111; +x_1029 = l_Lean_Elab_Term_toParserDescrAux___closed__112; x_1030 = l_Lean_addMacroScope(x_1027, x_1029, x_1016); x_1031 = l_Lean_SourceInfo_inhabited___closed__1; -x_1032 = l_Lean_Elab_Term_toParserDescrAux___closed__110; -x_1033 = l_Lean_Elab_Term_toParserDescrAux___closed__114; +x_1032 = l_Lean_Elab_Term_toParserDescrAux___closed__111; +x_1033 = l_Lean_Elab_Term_toParserDescrAux___closed__115; x_1034 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_1034, 0, x_1031); lean_ctor_set(x_1034, 1, x_1032); @@ -9336,11 +9344,11 @@ if (x_1040 == 0) { lean_object* x_1041; lean_object* x_1042; lean_object* x_1043; lean_object* x_1044; lean_object* x_1045; lean_object* x_1046; lean_object* x_1047; x_1041 = lean_ctor_get(x_1039, 0); -x_1042 = l_Lean_Elab_Term_toParserDescrAux___closed__118; +x_1042 = l_Lean_Elab_Term_toParserDescrAux___closed__119; x_1043 = l_Lean_addMacroScope(x_1041, x_1042, x_1037); x_1044 = l_Lean_SourceInfo_inhabited___closed__1; -x_1045 = l_Lean_Elab_Term_toParserDescrAux___closed__117; -x_1046 = l_Lean_Elab_Term_toParserDescrAux___closed__121; +x_1045 = l_Lean_Elab_Term_toParserDescrAux___closed__118; +x_1046 = l_Lean_Elab_Term_toParserDescrAux___closed__122; x_1047 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_1047, 0, x_1044); lean_ctor_set(x_1047, 1, x_1045); @@ -9357,11 +9365,11 @@ x_1049 = lean_ctor_get(x_1039, 1); lean_inc(x_1049); lean_inc(x_1048); lean_dec(x_1039); -x_1050 = l_Lean_Elab_Term_toParserDescrAux___closed__118; +x_1050 = l_Lean_Elab_Term_toParserDescrAux___closed__119; x_1051 = l_Lean_addMacroScope(x_1048, x_1050, x_1037); x_1052 = l_Lean_SourceInfo_inhabited___closed__1; -x_1053 = l_Lean_Elab_Term_toParserDescrAux___closed__117; -x_1054 = l_Lean_Elab_Term_toParserDescrAux___closed__121; +x_1053 = l_Lean_Elab_Term_toParserDescrAux___closed__118; +x_1054 = l_Lean_Elab_Term_toParserDescrAux___closed__122; x_1055 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_1055, 0, x_1052); lean_ctor_set(x_1055, 1, x_1053); @@ -9399,11 +9407,11 @@ if (x_1061 == 0) { lean_object* x_1062; lean_object* x_1063; lean_object* x_1064; lean_object* x_1065; lean_object* x_1066; lean_object* x_1067; lean_object* x_1068; x_1062 = lean_ctor_get(x_1060, 0); -x_1063 = l_Lean_Elab_Term_toParserDescrAux___closed__125; +x_1063 = l_Lean_Elab_Term_toParserDescrAux___closed__126; x_1064 = l_Lean_addMacroScope(x_1062, x_1063, x_1058); x_1065 = l_Lean_SourceInfo_inhabited___closed__1; -x_1066 = l_Lean_Elab_Term_toParserDescrAux___closed__124; -x_1067 = l_Lean_Elab_Term_toParserDescrAux___closed__128; +x_1066 = l_Lean_Elab_Term_toParserDescrAux___closed__125; +x_1067 = l_Lean_Elab_Term_toParserDescrAux___closed__129; x_1068 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_1068, 0, x_1065); lean_ctor_set(x_1068, 1, x_1066); @@ -9420,11 +9428,11 @@ x_1070 = lean_ctor_get(x_1060, 1); lean_inc(x_1070); lean_inc(x_1069); lean_dec(x_1060); -x_1071 = l_Lean_Elab_Term_toParserDescrAux___closed__125; +x_1071 = l_Lean_Elab_Term_toParserDescrAux___closed__126; x_1072 = l_Lean_addMacroScope(x_1069, x_1071, x_1058); x_1073 = l_Lean_SourceInfo_inhabited___closed__1; -x_1074 = l_Lean_Elab_Term_toParserDescrAux___closed__124; -x_1075 = l_Lean_Elab_Term_toParserDescrAux___closed__128; +x_1074 = l_Lean_Elab_Term_toParserDescrAux___closed__125; +x_1075 = l_Lean_Elab_Term_toParserDescrAux___closed__129; x_1076 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_1076, 0, x_1073); lean_ctor_set(x_1076, 1, x_1074); @@ -9462,11 +9470,11 @@ if (x_1082 == 0) { lean_object* x_1083; lean_object* x_1084; lean_object* x_1085; lean_object* x_1086; lean_object* x_1087; lean_object* x_1088; lean_object* x_1089; x_1083 = lean_ctor_get(x_1081, 0); -x_1084 = l_Lean_Elab_Term_toParserDescrAux___closed__132; +x_1084 = l_Lean_Elab_Term_toParserDescrAux___closed__133; x_1085 = l_Lean_addMacroScope(x_1083, x_1084, x_1079); x_1086 = l_Lean_SourceInfo_inhabited___closed__1; -x_1087 = l_Lean_Elab_Term_toParserDescrAux___closed__131; -x_1088 = l_Lean_Elab_Term_toParserDescrAux___closed__135; +x_1087 = l_Lean_Elab_Term_toParserDescrAux___closed__132; +x_1088 = l_Lean_Elab_Term_toParserDescrAux___closed__136; x_1089 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_1089, 0, x_1086); lean_ctor_set(x_1089, 1, x_1087); @@ -9483,11 +9491,11 @@ x_1091 = lean_ctor_get(x_1081, 1); lean_inc(x_1091); lean_inc(x_1090); lean_dec(x_1081); -x_1092 = l_Lean_Elab_Term_toParserDescrAux___closed__132; +x_1092 = l_Lean_Elab_Term_toParserDescrAux___closed__133; x_1093 = l_Lean_addMacroScope(x_1090, x_1092, x_1079); x_1094 = l_Lean_SourceInfo_inhabited___closed__1; -x_1095 = l_Lean_Elab_Term_toParserDescrAux___closed__131; -x_1096 = l_Lean_Elab_Term_toParserDescrAux___closed__135; +x_1095 = l_Lean_Elab_Term_toParserDescrAux___closed__132; +x_1096 = l_Lean_Elab_Term_toParserDescrAux___closed__136; x_1097 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_1097, 0, x_1094); lean_ctor_set(x_1097, 1, x_1095); @@ -9552,11 +9560,11 @@ if (x_1109 == 0) { lean_object* x_1110; lean_object* x_1111; lean_object* x_1112; lean_object* x_1113; lean_object* x_1114; lean_object* x_1115; lean_object* x_1116; lean_object* x_1117; lean_object* x_1118; lean_object* x_1119; lean_object* x_1120; lean_object* x_1121; lean_object* x_1122; lean_object* x_1123; lean_object* x_1124; lean_object* x_1125; x_1110 = lean_ctor_get(x_1108, 0); -x_1111 = l_Lean_Elab_Term_toParserDescrAux___closed__139; +x_1111 = l_Lean_Elab_Term_toParserDescrAux___closed__140; x_1112 = l_Lean_addMacroScope(x_1110, x_1111, x_1106); x_1113 = l_Lean_SourceInfo_inhabited___closed__1; -x_1114 = l_Lean_Elab_Term_toParserDescrAux___closed__138; -x_1115 = l_Lean_Elab_Term_toParserDescrAux___closed__142; +x_1114 = l_Lean_Elab_Term_toParserDescrAux___closed__139; +x_1115 = l_Lean_Elab_Term_toParserDescrAux___closed__143; x_1116 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_1116, 0, x_1113); lean_ctor_set(x_1116, 1, x_1114); @@ -9587,11 +9595,11 @@ x_1127 = lean_ctor_get(x_1108, 1); lean_inc(x_1127); lean_inc(x_1126); lean_dec(x_1108); -x_1128 = l_Lean_Elab_Term_toParserDescrAux___closed__139; +x_1128 = l_Lean_Elab_Term_toParserDescrAux___closed__140; x_1129 = l_Lean_addMacroScope(x_1126, x_1128, x_1106); x_1130 = l_Lean_SourceInfo_inhabited___closed__1; -x_1131 = l_Lean_Elab_Term_toParserDescrAux___closed__138; -x_1132 = l_Lean_Elab_Term_toParserDescrAux___closed__142; +x_1131 = l_Lean_Elab_Term_toParserDescrAux___closed__139; +x_1132 = l_Lean_Elab_Term_toParserDescrAux___closed__143; x_1133 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_1133, 0, x_1130); lean_ctor_set(x_1133, 1, x_1131); @@ -9641,13 +9649,13 @@ if (x_1149 == 0) { lean_object* x_1150; lean_object* x_1151; lean_object* x_1152; lean_object* x_1153; lean_object* x_1154; lean_object* x_1155; lean_object* x_1156; lean_object* x_1157; lean_object* x_1158; lean_object* x_1159; lean_object* x_1160; lean_object* x_1161; lean_object* x_1162; lean_object* x_1163; lean_object* x_1164; lean_object* x_1165; lean_object* x_1166; lean_object* x_1167; lean_object* x_1168; lean_object* x_1169; lean_object* x_1170; lean_object* x_1171; x_1150 = lean_ctor_get(x_1148, 0); -x_1151 = l_Lean_Elab_Term_toParserDescrAux___closed__147; +x_1151 = l_Lean_Elab_Term_toParserDescrAux___closed__148; lean_inc(x_1146); lean_inc(x_1150); x_1152 = l_Lean_addMacroScope(x_1150, x_1151, x_1146); x_1153 = l_Lean_SourceInfo_inhabited___closed__1; -x_1154 = l_Lean_Elab_Term_toParserDescrAux___closed__145; -x_1155 = l_Lean_Elab_Term_toParserDescrAux___closed__150; +x_1154 = l_Lean_Elab_Term_toParserDescrAux___closed__146; +x_1155 = l_Lean_Elab_Term_toParserDescrAux___closed__151; x_1156 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_1156, 0, x_1153); lean_ctor_set(x_1156, 1, x_1154); @@ -9658,10 +9666,10 @@ x_1158 = lean_array_push(x_1157, x_1156); x_1159 = l_Lean_mkStxStrLit(x_1144, x_1153); lean_dec(x_1144); x_1160 = lean_array_push(x_1157, x_1159); -x_1161 = l_Lean_Elab_Term_toParserDescrAux___closed__153; +x_1161 = l_Lean_Elab_Term_toParserDescrAux___closed__154; x_1162 = l_Lean_addMacroScope(x_1150, x_1161, x_1146); -x_1163 = l_Lean_Elab_Term_toParserDescrAux___closed__152; -x_1164 = l_Lean_Elab_Term_toParserDescrAux___closed__157; +x_1163 = l_Lean_Elab_Term_toParserDescrAux___closed__153; +x_1164 = l_Lean_Elab_Term_toParserDescrAux___closed__158; x_1165 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_1165, 0, x_1153); lean_ctor_set(x_1165, 1, x_1163); @@ -9688,13 +9696,13 @@ x_1173 = lean_ctor_get(x_1148, 1); lean_inc(x_1173); lean_inc(x_1172); lean_dec(x_1148); -x_1174 = l_Lean_Elab_Term_toParserDescrAux___closed__147; +x_1174 = l_Lean_Elab_Term_toParserDescrAux___closed__148; lean_inc(x_1146); lean_inc(x_1172); x_1175 = l_Lean_addMacroScope(x_1172, x_1174, x_1146); x_1176 = l_Lean_SourceInfo_inhabited___closed__1; -x_1177 = l_Lean_Elab_Term_toParserDescrAux___closed__145; -x_1178 = l_Lean_Elab_Term_toParserDescrAux___closed__150; +x_1177 = l_Lean_Elab_Term_toParserDescrAux___closed__146; +x_1178 = l_Lean_Elab_Term_toParserDescrAux___closed__151; x_1179 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_1179, 0, x_1176); lean_ctor_set(x_1179, 1, x_1177); @@ -9705,10 +9713,10 @@ x_1181 = lean_array_push(x_1180, x_1179); x_1182 = l_Lean_mkStxStrLit(x_1144, x_1176); lean_dec(x_1144); x_1183 = lean_array_push(x_1180, x_1182); -x_1184 = l_Lean_Elab_Term_toParserDescrAux___closed__153; +x_1184 = l_Lean_Elab_Term_toParserDescrAux___closed__154; x_1185 = l_Lean_addMacroScope(x_1172, x_1184, x_1146); -x_1186 = l_Lean_Elab_Term_toParserDescrAux___closed__152; -x_1187 = l_Lean_Elab_Term_toParserDescrAux___closed__157; +x_1186 = l_Lean_Elab_Term_toParserDescrAux___closed__153; +x_1187 = l_Lean_Elab_Term_toParserDescrAux___closed__158; x_1188 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_1188, 0, x_1176); lean_ctor_set(x_1188, 1, x_1186); @@ -9804,11 +9812,11 @@ x_1264 = l_Lean_Syntax_getArg(x_1, x_1263); lean_dec(x_1); x_1265 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_1265, 0, x_1199); -x_1266 = l_Lean_Elab_Term_toParserDescrAux___closed__166; +x_1266 = l_Lean_Elab_Term_toParserDescrAux___closed__167; x_1267 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_1267, 0, x_1266); lean_ctor_set(x_1267, 1, x_1265); -x_1268 = l_Lean_Elab_Term_toParserDescrAux___closed__168; +x_1268 = l_Lean_Elab_Term_toParserDescrAux___closed__169; x_1269 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_1269, 0, x_1267); lean_ctor_set(x_1269, 1, x_1268); @@ -9860,7 +9868,7 @@ lean_dec(x_1203); x_1277 = lean_unsigned_to_nat(3u); x_1278 = l_Lean_Syntax_getArg(x_1, x_1277); lean_dec(x_1); -x_1279 = l_Lean_Elab_Term_toParserDescrAux___closed__171; +x_1279 = l_Lean_Elab_Term_toParserDescrAux___closed__172; x_1280 = l_Lean_throwErrorAt___at_Lean_Elab_Term_checkLeftRec___spec__1___rarg(x_1278, x_1279, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1260); lean_dec(x_9); lean_dec(x_7); @@ -9901,7 +9909,7 @@ lean_dec(x_1); x_1287 = l_List_map___main___at_Lean_Elab_Term_toParserDescrAux___spec__6(x_1262); x_1288 = l_Lean_MessageData_ofList(x_1287); lean_dec(x_1287); -x_1289 = l_Lean_Elab_Term_toParserDescrAux___closed__173; +x_1289 = l_Lean_Elab_Term_toParserDescrAux___closed__174; x_1290 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_1290, 0, x_1289); lean_ctor_set(x_1290, 1, x_1288); @@ -9999,11 +10007,11 @@ if (x_1213 == 0) { lean_object* x_1214; lean_object* x_1215; lean_object* x_1216; lean_object* x_1217; lean_object* x_1218; lean_object* x_1219; lean_object* x_1220; lean_object* x_1221; lean_object* x_1222; lean_object* x_1223; lean_object* x_1224; lean_object* x_1225; lean_object* x_1226; lean_object* x_1227; lean_object* x_1228; lean_object* x_1229; lean_object* x_1230; lean_object* x_1231; lean_object* x_1232; lean_object* x_1233; x_1214 = lean_ctor_get(x_1212, 0); -x_1215 = l_Lean_Elab_Term_toParserDescrAux___closed__161; +x_1215 = l_Lean_Elab_Term_toParserDescrAux___closed__162; x_1216 = l_Lean_addMacroScope(x_1214, x_1215, x_1210); x_1217 = l_Lean_SourceInfo_inhabited___closed__1; -x_1218 = l_Lean_Elab_Term_toParserDescrAux___closed__160; -x_1219 = l_Lean_Elab_Term_toParserDescrAux___closed__164; +x_1218 = l_Lean_Elab_Term_toParserDescrAux___closed__161; +x_1219 = l_Lean_Elab_Term_toParserDescrAux___closed__165; x_1220 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_1220, 0, x_1217); lean_ctor_set(x_1220, 1, x_1218); @@ -10037,11 +10045,11 @@ x_1235 = lean_ctor_get(x_1212, 1); lean_inc(x_1235); lean_inc(x_1234); lean_dec(x_1212); -x_1236 = l_Lean_Elab_Term_toParserDescrAux___closed__161; +x_1236 = l_Lean_Elab_Term_toParserDescrAux___closed__162; x_1237 = l_Lean_addMacroScope(x_1234, x_1236, x_1210); x_1238 = l_Lean_SourceInfo_inhabited___closed__1; -x_1239 = l_Lean_Elab_Term_toParserDescrAux___closed__160; -x_1240 = l_Lean_Elab_Term_toParserDescrAux___closed__164; +x_1239 = l_Lean_Elab_Term_toParserDescrAux___closed__161; +x_1240 = l_Lean_Elab_Term_toParserDescrAux___closed__165; x_1241 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_1241, 0, x_1238); lean_ctor_set(x_1241, 1, x_1239); @@ -10075,7 +10083,7 @@ else { lean_object* x_1299; lean_object* x_1300; lean_dec(x_1199); -x_1299 = l_Lean_Elab_Term_toParserDescrAux___closed__176; +x_1299 = l_Lean_Elab_Term_toParserDescrAux___closed__177; x_1300 = l_Lean_throwErrorAt___at_Lean_Elab_Term_checkLeftRec___spec__1___rarg(x_1, x_1299, 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); @@ -10222,7 +10230,7 @@ else { lean_object* x_1336; lean_object* x_1337; uint8_t x_1338; lean_dec(x_1312); -x_1336 = l_Lean_Elab_Term_toParserDescrAux___closed__176; +x_1336 = l_Lean_Elab_Term_toParserDescrAux___closed__177; x_1337 = l_Lean_throwErrorAt___at_Lean_Elab_Term_checkLeftRec___spec__1___rarg(x_1, x_1336, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1330); lean_dec(x_9); lean_dec(x_7); @@ -11040,7 +11048,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__140; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__141; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); @@ -11095,7 +11103,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__162; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__163; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); @@ -11309,7 +11317,7 @@ lean_ctor_set(x_82, 1, x_80); lean_ctor_set(x_82, 2, x_79); lean_ctor_set(x_82, 3, x_81); x_83 = lean_array_push(x_24, x_82); -x_84 = l_Lean_Elab_Term_toParserDescrAux___closed__140; +x_84 = l_Lean_Elab_Term_toParserDescrAux___closed__141; lean_inc(x_13); lean_inc(x_16); x_85 = l_Lean_addMacroScope(x_16, x_84, x_13); @@ -11347,7 +11355,7 @@ x_104 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_104, 0, x_103); lean_ctor_set(x_104, 1, x_102); x_105 = lean_array_push(x_24, x_104); -x_106 = l_Lean_Elab_Term_toParserDescrAux___closed__162; +x_106 = l_Lean_Elab_Term_toParserDescrAux___closed__163; x_107 = l_Lean_addMacroScope(x_16, x_106, x_13); x_108 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__49; x_109 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__51; @@ -13666,7 +13674,7 @@ static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__1() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__165; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__166; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; @@ -24219,6 +24227,8 @@ l_Lean_Elab_Term_toParserDescrAux___closed__175 = _init_l_Lean_Elab_Term_toParse lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__175); l_Lean_Elab_Term_toParserDescrAux___closed__176 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__176(); lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__176); +l_Lean_Elab_Term_toParserDescrAux___closed__177 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__177(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__177); l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_getCatSuffix___closed__1 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_getCatSuffix___closed__1(); lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_getCatSuffix___closed__1); l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_getCatSuffix___closed__2 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_getCatSuffix___closed__2(); diff --git a/stage0/stdlib/Lean/Parser/Basic.c b/stage0/stdlib/Lean/Parser/Basic.c index 14c76c406c..c03c453aae 100644 --- a/stage0/stdlib/Lean/Parser/Basic.c +++ b/stage0/stdlib/Lean/Parser/Basic.c @@ -54,6 +54,7 @@ lean_object* l_Lean_Parser_notFollowedByFn___closed__1; lean_object* l_Lean_Syntax_foldSepRevArgsM(lean_object*, lean_object*); extern lean_object* l_Lean_nullKind; lean_object* l_Lean_Parser_leadPrec; +lean_object* l_Lean_Parser_notFollowedByFn___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_strLitNoAntiquot; lean_object* l_Lean_Parser_octalNumberFn___closed__1; lean_object* l_Lean_Parser_many(lean_object*); @@ -153,7 +154,7 @@ extern uint32_t l_Lean_idEndEscape; lean_object* l_Lean_Parser_mkAntiquot___closed__9; lean_object* l_Lean_Parser_antiquotNestedExpr___elambda__1___closed__8; lean_object* l_Lean_Parser_pushNone___elambda__1___boxed(lean_object*); -lean_object* l_Lean_Parser_notFollowedByFn(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_notFollowedByFn(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldSepByM(lean_object*, lean_object*); lean_object* l_Lean_Parser_orelseFn(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_find___main___at_Lean_Parser_indexed___spec__1___rarg___boxed(lean_object*, lean_object*); @@ -174,7 +175,7 @@ lean_object* l_Lean_Parser_mkAntiquot___closed__27; lean_object* l_Lean_Parser_tokenFn(lean_object*, lean_object*); lean_object* l_Lean_Parser_withoutForbidden___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_mkAtomicInfo(lean_object*); -lean_object* l_Lean_Parser_notFollowedBy(lean_object*); +lean_object* l_Lean_Parser_notFollowedBy(lean_object*, lean_object*); lean_object* l_Lean_Parser_satisfyFn___at_Lean_Parser_binNumberFn___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_charLit___elambda__1___closed__1; lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*); @@ -560,6 +561,7 @@ lean_object* l_Lean_Parser_nameLit___elambda__1___closed__1; lean_object* l_Lean_Parser_mkAntiquot___elambda__2(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_EnvExtensionInterfaceUnsafe_Ext_inhabitedExt___closed__2; lean_object* l_Lean_Parser_checkOutsideQuotFn(lean_object*, lean_object*); +lean_object* l_Lean_Parser_notSymbol(lean_object*); lean_object* l_Lean_Parser_categoryParserFn(lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlStepMAux___main___at_Array_foldSepByM___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_checkInsideQuot___closed__1; @@ -5046,58 +5048,69 @@ static lean_object* _init_l_Lean_Parser_notFollowedByFn___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string("notFollowedBy"); +x_1 = lean_mk_string("unexpected "); return x_1; } } -lean_object* l_Lean_Parser_notFollowedByFn(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Parser_notFollowedByFn(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -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_3, 0); -lean_inc(x_4); -x_5 = lean_array_get_size(x_4); -lean_dec(x_4); -x_6 = lean_ctor_get(x_3, 1); -lean_inc(x_6); -x_7 = lean_apply_2(x_1, x_2, x_3); -x_8 = lean_ctor_get(x_7, 3); -lean_inc(x_8); -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = l_Lean_Parser_ParserState_restore(x_7, x_5, x_6); +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = lean_array_get_size(x_5); lean_dec(x_5); -x_10 = l_Lean_Parser_notFollowedByFn___closed__1; -x_11 = l_Lean_Parser_ParserState_mkError(x_9, x_10); -return x_11; +x_7 = lean_ctor_get(x_4, 1); +lean_inc(x_7); +x_8 = lean_apply_2(x_1, x_3, x_4); +x_9 = lean_ctor_get(x_8, 3); +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; +x_10 = l_Lean_Parser_ParserState_restore(x_8, x_6, x_7); +lean_dec(x_6); +x_11 = l_Lean_Parser_notFollowedByFn___closed__1; +x_12 = lean_string_append(x_11, x_2); +x_13 = l_Lean_Parser_ParserState_mkUnexpectedError(x_10, x_12); +return x_13; } else { -lean_object* x_12; -lean_dec(x_8); -x_12 = l_Lean_Parser_ParserState_restore(x_7, x_5, x_6); -lean_dec(x_5); -return x_12; +lean_object* x_14; +lean_dec(x_9); +x_14 = l_Lean_Parser_ParserState_restore(x_8, x_6, x_7); +lean_dec(x_6); +return x_14; } } } -lean_object* l_Lean_Parser_notFollowedBy(lean_object* x_1) { +lean_object* l_Lean_Parser_notFollowedByFn___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_2 = lean_ctor_get(x_1, 1); -lean_inc(x_2); -lean_dec(x_1); -x_3 = lean_alloc_closure((void*)(l_Lean_Parser_notFollowedByFn), 3, 1); -lean_closure_set(x_3, 0, x_2); -x_4 = l_Lean_Parser_Parser_inhabited___closed__1; -x_5 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_5, 0, x_4); -lean_ctor_set(x_5, 1, x_3); +lean_object* x_5; +x_5 = l_Lean_Parser_notFollowedByFn(x_1, x_2, x_3, x_4); +lean_dec(x_2); return x_5; } } +lean_object* l_Lean_Parser_notFollowedBy(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, 1); +lean_inc(x_3); +lean_dec(x_1); +x_4 = lean_alloc_closure((void*)(l_Lean_Parser_notFollowedByFn___boxed), 4, 2); +lean_closure_set(x_4, 0, x_3); +lean_closure_set(x_4, 1, x_2); +x_5 = l_Lean_Parser_Parser_inhabited___closed__1; +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_5); +lean_ctor_set(x_6, 1, x_4); +return x_6; +} +} static lean_object* _init_l_Lean_Parser_manyAux___main___closed__1() { _start: { @@ -10133,6 +10146,23 @@ lean_dec(x_1); return x_2; } } +lean_object* l_Lean_Parser_notSymbol(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_2 = l_String_trim(x_1); +x_3 = lean_alloc_closure((void*)(l_Lean_Parser_symbolFn___boxed), 3, 1); +lean_closure_set(x_3, 0, x_2); +x_4 = lean_alloc_closure((void*)(l_Lean_Parser_notFollowedByFn___boxed), 4, 2); +lean_closure_set(x_4, 0, x_3); +lean_closure_set(x_4, 1, x_1); +x_5 = l_Lean_Parser_Parser_inhabited___closed__1; +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_5); +lean_ctor_set(x_6, 1, x_4); +return x_6; +} +} lean_object* l_Lean_Parser_nonReservedSymbolFnAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { diff --git a/stage0/stdlib/Lean/Parser/Command.c b/stage0/stdlib/Lean/Parser/Command.c index ab90c85988..1584a39787 100644 --- a/stage0/stdlib/Lean/Parser/Command.c +++ b/stage0/stdlib/Lean/Parser/Command.c @@ -110,7 +110,6 @@ lean_object* l_Lean_Parser_andthenInfo(lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_mutual_formatter___closed__2; lean_object* l_Lean_Parser_Command_structFields_parenthesizer___closed__7; lean_object* l_Lean_Parser_Command_structExplicitBinder_parenthesizer___closed__8; -lean_object* l_Lean_Parser_ParserState_mkError(lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_instance___closed__4; lean_object* l_Lean_Parser_Command_ctor___elambda__1___closed__4; lean_object* l___regBuiltinParser_Lean_Parser_Command_variable(lean_object*); @@ -526,6 +525,7 @@ lean_object* l_Lean_PrettyPrinter_Parenthesizer_skip_parenthesizer___boxed(lean_ lean_object* l_Lean_Parser_Command_initialize___closed__7; lean_object* l_Lean_Parser_Command_print_formatter___closed__4; lean_object* l_Lean_Parser_Command_instance___closed__8; +lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__3; lean_object* l_Lean_Parser_Command_structure_parenthesizer___closed__4; lean_object* l_Lean_Parser_Command_inferMod___closed__4; lean_object* l_Lean_Parser_Command_openOnly___elambda__1(lean_object*, lean_object*); @@ -721,7 +721,6 @@ lean_object* l_Lean_Parser_Command_section_parenthesizer___closed__2; lean_object* l_Lean_Parser_Command_set__option___elambda__1___closed__8; lean_object* l_Lean_Parser_Command_declValSimple___elambda__1___closed__1; lean_object* l_Lean_Parser_Command_axiom_parenthesizer___closed__2; -lean_object* l_Lean_Parser_Command_mutual___elambda__1___closed__12; lean_object* l_Lean_Parser_Command_inferMod_parenthesizer___closed__2; lean_object* l_Lean_Parser_Command_structInstBinder_formatter___closed__2; lean_object* l_Lean_Parser_Command_structImplicitBinder_parenthesizer___closed__4; @@ -745,6 +744,7 @@ lean_object* l_Lean_Parser_Command_unsafe_formatter___closed__2; lean_object* l_Lean_Parser_Command_inferMod___closed__5; lean_object* l_Lean_Parser_Command_variables___closed__5; lean_object* l___regBuiltin_Lean_Parser_Command_universes_parenthesizer(lean_object*); +lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__5; lean_object* l_Lean_Parser_Command_synth; lean_object* l_Lean_Parser_Command_openHiding___elambda__1___closed__7; lean_object* l___regBuiltin_Lean_Parser_Command_synth_formatter(lean_object*); @@ -908,6 +908,7 @@ lean_object* l_Lean_Parser_Term_quot___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_abbrev___elambda__1___closed__8; lean_object* l_Lean_Parser_Command_openHiding___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_docComment___elambda__1___closed__1; +lean_object* l_Lean_Parser_notSymbol_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_universe___elambda__1___closed__5; lean_object* l_Lean_Parser_Command_mutual_formatter___closed__5; lean_object* l_Lean_Parser_Command_openRenamingItem___elambda__1___closed__3; @@ -948,7 +949,6 @@ lean_object* l_Lean_Parser_Command_structureTk___elambda__1___closed__5; lean_object* l_Lean_Parser_Command_structFields_parenthesizer___closed__4; uint8_t l_Lean_Parser_tryAnti(lean_object*, lean_object*); lean_object* l___regBuiltinParser_Lean_Parser_Command_exit(lean_object*); -lean_object* l_Lean_Parser_Command_mutual___elambda__1___closed__11; extern lean_object* l_Lean_Parser_Level_ident_parenthesizer___closed__1; lean_object* l_Lean_Parser_Command_namespace___elambda__1___closed__8; lean_object* l_Lean_Parser_Command_inductive___closed__9; @@ -1376,6 +1376,7 @@ lean_object* l_Lean_Parser_Command_declValSimple_formatter___closed__1; lean_object* l_Lean_Parser_Command_check___elambda__1___closed__8; lean_object* l_Lean_Parser_Command_printAxioms___elambda__1___closed__1; lean_object* l_Lean_Parser_Command_eval___elambda__1___closed__8; +lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__4; lean_object* l_Lean_Parser_Command_docComment_formatter___closed__5; lean_object* l_Lean_Parser_Command_docComment___elambda__1___closed__5; lean_object* l_Lean_Parser_Command_example___elambda__1___closed__4; @@ -1634,7 +1635,6 @@ lean_object* l_Lean_Parser_Command_structImplicitBinder___elambda__1(lean_object lean_object* l_Lean_Parser_Command_ctor___closed__2; lean_object* l_Lean_Parser_Term_quot; lean_object* l_Lean_Parser_Command_structure___elambda__1___closed__1; -lean_object* l_Lean_Parser_Command_mutual___elambda__1___closed__10; lean_object* l_Lean_Parser_commandParser_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_structCtor___closed__3; lean_object* l_Lean_Parser_Command_synth_formatter___closed__1; @@ -1713,6 +1713,7 @@ lean_object* l_Lean_Parser_Command_structExplicitBinder_formatter___closed__5; lean_object* l_Lean_Parser_Command_structInstBinder_formatter___closed__3; lean_object* l_Lean_Parser_Command_structCtor___elambda__1___closed__7; extern lean_object* l_Lean_Parser_epsilonInfo; +lean_object* l_Lean_Parser_notSymbol_parenthesizer___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_def___closed__1; lean_object* l_Lean_Parser_Command_initialize___elambda__1___closed__7; lean_object* l_Lean_Parser_Command_export___elambda__1___closed__4; @@ -1775,6 +1776,7 @@ lean_object* l_Lean_Parser_Command_example_formatter___closed__2; lean_object* l_Lean_Parser_Command_constant___elambda__1___closed__8; lean_object* l_Lean_Parser_Command_attribute___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_optDeclSig_parenthesizer___closed__1; +lean_object* l_Lean_Parser_notSymbol_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_structureTk___elambda__1___closed__8; lean_object* l_Lean_Parser_Command_in_parenthesizer___closed__1; lean_object* l_Lean_Parser_Command_protected_parenthesizer___closed__1; @@ -1996,7 +1998,6 @@ lean_object* l_Lean_Parser_Command_partial; lean_object* l_Lean_Parser_Command_declId___elambda__1___closed__4; lean_object* l_Lean_Parser_Command_declModifiers___closed__11; extern lean_object* l_Lean_Parser_Term_structInstArrayRef_formatter___closed__2; -lean_object* l_Lean_Parser_Command_mutual___elambda__1___closed__13; lean_object* l_Lean_Parser_Command_set__option_formatter___closed__2; lean_object* l_Lean_Parser_Command_end___elambda__1___closed__5; lean_object* l_Lean_Parser_Command_variable___elambda__1___closed__3; @@ -2046,6 +2047,7 @@ lean_object* l_Lean_Parser_Command_constant___elambda__1(lean_object*, lean_obje lean_object* l_Lean_Parser_Command_inductive_formatter___closed__5; lean_object* l_Lean_Parser_Command_structure___elambda__1___closed__4; lean_object* l_Lean_Parser_Command_check__failure_formatter___closed__3; +lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__2; lean_object* l_Lean_Parser_Command_set__option_formatter___closed__5; lean_object* l_Lean_Parser_Command_check___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_quot_parenthesizer___closed__2; @@ -2068,7 +2070,6 @@ lean_object* l_Lean_Parser_Command_attribute_formatter___closed__7; lean_object* l_Lean_Parser_Command_attribute___elambda__1___closed__14; lean_object* l_Lean_Parser_Command_inductive_formatter___closed__7; lean_object* l_Lean_Parser_Command_classInductive_formatter___closed__4; -lean_object* l_Lean_PrettyPrinter_Parenthesizer_notFollowedBy_parenthesizer___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__9; lean_object* l___regBuiltin_Lean_Parser_Command_declaration_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Command_namespace_formatter___closed__2; @@ -2111,6 +2112,7 @@ lean_object* l_Lean_PrettyPrinter_Parenthesizer_many1_parenthesizer(lean_object* lean_object* l_Lean_Parser_Command_inductive_parenthesizer___closed__6; lean_object* l_Lean_Parser_Command_check__failure; lean_object* l_Lean_Parser_Command_printAxioms___elambda__1___closed__2; +lean_object* l_Lean_Parser_notSymbol_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_openRenaming_parenthesizer___closed__5; lean_object* l_Lean_Parser_Command_check__failure___elambda__1___closed__5; lean_object* l_Lean_Parser_Command_structFields_formatter___closed__8; @@ -2185,7 +2187,6 @@ lean_object* l_Lean_Parser_Command_structure___closed__5; lean_object* l_Lean_Parser_Command_declModifiers_formatter___closed__9; lean_object* l_Lean_Parser_Command_abbrev___closed__6; lean_object* l_Lean_Parser_Command_open___closed__9; -lean_object* l_Lean_PrettyPrinter_Formatter_notFollowedBy_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_example___closed__2; lean_object* l_Lean_Parser_Command_declValEqns_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_mutual___closed__5; @@ -2261,6 +2262,7 @@ lean_object* l_Lean_Parser_Command_partial_formatter___closed__1; lean_object* l_Lean_Parser_Command_openHiding_formatter___closed__4; lean_object* l___regBuiltin_Lean_Parser_Command_initialize_parenthesizer(lean_object*); extern lean_object* l_Lean_Parser_Term_haveAssign_formatter___closed__2; +lean_object* l_Lean_Parser_notSymbol_parenthesizer___rarg(lean_object*); lean_object* l_Lean_Parser_Command_universes___closed__3; lean_object* l_Lean_Parser_Command_declModifiers_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_structInstBinder_formatter___closed__4; @@ -2310,12 +2312,14 @@ lean_object* l_Lean_Parser_Command_declId_parenthesizer___closed__1; lean_object* l_Lean_Parser_Command_declValEqns; lean_object* l_Lean_Parser_Command_declModifiers___closed__9; lean_object* l_Lean_Parser_Command_declModifiers_formatter___closed__1; +lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__1; lean_object* l_Lean_Parser_Command_docComment_formatter___closed__6; lean_object* l_Lean_Parser_Command_structure_formatter___closed__18; lean_object* l_Lean_Parser_mkAntiquot_parenthesizer___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_declaration___closed__14; lean_object* l_Lean_Parser_Command_example___closed__1; lean_object* l_Lean_Parser_Command_protected_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_notSymbol_formatter___rarg(lean_object*); lean_object* l_Lean_Parser_Command_constant_formatter___closed__6; lean_object* l_Lean_PrettyPrinter_Parenthesizer_try_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_open_formatter___closed__2; @@ -49624,10 +49628,61 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } +static lean_object* _init_l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Command_end___elambda__1___closed__1; +x_2 = l_String_trim(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_notFollowedByFn___closed__1; +x_2 = l_Lean_Parser_Command_end___elambda__1___closed__1; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Char_HasRepr___closed__1; +x_2 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__1; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__3; +x_2 = l_Char_HasRepr___closed__1; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__4; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_24; lean_object* x_25; +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_24; lean_object* x_31; lean_object* x_32; x_3 = lean_ctor_get(x_2, 0); lean_inc(x_3); x_4 = lean_array_get_size(x_3); @@ -49635,27 +49690,60 @@ lean_dec(x_3); x_5 = lean_ctor_get(x_2, 1); lean_inc(x_5); lean_inc(x_1); -x_24 = l_Lean_Parser_Command_end___elambda__1(x_1, x_2); -x_25 = lean_ctor_get(x_24, 3); -lean_inc(x_25); -if (lean_obj_tag(x_25) == 0) +x_31 = l_Lean_Parser_tokenFn(x_1, x_2); +x_32 = lean_ctor_get(x_31, 3); +lean_inc(x_32); +if (lean_obj_tag(x_32) == 0) { -lean_object* x_26; lean_object* x_27; lean_object* x_28; +lean_object* x_33; lean_object* x_34; +x_33 = lean_ctor_get(x_31, 0); +lean_inc(x_33); +x_34 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_33); +lean_dec(x_33); +if (lean_obj_tag(x_34) == 2) +{ +lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_35 = lean_ctor_get(x_34, 1); +lean_inc(x_35); +lean_dec(x_34); +x_36 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__1; +x_37 = lean_string_dec_eq(x_35, x_36); +lean_dec(x_35); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; +x_38 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__5; lean_inc(x_5); -x_26 = l_Lean_Parser_ParserState_restore(x_24, x_4, x_5); -x_27 = l_Lean_Parser_notFollowedByFn___closed__1; -x_28 = l_Lean_Parser_ParserState_mkError(x_26, x_27); -x_6 = x_28; -goto block_23; +x_39 = l_Lean_Parser_ParserState_mkErrorsAt(x_31, x_38, x_5); +x_24 = x_39; +goto block_30; } else { -lean_object* x_29; -lean_dec(x_25); +x_24 = x_31; +goto block_30; +} +} +else +{ +lean_object* x_40; lean_object* x_41; +lean_dec(x_34); +x_40 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__5; lean_inc(x_5); -x_29 = l_Lean_Parser_ParserState_restore(x_24, x_4, x_5); -x_6 = x_29; -goto block_23; +x_41 = l_Lean_Parser_ParserState_mkErrorsAt(x_31, x_40, x_5); +x_24 = x_41; +goto block_30; +} +} +else +{ +lean_object* x_42; lean_object* x_43; +lean_dec(x_32); +x_42 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__5; +lean_inc(x_5); +x_43 = l_Lean_Parser_ParserState_mkErrorsAt(x_31, x_42, x_5); +x_24 = x_43; +goto block_30; } block_23: { @@ -49742,6 +49830,31 @@ return x_22; } } } +block_30: +{ +lean_object* x_25; +x_25 = lean_ctor_get(x_24, 3); +lean_inc(x_25); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +lean_inc(x_5); +x_26 = l_Lean_Parser_ParserState_restore(x_24, x_4, x_5); +x_27 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__2; +x_28 = l_Lean_Parser_ParserState_mkUnexpectedError(x_26, x_27); +x_6 = x_28; +goto block_23; +} +else +{ +lean_object* x_29; +lean_dec(x_25); +lean_inc(x_5); +x_29 = l_Lean_Parser_ParserState_restore(x_24, x_4, x_5); +x_6 = x_29; +goto block_23; +} +} } } static lean_object* _init_l_Lean_Parser_Command_mutual___elambda__1___closed__1() { @@ -49803,18 +49916,19 @@ return x_2; static lean_object* _init_l_Lean_Parser_Command_mutual___elambda__1___closed__7() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Command_end___elambda__1___closed__1; -x_2 = l_String_trim(x_1); -return x_2; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Char_HasRepr___closed__1; +x_2 = l_Lean_Parser_Command_mutual___elambda__1___closed__6; +x_3 = lean_string_append(x_1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Parser_Command_mutual___elambda__1___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Char_HasRepr___closed__1; -x_2 = l_Lean_Parser_Command_mutual___elambda__1___closed__7; +x_1 = l_Lean_Parser_Command_mutual___elambda__1___closed__7; +x_2 = l_Char_HasRepr___closed__1; x_3 = lean_string_append(x_1, x_2); return x_3; } @@ -49823,50 +49937,8 @@ static lean_object* _init_l_Lean_Parser_Command_mutual___elambda__1___closed__9( _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_mutual___elambda__1___closed__8; -x_2 = l_Char_HasRepr___closed__1; -x_3 = lean_string_append(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Command_mutual___elambda__1___closed__10() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Command_mutual___elambda__1___closed__9; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Command_mutual___elambda__1___closed__11() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Char_HasRepr___closed__1; -x_2 = l_Lean_Parser_Command_mutual___elambda__1___closed__6; -x_3 = lean_string_append(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Command_mutual___elambda__1___closed__12() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_mutual___elambda__1___closed__11; -x_2 = l_Char_HasRepr___closed__1; -x_3 = lean_string_append(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Command_mutual___elambda__1___closed__13() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Parser_Command_mutual___elambda__1___closed__12; +x_2 = l_Lean_Parser_Command_mutual___elambda__1___closed__8; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); @@ -49893,66 +49965,66 @@ x_8 = lean_ctor_get(x_7, 3); 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_38; lean_object* x_63; lean_object* x_64; lean_object* x_65; +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_38; lean_object* x_77; lean_object* x_78; lean_object* x_79; x_9 = lean_ctor_get(x_7, 0); lean_inc(x_9); x_10 = lean_array_get_size(x_9); lean_dec(x_9); -x_63 = lean_ctor_get(x_7, 1); -lean_inc(x_63); +x_77 = lean_ctor_get(x_7, 1); +lean_inc(x_77); lean_inc(x_1); -x_64 = l_Lean_Parser_tokenFn(x_1, x_7); -x_65 = lean_ctor_get(x_64, 3); -lean_inc(x_65); -if (lean_obj_tag(x_65) == 0) +x_78 = l_Lean_Parser_tokenFn(x_1, x_7); +x_79 = lean_ctor_get(x_78, 3); +lean_inc(x_79); +if (lean_obj_tag(x_79) == 0) { -lean_object* x_66; lean_object* x_67; -x_66 = lean_ctor_get(x_64, 0); -lean_inc(x_66); -x_67 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_66); -lean_dec(x_66); -if (lean_obj_tag(x_67) == 2) +lean_object* x_80; lean_object* x_81; +x_80 = lean_ctor_get(x_78, 0); +lean_inc(x_80); +x_81 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_80); +lean_dec(x_80); +if (lean_obj_tag(x_81) == 2) { -lean_object* x_68; lean_object* x_69; uint8_t x_70; -x_68 = lean_ctor_get(x_67, 1); -lean_inc(x_68); -lean_dec(x_67); -x_69 = l_Lean_Parser_Command_mutual___elambda__1___closed__6; -x_70 = lean_string_dec_eq(x_68, x_69); -lean_dec(x_68); -if (x_70 == 0) +lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_82 = lean_ctor_get(x_81, 1); +lean_inc(x_82); +lean_dec(x_81); +x_83 = l_Lean_Parser_Command_mutual___elambda__1___closed__6; +x_84 = lean_string_dec_eq(x_82, x_83); +lean_dec(x_82); +if (x_84 == 0) { -lean_object* x_71; lean_object* x_72; -x_71 = l_Lean_Parser_Command_mutual___elambda__1___closed__13; -x_72 = l_Lean_Parser_ParserState_mkErrorsAt(x_64, x_71, x_63); -x_38 = x_72; -goto block_62; +lean_object* x_85; lean_object* x_86; +x_85 = l_Lean_Parser_Command_mutual___elambda__1___closed__9; +x_86 = l_Lean_Parser_ParserState_mkErrorsAt(x_78, x_85, x_77); +x_38 = x_86; +goto block_76; } else { -lean_dec(x_63); -x_38 = x_64; -goto block_62; +lean_dec(x_77); +x_38 = x_78; +goto block_76; } } else { -lean_object* x_73; lean_object* x_74; -lean_dec(x_67); -x_73 = l_Lean_Parser_Command_mutual___elambda__1___closed__13; -x_74 = l_Lean_Parser_ParserState_mkErrorsAt(x_64, x_73, x_63); -x_38 = x_74; -goto block_62; +lean_object* x_87; lean_object* x_88; +lean_dec(x_81); +x_87 = l_Lean_Parser_Command_mutual___elambda__1___closed__9; +x_88 = l_Lean_Parser_ParserState_mkErrorsAt(x_78, x_87, x_77); +x_38 = x_88; +goto block_76; } } else { -lean_object* x_75; lean_object* x_76; -lean_dec(x_65); -x_75 = l_Lean_Parser_Command_mutual___elambda__1___closed__13; -x_76 = l_Lean_Parser_ParserState_mkErrorsAt(x_64, x_75, x_63); -x_38 = x_76; -goto block_62; +lean_object* x_89; lean_object* x_90; +lean_dec(x_79); +x_89 = l_Lean_Parser_Command_mutual___elambda__1___closed__9; +x_90 = l_Lean_Parser_ParserState_mkErrorsAt(x_78, x_89, x_77); +x_38 = x_90; +goto block_76; } block_37: { @@ -49980,13 +50052,13 @@ lean_object* x_18; lean_object* x_19; uint8_t x_20; x_18 = lean_ctor_get(x_17, 1); lean_inc(x_18); lean_dec(x_17); -x_19 = l_Lean_Parser_Command_mutual___elambda__1___closed__7; +x_19 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__1; x_20 = lean_string_dec_eq(x_18, x_19); lean_dec(x_18); if (x_20 == 0) { lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_21 = l_Lean_Parser_Command_mutual___elambda__1___closed__10; +x_21 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__5; x_22 = l_Lean_Parser_ParserState_mkErrorsAt(x_14, x_21, x_13); x_23 = l_Lean_Parser_Command_mutual___elambda__1___closed__2; x_24 = l_Lean_Parser_ParserState_mkNode(x_22, x_23, x_10); @@ -50005,7 +50077,7 @@ else { lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_dec(x_17); -x_27 = l_Lean_Parser_Command_mutual___elambda__1___closed__10; +x_27 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__5; x_28 = l_Lean_Parser_ParserState_mkErrorsAt(x_14, x_27, x_13); x_29 = l_Lean_Parser_Command_mutual___elambda__1___closed__2; x_30 = l_Lean_Parser_ParserState_mkNode(x_28, x_29, x_10); @@ -50016,7 +50088,7 @@ else { lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_dec(x_15); -x_31 = l_Lean_Parser_Command_mutual___elambda__1___closed__10; +x_31 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__5; x_32 = l_Lean_Parser_ParserState_mkErrorsAt(x_14, x_31, x_13); x_33 = l_Lean_Parser_Command_mutual___elambda__1___closed__2; x_34 = l_Lean_Parser_ParserState_mkNode(x_32, x_33, x_10); @@ -50033,14 +50105,14 @@ x_36 = l_Lean_Parser_ParserState_mkNode(x_11, x_35, x_10); return x_36; } } -block_62: +block_76: { lean_object* x_39; x_39 = lean_ctor_get(x_38, 3); lean_inc(x_39); if (lean_obj_tag(x_39) == 0) { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_61; lean_object* x_62; x_40 = lean_ctor_get(x_38, 0); lean_inc(x_40); x_41 = lean_array_get_size(x_40); @@ -50048,15 +50120,72 @@ lean_dec(x_40); x_42 = lean_ctor_get(x_38, 1); lean_inc(x_42); lean_inc(x_1); -x_43 = l_Lean_Parser_Command_end___elambda__1(x_1, x_38); +x_61 = l_Lean_Parser_tokenFn(x_1, x_38); +x_62 = lean_ctor_get(x_61, 3); +lean_inc(x_62); +if (lean_obj_tag(x_62) == 0) +{ +lean_object* x_63; lean_object* x_64; +x_63 = lean_ctor_get(x_61, 0); +lean_inc(x_63); +x_64 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_63); +lean_dec(x_63); +if (lean_obj_tag(x_64) == 2) +{ +lean_object* x_65; lean_object* x_66; uint8_t x_67; +x_65 = lean_ctor_get(x_64, 1); +lean_inc(x_65); +lean_dec(x_64); +x_66 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__1; +x_67 = lean_string_dec_eq(x_65, x_66); +lean_dec(x_65); +if (x_67 == 0) +{ +lean_object* x_68; lean_object* x_69; +x_68 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__5; +lean_inc(x_42); +x_69 = l_Lean_Parser_ParserState_mkErrorsAt(x_61, x_68, x_42); +x_43 = x_69; +goto block_60; +} +else +{ +x_43 = x_61; +goto block_60; +} +} +else +{ +lean_object* x_70; lean_object* x_71; +lean_dec(x_64); +x_70 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__5; +lean_inc(x_42); +x_71 = l_Lean_Parser_ParserState_mkErrorsAt(x_61, x_70, x_42); +x_43 = x_71; +goto block_60; +} +} +else +{ +lean_object* x_72; lean_object* x_73; +lean_dec(x_62); +x_72 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__5; +lean_inc(x_42); +x_73 = l_Lean_Parser_ParserState_mkErrorsAt(x_61, x_72, x_42); +x_43 = x_73; +goto block_60; +} +block_60: +{ +lean_object* x_44; x_44 = lean_ctor_get(x_43, 3); lean_inc(x_44); if (lean_obj_tag(x_44) == 0) { lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; x_45 = l_Lean_Parser_ParserState_restore(x_43, x_41, x_42); -x_46 = l_Lean_Parser_notFollowedByFn___closed__1; -x_47 = l_Lean_Parser_ParserState_mkError(x_45, x_46); +x_46 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__2; +x_47 = l_Lean_Parser_ParserState_mkUnexpectedError(x_45, x_46); x_48 = l_Lean_nullKind; x_49 = l_Lean_Parser_ParserState_mkNode(x_47, x_48, x_41); x_11 = x_49; @@ -50094,14 +50223,15 @@ goto block_37; } } } +} else { -lean_object* x_60; lean_object* x_61; +lean_object* x_74; lean_object* x_75; lean_dec(x_39); lean_dec(x_1); -x_60 = l_Lean_Parser_Command_mutual___elambda__1___closed__2; -x_61 = l_Lean_Parser_ParserState_mkNode(x_38, x_60, x_10); -return x_61; +x_74 = l_Lean_Parser_Command_mutual___elambda__1___closed__2; +x_75 = l_Lean_Parser_ParserState_mkNode(x_38, x_74, x_10); +return x_75; } } } @@ -50114,293 +50244,351 @@ return x_7; } else { -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_77 = lean_ctor_get(x_2, 0); -lean_inc(x_77); -x_78 = lean_array_get_size(x_77); -lean_dec(x_77); -x_79 = lean_ctor_get(x_2, 1); -lean_inc(x_79); -lean_inc(x_1); -x_80 = lean_apply_2(x_4, x_1, x_2); -x_81 = lean_ctor_get(x_80, 3); -lean_inc(x_81); -if (lean_obj_tag(x_81) == 0) -{ -lean_dec(x_79); -lean_dec(x_78); -lean_dec(x_1); -return x_80; -} -else -{ -lean_object* x_82; lean_object* x_83; uint8_t x_84; -x_82 = lean_ctor_get(x_81, 0); -lean_inc(x_82); -lean_dec(x_81); -x_83 = lean_ctor_get(x_80, 1); -lean_inc(x_83); -x_84 = lean_nat_dec_eq(x_83, x_79); -lean_dec(x_83); -if (x_84 == 0) -{ -lean_dec(x_82); -lean_dec(x_79); -lean_dec(x_78); -lean_dec(x_1); -return x_80; -} -else -{ -lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -lean_inc(x_79); -x_85 = l_Lean_Parser_ParserState_restore(x_80, x_78, x_79); -lean_dec(x_78); -x_86 = lean_unsigned_to_nat(1024u); -x_87 = l_Lean_Parser_checkPrecFn(x_86, x_1, x_85); -x_88 = lean_ctor_get(x_87, 3); -lean_inc(x_88); -if (lean_obj_tag(x_88) == 0) -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_128; lean_object* x_155; lean_object* x_156; lean_object* x_157; -x_89 = lean_ctor_get(x_87, 0); -lean_inc(x_89); -x_90 = lean_array_get_size(x_89); -lean_dec(x_89); -x_155 = lean_ctor_get(x_87, 1); -lean_inc(x_155); -lean_inc(x_1); -x_156 = l_Lean_Parser_tokenFn(x_1, x_87); -x_157 = lean_ctor_get(x_156, 3); -lean_inc(x_157); -if (lean_obj_tag(x_157) == 0) -{ -lean_object* x_158; lean_object* x_159; -x_158 = lean_ctor_get(x_156, 0); -lean_inc(x_158); -x_159 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_158); -lean_dec(x_158); -if (lean_obj_tag(x_159) == 2) -{ -lean_object* x_160; lean_object* x_161; uint8_t x_162; -x_160 = lean_ctor_get(x_159, 1); -lean_inc(x_160); -lean_dec(x_159); -x_161 = l_Lean_Parser_Command_mutual___elambda__1___closed__6; -x_162 = lean_string_dec_eq(x_160, x_161); -lean_dec(x_160); -if (x_162 == 0) -{ -lean_object* x_163; lean_object* x_164; -x_163 = l_Lean_Parser_Command_mutual___elambda__1___closed__13; -x_164 = l_Lean_Parser_ParserState_mkErrorsAt(x_156, x_163, x_155); -x_128 = x_164; -goto block_154; -} -else -{ -lean_dec(x_155); -x_128 = x_156; -goto block_154; -} -} -else -{ -lean_object* x_165; lean_object* x_166; -lean_dec(x_159); -x_165 = l_Lean_Parser_Command_mutual___elambda__1___closed__13; -x_166 = l_Lean_Parser_ParserState_mkErrorsAt(x_156, x_165, x_155); -x_128 = x_166; -goto block_154; -} -} -else -{ -lean_object* x_167; lean_object* x_168; -lean_dec(x_157); -x_167 = l_Lean_Parser_Command_mutual___elambda__1___closed__13; -x_168 = l_Lean_Parser_ParserState_mkErrorsAt(x_156, x_167, x_155); -x_128 = x_168; -goto block_154; -} -block_127: -{ -lean_object* x_92; -x_92 = lean_ctor_get(x_91, 3); -lean_inc(x_92); -if (lean_obj_tag(x_92) == 0) -{ -lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_93 = lean_ctor_get(x_91, 1); +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_91 = lean_ctor_get(x_2, 0); +lean_inc(x_91); +x_92 = lean_array_get_size(x_91); +lean_dec(x_91); +x_93 = lean_ctor_get(x_2, 1); lean_inc(x_93); -x_94 = l_Lean_Parser_tokenFn(x_1, x_91); +lean_inc(x_1); +x_94 = lean_apply_2(x_4, x_1, x_2); x_95 = lean_ctor_get(x_94, 3); lean_inc(x_95); if (lean_obj_tag(x_95) == 0) { -lean_object* x_96; lean_object* x_97; -x_96 = lean_ctor_get(x_94, 0); -lean_inc(x_96); -x_97 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_96); -lean_dec(x_96); -if (lean_obj_tag(x_97) == 2) -{ -lean_object* x_98; lean_object* x_99; uint8_t x_100; -x_98 = lean_ctor_get(x_97, 1); -lean_inc(x_98); -lean_dec(x_97); -x_99 = l_Lean_Parser_Command_mutual___elambda__1___closed__7; -x_100 = lean_string_dec_eq(x_98, x_99); -lean_dec(x_98); -if (x_100 == 0) -{ -lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; lean_object* x_106; -x_101 = l_Lean_Parser_Command_mutual___elambda__1___closed__10; -x_102 = l_Lean_Parser_ParserState_mkErrorsAt(x_94, x_101, x_93); -x_103 = l_Lean_Parser_Command_mutual___elambda__1___closed__2; -x_104 = l_Lean_Parser_ParserState_mkNode(x_102, x_103, x_90); -x_105 = 1; -x_106 = l_Lean_Parser_mergeOrElseErrors(x_104, x_82, x_79, x_105); -lean_dec(x_79); -return x_106; -} -else -{ -lean_object* x_107; lean_object* x_108; uint8_t x_109; lean_object* x_110; lean_dec(x_93); -x_107 = l_Lean_Parser_Command_mutual___elambda__1___closed__2; -x_108 = l_Lean_Parser_ParserState_mkNode(x_94, x_107, x_90); -x_109 = 1; -x_110 = l_Lean_Parser_mergeOrElseErrors(x_108, x_82, x_79, x_109); -lean_dec(x_79); -return x_110; -} -} -else -{ -lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; lean_object* x_116; -lean_dec(x_97); -x_111 = l_Lean_Parser_Command_mutual___elambda__1___closed__10; -x_112 = l_Lean_Parser_ParserState_mkErrorsAt(x_94, x_111, x_93); -x_113 = l_Lean_Parser_Command_mutual___elambda__1___closed__2; -x_114 = l_Lean_Parser_ParserState_mkNode(x_112, x_113, x_90); -x_115 = 1; -x_116 = l_Lean_Parser_mergeOrElseErrors(x_114, x_82, x_79, x_115); -lean_dec(x_79); -return x_116; -} -} -else -{ -lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_object* x_122; -lean_dec(x_95); -x_117 = l_Lean_Parser_Command_mutual___elambda__1___closed__10; -x_118 = l_Lean_Parser_ParserState_mkErrorsAt(x_94, x_117, x_93); -x_119 = l_Lean_Parser_Command_mutual___elambda__1___closed__2; -x_120 = l_Lean_Parser_ParserState_mkNode(x_118, x_119, x_90); -x_121 = 1; -x_122 = l_Lean_Parser_mergeOrElseErrors(x_120, x_82, x_79, x_121); -lean_dec(x_79); -return x_122; -} -} -else -{ -lean_object* x_123; lean_object* x_124; uint8_t x_125; lean_object* x_126; lean_dec(x_92); lean_dec(x_1); -x_123 = l_Lean_Parser_Command_mutual___elambda__1___closed__2; -x_124 = l_Lean_Parser_ParserState_mkNode(x_91, x_123, x_90); -x_125 = 1; -x_126 = l_Lean_Parser_mergeOrElseErrors(x_124, x_82, x_79, x_125); -lean_dec(x_79); -return x_126; -} -} -block_154: -{ -lean_object* x_129; -x_129 = lean_ctor_get(x_128, 3); -lean_inc(x_129); -if (lean_obj_tag(x_129) == 0) -{ -lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; -x_130 = lean_ctor_get(x_128, 0); -lean_inc(x_130); -x_131 = lean_array_get_size(x_130); -lean_dec(x_130); -x_132 = lean_ctor_get(x_128, 1); -lean_inc(x_132); -lean_inc(x_1); -x_133 = l_Lean_Parser_Command_end___elambda__1(x_1, x_128); -x_134 = lean_ctor_get(x_133, 3); -lean_inc(x_134); -if (lean_obj_tag(x_134) == 0) -{ -lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; -x_135 = l_Lean_Parser_ParserState_restore(x_133, x_131, x_132); -x_136 = l_Lean_Parser_notFollowedByFn___closed__1; -x_137 = l_Lean_Parser_ParserState_mkError(x_135, x_136); -x_138 = l_Lean_nullKind; -x_139 = l_Lean_Parser_ParserState_mkNode(x_137, x_138, x_131); -x_91 = x_139; -goto block_127; +return x_94; } else { -lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; -lean_dec(x_134); -x_140 = l_Lean_Parser_ParserState_restore(x_133, x_131, x_132); -x_141 = l_Lean_Parser_regBuiltinCommandParserAttr___closed__4; -x_142 = lean_unsigned_to_nat(0u); +lean_object* x_96; lean_object* x_97; uint8_t x_98; +x_96 = lean_ctor_get(x_95, 0); +lean_inc(x_96); +lean_dec(x_95); +x_97 = lean_ctor_get(x_94, 1); +lean_inc(x_97); +x_98 = lean_nat_dec_eq(x_97, x_93); +lean_dec(x_97); +if (x_98 == 0) +{ +lean_dec(x_96); +lean_dec(x_93); +lean_dec(x_92); +lean_dec(x_1); +return x_94; +} +else +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; +lean_inc(x_93); +x_99 = l_Lean_Parser_ParserState_restore(x_94, x_92, x_93); +lean_dec(x_92); +x_100 = lean_unsigned_to_nat(1024u); +x_101 = l_Lean_Parser_checkPrecFn(x_100, x_1, x_99); +x_102 = lean_ctor_get(x_101, 3); +lean_inc(x_102); +if (lean_obj_tag(x_102) == 0) +{ +lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_142; lean_object* x_183; lean_object* x_184; lean_object* x_185; +x_103 = lean_ctor_get(x_101, 0); +lean_inc(x_103); +x_104 = lean_array_get_size(x_103); +lean_dec(x_103); +x_183 = lean_ctor_get(x_101, 1); +lean_inc(x_183); lean_inc(x_1); -x_143 = l_Lean_Parser_categoryParser___elambda__1(x_141, x_142, x_1, x_140); -x_144 = lean_ctor_get(x_143, 3); +x_184 = l_Lean_Parser_tokenFn(x_1, x_101); +x_185 = lean_ctor_get(x_184, 3); +lean_inc(x_185); +if (lean_obj_tag(x_185) == 0) +{ +lean_object* x_186; lean_object* x_187; +x_186 = lean_ctor_get(x_184, 0); +lean_inc(x_186); +x_187 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_186); +lean_dec(x_186); +if (lean_obj_tag(x_187) == 2) +{ +lean_object* x_188; lean_object* x_189; uint8_t x_190; +x_188 = lean_ctor_get(x_187, 1); +lean_inc(x_188); +lean_dec(x_187); +x_189 = l_Lean_Parser_Command_mutual___elambda__1___closed__6; +x_190 = lean_string_dec_eq(x_188, x_189); +lean_dec(x_188); +if (x_190 == 0) +{ +lean_object* x_191; lean_object* x_192; +x_191 = l_Lean_Parser_Command_mutual___elambda__1___closed__9; +x_192 = l_Lean_Parser_ParserState_mkErrorsAt(x_184, x_191, x_183); +x_142 = x_192; +goto block_182; +} +else +{ +lean_dec(x_183); +x_142 = x_184; +goto block_182; +} +} +else +{ +lean_object* x_193; lean_object* x_194; +lean_dec(x_187); +x_193 = l_Lean_Parser_Command_mutual___elambda__1___closed__9; +x_194 = l_Lean_Parser_ParserState_mkErrorsAt(x_184, x_193, x_183); +x_142 = x_194; +goto block_182; +} +} +else +{ +lean_object* x_195; lean_object* x_196; +lean_dec(x_185); +x_195 = l_Lean_Parser_Command_mutual___elambda__1___closed__9; +x_196 = l_Lean_Parser_ParserState_mkErrorsAt(x_184, x_195, x_183); +x_142 = x_196; +goto block_182; +} +block_141: +{ +lean_object* x_106; +x_106 = lean_ctor_get(x_105, 3); +lean_inc(x_106); +if (lean_obj_tag(x_106) == 0) +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +x_108 = l_Lean_Parser_tokenFn(x_1, x_105); +x_109 = lean_ctor_get(x_108, 3); +lean_inc(x_109); +if (lean_obj_tag(x_109) == 0) +{ +lean_object* x_110; lean_object* x_111; +x_110 = lean_ctor_get(x_108, 0); +lean_inc(x_110); +x_111 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_110); +lean_dec(x_110); +if (lean_obj_tag(x_111) == 2) +{ +lean_object* x_112; lean_object* x_113; uint8_t x_114; +x_112 = lean_ctor_get(x_111, 1); +lean_inc(x_112); +lean_dec(x_111); +x_113 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__1; +x_114 = lean_string_dec_eq(x_112, x_113); +lean_dec(x_112); +if (x_114 == 0) +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; lean_object* x_120; +x_115 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__5; +x_116 = l_Lean_Parser_ParserState_mkErrorsAt(x_108, x_115, x_107); +x_117 = l_Lean_Parser_Command_mutual___elambda__1___closed__2; +x_118 = l_Lean_Parser_ParserState_mkNode(x_116, x_117, x_104); +x_119 = 1; +x_120 = l_Lean_Parser_mergeOrElseErrors(x_118, x_96, x_93, x_119); +lean_dec(x_93); +return x_120; +} +else +{ +lean_object* x_121; lean_object* x_122; uint8_t x_123; lean_object* x_124; +lean_dec(x_107); +x_121 = l_Lean_Parser_Command_mutual___elambda__1___closed__2; +x_122 = l_Lean_Parser_ParserState_mkNode(x_108, x_121, x_104); +x_123 = 1; +x_124 = l_Lean_Parser_mergeOrElseErrors(x_122, x_96, x_93, x_123); +lean_dec(x_93); +return x_124; +} +} +else +{ +lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; uint8_t x_129; lean_object* x_130; +lean_dec(x_111); +x_125 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__5; +x_126 = l_Lean_Parser_ParserState_mkErrorsAt(x_108, x_125, x_107); +x_127 = l_Lean_Parser_Command_mutual___elambda__1___closed__2; +x_128 = l_Lean_Parser_ParserState_mkNode(x_126, x_127, x_104); +x_129 = 1; +x_130 = l_Lean_Parser_mergeOrElseErrors(x_128, x_96, x_93, x_129); +lean_dec(x_93); +return x_130; +} +} +else +{ +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; uint8_t x_135; lean_object* x_136; +lean_dec(x_109); +x_131 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__5; +x_132 = l_Lean_Parser_ParserState_mkErrorsAt(x_108, x_131, x_107); +x_133 = l_Lean_Parser_Command_mutual___elambda__1___closed__2; +x_134 = l_Lean_Parser_ParserState_mkNode(x_132, x_133, x_104); +x_135 = 1; +x_136 = l_Lean_Parser_mergeOrElseErrors(x_134, x_96, x_93, x_135); +lean_dec(x_93); +return x_136; +} +} +else +{ +lean_object* x_137; lean_object* x_138; uint8_t x_139; lean_object* x_140; +lean_dec(x_106); +lean_dec(x_1); +x_137 = l_Lean_Parser_Command_mutual___elambda__1___closed__2; +x_138 = l_Lean_Parser_ParserState_mkNode(x_105, x_137, x_104); +x_139 = 1; +x_140 = l_Lean_Parser_mergeOrElseErrors(x_138, x_96, x_93, x_139); +lean_dec(x_93); +return x_140; +} +} +block_182: +{ +lean_object* x_143; +x_143 = lean_ctor_get(x_142, 3); +lean_inc(x_143); +if (lean_obj_tag(x_143) == 0) +{ +lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_165; lean_object* x_166; +x_144 = lean_ctor_get(x_142, 0); lean_inc(x_144); -if (lean_obj_tag(x_144) == 0) -{ -lean_object* x_145; lean_object* x_146; lean_object* x_147; -lean_inc(x_1); -x_145 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1(x_1, x_143); -x_146 = l_Lean_nullKind; -x_147 = l_Lean_Parser_ParserState_mkNode(x_145, x_146, x_131); -x_91 = x_147; -goto block_127; -} -else -{ -lean_object* x_148; lean_object* x_149; +x_145 = lean_array_get_size(x_144); lean_dec(x_144); -x_148 = l_Lean_nullKind; -x_149 = l_Lean_Parser_ParserState_mkNode(x_143, x_148, x_131); -x_91 = x_149; -goto block_127; +x_146 = lean_ctor_get(x_142, 1); +lean_inc(x_146); +lean_inc(x_1); +x_165 = l_Lean_Parser_tokenFn(x_1, x_142); +x_166 = lean_ctor_get(x_165, 3); +lean_inc(x_166); +if (lean_obj_tag(x_166) == 0) +{ +lean_object* x_167; lean_object* x_168; +x_167 = lean_ctor_get(x_165, 0); +lean_inc(x_167); +x_168 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_167); +lean_dec(x_167); +if (lean_obj_tag(x_168) == 2) +{ +lean_object* x_169; lean_object* x_170; uint8_t x_171; +x_169 = lean_ctor_get(x_168, 1); +lean_inc(x_169); +lean_dec(x_168); +x_170 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__1; +x_171 = lean_string_dec_eq(x_169, x_170); +lean_dec(x_169); +if (x_171 == 0) +{ +lean_object* x_172; lean_object* x_173; +x_172 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__5; +lean_inc(x_146); +x_173 = l_Lean_Parser_ParserState_mkErrorsAt(x_165, x_172, x_146); +x_147 = x_173; +goto block_164; +} +else +{ +x_147 = x_165; +goto block_164; +} +} +else +{ +lean_object* x_174; lean_object* x_175; +lean_dec(x_168); +x_174 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__5; +lean_inc(x_146); +x_175 = l_Lean_Parser_ParserState_mkErrorsAt(x_165, x_174, x_146); +x_147 = x_175; +goto block_164; +} +} +else +{ +lean_object* x_176; lean_object* x_177; +lean_dec(x_166); +x_176 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__5; +lean_inc(x_146); +x_177 = l_Lean_Parser_ParserState_mkErrorsAt(x_165, x_176, x_146); +x_147 = x_177; +goto block_164; +} +block_164: +{ +lean_object* x_148; +x_148 = lean_ctor_get(x_147, 3); +lean_inc(x_148); +if (lean_obj_tag(x_148) == 0) +{ +lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; +x_149 = l_Lean_Parser_ParserState_restore(x_147, x_145, x_146); +x_150 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__2; +x_151 = l_Lean_Parser_ParserState_mkUnexpectedError(x_149, x_150); +x_152 = l_Lean_nullKind; +x_153 = l_Lean_Parser_ParserState_mkNode(x_151, x_152, x_145); +x_105 = x_153; +goto block_141; +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; +lean_dec(x_148); +x_154 = l_Lean_Parser_ParserState_restore(x_147, x_145, x_146); +x_155 = l_Lean_Parser_regBuiltinCommandParserAttr___closed__4; +x_156 = lean_unsigned_to_nat(0u); +lean_inc(x_1); +x_157 = l_Lean_Parser_categoryParser___elambda__1(x_155, x_156, x_1, x_154); +x_158 = lean_ctor_get(x_157, 3); +lean_inc(x_158); +if (lean_obj_tag(x_158) == 0) +{ +lean_object* x_159; lean_object* x_160; lean_object* x_161; +lean_inc(x_1); +x_159 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1(x_1, x_157); +x_160 = l_Lean_nullKind; +x_161 = l_Lean_Parser_ParserState_mkNode(x_159, x_160, x_145); +x_105 = x_161; +goto block_141; +} +else +{ +lean_object* x_162; lean_object* x_163; +lean_dec(x_158); +x_162 = l_Lean_nullKind; +x_163 = l_Lean_Parser_ParserState_mkNode(x_157, x_162, x_145); +x_105 = x_163; +goto block_141; +} } } } else { -lean_object* x_150; lean_object* x_151; uint8_t x_152; lean_object* x_153; -lean_dec(x_129); +lean_object* x_178; lean_object* x_179; uint8_t x_180; lean_object* x_181; +lean_dec(x_143); lean_dec(x_1); -x_150 = l_Lean_Parser_Command_mutual___elambda__1___closed__2; -x_151 = l_Lean_Parser_ParserState_mkNode(x_128, x_150, x_90); -x_152 = 1; -x_153 = l_Lean_Parser_mergeOrElseErrors(x_151, x_82, x_79, x_152); -lean_dec(x_79); -return x_153; +x_178 = l_Lean_Parser_Command_mutual___elambda__1___closed__2; +x_179 = l_Lean_Parser_ParserState_mkNode(x_142, x_178, x_104); +x_180 = 1; +x_181 = l_Lean_Parser_mergeOrElseErrors(x_179, x_96, x_93, x_180); +lean_dec(x_93); +return x_181; } } } else { -uint8_t x_169; lean_object* x_170; -lean_dec(x_88); +uint8_t x_197; lean_object* x_198; +lean_dec(x_102); lean_dec(x_1); -x_169 = 1; -x_170 = l_Lean_Parser_mergeOrElseErrors(x_87, x_82, x_79, x_169); -lean_dec(x_79); -return x_170; +x_197 = 1; +x_198 = l_Lean_Parser_mergeOrElseErrors(x_101, x_96, x_93, x_197); +lean_dec(x_93); +return x_198; } } } @@ -50442,7 +50630,7 @@ static lean_object* _init_l_Lean_Parser_Command_mutual___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Command_mutual___elambda__1___closed__7; +x_1 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__1; x_2 = l_Lean_Parser_symbolInfo(x_1); return x_2; } @@ -50540,6 +50728,38 @@ x_7 = l_Lean_Parser_addBuiltinParser(x_2, x_3, x_4, x_5, x_6, x_1); return x_7; } } +lean_object* l_Lean_Parser_notSymbol_formatter___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = lean_box(0); +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* l_Lean_Parser_notSymbol_formatter(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = lean_alloc_closure((void*)(l_Lean_Parser_notSymbol_formatter___rarg), 1, 0); +return x_6; +} +} +lean_object* l_Lean_Parser_notSymbol_formatter___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_Parser_notSymbol_formatter(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_6; +} +} static lean_object* _init_l_Lean_Parser_Command_mutual_formatter___closed__1() { _start: { @@ -50569,8 +50789,8 @@ static lean_object* _init_l_Lean_Parser_Command_mutual_formatter___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___regBuiltin_Lean_Parser_Command_end_formatter___closed__1; -x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_notFollowedBy_formatter___boxed), 5, 1); +x_1 = l_Lean_Parser_Command_end___elambda__1___closed__1; +x_2 = lean_alloc_closure((void*)(l_Lean_Parser_notSymbol_formatter___boxed), 5, 1); lean_closure_set(x_2, 0, x_1); return x_2; } @@ -50674,6 +50894,38 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } +lean_object* l_Lean_Parser_notSymbol_parenthesizer___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = lean_box(0); +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* l_Lean_Parser_notSymbol_parenthesizer(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = lean_alloc_closure((void*)(l_Lean_Parser_notSymbol_parenthesizer___rarg), 1, 0); +return x_6; +} +} +lean_object* l_Lean_Parser_notSymbol_parenthesizer___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_Parser_notSymbol_parenthesizer(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_6; +} +} static lean_object* _init_l_Lean_Parser_Command_mutual_parenthesizer___closed__1() { _start: { @@ -50691,8 +50943,8 @@ static lean_object* _init_l_Lean_Parser_Command_mutual_parenthesizer___closed__2 _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___regBuiltin_Lean_Parser_Command_end_parenthesizer___closed__1; -x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_notFollowedBy_parenthesizer___boxed), 5, 1); +x_1 = l_Lean_Parser_Command_end___elambda__1___closed__1; +x_2 = lean_alloc_closure((void*)(l_Lean_Parser_notSymbol_parenthesizer___boxed), 5, 1); lean_closure_set(x_2, 0, x_1); return x_2; } @@ -56073,6 +56325,16 @@ lean_mark_persistent(l___regBuiltin_Lean_Parser_Command_open_parenthesizer___clo res = l___regBuiltin_Lean_Parser_Command_open_parenthesizer(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__1 = _init_l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__1(); +lean_mark_persistent(l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__1); +l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__2 = _init_l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__2(); +lean_mark_persistent(l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__2); +l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__3 = _init_l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__3(); +lean_mark_persistent(l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__3); +l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__4 = _init_l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__4(); +lean_mark_persistent(l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__4); +l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__5 = _init_l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__5(); +lean_mark_persistent(l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_mutual___elambda__1___spec__1___closed__5); l_Lean_Parser_Command_mutual___elambda__1___closed__1 = _init_l_Lean_Parser_Command_mutual___elambda__1___closed__1(); lean_mark_persistent(l_Lean_Parser_Command_mutual___elambda__1___closed__1); l_Lean_Parser_Command_mutual___elambda__1___closed__2 = _init_l_Lean_Parser_Command_mutual___elambda__1___closed__2(); @@ -56091,14 +56353,6 @@ l_Lean_Parser_Command_mutual___elambda__1___closed__8 = _init_l_Lean_Parser_Comm lean_mark_persistent(l_Lean_Parser_Command_mutual___elambda__1___closed__8); l_Lean_Parser_Command_mutual___elambda__1___closed__9 = _init_l_Lean_Parser_Command_mutual___elambda__1___closed__9(); lean_mark_persistent(l_Lean_Parser_Command_mutual___elambda__1___closed__9); -l_Lean_Parser_Command_mutual___elambda__1___closed__10 = _init_l_Lean_Parser_Command_mutual___elambda__1___closed__10(); -lean_mark_persistent(l_Lean_Parser_Command_mutual___elambda__1___closed__10); -l_Lean_Parser_Command_mutual___elambda__1___closed__11 = _init_l_Lean_Parser_Command_mutual___elambda__1___closed__11(); -lean_mark_persistent(l_Lean_Parser_Command_mutual___elambda__1___closed__11); -l_Lean_Parser_Command_mutual___elambda__1___closed__12 = _init_l_Lean_Parser_Command_mutual___elambda__1___closed__12(); -lean_mark_persistent(l_Lean_Parser_Command_mutual___elambda__1___closed__12); -l_Lean_Parser_Command_mutual___elambda__1___closed__13 = _init_l_Lean_Parser_Command_mutual___elambda__1___closed__13(); -lean_mark_persistent(l_Lean_Parser_Command_mutual___elambda__1___closed__13); l_Lean_Parser_Command_mutual___closed__1 = _init_l_Lean_Parser_Command_mutual___closed__1(); lean_mark_persistent(l_Lean_Parser_Command_mutual___closed__1); l_Lean_Parser_Command_mutual___closed__2 = _init_l_Lean_Parser_Command_mutual___closed__2(); diff --git a/stage0/stdlib/Lean/Parser/Do.c b/stage0/stdlib/Lean/Parser/Do.c index 9d0161d1e7..daf5479e63 100644 --- a/stage0/stdlib/Lean/Parser/Do.c +++ b/stage0/stdlib/Lean/Parser/Do.c @@ -31,6 +31,7 @@ extern lean_object* l_Lean_Parser_Term_letIdDecl; lean_object* l_Lean_Parser_many1Indent_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_doDbgTrace_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_doUnless_formatter___closed__1; +lean_object* l_Lean_Parser_Term_doNested___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_doSeqIndent___elambda__1___closed__1; lean_object* l_Lean_Parser_doElemParser(lean_object*); lean_object* l_Lean_Parser_Term_doUnless_formatter___closed__2; @@ -38,6 +39,7 @@ lean_object* l_Lean_Parser_Term_doSeqBracketed___closed__1; extern lean_object* l_Lean_Parser_Term_letDecl_formatter___closed__6; lean_object* l_Lean_Parser_Term_doElem_quot_formatter___closed__1; lean_object* l_Lean_Parser_Term_doMatch_parenthesizer___closed__5; +lean_object* l_Lean_Parser_Term_doNested_formatter___closed__1; lean_object* l_Lean_Parser_Term_doSeqBracketed___closed__2; extern lean_object* l_Lean_Parser_manyAux___main___closed__1; lean_object* l_Lean_Parser_Term_doIf___closed__12; @@ -70,6 +72,7 @@ lean_object* l_Lean_Parser_Term_doTry_formatter___closed__1; lean_object* l_Lean_Parser_Term_leftArrow_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Parser_Basic_2__sepByFnAux___main___at_Lean_Parser_Term_doMatchAlts___elambda__1___spec__2(uint8_t, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_doTry_parenthesizer___closed__3; +lean_object* l_Lean_Parser_Term_doNested_formatter___closed__2; lean_object* l_Lean_Parser_Term_leftArrow_parenthesizer___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_doContinue___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_doMatch_parenthesizer___closed__3; @@ -111,6 +114,7 @@ lean_object* l_Lean_Parser_Term_doContinue___elambda__1___closed__1; extern lean_object* l_Lean_Parser_many1Indent_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_doMatchAlt_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_doReturn_formatter___closed__5; +lean_object* l_Lean_Parser_Term_doNested___closed__2; lean_object* l_Lean_Parser_Term_doTry_formatter___closed__2; lean_object* l___regBuiltinParser_Lean_Parser_Term_liftMethod(lean_object*); extern lean_object* l_Lean_Parser_Term_have___closed__2; @@ -165,6 +169,7 @@ lean_object* l_Lean_Parser_Term_doReassignArrow; lean_object* l_Lean_Parser_Term_doUnless_parenthesizer___closed__3; lean_object* l_Lean_Parser_Term_doAssert_formatter___closed__1; lean_object* l_Lean_Parser_Term_doIf___closed__21; +lean_object* l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__33; lean_object* l_Lean_Parser_Term_doTry___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_doElem_quot___elambda__1___closed__6; extern lean_object* l_Lean_Parser_Term_dbgTrace_formatter___closed__5; @@ -260,6 +265,7 @@ extern lean_object* l_Lean_Parser_Term_subtype_formatter___closed__6; lean_object* l_Lean_Parser_Term_doIdDecl___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_doBreak___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_doReturn_parenthesizer___closed__2; +lean_object* l___regBuiltin_Lean_Parser_Term_doNested_formatter(lean_object*); lean_object* l_Lean_Parser_Term_leftArrow_parenthesizer___boxed(lean_object*); extern lean_object* l_Std_Range___kind_term____x40_Init_Data_Range___hyg_111____closed__17; lean_object* lean_string_append(lean_object*, lean_object*); @@ -353,6 +359,7 @@ lean_object* l_Lean_Parser_Term_doTry_formatter___closed__3; lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_doSeqIndent___elambda__1___spec__1___closed__4; lean_object* l_Lean_Parser_Term_doLetArrow___closed__5; lean_object* l_Lean_Parser_Term_doMatchAlts_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___regBuiltin_Lean_Parser_Term_doNested_formatter___closed__1; lean_object* l_Lean_Parser_Term_doIf___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_doIf_formatter___closed__19; lean_object* l_Lean_Parser_Term_doIf___closed__5; @@ -440,6 +447,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Term_doUnless(lean_object*); lean_object* l_Lean_Parser_Term_doReturn_formatter___closed__4; lean_object* l_Lean_Parser_Term_doIf___closed__24; lean_object* l_Lean_Parser_Term_doMatch_parenthesizer___closed__6; +lean_object* l_Lean_Parser_Term_doNested_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_doFor___elambda__1___closed__12; lean_object* l_Lean_Parser_Term_doSeq___closed__1; lean_object* l_Lean_Parser_Term_doSeqIndent___closed__2; @@ -448,6 +456,7 @@ lean_object* l_Lean_Parser_Term_doIf_formatter(lean_object*, lean_object*, lean_ lean_object* l_Lean_Parser_Term_doAssert___closed__3; lean_object* l_Lean_Parser_Term_doFinally___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__19; +lean_object* l_Lean_Parser_Term_doNested; lean_object* l_Lean_Parser_Term_doReturn___elambda__1___closed__5; extern lean_object* l_Lean_Parser_Term_if___elambda__1___closed__13; lean_object* l_Lean_Parser_noFirstTokenInfo(lean_object*); @@ -470,6 +479,7 @@ lean_object* l___regBuiltin_Lean_Parser_Term_doFor_formatter___closed__1; lean_object* l_Lean_Parser_Term_doTry___closed__6; lean_object* l_Lean_Parser_Term_doElem_quot___closed__3; lean_object* l_Lean_Parser_Term_doPatDecl_formatter___closed__6; +lean_object* l_Lean_Parser_Term_doNested_parenthesizer___closed__2; lean_object* l_Array_shrink___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_doIf___closed__15; lean_object* l_Lean_Parser_Term_doElem_quot___elambda__1___closed__7; @@ -482,6 +492,7 @@ lean_object* l_Lean_Parser_Term_doLetArrow___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_doIdDecl_parenthesizer___closed__4; lean_object* l_Lean_Parser_Term_doHave_parenthesizer___closed__2; lean_object* l_Lean_Parser_Term_doIf___closed__18; +lean_object* l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__32; lean_object* l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__10; lean_object* l_Lean_Parser_Term_leftArrow___closed__3; lean_object* l_Lean_Parser_Term_doMatchAlts___elambda__1___closed__1; @@ -555,6 +566,7 @@ lean_object* l_Lean_Parser_Term_doFor_formatter___closed__5; lean_object* l___regBuiltin_Lean_Parser_Term_doFor_formatter(lean_object*); lean_object* l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__16; lean_object* l_Lean_Parser_Term_doCatch___elambda__1___closed__7; +lean_object* l_Lean_Parser_Term_doNested___closed__1; lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Term_tupleTail___elambda__1___spec__1(uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_doContinue___closed__2; lean_object* l_Lean_Parser_Term_doSeqBracketed_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -582,6 +594,7 @@ lean_object* l_Lean_Parser_Term_doPatDecl_formatter___closed__4; lean_object* l_Lean_Parser_Term_doReturn_formatter___closed__3; lean_object* l_Lean_Parser_Term_doTry___closed__11; extern lean_object* l_Lean_Parser_maxPrec; +lean_object* l_Lean_Parser_Term_doNested___closed__4; lean_object* l___regBuiltinParser_Lean_Parser_Term_doElem_quot(lean_object*); lean_object* l___regBuiltin_Lean_Parser_Term_doExpr_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Term_doTry_formatter___closed__6; @@ -722,6 +735,7 @@ lean_object* l_Lean_Parser_Term_doAssert___elambda__1___closed__2; lean_object* l_Lean_PrettyPrinter_Formatter_withPosition_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_notFollowedByRedefinedTermToken_formatter(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_doReassign_parenthesizer___closed__3; +lean_object* l___regBuiltinParser_Lean_Parser_Term_doNested(lean_object*); lean_object* l_Lean_Parser_Term_optType___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_doReassign_formatter___closed__3; lean_object* l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__21; @@ -817,6 +831,7 @@ lean_object* l_Lean_Parser_Term_doReassign___closed__6; lean_object* l_Lean_Parser_Term_doLetArrow___closed__7; extern lean_object* l_Lean_Parser_Tactic_tacticSeqBracketed___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_doBreak; +lean_object* l___regBuiltin_Lean_Parser_Term_doNested_parenthesizer___closed__1; extern lean_object* l_Lean_Parser_Term_letDecl_formatter___closed__3; lean_object* l_Lean_Parser_Term_doAssert_parenthesizer___closed__2; lean_object* l_Lean_Parser_Term_doHave___closed__4; @@ -836,6 +851,7 @@ lean_object* l___regBuiltin_Lean_Parser_Term_do_formatter(lean_object*); lean_object* l_Lean_Parser_Term_doTry_parenthesizer___closed__4; uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_doSeqBracketed_formatter___closed__10; +lean_object* l_Lean_Parser_Term_doNested___closed__5; extern lean_object* l_Lean_Parser_Term_letrec___elambda__1___closed__8; lean_object* l_Lean_Parser_Term_doMatchAlts_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_categoryParser(lean_object*, lean_object*); @@ -926,6 +942,7 @@ lean_object* l_Lean_Parser_Term_doElem_quot___closed__4; lean_object* l_Lean_Parser_Term_doHave___elambda__1___closed__2; extern lean_object* l_Lean_Parser_unicodeSymbolFn___closed__1; lean_object* l_Lean_Parser_Term_doFor_formatter___closed__1; +lean_object* l_Lean_Parser_Term_doNested_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_doSeqBracketed___elambda__1___closed__3; extern lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_many1Indent___spec__1___closed__1; lean_object* l_Lean_Parser_Term_doReassignArrow___closed__2; @@ -1034,15 +1051,18 @@ extern lean_object* l_Lean_Parser_Term_have_formatter___closed__4; lean_object* l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__30; lean_object* l_Lean_Parser_Term_doMatchAlt_formatter___closed__3; extern lean_object* l_Lean_Parser_Term_if_formatter___closed__2; +lean_object* l_Lean_Parser_Term_doNested___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_leftArrow___closed__1; lean_object* l_Lean_Parser_Term_doLet___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_doSeqIndent___closed__10; lean_object* l_Lean_Parser_mkAntiquot(lean_object*, lean_object*, uint8_t); +lean_object* l_Lean_Parser_Term_doNested___closed__3; lean_object* l___regBuiltin_Lean_Parser_Term_doExpr_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_doMatchAlt_formatter___closed__2; lean_object* l_Lean_Parser_Term_doFor___elambda__1___closed__6; lean_object* l___regBuiltin_Lean_Parser_Term_doReassignArrow_parenthesizer___closed__1; lean_object* l_Lean_PrettyPrinter_Parenthesizer_withPosition_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___regBuiltin_Lean_Parser_Term_doNested_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Term_notFollowedByRedefinedTermToken_parenthesizer___rarg(lean_object*); lean_object* l_Lean_Parser_Term_doIf_formatter___closed__15; lean_object* l_Lean_Parser_Term_doElem_quot_formatter___closed__2; @@ -1067,6 +1087,7 @@ lean_object* l_Lean_Parser_Term_doLet_parenthesizer___closed__1; lean_object* l___regBuiltin_Lean_Parser_Term_doUnless_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_doFor_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_doLet_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Term_doNested___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_doFor___closed__7; lean_object* l_Lean_Parser_Term_liftMethod; lean_object* l_Lean_PrettyPrinter_Formatter_symbol_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1076,6 +1097,7 @@ lean_object* l_Lean_Parser_Term_doContinue_parenthesizer___closed__1; lean_object* l___regBuiltin_Lean_Parser_Term_liftMethod_formatter___closed__1; lean_object* l_Lean_Parser_Term_doPatDecl___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_liftMethod_formatter___closed__3; +lean_object* l_Lean_Parser_Term_doNested_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_doLetArrow___closed__4; lean_object* l_Lean_Parser_Term_doFinally___closed__1; lean_object* l_Lean_Parser_Term_doHave; @@ -1140,6 +1162,7 @@ lean_object* l_Lean_Parser_Term_doLetArrow_formatter___closed__2; lean_object* l_Lean_Parser_Term_doUnless_formatter___closed__4; lean_object* l_Lean_Parser_Term_doReassignArrow___closed__6; lean_object* l_Lean_Parser_Term_doReassign_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Term_doNested___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_doMatchAlts___closed__6; lean_object* l_Lean_Parser_Term_doIf___closed__19; lean_object* l___regBuiltin_Lean_Parser_Term_doReassign_parenthesizer___closed__1; @@ -1235,6 +1258,7 @@ lean_object* l_Lean_Parser_regDoElemParserAttribute(lean_object*); lean_object* l_Lean_Parser_Term_do_parenthesizer___closed__2; lean_object* l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__17; lean_object* l_Lean_Parser_Term_doMatchAlt___closed__4; +lean_object* l_Lean_Parser_Term_doNested___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_doCatch_formatter___closed__7; lean_object* l_Lean_Parser_Term_doLet_formatter___closed__2; lean_object* l___regBuiltin_Lean_Parser_Term_doDbgTrace_parenthesizer(lean_object*); @@ -4867,19 +4891,17 @@ return x_2; static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__11() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Char_HasRepr___closed__1; -x_2 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__10; -x_3 = lean_string_append(x_1, x_2); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string("token at 'do' element"); +return x_1; } } static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__11; -x_2 = l_Char_HasRepr___closed__1; +x_1 = l_Lean_Parser_notFollowedByFn___closed__1; +x_2 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } @@ -4888,15 +4910,35 @@ static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___e _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Char_HasRepr___closed__1; +x_2 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__10; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__14() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__13; +x_2 = l_Char_HasRepr___closed__1; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__15() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__12; +x_2 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__14; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__14() { +static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__16() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -4906,29 +4948,29 @@ x_3 = lean_string_append(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__15() { +static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__17() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__14; +x_1 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__16; x_2 = l_Char_HasRepr___closed__1; x_3 = lean_string_append(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__16() { +static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__15; +x_2 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__17; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__17() { +static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__19() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -4938,29 +4980,29 @@ x_3 = lean_string_append(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__18() { +static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__20() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__17; +x_1 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__19; x_2 = l_Char_HasRepr___closed__1; x_3 = lean_string_append(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__19() { +static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__21() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__18; +x_2 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__20; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__20() { +static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__22() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -4970,29 +5012,29 @@ x_3 = lean_string_append(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__21() { +static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__23() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__20; +x_1 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__22; x_2 = l_Char_HasRepr___closed__1; x_3 = lean_string_append(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__22() { +static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__24() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__21; +x_2 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__23; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__23() { +static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__25() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -5002,29 +5044,29 @@ x_3 = lean_string_append(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__24() { +static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__26() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__23; +x_1 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__25; x_2 = l_Char_HasRepr___closed__1; x_3 = lean_string_append(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__25() { +static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__27() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__24; +x_2 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__26; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__26() { +static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__28() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -5034,29 +5076,29 @@ x_3 = lean_string_append(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__27() { +static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__29() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__26; +x_1 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__28; x_2 = l_Char_HasRepr___closed__1; x_3 = lean_string_append(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__28() { +static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__30() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__27; +x_2 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__29; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__29() { +static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__31() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -5066,22 +5108,22 @@ x_3 = lean_string_append(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__30() { +static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__32() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__29; +x_1 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__31; x_2 = l_Char_HasRepr___closed__1; x_3 = lean_string_append(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__31() { +static lean_object* _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__33() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__30; +x_2 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__32; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); @@ -5121,7 +5163,7 @@ lean_dec(x_215); if (x_217 == 0) { lean_object* x_218; lean_object* x_219; -x_218 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__31; +x_218 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__33; lean_inc(x_5); x_219 = l_Lean_Parser_ParserState_mkErrorsAt(x_211, x_218, x_5); x_13 = x_219; @@ -5137,7 +5179,7 @@ else { lean_object* x_220; lean_object* x_221; lean_dec(x_214); -x_220 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__31; +x_220 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__33; lean_inc(x_5); x_221 = l_Lean_Parser_ParserState_mkErrorsAt(x_211, x_220, x_5); x_13 = x_221; @@ -5148,7 +5190,7 @@ else { lean_object* x_222; lean_object* x_223; lean_dec(x_212); -x_222 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__31; +x_222 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__33; lean_inc(x_5); x_223 = l_Lean_Parser_ParserState_mkErrorsAt(x_211, x_222, x_5); x_13 = x_223; @@ -5164,8 +5206,8 @@ if (lean_obj_tag(x_7) == 0) lean_object* x_8; lean_object* x_9; lean_object* x_10; x_8 = l_Lean_Parser_ParserState_restore(x_6, x_4, x_5); lean_dec(x_4); -x_9 = l_Lean_Parser_notFollowedByFn___closed__1; -x_10 = l_Lean_Parser_ParserState_mkError(x_8, x_9); +x_9 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__12; +x_10 = l_Lean_Parser_ParserState_mkUnexpectedError(x_8, x_9); return x_10; } else @@ -5237,7 +5279,7 @@ lean_dec(x_201); if (x_203 == 0) { lean_object* x_204; lean_object* x_205; -x_204 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__28; +x_204 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__30; lean_inc(x_5); x_205 = l_Lean_Parser_ParserState_mkErrorsAt(x_197, x_204, x_5); x_21 = x_205; @@ -5253,7 +5295,7 @@ else { lean_object* x_206; lean_object* x_207; lean_dec(x_200); -x_206 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__28; +x_206 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__30; lean_inc(x_5); x_207 = l_Lean_Parser_ParserState_mkErrorsAt(x_197, x_206, x_5); x_21 = x_207; @@ -5264,7 +5306,7 @@ else { lean_object* x_208; lean_object* x_209; lean_dec(x_198); -x_208 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__28; +x_208 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__30; lean_inc(x_5); x_209 = l_Lean_Parser_ParserState_mkErrorsAt(x_197, x_208, x_5); x_21 = x_209; @@ -5339,7 +5381,7 @@ lean_dec(x_187); if (x_189 == 0) { lean_object* x_190; lean_object* x_191; -x_190 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__25; +x_190 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__27; lean_inc(x_5); x_191 = l_Lean_Parser_ParserState_mkErrorsAt(x_183, x_190, x_5); x_33 = x_191; @@ -5355,7 +5397,7 @@ else { lean_object* x_192; lean_object* x_193; lean_dec(x_186); -x_192 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__25; +x_192 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__27; lean_inc(x_5); x_193 = l_Lean_Parser_ParserState_mkErrorsAt(x_183, x_192, x_5); x_33 = x_193; @@ -5366,7 +5408,7 @@ else { lean_object* x_194; lean_object* x_195; lean_dec(x_184); -x_194 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__25; +x_194 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__27; lean_inc(x_5); x_195 = l_Lean_Parser_ParserState_mkErrorsAt(x_183, x_194, x_5); x_33 = x_195; @@ -5443,7 +5485,7 @@ lean_dec(x_173); if (x_175 == 0) { lean_object* x_176; lean_object* x_177; -x_176 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__22; +x_176 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__24; lean_inc(x_5); x_177 = l_Lean_Parser_ParserState_mkErrorsAt(x_169, x_176, x_5); x_47 = x_177; @@ -5459,7 +5501,7 @@ else { lean_object* x_178; lean_object* x_179; lean_dec(x_172); -x_178 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__22; +x_178 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__24; lean_inc(x_5); x_179 = l_Lean_Parser_ParserState_mkErrorsAt(x_169, x_178, x_5); x_47 = x_179; @@ -5470,7 +5512,7 @@ else { lean_object* x_180; lean_object* x_181; lean_dec(x_170); -x_180 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__22; +x_180 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__24; lean_inc(x_5); x_181 = l_Lean_Parser_ParserState_mkErrorsAt(x_169, x_180, x_5); x_47 = x_181; @@ -5549,7 +5591,7 @@ lean_dec(x_159); if (x_161 == 0) { lean_object* x_162; lean_object* x_163; -x_162 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__19; +x_162 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__21; lean_inc(x_5); x_163 = l_Lean_Parser_ParserState_mkErrorsAt(x_155, x_162, x_5); x_63 = x_163; @@ -5565,7 +5607,7 @@ else { lean_object* x_164; lean_object* x_165; lean_dec(x_158); -x_164 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__19; +x_164 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__21; lean_inc(x_5); x_165 = l_Lean_Parser_ParserState_mkErrorsAt(x_155, x_164, x_5); x_63 = x_165; @@ -5576,7 +5618,7 @@ else { lean_object* x_166; lean_object* x_167; lean_dec(x_156); -x_166 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__19; +x_166 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__21; lean_inc(x_5); x_167 = l_Lean_Parser_ParserState_mkErrorsAt(x_155, x_166, x_5); x_63 = x_167; @@ -5657,7 +5699,7 @@ lean_dec(x_145); if (x_147 == 0) { lean_object* x_148; lean_object* x_149; -x_148 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__16; +x_148 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__18; lean_inc(x_5); x_149 = l_Lean_Parser_ParserState_mkErrorsAt(x_141, x_148, x_5); x_81 = x_149; @@ -5673,7 +5715,7 @@ else { lean_object* x_150; lean_object* x_151; lean_dec(x_144); -x_150 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__16; +x_150 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__18; lean_inc(x_5); x_151 = l_Lean_Parser_ParserState_mkErrorsAt(x_141, x_150, x_5); x_81 = x_151; @@ -5684,7 +5726,7 @@ else { lean_object* x_152; lean_object* x_153; lean_dec(x_142); -x_152 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__16; +x_152 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__18; lean_inc(x_5); x_153 = l_Lean_Parser_ParserState_mkErrorsAt(x_141, x_152, x_5); x_81 = x_153; @@ -5762,7 +5804,7 @@ lean_dec(x_103); if (x_105 == 0) { lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; -x_106 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__13; +x_106 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__15; lean_inc(x_5); x_107 = l_Lean_Parser_ParserState_mkErrorsAt(x_99, x_106, x_5); x_108 = 1; @@ -5793,7 +5835,7 @@ else { lean_object* x_122; lean_object* x_123; uint8_t x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_dec(x_102); -x_122 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__13; +x_122 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__15; lean_inc(x_5); x_123 = l_Lean_Parser_ParserState_mkErrorsAt(x_99, x_122, x_5); x_124 = 1; @@ -5811,7 +5853,7 @@ else { lean_object* x_131; lean_object* x_132; uint8_t 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_dec(x_100); -x_131 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__13; +x_131 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__15; lean_inc(x_5); x_132 = l_Lean_Parser_ParserState_mkErrorsAt(x_99, x_131, x_5); x_133 = 1; @@ -26998,6 +27040,500 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } +static lean_object* _init_l_Lean_Parser_Term_doNested___elambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("doNested"); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Term_doNested___elambda__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_Lean_Parser_Term_doNested___elambda__1___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Term_doNested___elambda__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Term_doNested___elambda__1___closed__2; +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Parser_Term_doNested___elambda__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Term_doNested___elambda__1___closed__1; +x_2 = l_Lean_Parser_Term_doNested___elambda__1___closed__3; +x_3 = 1; +x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3); +return x_4; +} +} +lean_object* l_Lean_Parser_Term_doNested___elambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = l_Lean_Parser_Term_doNested___elambda__1___closed__4; +x_4 = lean_ctor_get(x_3, 1); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_1); +x_5 = l_Lean_Parser_tryAnti(x_1, x_2); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_4); +x_6 = lean_unsigned_to_nat(1024u); +x_7 = l_Lean_Parser_checkPrecFn(x_6, x_1, x_2); +x_8 = lean_ctor_get(x_7, 3); +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_19; lean_object* x_20; lean_object* x_21; +x_9 = lean_ctor_get(x_7, 0); +lean_inc(x_9); +x_10 = lean_array_get_size(x_9); +lean_dec(x_9); +x_19 = lean_ctor_get(x_7, 1); +lean_inc(x_19); +lean_inc(x_1); +x_20 = l_Lean_Parser_tokenFn(x_1, x_7); +x_21 = lean_ctor_get(x_20, 3); +lean_inc(x_21); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_ctor_get(x_20, 0); +lean_inc(x_22); +x_23 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_22); +lean_dec(x_22); +if (lean_obj_tag(x_23) == 2) +{ +lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +lean_dec(x_23); +x_25 = l_Lean_Parser_Term_doUnless___elambda__1___closed__8; +x_26 = lean_string_dec_eq(x_24, x_25); +lean_dec(x_24); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; +x_27 = l_Lean_Parser_Term_doUnless___elambda__1___closed__12; +x_28 = l_Lean_Parser_ParserState_mkErrorsAt(x_20, x_27, x_19); +x_11 = x_28; +goto block_18; +} +else +{ +lean_dec(x_19); +x_11 = x_20; +goto block_18; +} +} +else +{ +lean_object* x_29; lean_object* x_30; +lean_dec(x_23); +x_29 = l_Lean_Parser_Term_doUnless___elambda__1___closed__12; +x_30 = l_Lean_Parser_ParserState_mkErrorsAt(x_20, x_29, x_19); +x_11 = x_30; +goto block_18; +} +} +else +{ +lean_object* x_31; lean_object* x_32; +lean_dec(x_21); +x_31 = l_Lean_Parser_Term_doUnless___elambda__1___closed__12; +x_32 = l_Lean_Parser_ParserState_mkErrorsAt(x_20, x_31, x_19); +x_11 = x_32; +goto block_18; +} +block_18: +{ +lean_object* x_12; +x_12 = lean_ctor_get(x_11, 3); +lean_inc(x_12); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = l_Lean_Parser_Term_doSeq___elambda__1(x_1, x_11); +x_14 = l_Lean_Parser_Term_doNested___elambda__1___closed__2; +x_15 = l_Lean_Parser_ParserState_mkNode(x_13, x_14, x_10); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; +lean_dec(x_12); +lean_dec(x_1); +x_16 = l_Lean_Parser_Term_doNested___elambda__1___closed__2; +x_17 = l_Lean_Parser_ParserState_mkNode(x_11, x_16, x_10); +return x_17; +} +} +} +else +{ +lean_dec(x_8); +lean_dec(x_1); +return x_7; +} +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_33 = lean_ctor_get(x_2, 0); +lean_inc(x_33); +x_34 = lean_array_get_size(x_33); +lean_dec(x_33); +x_35 = lean_ctor_get(x_2, 1); +lean_inc(x_35); +lean_inc(x_1); +x_36 = lean_apply_2(x_4, x_1, x_2); +x_37 = lean_ctor_get(x_36, 3); +lean_inc(x_37); +if (lean_obj_tag(x_37) == 0) +{ +lean_dec(x_35); +lean_dec(x_34); +lean_dec(x_1); +return x_36; +} +else +{ +lean_object* x_38; lean_object* x_39; uint8_t x_40; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +lean_dec(x_37); +x_39 = lean_ctor_get(x_36, 1); +lean_inc(x_39); +x_40 = lean_nat_dec_eq(x_39, x_35); +lean_dec(x_39); +if (x_40 == 0) +{ +lean_dec(x_38); +lean_dec(x_35); +lean_dec(x_34); +lean_dec(x_1); +return x_36; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +lean_inc(x_35); +x_41 = l_Lean_Parser_ParserState_restore(x_36, x_34, x_35); +lean_dec(x_34); +x_42 = lean_unsigned_to_nat(1024u); +x_43 = l_Lean_Parser_checkPrecFn(x_42, x_1, x_41); +x_44 = lean_ctor_get(x_43, 3); +lean_inc(x_44); +if (lean_obj_tag(x_44) == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_45 = lean_ctor_get(x_43, 0); +lean_inc(x_45); +x_46 = lean_array_get_size(x_45); +lean_dec(x_45); +x_59 = lean_ctor_get(x_43, 1); +lean_inc(x_59); +lean_inc(x_1); +x_60 = l_Lean_Parser_tokenFn(x_1, x_43); +x_61 = lean_ctor_get(x_60, 3); +lean_inc(x_61); +if (lean_obj_tag(x_61) == 0) +{ +lean_object* x_62; lean_object* x_63; +x_62 = lean_ctor_get(x_60, 0); +lean_inc(x_62); +x_63 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_62); +lean_dec(x_62); +if (lean_obj_tag(x_63) == 2) +{ +lean_object* x_64; lean_object* x_65; uint8_t x_66; +x_64 = lean_ctor_get(x_63, 1); +lean_inc(x_64); +lean_dec(x_63); +x_65 = l_Lean_Parser_Term_doUnless___elambda__1___closed__8; +x_66 = lean_string_dec_eq(x_64, x_65); +lean_dec(x_64); +if (x_66 == 0) +{ +lean_object* x_67; lean_object* x_68; +x_67 = l_Lean_Parser_Term_doUnless___elambda__1___closed__12; +x_68 = l_Lean_Parser_ParserState_mkErrorsAt(x_60, x_67, x_59); +x_47 = x_68; +goto block_58; +} +else +{ +lean_dec(x_59); +x_47 = x_60; +goto block_58; +} +} +else +{ +lean_object* x_69; lean_object* x_70; +lean_dec(x_63); +x_69 = l_Lean_Parser_Term_doUnless___elambda__1___closed__12; +x_70 = l_Lean_Parser_ParserState_mkErrorsAt(x_60, x_69, x_59); +x_47 = x_70; +goto block_58; +} +} +else +{ +lean_object* x_71; lean_object* x_72; +lean_dec(x_61); +x_71 = l_Lean_Parser_Term_doUnless___elambda__1___closed__12; +x_72 = l_Lean_Parser_ParserState_mkErrorsAt(x_60, x_71, x_59); +x_47 = x_72; +goto block_58; +} +block_58: +{ +lean_object* x_48; +x_48 = lean_ctor_get(x_47, 3); +lean_inc(x_48); +if (lean_obj_tag(x_48) == 0) +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; lean_object* x_53; +x_49 = l_Lean_Parser_Term_doSeq___elambda__1(x_1, x_47); +x_50 = l_Lean_Parser_Term_doNested___elambda__1___closed__2; +x_51 = l_Lean_Parser_ParserState_mkNode(x_49, x_50, x_46); +x_52 = 1; +x_53 = l_Lean_Parser_mergeOrElseErrors(x_51, x_38, x_35, x_52); +lean_dec(x_35); +return x_53; +} +else +{ +lean_object* x_54; lean_object* x_55; uint8_t x_56; lean_object* x_57; +lean_dec(x_48); +lean_dec(x_1); +x_54 = l_Lean_Parser_Term_doNested___elambda__1___closed__2; +x_55 = l_Lean_Parser_ParserState_mkNode(x_47, x_54, x_46); +x_56 = 1; +x_57 = l_Lean_Parser_mergeOrElseErrors(x_55, x_38, x_35, x_56); +lean_dec(x_35); +return x_57; +} +} +} +else +{ +uint8_t x_73; lean_object* x_74; +lean_dec(x_44); +lean_dec(x_1); +x_73 = 1; +x_74 = l_Lean_Parser_mergeOrElseErrors(x_43, x_38, x_35, x_73); +lean_dec(x_35); +return x_74; +} +} +} +} +} +} +static lean_object* _init_l_Lean_Parser_Term_doNested___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_doNested___elambda__1___closed__2; +x_2 = l_Lean_Parser_Term_doUnless___closed__3; +x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Term_doNested___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_epsilonInfo; +x_2 = l_Lean_Parser_Term_doNested___closed__1; +x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Term_doNested___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Term_doNested___elambda__1___closed__4; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l_Lean_Parser_Term_doNested___closed__2; +x_4 = l_Lean_Parser_orelseInfo(x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Parser_Term_doNested___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_doNested___elambda__1), 2, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Term_doNested___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_doNested___closed__3; +x_2 = l_Lean_Parser_Term_doNested___closed__4; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Term_doNested() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Parser_Term_doNested___closed__5; +return x_1; +} +} +lean_object* l___regBuiltinParser_Lean_Parser_Term_doNested(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_2 = l_Lean_Parser_regBuiltinDoElemParserAttr___closed__4; +x_3 = l_Lean_Parser_Term_doNested___elambda__1___closed__2; +x_4 = 1; +x_5 = l_Lean_Parser_Term_doNested; +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Lean_Parser_addBuiltinParser(x_2, x_3, x_4, x_5, x_6, x_1); +return x_7; +} +} +static lean_object* _init_l_Lean_Parser_Term_doNested_formatter___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_Parser_Term_doNested___elambda__1___closed__1; +x_2 = l_Lean_Parser_Term_doNested___elambda__1___closed__3; +x_3 = 1; +x_4 = lean_box(x_3); +x_5 = lean_alloc_closure((void*)(l_Lean_Parser_mkAntiquot_formatter___boxed), 8, 3); +lean_closure_set(x_5, 0, x_1); +lean_closure_set(x_5, 1, x_2); +lean_closure_set(x_5, 2, x_4); +return x_5; +} +} +static lean_object* _init_l_Lean_Parser_Term_doNested_formatter___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Term_doNested___elambda__1___closed__2; +x_2 = lean_unsigned_to_nat(1024u); +x_3 = l_Lean_Parser_Term_doUnless_formatter___closed__5; +x_4 = lean_alloc_closure((void*)(l_Lean_Parser_leadingNode_formatter___boxed), 8, 3); +lean_closure_set(x_4, 0, x_1); +lean_closure_set(x_4, 1, x_2); +lean_closure_set(x_4, 2, x_3); +return x_4; +} +} +lean_object* l_Lean_Parser_Term_doNested_formatter(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_6 = l_Lean_Parser_Term_doNested_formatter___closed__1; +x_7 = l_Lean_Parser_Term_doNested_formatter___closed__2; +x_8 = l_Lean_PrettyPrinter_Formatter_orelse_formatter(x_6, x_7, x_1, x_2, x_3, x_4, x_5); +return x_8; +} +} +static lean_object* _init_l___regBuiltin_Lean_Parser_Term_doNested_formatter___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_doNested_formatter), 5, 0); +return x_1; +} +} +lean_object* l___regBuiltin_Lean_Parser_Term_doNested_formatter(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_2 = l_Lean_PrettyPrinter_formatterAttribute; +x_3 = l_Lean_Parser_Term_doNested___elambda__1___closed__2; +x_4 = l___regBuiltin_Lean_Parser_Term_doNested_formatter___closed__1; +x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); +return x_5; +} +} +static lean_object* _init_l_Lean_Parser_Term_doNested_parenthesizer___closed__1() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Term_doNested___elambda__1___closed__3; +x_2 = 1; +x_3 = lean_box(x_2); +x_4 = lean_alloc_closure((void*)(l_Lean_Parser_mkAntiquot_parenthesizer___rarg___boxed), 7, 2); +lean_closure_set(x_4, 0, x_1); +lean_closure_set(x_4, 1, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Parser_Term_doNested_parenthesizer___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Term_doNested___elambda__1___closed__2; +x_2 = lean_unsigned_to_nat(1024u); +x_3 = l_Lean_Parser_Term_doIf_parenthesizer___closed__4; +x_4 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer___boxed), 8, 3); +lean_closure_set(x_4, 0, x_1); +lean_closure_set(x_4, 1, x_2); +lean_closure_set(x_4, 2, x_3); +return x_4; +} +} +lean_object* l_Lean_Parser_Term_doNested_parenthesizer(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_6 = l_Lean_Parser_Term_doNested_parenthesizer___closed__1; +x_7 = l_Lean_Parser_Term_doNested_parenthesizer___closed__2; +x_8 = l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer(x_6, x_7, x_1, x_2, x_3, x_4, x_5); +return x_8; +} +} +static lean_object* _init_l___regBuiltin_Lean_Parser_Term_doNested_parenthesizer___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_doNested_parenthesizer), 5, 0); +return x_1; +} +} +lean_object* l___regBuiltin_Lean_Parser_Term_doNested_parenthesizer(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_2 = l_Lean_PrettyPrinter_parenthesizerAttribute; +x_3 = l_Lean_Parser_Term_doNested___elambda__1___closed__2; +x_4 = l___regBuiltin_Lean_Parser_Term_doNested_parenthesizer___closed__1; +x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); +return x_5; +} +} static lean_object* _init_l_Lean_Parser_Term_do___elambda__1___closed__1() { _start: { @@ -28540,6 +29076,10 @@ l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__30 = _ lean_mark_persistent(l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__30); l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__31 = _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__31(); lean_mark_persistent(l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__31); +l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__32 = _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__32(); +lean_mark_persistent(l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__32); +l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__33 = _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__33(); +lean_mark_persistent(l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__33); l_Lean_Parser_Term_notFollowedByRedefinedTermToken___closed__1 = _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___closed__1(); lean_mark_persistent(l_Lean_Parser_Term_notFollowedByRedefinedTermToken___closed__1); l_Lean_Parser_Term_notFollowedByRedefinedTermToken___closed__2 = _init_l_Lean_Parser_Term_notFollowedByRedefinedTermToken___closed__2(); @@ -30079,6 +30619,47 @@ lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_doExpr_parenthesizer___clos res = l___regBuiltin_Lean_Parser_Term_doExpr_parenthesizer(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l_Lean_Parser_Term_doNested___elambda__1___closed__1 = _init_l_Lean_Parser_Term_doNested___elambda__1___closed__1(); +lean_mark_persistent(l_Lean_Parser_Term_doNested___elambda__1___closed__1); +l_Lean_Parser_Term_doNested___elambda__1___closed__2 = _init_l_Lean_Parser_Term_doNested___elambda__1___closed__2(); +lean_mark_persistent(l_Lean_Parser_Term_doNested___elambda__1___closed__2); +l_Lean_Parser_Term_doNested___elambda__1___closed__3 = _init_l_Lean_Parser_Term_doNested___elambda__1___closed__3(); +lean_mark_persistent(l_Lean_Parser_Term_doNested___elambda__1___closed__3); +l_Lean_Parser_Term_doNested___elambda__1___closed__4 = _init_l_Lean_Parser_Term_doNested___elambda__1___closed__4(); +lean_mark_persistent(l_Lean_Parser_Term_doNested___elambda__1___closed__4); +l_Lean_Parser_Term_doNested___closed__1 = _init_l_Lean_Parser_Term_doNested___closed__1(); +lean_mark_persistent(l_Lean_Parser_Term_doNested___closed__1); +l_Lean_Parser_Term_doNested___closed__2 = _init_l_Lean_Parser_Term_doNested___closed__2(); +lean_mark_persistent(l_Lean_Parser_Term_doNested___closed__2); +l_Lean_Parser_Term_doNested___closed__3 = _init_l_Lean_Parser_Term_doNested___closed__3(); +lean_mark_persistent(l_Lean_Parser_Term_doNested___closed__3); +l_Lean_Parser_Term_doNested___closed__4 = _init_l_Lean_Parser_Term_doNested___closed__4(); +lean_mark_persistent(l_Lean_Parser_Term_doNested___closed__4); +l_Lean_Parser_Term_doNested___closed__5 = _init_l_Lean_Parser_Term_doNested___closed__5(); +lean_mark_persistent(l_Lean_Parser_Term_doNested___closed__5); +l_Lean_Parser_Term_doNested = _init_l_Lean_Parser_Term_doNested(); +lean_mark_persistent(l_Lean_Parser_Term_doNested); +res = l___regBuiltinParser_Lean_Parser_Term_doNested(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Parser_Term_doNested_formatter___closed__1 = _init_l_Lean_Parser_Term_doNested_formatter___closed__1(); +lean_mark_persistent(l_Lean_Parser_Term_doNested_formatter___closed__1); +l_Lean_Parser_Term_doNested_formatter___closed__2 = _init_l_Lean_Parser_Term_doNested_formatter___closed__2(); +lean_mark_persistent(l_Lean_Parser_Term_doNested_formatter___closed__2); +l___regBuiltin_Lean_Parser_Term_doNested_formatter___closed__1 = _init_l___regBuiltin_Lean_Parser_Term_doNested_formatter___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_doNested_formatter___closed__1); +res = l___regBuiltin_Lean_Parser_Term_doNested_formatter(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Parser_Term_doNested_parenthesizer___closed__1 = _init_l_Lean_Parser_Term_doNested_parenthesizer___closed__1(); +lean_mark_persistent(l_Lean_Parser_Term_doNested_parenthesizer___closed__1); +l_Lean_Parser_Term_doNested_parenthesizer___closed__2 = _init_l_Lean_Parser_Term_doNested_parenthesizer___closed__2(); +lean_mark_persistent(l_Lean_Parser_Term_doNested_parenthesizer___closed__2); +l___regBuiltin_Lean_Parser_Term_doNested_parenthesizer___closed__1 = _init_l___regBuiltin_Lean_Parser_Term_doNested_parenthesizer___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_doNested_parenthesizer___closed__1); +res = l___regBuiltin_Lean_Parser_Term_doNested_parenthesizer(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Lean_Parser_Term_do___elambda__1___closed__1 = _init_l_Lean_Parser_Term_do___elambda__1___closed__1(); lean_mark_persistent(l_Lean_Parser_Term_do___elambda__1___closed__1); l_Lean_Parser_Term_do___elambda__1___closed__2 = _init_l_Lean_Parser_Term_do___elambda__1___closed__2(); diff --git a/stage0/stdlib/Lean/Parser/Extension.c b/stage0/stdlib/Lean/Parser/Extension.c index e42e894ac1..bfb4f188c2 100644 --- a/stage0/stdlib/Lean/Parser/Extension.c +++ b/stage0/stdlib/Lean/Parser/Extension.c @@ -43,6 +43,7 @@ lean_object* l_unreachable_x21___rarg(lean_object*); lean_object* l_Lean_Parser_mkParserExtension___closed__2; lean_object* l_Array_iterateMAux___main___at___private_Lean_Parser_Extension_10__ParserExtension_addImported___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insertAux___main___at___private_Lean_Parser_Extension_3__addParserCategoryCore___spec__4(lean_object*, size_t, size_t, lean_object*, lean_object*); +lean_object* l_Lean_Parser_notFollowedByFn___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_IO_ofExcept___at___private_Lean_Parser_Extension_10__ParserExtension_addImported___spec__1(lean_object*, lean_object*); lean_object* lean_io_error_to_string(lean_object*); lean_object* l___private_Lean_Parser_Extension_6__addTokenConfig___closed__2; @@ -81,7 +82,6 @@ lean_object* l_Lean_Parser_nonReservedSymbolFn(lean_object*, lean_object*, lean_ lean_object* l___private_Lean_Parser_Extension_2__throwParserCategoryAlreadyDefined___rarg___closed__1; lean_object* l_Lean_Parser_mkParserState(lean_object*); lean_object* l_Lean_Parser_mkParserExtension___lambda__2(lean_object*); -lean_object* l_Lean_Parser_notFollowedByFn(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Parser_Extension_13__registerParserAttributeImplBuilder___closed__1; lean_object* l_Lean_Parser_declareBuiltinParser___closed__3; lean_object* l_Std_PersistentHashMap_contains___at___private_Lean_Parser_Extension_3__addParserCategoryCore___spec__1___boxed(lean_object*, lean_object*); @@ -154,7 +154,6 @@ lean_object* l_List_forM___main___at_Lean_Parser_runParserAttributeHooks___spec_ lean_object* l_Lean_Parser_setCategoryParserFnRef(lean_object*); extern lean_object* l_Lean_registerTagAttribute___lambda__4___closed__3; lean_object* l_Lean_Parser_throwUnknownParserCategory(lean_object*); -lean_object* l_Lean_Parser_notFollowedByCategoryTokenFn___closed__1; extern lean_object* l_Lean_Parser_PrattParsingTables_inhabited___closed__1; lean_object* l_Lean_Parser_compileParserDescr___main___closed__3; lean_object* l_Lean_Parser_throwUnknownParserCategory___rarg___closed__1; @@ -303,6 +302,7 @@ lean_object* l_Lean_Parser_sepBy1Info(lean_object*, lean_object*); lean_object* l_Lean_Parser_sepBy1Fn___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkAppStx___closed__3; uint8_t l_Array_anyRangeMAux___main___at_Lean_Parser_mkParserExtension___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_compileParserDescr___main___closed__9; lean_object* l_List_forM___main___at___private_Lean_Parser_Extension_12__ParserAttribute_add___spec__1___closed__2; lean_object* l___private_Lean_Parser_Extension_12__ParserAttribute_add___boxed(lean_object*); lean_object* l_Lean_Parser_declareLeadingBuiltinParser(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -3634,6 +3634,14 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } +static lean_object* _init_l_Lean_Parser_compileParserDescr___main___closed__9() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("element"); +return x_1; +} +} lean_object* l_Lean_Parser_compileParserDescr___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -4998,38 +5006,42 @@ uint8_t x_340; x_340 = !lean_is_exclusive(x_336); if (x_340 == 0) { -lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; +lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; x_341 = lean_ctor_get(x_336, 0); x_342 = lean_ctor_get(x_341, 1); lean_inc(x_342); lean_dec(x_341); -x_343 = lean_alloc_closure((void*)(l_Lean_Parser_notFollowedByFn), 3, 1); -lean_closure_set(x_343, 0, x_342); -x_344 = l_Lean_Parser_Parser_inhabited___closed__1; -x_345 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_345, 0, x_344); -lean_ctor_set(x_345, 1, x_343); -lean_ctor_set(x_336, 0, x_345); +x_343 = l_Lean_Parser_compileParserDescr___main___closed__9; +x_344 = lean_alloc_closure((void*)(l_Lean_Parser_notFollowedByFn___boxed), 4, 2); +lean_closure_set(x_344, 0, x_342); +lean_closure_set(x_344, 1, x_343); +x_345 = l_Lean_Parser_Parser_inhabited___closed__1; +x_346 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_346, 0, x_345); +lean_ctor_set(x_346, 1, x_344); +lean_ctor_set(x_336, 0, x_346); return x_336; } else { -lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; -x_346 = lean_ctor_get(x_336, 0); -lean_inc(x_346); -lean_dec(x_336); -x_347 = lean_ctor_get(x_346, 1); +lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; +x_347 = lean_ctor_get(x_336, 0); lean_inc(x_347); -lean_dec(x_346); -x_348 = lean_alloc_closure((void*)(l_Lean_Parser_notFollowedByFn), 3, 1); -lean_closure_set(x_348, 0, x_347); -x_349 = l_Lean_Parser_Parser_inhabited___closed__1; -x_350 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_350, 0, x_349); -lean_ctor_set(x_350, 1, x_348); -x_351 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_351, 0, x_350); -return x_351; +lean_dec(x_336); +x_348 = lean_ctor_get(x_347, 1); +lean_inc(x_348); +lean_dec(x_347); +x_349 = l_Lean_Parser_compileParserDescr___main___closed__9; +x_350 = lean_alloc_closure((void*)(l_Lean_Parser_notFollowedByFn___boxed), 4, 2); +lean_closure_set(x_350, 0, x_348); +lean_closure_set(x_350, 1, x_349); +x_351 = l_Lean_Parser_Parser_inhabited___closed__1; +x_352 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_352, 0, x_351); +lean_ctor_set(x_352, 1, x_350); +x_353 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_353, 0, x_352); +return x_353; } } } @@ -9693,14 +9705,6 @@ goto _start; } } } -static lean_object* _init_l_Lean_Parser_notFollowedByCategoryTokenFn___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("notFollowedByCategoryToken"); -return x_1; -} -} lean_object* l_Lean_Parser_notFollowedByCategoryTokenFn(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -9731,45 +9735,44 @@ return x_15; else { uint8_t x_16; -lean_dec(x_1); x_16 = !lean_is_exclusive(x_8); if (x_16 == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; +lean_object* x_17; lean_object* x_18; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; x_17 = lean_ctor_get(x_8, 0); -x_45 = lean_ctor_get(x_3, 2); -lean_inc(x_45); -x_46 = lean_ctor_get(x_45, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_3, 1); +x_47 = lean_ctor_get(x_3, 2); lean_inc(x_47); -x_48 = lean_nat_dec_eq(x_46, x_47); -lean_dec(x_47); -lean_dec(x_46); -if (x_48 == 0) +x_48 = lean_ctor_get(x_47, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_3, 1); +lean_inc(x_49); +x_50 = lean_nat_dec_eq(x_48, x_49); +lean_dec(x_49); +lean_dec(x_48); +if (x_50 == 0) { -lean_object* x_49; -lean_dec(x_45); +lean_object* x_51; +lean_dec(x_47); lean_free_object(x_8); lean_inc(x_2); -x_49 = l_Lean_Parser_peekTokenAux(x_2, x_3); -x_18 = x_49; -goto block_44; +x_51 = l_Lean_Parser_peekTokenAux(x_2, x_3); +x_18 = x_51; +goto block_46; } else { -lean_object* x_50; lean_object* x_51; -x_50 = lean_ctor_get(x_45, 2); -lean_inc(x_50); -lean_dec(x_45); -lean_ctor_set(x_8, 0, x_50); -x_51 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_51, 0, x_3); -lean_ctor_set(x_51, 1, x_8); -x_18 = x_51; -goto block_44; +lean_object* x_52; lean_object* x_53; +x_52 = lean_ctor_get(x_47, 2); +lean_inc(x_52); +lean_dec(x_47); +lean_ctor_set(x_8, 0, x_52); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_3); +lean_ctor_set(x_53, 1, x_8); +x_18 = x_53; +goto block_46; } -block_44: +block_46: { lean_object* x_19; x_19 = lean_ctor_get(x_18, 1); @@ -9779,6 +9782,7 @@ if (lean_obj_tag(x_19) == 0) lean_object* x_20; lean_dec(x_17); lean_dec(x_2); +lean_dec(x_1); x_20 = lean_ctor_get(x_18, 0); lean_inc(x_20); lean_dec(x_18); @@ -9817,230 +9821,243 @@ lean_dec(x_28); lean_dec(x_26); if (lean_obj_tag(x_29) == 0) { +lean_dec(x_1); return x_23; } else { -lean_object* x_30; lean_object* x_31; +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_dec(x_29); -x_30 = l_Lean_Parser_notFollowedByCategoryTokenFn___closed__1; -x_31 = l_Lean_Parser_ParserState_mkError(x_23, x_30); -return x_31; +x_30 = l_System_FilePath_dirName___closed__1; +x_31 = l_Lean_Name_toStringWithSep___main(x_30, x_1); +x_32 = l_Lean_Parser_ParserState_mkUnexpectedError(x_23, x_31); +return x_32; } } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_32 = lean_ctor_get(x_18, 0); -lean_inc(x_32); -lean_dec(x_18); -x_33 = lean_ctor_get(x_21, 1); +lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_33 = lean_ctor_get(x_18, 0); lean_inc(x_33); -lean_dec(x_21); -x_34 = l_Lean_Parser_mkAntiquot___closed__8; -x_35 = lean_string_dec_eq(x_33, x_34); -if (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_17, 0); -lean_inc(x_36); -lean_dec(x_17); -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -lean_dec(x_36); -x_38 = lean_box(0); -x_39 = lean_name_mk_string(x_38, x_33); -x_40 = l_Std_RBNode_find___main___at_Lean_Parser_notFollowedByCategoryTokenFn___spec__1(x_37, x_39); -lean_dec(x_39); -lean_dec(x_37); -if (lean_obj_tag(x_40) == 0) -{ -return x_32; -} -else -{ -lean_object* x_41; lean_object* x_42; -lean_dec(x_40); -x_41 = l_Lean_Parser_notFollowedByCategoryTokenFn___closed__1; -x_42 = l_Lean_Parser_ParserState_mkError(x_32, x_41); -return x_42; -} -} -else -{ -lean_dec(x_33); -lean_dec(x_17); -return x_32; -} -} -} -else -{ -lean_object* x_43; -lean_dec(x_21); -lean_dec(x_17); -lean_dec(x_2); -x_43 = lean_ctor_get(x_18, 0); -lean_inc(x_43); lean_dec(x_18); -return x_43; +x_34 = lean_ctor_get(x_21, 1); +lean_inc(x_34); +lean_dec(x_21); +x_35 = l_Lean_Parser_mkAntiquot___closed__8; +x_36 = lean_string_dec_eq(x_34, x_35); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_37 = lean_ctor_get(x_17, 0); +lean_inc(x_37); +lean_dec(x_17); +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +lean_dec(x_37); +x_39 = lean_box(0); +x_40 = lean_name_mk_string(x_39, x_34); +x_41 = l_Std_RBNode_find___main___at_Lean_Parser_notFollowedByCategoryTokenFn___spec__1(x_38, x_40); +lean_dec(x_40); +lean_dec(x_38); +if (lean_obj_tag(x_41) == 0) +{ +lean_dec(x_1); +return x_33; } +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +lean_dec(x_41); +x_42 = l_System_FilePath_dirName___closed__1; +x_43 = l_Lean_Name_toStringWithSep___main(x_42, x_1); +x_44 = l_Lean_Parser_ParserState_mkUnexpectedError(x_33, x_43); +return x_44; +} +} +else +{ +lean_dec(x_34); +lean_dec(x_17); +lean_dec(x_1); +return x_33; } } } else { -lean_object* x_52; lean_object* x_53; lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; -x_52 = lean_ctor_get(x_8, 0); -lean_inc(x_52); -lean_dec(x_8); -x_80 = lean_ctor_get(x_3, 2); -lean_inc(x_80); -x_81 = lean_ctor_get(x_80, 0); -lean_inc(x_81); -x_82 = lean_ctor_get(x_3, 1); -lean_inc(x_82); -x_83 = lean_nat_dec_eq(x_81, x_82); -lean_dec(x_82); -lean_dec(x_81); -if (x_83 == 0) -{ -lean_object* x_84; -lean_dec(x_80); -lean_inc(x_2); -x_84 = l_Lean_Parser_peekTokenAux(x_2, x_3); -x_53 = x_84; -goto block_79; -} -else -{ -lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_85 = lean_ctor_get(x_80, 2); -lean_inc(x_85); -lean_dec(x_80); -x_86 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_86, 0, x_85); -x_87 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_87, 0, x_3); -lean_ctor_set(x_87, 1, x_86); -x_53 = x_87; -goto block_79; -} -block_79: -{ -lean_object* x_54; -x_54 = lean_ctor_get(x_53, 1); -lean_inc(x_54); -if (lean_obj_tag(x_54) == 0) -{ -lean_object* x_55; -lean_dec(x_52); +lean_object* x_45; +lean_dec(x_21); +lean_dec(x_17); lean_dec(x_2); -x_55 = lean_ctor_get(x_53, 0); -lean_inc(x_55); -lean_dec(x_53); -return x_55; +lean_dec(x_1); +x_45 = lean_ctor_get(x_18, 0); +lean_inc(x_45); +lean_dec(x_18); +return x_45; +} +} +} } else { +lean_object* x_54; lean_object* x_55; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; +x_54 = lean_ctor_get(x_8, 0); +lean_inc(x_54); +lean_dec(x_8); +x_84 = lean_ctor_get(x_3, 2); +lean_inc(x_84); +x_85 = lean_ctor_get(x_84, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_3, 1); +lean_inc(x_86); +x_87 = lean_nat_dec_eq(x_85, x_86); +lean_dec(x_86); +lean_dec(x_85); +if (x_87 == 0) +{ +lean_object* x_88; +lean_dec(x_84); +lean_inc(x_2); +x_88 = l_Lean_Parser_peekTokenAux(x_2, x_3); +x_55 = x_88; +goto block_83; +} +else +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_89 = lean_ctor_get(x_84, 2); +lean_inc(x_89); +lean_dec(x_84); +x_90 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_90, 0, x_89); +x_91 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_91, 0, x_3); +lean_ctor_set(x_91, 1, x_90); +x_55 = x_91; +goto block_83; +} +block_83: +{ lean_object* x_56; -x_56 = lean_ctor_get(x_54, 0); +x_56 = lean_ctor_get(x_55, 1); lean_inc(x_56); +if (lean_obj_tag(x_56) == 0) +{ +lean_object* x_57; lean_dec(x_54); -if (lean_obj_tag(x_56) == 2) -{ -uint8_t x_57; -x_57 = lean_ctor_get_uint8(x_2, sizeof(void*)*6); lean_dec(x_2); -if (x_57 == 0) +lean_dec(x_1); +x_57 = lean_ctor_get(x_55, 0); +lean_inc(x_57); +lean_dec(x_55); +return x_57; +} +else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_58 = lean_ctor_get(x_53, 0); +lean_object* x_58; +x_58 = lean_ctor_get(x_56, 0); lean_inc(x_58); -lean_dec(x_53); -x_59 = lean_ctor_get(x_56, 1); -lean_inc(x_59); lean_dec(x_56); -x_60 = lean_ctor_get(x_52, 0); -lean_inc(x_60); -lean_dec(x_52); -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -lean_dec(x_60); -x_62 = lean_box(0); -x_63 = lean_name_mk_string(x_62, x_59); -x_64 = l_Std_RBNode_find___main___at_Lean_Parser_notFollowedByCategoryTokenFn___spec__1(x_61, x_63); -lean_dec(x_63); -lean_dec(x_61); -if (lean_obj_tag(x_64) == 0) +if (lean_obj_tag(x_58) == 2) { -return x_58; -} -else -{ -lean_object* x_65; lean_object* x_66; -lean_dec(x_64); -x_65 = l_Lean_Parser_notFollowedByCategoryTokenFn___closed__1; -x_66 = l_Lean_Parser_ParserState_mkError(x_58, x_65); -return x_66; -} -} -else -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; -x_67 = lean_ctor_get(x_53, 0); -lean_inc(x_67); -lean_dec(x_53); -x_68 = lean_ctor_get(x_56, 1); -lean_inc(x_68); -lean_dec(x_56); -x_69 = l_Lean_Parser_mkAntiquot___closed__8; -x_70 = lean_string_dec_eq(x_68, x_69); -if (x_70 == 0) -{ -lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_71 = lean_ctor_get(x_52, 0); -lean_inc(x_71); -lean_dec(x_52); -x_72 = lean_ctor_get(x_71, 0); -lean_inc(x_72); -lean_dec(x_71); -x_73 = lean_box(0); -x_74 = lean_name_mk_string(x_73, x_68); -x_75 = l_Std_RBNode_find___main___at_Lean_Parser_notFollowedByCategoryTokenFn___spec__1(x_72, x_74); -lean_dec(x_74); -lean_dec(x_72); -if (lean_obj_tag(x_75) == 0) -{ -return x_67; -} -else -{ -lean_object* x_76; lean_object* x_77; -lean_dec(x_75); -x_76 = l_Lean_Parser_notFollowedByCategoryTokenFn___closed__1; -x_77 = l_Lean_Parser_ParserState_mkError(x_67, x_76); -return x_77; -} -} -else -{ -lean_dec(x_68); -lean_dec(x_52); -return x_67; -} -} -} -else -{ -lean_object* x_78; -lean_dec(x_56); -lean_dec(x_52); +uint8_t x_59; +x_59 = lean_ctor_get_uint8(x_2, sizeof(void*)*6); lean_dec(x_2); -x_78 = lean_ctor_get(x_53, 0); -lean_inc(x_78); -lean_dec(x_53); -return x_78; +if (x_59 == 0) +{ +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_60 = lean_ctor_get(x_55, 0); +lean_inc(x_60); +lean_dec(x_55); +x_61 = lean_ctor_get(x_58, 1); +lean_inc(x_61); +lean_dec(x_58); +x_62 = lean_ctor_get(x_54, 0); +lean_inc(x_62); +lean_dec(x_54); +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +lean_dec(x_62); +x_64 = lean_box(0); +x_65 = lean_name_mk_string(x_64, x_61); +x_66 = l_Std_RBNode_find___main___at_Lean_Parser_notFollowedByCategoryTokenFn___spec__1(x_63, x_65); +lean_dec(x_65); +lean_dec(x_63); +if (lean_obj_tag(x_66) == 0) +{ +lean_dec(x_1); +return x_60; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; +lean_dec(x_66); +x_67 = l_System_FilePath_dirName___closed__1; +x_68 = l_Lean_Name_toStringWithSep___main(x_67, x_1); +x_69 = l_Lean_Parser_ParserState_mkUnexpectedError(x_60, x_68); +return x_69; +} +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; +x_70 = lean_ctor_get(x_55, 0); +lean_inc(x_70); +lean_dec(x_55); +x_71 = lean_ctor_get(x_58, 1); +lean_inc(x_71); +lean_dec(x_58); +x_72 = l_Lean_Parser_mkAntiquot___closed__8; +x_73 = lean_string_dec_eq(x_71, x_72); +if (x_73 == 0) +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_74 = lean_ctor_get(x_54, 0); +lean_inc(x_74); +lean_dec(x_54); +x_75 = lean_ctor_get(x_74, 0); +lean_inc(x_75); +lean_dec(x_74); +x_76 = lean_box(0); +x_77 = lean_name_mk_string(x_76, x_71); +x_78 = l_Std_RBNode_find___main___at_Lean_Parser_notFollowedByCategoryTokenFn___spec__1(x_75, x_77); +lean_dec(x_77); +lean_dec(x_75); +if (lean_obj_tag(x_78) == 0) +{ +lean_dec(x_1); +return x_70; +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; +lean_dec(x_78); +x_79 = l_System_FilePath_dirName___closed__1; +x_80 = l_Lean_Name_toStringWithSep___main(x_79, x_1); +x_81 = l_Lean_Parser_ParserState_mkUnexpectedError(x_70, x_80); +return x_81; +} +} +else +{ +lean_dec(x_71); +lean_dec(x_54); +lean_dec(x_1); +return x_70; +} +} +} +else +{ +lean_object* x_82; +lean_dec(x_58); +lean_dec(x_54); +lean_dec(x_2); +lean_dec(x_1); +x_82 = lean_ctor_get(x_55, 0); +lean_inc(x_82); +lean_dec(x_55); +return x_82; } } } @@ -10214,6 +10231,8 @@ l_Lean_Parser_compileParserDescr___main___closed__7 = _init_l_Lean_Parser_compil lean_mark_persistent(l_Lean_Parser_compileParserDescr___main___closed__7); l_Lean_Parser_compileParserDescr___main___closed__8 = _init_l_Lean_Parser_compileParserDescr___main___closed__8(); lean_mark_persistent(l_Lean_Parser_compileParserDescr___main___closed__8); +l_Lean_Parser_compileParserDescr___main___closed__9 = _init_l_Lean_Parser_compileParserDescr___main___closed__9(); +lean_mark_persistent(l_Lean_Parser_compileParserDescr___main___closed__9); res = l_Lean_Parser_mkParserAttributeHooks(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_Parser_parserAttributeHooks = lean_io_result_get_value(res); @@ -10371,8 +10390,6 @@ lean_mark_persistent(l_Lean_Parser_regCommandParserAttribute___closed__2); res = l_Lean_Parser_regCommandParserAttribute(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Parser_notFollowedByCategoryTokenFn___closed__1 = _init_l_Lean_Parser_notFollowedByCategoryTokenFn___closed__1(); -lean_mark_persistent(l_Lean_Parser_notFollowedByCategoryTokenFn___closed__1); l_Lean_Parser_notFollowedByCommandToken___closed__1 = _init_l_Lean_Parser_notFollowedByCommandToken___closed__1(); lean_mark_persistent(l_Lean_Parser_notFollowedByCommandToken___closed__1); l_Lean_Parser_notFollowedByCommandToken___closed__2 = _init_l_Lean_Parser_notFollowedByCommandToken___closed__2(); diff --git a/stage0/stdlib/Lean/Parser/Syntax.c b/stage0/stdlib/Lean/Parser/Syntax.c index ee098bcf9b..722f3f0a73 100644 --- a/stage0/stdlib/Lean/Parser/Syntax.c +++ b/stage0/stdlib/Lean/Parser/Syntax.c @@ -108,7 +108,6 @@ lean_object* l_Lean_Parser_Command_notation_formatter___closed__2; lean_object* l_Lean_Parser_Command_syntaxAbbrev___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Parenthesizer_withAntiquot_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_maxSymbol___elambda__1___closed__3; -extern lean_object* l_Lean_Parser_notFollowedByFn___closed__1; extern lean_object* l_Lean_nullKind; lean_object* l_Lean_Parser_Command_macroTailCommand_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_quot___closed__2; @@ -328,7 +327,6 @@ lean_object* l___regBuiltin_Lean_Parser_Syntax_try_parenthesizer___closed__1; lean_object* l_Lean_Parser_Command_macroTailDefault___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_maxSymbol___closed__6; lean_object* l_Lean_Parser_Syntax_paren_parenthesizer___closed__1; -extern lean_object* l_Lean_Parser_Tactic_generalize_parenthesizer___closed__3; lean_object* l_Lean_Parser_Command_elab___closed__3; lean_object* l_Lean_Parser_Command_syntax_formatter___closed__1; lean_object* l_Lean_PrettyPrinter_Formatter_try_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -619,6 +617,7 @@ lean_object* l_Lean_Parser_Syntax_orelse_parenthesizer___closed__2; lean_object* l_Lean_Parser_noFirstTokenInfo(lean_object*); lean_object* l_Lean_Parser_Command_infix___elambda__1___closed__8; lean_object* l_Lean_Parser_Syntax_paren_parenthesizer___closed__2; +lean_object* l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__8; lean_object* l_Lean_Parser_Command_prefix___elambda__1___closed__7; lean_object* l_Lean_Parser_Command_macroTailCommand_parenthesizer___closed__5; lean_object* l_Lean_Parser_Command_macro__rules___closed__4; @@ -793,6 +792,7 @@ lean_object* l_Lean_Parser_Command_parserKind_parenthesizer___closed__2; lean_object* l_Lean_Parser_Command_notationItem___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_stx_quot___closed__1; lean_object* l_Lean_Parser_Command_parserKindPrio___closed__1; +extern lean_object* l_Lean_Parser_Command_openHiding_parenthesizer___closed__2; lean_object* l_Lean_Parser_Command_syntaxCat_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Syntax_noWs___closed__6; lean_object* l_Lean_Parser_Command_macroTailTactic; @@ -885,7 +885,6 @@ lean_object* l___regBuiltin_Lean_Parser_Command_syntax_formatter(lean_object*); lean_object* l_Lean_Parser_precedence_parenthesizer___closed__4; lean_object* l_Lean_Parser_Command_syntax_parenthesizer___closed__4; lean_object* l_Lean_Parser_Command_elab_parenthesizer___closed__4; -extern lean_object* l_Lean_Parser_Tactic_generalize_parenthesizer___closed__2; lean_object* l_Lean_Parser_Syntax_paren_formatter___closed__2; lean_object* l_Lean_Parser_Command_identPrec___elambda__1___closed__2; lean_object* l_Lean_Parser_Command_optKindPrio_parenthesizer___closed__1; @@ -1044,7 +1043,6 @@ extern lean_object* l_Lean_Parser_Tactic_seq1___closed__4; extern lean_object* l_Lean_Parser_Term_forall_formatter___closed__6; lean_object* l_Lean_Parser_Command_mixfix_parenthesizer___closed__9; lean_object* l_Lean_Parser_toggleInsideQuotFn(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Parser_Tactic_generalize_parenthesizer___closed__6; lean_object* l_Lean_Parser_unquotedSymbolFn(lean_object*, lean_object*); lean_object* l_Lean_Parser_Syntax_notFollowedBy_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_identPrec___elambda__1___closed__4; @@ -1107,6 +1105,7 @@ lean_object* l_Lean_Parser_Command_infixl___elambda__1(lean_object*, lean_object lean_object* l_Lean_Parser_Syntax_ident_parenthesizer___closed__1; lean_object* l_Lean_Parser_Syntax_atom_parenthesizer___closed__2; lean_object* l_Lean_Parser_Command_postfix___closed__4; +extern lean_object* l_Lean_Parser_Command_namespace_parenthesizer___closed__2; lean_object* l_Lean_Parser_Command_notation___closed__2; lean_object* l_Lean_Parser_precedenceLit_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_syntaxCat___closed__3; @@ -1452,6 +1451,7 @@ lean_object* l_Lean_Parser_Command_prefix_formatter(lean_object*, lean_object*, extern lean_object* l___regBuiltinParser_Lean_Parser_Level_num___closed__1; lean_object* l_Lean_Parser_Syntax_atom___closed__2; lean_object* l_Lean_Parser_precedence___closed__2; +extern lean_object* l_Lean_Parser_Command_openHiding_parenthesizer___closed__3; lean_object* l_Lean_Parser_Command_parserKind___closed__2; lean_object* l_Lean_Parser_Syntax_char___elambda__1(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Parser_Syntax_optional_parenthesizer___closed__1; @@ -8960,35 +8960,43 @@ return x_5; static lean_object* _init_l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__1() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Syntax_paren___elambda__1___closed__2; -x_2 = l_Lean_Parser_notFollowedByFn___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string("notFollowedBy"); +return x_1; } } static lean_object* _init_l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__1; -x_2 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Syntax_paren___elambda__1___closed__2; +x_2 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__3() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__2; +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__4() { +_start: +{ lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; -x_1 = l_Lean_Parser_notFollowedByFn___closed__1; -x_2 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__2; +x_1 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__1; +x_2 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__3; x_3 = 1; x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__4() { +static lean_object* _init_l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__5() { _start: { lean_object* x_1; @@ -8996,30 +9004,30 @@ x_1 = lean_mk_string("notFollowedBy "); return x_1; } } -static lean_object* _init_l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__4; -x_2 = l_String_trim(x_1); -return x_2; -} -} static lean_object* _init_l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__6() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Char_HasRepr___closed__1; -x_2 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__5; -x_3 = lean_string_append(x_1, x_2); -return x_3; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__5; +x_2 = l_String_trim(x_1); +return x_2; } } static lean_object* _init_l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__6; +x_1 = l_Char_HasRepr___closed__1; +x_2 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__6; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__7; x_2 = l_Char_HasRepr___closed__1; x_3 = lean_string_append(x_1, x_2); return x_3; @@ -9029,7 +9037,7 @@ lean_object* l_Lean_Parser_Syntax_notFollowedBy___elambda__1(lean_object* x_1, l _start: { lean_object* x_3; lean_object* x_4; uint8_t x_5; -x_3 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__3; +x_3 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__4; x_4 = lean_ctor_get(x_3, 1); lean_inc(x_4); lean_inc(x_2); @@ -9050,8 +9058,8 @@ x_9 = lean_ctor_get(x_7, 0); lean_inc(x_9); x_10 = lean_array_get_size(x_9); lean_dec(x_9); -x_11 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__5; -x_12 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__7; +x_11 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__6; +x_12 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__8; lean_inc(x_1); x_13 = l_Lean_Parser_nonReservedSymbolFnAux(x_11, x_12, x_1, x_7); x_14 = lean_ctor_get(x_13, 3); @@ -9062,7 +9070,7 @@ lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean x_15 = l_Lean_Parser_categoryParserFnImpl___closed__4; x_16 = l_Lean_Parser_maxPrec; x_17 = l_Lean_Parser_categoryParser___elambda__1(x_15, x_16, x_1, x_13); -x_18 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__1; +x_18 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__2; x_19 = l_Lean_Parser_ParserState_mkNode(x_17, x_18, x_10); return x_19; } @@ -9071,7 +9079,7 @@ else lean_object* x_20; lean_object* x_21; lean_dec(x_14); lean_dec(x_1); -x_20 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__1; +x_20 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__2; x_21 = l_Lean_Parser_ParserState_mkNode(x_13, x_20, x_10); return x_21; } @@ -9138,8 +9146,8 @@ x_34 = lean_ctor_get(x_32, 0); lean_inc(x_34); x_35 = lean_array_get_size(x_34); lean_dec(x_34); -x_36 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__5; -x_37 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__7; +x_36 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__6; +x_37 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__8; lean_inc(x_1); x_38 = l_Lean_Parser_nonReservedSymbolFnAux(x_36, x_37, x_1, x_32); x_39 = lean_ctor_get(x_38, 3); @@ -9150,7 +9158,7 @@ lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean x_40 = l_Lean_Parser_categoryParserFnImpl___closed__4; x_41 = l_Lean_Parser_maxPrec; x_42 = l_Lean_Parser_categoryParser___elambda__1(x_40, x_41, x_1, x_38); -x_43 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__1; +x_43 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__2; x_44 = l_Lean_Parser_ParserState_mkNode(x_42, x_43, x_35); x_45 = 1; x_46 = l_Lean_Parser_mergeOrElseErrors(x_44, x_27, x_24, x_45); @@ -9162,7 +9170,7 @@ else lean_object* x_47; lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_dec(x_39); lean_dec(x_1); -x_47 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__1; +x_47 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__2; x_48 = l_Lean_Parser_ParserState_mkNode(x_38, x_47, x_35); x_49 = 1; x_50 = l_Lean_Parser_mergeOrElseErrors(x_48, x_27, x_24, x_49); @@ -9189,7 +9197,7 @@ static lean_object* _init_l_Lean_Parser_Syntax_notFollowedBy___closed__1() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__5; +x_1 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__6; x_2 = 0; x_3 = l_Lean_Parser_nonReservedSymbolInfo(x_1, x_2); return x_3; @@ -9211,7 +9219,7 @@ static lean_object* _init_l_Lean_Parser_Syntax_notFollowedBy___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__1; +x_1 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__2; x_2 = l_Lean_Parser_Syntax_notFollowedBy___closed__2; x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); return x_3; @@ -9231,7 +9239,7 @@ static lean_object* _init_l_Lean_Parser_Syntax_notFollowedBy___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__3; +x_1 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__4; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); x_3 = l_Lean_Parser_Syntax_notFollowedBy___closed__4; @@ -9272,7 +9280,7 @@ _start: { lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; x_2 = l_Lean_Parser_categoryParserFnImpl___closed__4; -x_3 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__1; +x_3 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__2; x_4 = 1; x_5 = l_Lean_Parser_Syntax_notFollowedBy; x_6 = lean_unsigned_to_nat(0u); @@ -9284,8 +9292,8 @@ static lean_object* _init_l_Lean_Parser_Syntax_notFollowedBy_formatter___closed_ _start: { lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Parser_notFollowedByFn___closed__1; -x_2 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__2; +x_1 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__1; +x_2 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__3; x_3 = 1; x_4 = lean_box(x_3); x_5 = lean_alloc_closure((void*)(l_Lean_Parser_mkAntiquot_formatter___boxed), 8, 3); @@ -9299,7 +9307,7 @@ static lean_object* _init_l_Lean_Parser_Syntax_notFollowedBy_formatter___closed_ _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__4; +x_1 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__5; x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_nonReservedSymbol_formatter___boxed), 6, 1); lean_closure_set(x_2, 0, x_1); return x_2; @@ -9321,7 +9329,7 @@ static lean_object* _init_l_Lean_Parser_Syntax_notFollowedBy_formatter___closed_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__1; +x_1 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__2; x_2 = lean_unsigned_to_nat(1024u); x_3 = l_Lean_Parser_Syntax_notFollowedBy_formatter___closed__3; x_4 = lean_alloc_closure((void*)(l_Lean_Parser_leadingNode_formatter___boxed), 8, 3); @@ -9354,7 +9362,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_PrettyPrinter_formatterAttribute; -x_3 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__1; +x_3 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__2; x_4 = l___regBuiltin_Lean_Parser_Syntax_notFollowedBy_formatter___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -9364,7 +9372,7 @@ static lean_object* _init_l_Lean_Parser_Syntax_notFollowedBy_parenthesizer___clo _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__2; +x_1 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__3; x_2 = 1; x_3 = lean_box(x_2); x_4 = lean_alloc_closure((void*)(l_Lean_Parser_mkAntiquot_parenthesizer___rarg___boxed), 7, 2); @@ -9377,7 +9385,7 @@ static lean_object* _init_l_Lean_Parser_Syntax_notFollowedBy_parenthesizer___clo _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__1; +x_1 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__2; x_2 = lean_unsigned_to_nat(1024u); x_3 = l_Lean_Parser_Syntax_interpolatedStr_parenthesizer___closed__3; x_4 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer___boxed), 8, 3); @@ -9410,7 +9418,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_PrettyPrinter_parenthesizerAttribute; -x_3 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__1; +x_3 = l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__2; x_4 = l___regBuiltin_Lean_Parser_Syntax_notFollowedBy_parenthesizer___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -19041,7 +19049,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_antiquotNestedExpr_parenthesizer___closed__3; -x_2 = l_Lean_Parser_Tactic_generalize_parenthesizer___closed__2; +x_2 = l_Lean_Parser_Command_openHiding_parenthesizer___closed__2; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); @@ -21693,7 +21701,7 @@ static lean_object* _init_l_Lean_Parser_Command_parserKindPrio_parenthesizer___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_generalize_parenthesizer___closed__3; +x_1 = l_Lean_Parser_Command_openHiding_parenthesizer___closed__3; x_2 = l_Lean_Parser_Level_num_parenthesizer___closed__2; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); lean_closure_set(x_3, 0, x_1); @@ -21898,7 +21906,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Syntax_paren_parenthesizer___closed__3; -x_2 = l_Lean_Parser_Tactic_generalize_parenthesizer___closed__6; +x_2 = l_Lean_Parser_Command_namespace_parenthesizer___closed__2; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); @@ -23388,7 +23396,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Command_syntaxCat___elambda__1___closed__2; x_2 = lean_unsigned_to_nat(1024u); -x_3 = l_Lean_Parser_Tactic_generalize_parenthesizer___closed__6; +x_3 = l_Lean_Parser_Command_namespace_parenthesizer___closed__2; x_4 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer___boxed), 8, 3); lean_closure_set(x_4, 0, x_1); lean_closure_set(x_4, 1, x_2); @@ -27314,7 +27322,7 @@ static lean_object* _init_l_Lean_Parser_Command_macroTailDefault_parenthesizer__ _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Tactic_generalize_parenthesizer___closed__6; +x_1 = l_Lean_Parser_Command_namespace_parenthesizer___closed__2; x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_try_parenthesizer), 6, 1); lean_closure_set(x_2, 0, x_1); return x_2; @@ -28591,7 +28599,7 @@ static lean_object* _init_l_Lean_Parser_Command_elab__rules_parenthesizer___clos _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Tactic_generalize_parenthesizer___closed__6; +x_1 = l_Lean_Parser_Command_namespace_parenthesizer___closed__2; x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_optional_parenthesizer), 6, 1); lean_closure_set(x_2, 0, x_1); return x_2; @@ -31104,6 +31112,8 @@ l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__6 = _init_l_Lean_Parse lean_mark_persistent(l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__6); l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__7 = _init_l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__7(); lean_mark_persistent(l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__7); +l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__8 = _init_l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__8(); +lean_mark_persistent(l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__8); l_Lean_Parser_Syntax_notFollowedBy___closed__1 = _init_l_Lean_Parser_Syntax_notFollowedBy___closed__1(); lean_mark_persistent(l_Lean_Parser_Syntax_notFollowedBy___closed__1); l_Lean_Parser_Syntax_notFollowedBy___closed__2 = _init_l_Lean_Parser_Syntax_notFollowedBy___closed__2(); diff --git a/stage0/stdlib/Lean/Parser/Tactic.c b/stage0/stdlib/Lean/Parser/Tactic.c index 95b36fd5f5..860b259ef6 100644 --- a/stage0/stdlib/Lean/Parser/Tactic.c +++ b/stage0/stdlib/Lean/Parser/Tactic.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Parser.Tactic -// Imports: Init Lean.Parser.Term +// Imports: Init Lean.Parser.Term Lean.Parser.Command #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -43,7 +43,6 @@ lean_object* l_Lean_Parser_Tactic_allGoals___elambda__1___closed__2; lean_object* l_Lean_Parser_Tactic_orelse___closed__2; lean_object* l_Lean_Parser_Tactic_intros___closed__7; lean_object* l_Lean_Parser_Tactic_let_x21; -lean_object* l_Lean_Parser_Tactic_generalize_parenthesizer___closed__10; lean_object* l_Lean_Parser_Tactic_allGoals___elambda__1___closed__1; lean_object* l_Lean_Parser_Tactic_induction___closed__1; lean_object* l_Lean_Parser_Tactic_skip_formatter___closed__3; @@ -121,6 +120,7 @@ lean_object* l_Lean_Parser_Tactic_intros___elambda__1___closed__5; lean_object* l_Lean_Parser_Tactic_intro___closed__9; extern lean_object* l_Lean_nullKind; lean_object* l_Lean_Parser_Tactic_admit___closed__5; +extern lean_object* l_Lean_Parser_Command_structExplicitBinder_parenthesizer___closed__4; lean_object* l_Lean_Parser_Tactic_intros___elambda__1___closed__3; lean_object* l_Lean_Parser_Tactic_matchAlts_parenthesizer___closed__2; lean_object* l_Lean_Parser_Tactic_focus___elambda__1___closed__7; @@ -173,6 +173,7 @@ lean_object* l_Lean_Parser_Tactic_admit; extern lean_object* l_Lean_Parser_Term_show___elambda__1___closed__1; lean_object* l_Lean_Parser_Tactic_case_formatter___closed__4; lean_object* l___regBuiltin_Lean_Parser_Tactic_rewriteSeq_formatter___closed__1; +extern lean_object* l_Lean_Parser_Term_doMatchAlts___closed__1; lean_object* l_Lean_Parser_Tactic_rewrite___elambda__1___closed__1; lean_object* l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_generalize___closed__4; @@ -258,6 +259,7 @@ lean_object* l_Lean_Parser_Tactic_match_formatter___closed__8; lean_object* l_Lean_Parser_Tactic_skip___closed__2; lean_object* l___regBuiltin_Lean_Parser_Tactic_have_formatter___closed__1; lean_object* l_Lean_Parser_Tactic_change_parenthesizer___closed__3; +extern lean_object* l_Lean_Parser_Command_structExplicitBinder_formatter___closed__4; lean_object* l_Lean_Parser_Tactic_injection___closed__8; lean_object* l_Lean_Parser_Tactic_changeWith___closed__5; lean_object* l_Lean_Parser_Tactic_matchAlts___closed__1; @@ -277,7 +279,6 @@ lean_object* l_Lean_PrettyPrinter_Formatter_unicodeSymbol_formatter___boxed(lean lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__4; lean_object* l_Lean_Parser_Tactic_inductionAlt; lean_object* l_Lean_Parser_Tactic_assumption_formatter___closed__3; -lean_object* l_Lean_Parser_Tactic_generalizingVars_parenthesizer___closed__1; lean_object* l_Lean_Parser_Tactic_skip_parenthesizer___closed__1; lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Tactic_rwRuleSeq___elambda__1___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_matchAlts___closed__4; @@ -285,6 +286,7 @@ lean_object* l_Lean_Parser_Tactic_injection_formatter___closed__3; lean_object* l_Lean_Parser_Tactic_clear___elambda__1___closed__7; lean_object* l_Lean_Parser_Tactic_usingRec___closed__1; lean_object* l_Lean_Parser_Tactic_orelse___closed__7; +lean_object* l_Lean_Parser_Tactic_rewrite_parenthesizer___closed__8; lean_object* l_Lean_Parser_Tactic_have___closed__2; lean_object* l_Lean_Parser_Tactic_done_formatter___closed__2; lean_object* l_Lean_Parser_Tactic_injection_parenthesizer___closed__4; @@ -466,7 +468,6 @@ lean_object* l_Lean_Parser_Tactic_changeWith_parenthesizer___closed__5; lean_object* l_Lean_Parser_Tactic_case___closed__4; lean_object* l___regBuiltin_Lean_Parser_Tactic_generalize_formatter___closed__1; lean_object* l_Lean_Parser_Tactic_majorPremise_formatter___closed__3; -lean_object* l_Lean_Parser_Tactic_locationHyp_parenthesizer___closed__3; lean_object* l_Lean_Parser_Tactic_traceState_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_rwRule_formatter___closed__1; lean_object* l_Lean_Parser_Tactic_change_formatter___closed__3; @@ -493,6 +494,7 @@ lean_object* l_Lean_Parser_Tactic_intro_parenthesizer___closed__2; lean_object* l_Lean_Parser_Tactic_generalizingVars___elambda__1___closed__5; lean_object* l_Lean_Parser_Tactic_refine___elambda__1___closed__6; lean_object* l_Lean_Parser_Tactic_let_x21_parenthesizer___closed__1; +lean_object* l_Lean_Parser_Tactic_intro___elambda__1___closed__14; lean_object* l_Lean_Parser_Tactic_usingRec___closed__5; lean_object* l_Lean_Parser_Tactic_refine_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_admit_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -504,6 +506,7 @@ lean_object* l_Lean_Parser_Tactic_inductionAlt_parenthesizer(lean_object*, lean_ lean_object* l_Lean_Parser_Tactic_orelse___elambda__1___closed__4; lean_object* l_Lean_Parser_Tactic_skip_formatter___closed__2; lean_object* l_Lean_Parser_Tactic_refine_parenthesizer___closed__2; +lean_object* l_Lean_Parser_Tactic_rewrite___elambda__1___closed__12; lean_object* l_Lean_Parser_Tactic_intros_parenthesizer___closed__2; lean_object* l_Lean_PrettyPrinter_Formatter_trailingNode_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_suffices_formatter___closed__1; @@ -544,7 +547,6 @@ lean_object* l___regBuiltin_Lean_Parser_Tactic_injection_parenthesizer___closed_ lean_object* l_Lean_Parser_Tactic_changeWith_formatter___closed__5; lean_object* l_Lean_Parser_Tactic_refine_formatter___closed__2; lean_object* l_Lean_Parser_Tactic_failIfSuccess_formatter___closed__1; -lean_object* l_Lean_Parser_Tactic_generalize_parenthesizer___closed__8; lean_object* l_Lean_Parser_Tactic_location_formatter___closed__6; lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__10; lean_object* l_Lean_Parser_Tactic_inductionAlt_parenthesizer___closed__2; @@ -601,7 +603,6 @@ lean_object* l_Lean_Parser_Tactic_location___elambda__1___closed__3; lean_object* l___regBuiltin_Lean_Parser_Tactic_revert_formatter___closed__1; extern lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__16; lean_object* l_Lean_Parser_Tactic_injection___elambda__1___closed__5; -lean_object* l_Lean_Parser_Tactic_locationHyp_formatter___closed__3; lean_object* l_Lean_Parser_Tactic_traceState_formatter___closed__3; lean_object* l_Lean_Parser_Tactic_refine___closed__3; lean_object* l_Lean_Parser_Tactic_allGoals_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -670,8 +671,6 @@ lean_object* l___regBuiltin_Lean_Parser_Tactic_allGoals_parenthesizer(lean_objec lean_object* l_Lean_Parser_Tactic_ident_x27___closed__1; lean_object* l___regBuiltinParser_Lean_Parser_Tactic_revert(lean_object*); lean_object* l___regBuiltin_Lean_Parser_Tactic_failIfSuccess_formatter___closed__1; -lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Tactic_locationHyp___elambda__1___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_generalize_parenthesizer___closed__9; lean_object* l_Lean_Parser_Tactic_changeWith___closed__8; lean_object* l_Lean_Parser_Tactic_focus___closed__1; lean_object* l_Lean_Parser_Tactic_change___closed__8; @@ -686,6 +685,7 @@ lean_object* l_Array_shrink___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_ident_x27___closed__3; lean_object* l_Lean_Parser_Tactic_locationWildcard_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_location___closed__1; +lean_object* l_Lean_Parser_notSymbol_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_rewriteSeq; lean_object* l_Lean_Parser_Tactic_rwRule___elambda__1___closed__8; lean_object* l_Lean_Parser_Tactic_generalizingVars_formatter___closed__1; @@ -788,7 +788,6 @@ extern lean_object* l_Lean_Parser_mkAntiquot___closed__20; lean_object* l_Lean_Parser_Tactic_injection___elambda__1___closed__7; lean_object* l_Lean_Parser_Tactic_apply___elambda__1___closed__1; lean_object* l_Lean_Parser_Tactic_intro___elambda__1(lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_intro_formatter___closed__9; lean_object* l_Lean_Parser_Tactic_revert___closed__6; lean_object* l___regBuiltin_Lean_Parser_Tactic_show_parenthesizer___closed__1; lean_object* l_Lean_Parser_Tactic_exact___elambda__1___closed__1; @@ -825,6 +824,7 @@ lean_object* l___regBuiltin_Lean_Parser_Tactic_admit_formatter___closed__1; extern lean_object* l___regBuiltin_Lean_Parser_Term_syntheticHole_parenthesizer___closed__1; lean_object* l_Lean_Parser_Tactic_admit___closed__2; lean_object* lean_name_mk_string(lean_object*, lean_object*); +extern lean_object* l_List_repr___rarg___closed__2; lean_object* l_Lean_Parser_Tactic_orelse_parenthesizer___closed__1; lean_object* l___regBuiltin_Lean_Parser_Tactic_focus_parenthesizer___closed__1; lean_object* l_Lean_Parser_Tactic_rwRuleSeq; @@ -1138,6 +1138,7 @@ extern lean_object* l_Lean_Parser_Term_matchAlt_parenthesizer___closed__1; lean_object* l_Lean_Parser_Tactic_let; lean_object* l___regBuiltin_Lean_Parser_Tactic_changeWith_parenthesizer(lean_object*); lean_object* l___regBuiltin_Lean_Parser_Tactic_induction_formatter___closed__1; +lean_object* l_Lean_Parser_Tactic_inductionAlts_formatter___closed__4; lean_object* l_Lean_Parser_Tactic_intros_formatter___closed__1; lean_object* l_Lean_Parser_Tactic_locationTarget___closed__3; lean_object* l_Lean_Parser_Tactic_introMatch___elambda__1___closed__1; @@ -1173,6 +1174,7 @@ lean_object* l_Lean_Parser_Tactic_generalize___elambda__1___closed__8; lean_object* l_Lean_Parser_Tactic_match___closed__5; lean_object* l___regBuiltinParser_Lean_Parser_Tactic_allGoals(lean_object*); lean_object* l_Lean_Parser_Tactic_subst___closed__7; +extern lean_object* l_Lean_Parser_Command_namespace_parenthesizer___closed__2; lean_object* l___regBuiltin_Lean_Parser_Tactic_changeWith_parenthesizer___closed__1; lean_object* l___regBuiltin_Lean_Parser_Tactic_rewrite_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Tactic_suffices___elambda__1(lean_object*, lean_object*); @@ -1277,6 +1279,7 @@ lean_object* l_Lean_Parser_Tactic_clear___elambda__1___closed__8; lean_object* l_Lean_Parser_Tactic_intros_formatter___closed__5; lean_object* l_Lean_Parser_Tactic_rwRule_parenthesizer___closed__4; extern lean_object* l_Lean_Parser_epsilonInfo; +lean_object* l_Lean_Parser_notSymbol_parenthesizer___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_orelse___elambda__1___closed__1; lean_object* l_Lean_Parser_Tactic_change___elambda__1___closed__3; lean_object* l___regBuiltin_Lean_Parser_Tactic_focus_parenthesizer(lean_object*); @@ -1413,6 +1416,7 @@ lean_object* l___regBuiltin_Lean_Parser_Tactic_refine_parenthesizer___closed__1; lean_object* l_Lean_Parser_Tactic_injection_formatter___closed__4; lean_object* l_Lean_Parser_Tactic_generalize___closed__7; lean_object* l_Lean_Parser_Tactic_case_formatter___closed__1; +extern lean_object* l_Lean_Parser_Command_universes_parenthesizer___closed__2; lean_object* l_Lean_Parser_Tactic_induction_formatter___closed__4; lean_object* l_Lean_Parser_Tactic_rewrite___elambda__1___closed__8; extern lean_object* l_Lean_Parser_Term_matchAlt___closed__1; @@ -1533,15 +1537,16 @@ lean_object* l_Lean_Parser_Tactic_inductionAlts___closed__1; lean_object* l_Lean_Parser_Tactic_generalize_parenthesizer___closed__7; extern lean_object* l_Lean_Parser_Term_show_formatter___closed__2; lean_object* l___regBuiltin_Lean_Parser_Tactic_traceState_formatter(lean_object*); -lean_object* l_Lean_PrettyPrinter_Parenthesizer_notFollowedBy_parenthesizer___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_locationWildcard___elambda__1___closed__3; lean_object* l___regBuiltin_Lean_Parser_Tactic_clear_parenthesizer(lean_object*); extern lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__9; lean_object* l_Lean_Parser_Tactic_rewrite___elambda__1___closed__2; +lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_structExplicitBinder___elambda__1___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_skip_parenthesizer___closed__2; lean_object* l_Lean_Parser_Tactic_rwRule___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_generalize_formatter___closed__2; lean_object* l_Lean_Parser_Tactic_cases_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Command_openHiding_parenthesizer___closed__3; lean_object* l_Lean_Parser_Tactic_intro___closed__3; lean_object* l_Lean_Parser_Tactic_majorPremise___elambda__1___closed__3; lean_object* l_Lean_PrettyPrinter_Parenthesizer_trailingNode_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1626,7 +1631,6 @@ lean_object* l_Lean_Parser_Tactic_let_x21___closed__3; lean_object* l_Lean_Parser_Tactic_focus_parenthesizer___closed__2; lean_object* l_Lean_Parser_Tactic_locationHyp_parenthesizer___closed__1; lean_object* l_Lean_Parser_Tactic_matchAlts_formatter___closed__4; -lean_object* l_Lean_PrettyPrinter_Formatter_notFollowedBy_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinParser_Lean_Parser_Tactic_traceState(lean_object*); lean_object* l_Lean_Parser_Tactic_induction___elambda__1___closed__8; lean_object* l_Lean_Parser_Tactic_rewriteSeq___closed__1; @@ -1704,7 +1708,6 @@ lean_object* l_Lean_Parser_Tactic_rewrite___closed__10; lean_object* l_Lean_Parser_Tactic_introMatch___elambda__1___closed__4; lean_object* l_Lean_Parser_Tactic_traceState___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_locationTarget___elambda__1___closed__1; -lean_object* l_Lean_PrettyPrinter_Parenthesizer_try_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_changeWith___elambda__1___closed__3; lean_object* l_Lean_Parser_Tactic_paren___closed__7; lean_object* l___regBuiltin_Lean_Parser_Tactic_clear_formatter(lean_object*); @@ -1727,7 +1730,6 @@ lean_object* l_Lean_PrettyPrinter_Parenthesizer_node_parenthesizer(lean_object*, lean_object* l_Lean_Parser_Tactic_admit_formatter___closed__1; lean_object* l_Lean_Parser_Tactic_introMatch_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_rwRule___elambda__1___closed__3; -lean_object* l_Lean_Parser_Tactic_matchAlts___closed__6; lean_object* l_Lean_Parser_Tactic_rewrite_formatter___closed__8; lean_object* l_Lean_Parser_andthenFn(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Parser_Tactic_paren_formatter(lean_object*); @@ -2263,8 +2265,8 @@ static lean_object* _init_l_Lean_Parser_Tactic_intro___elambda__1___closed__11() _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Char_HasRepr___closed__1; -x_2 = l_Lean_Parser_Tactic_intro___elambda__1___closed__8; +x_1 = l_Lean_Parser_notFollowedByFn___closed__1; +x_2 = l_Lean_Parser_Tactic_intro___elambda__1___closed__7; x_3 = lean_string_append(x_1, x_2); return x_3; } @@ -2273,8 +2275,8 @@ static lean_object* _init_l_Lean_Parser_Tactic_intro___elambda__1___closed__12() _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_intro___elambda__1___closed__11; -x_2 = l_Char_HasRepr___closed__1; +x_1 = l_Char_HasRepr___closed__1; +x_2 = l_Lean_Parser_Tactic_intro___elambda__1___closed__8; x_3 = lean_string_append(x_1, x_2); return x_3; } @@ -2283,8 +2285,18 @@ static lean_object* _init_l_Lean_Parser_Tactic_intro___elambda__1___closed__13() _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Tactic_intro___elambda__1___closed__12; +x_2 = l_Char_HasRepr___closed__1; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_intro___elambda__1___closed__14() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Tactic_intro___elambda__1___closed__12; +x_2 = l_Lean_Parser_Tactic_intro___elambda__1___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); @@ -2354,7 +2366,7 @@ lean_dec(x_38); if (x_40 == 0) { lean_object* x_41; lean_object* x_42; -x_41 = l_Lean_Parser_Tactic_intro___elambda__1___closed__13; +x_41 = l_Lean_Parser_Tactic_intro___elambda__1___closed__14; lean_inc(x_17); x_42 = l_Lean_Parser_ParserState_mkErrorsAt(x_34, x_41, x_17); x_18 = x_42; @@ -2370,7 +2382,7 @@ else { lean_object* x_43; lean_object* x_44; lean_dec(x_37); -x_43 = l_Lean_Parser_Tactic_intro___elambda__1___closed__13; +x_43 = l_Lean_Parser_Tactic_intro___elambda__1___closed__14; lean_inc(x_17); x_44 = l_Lean_Parser_ParserState_mkErrorsAt(x_34, x_43, x_17); x_18 = x_44; @@ -2381,7 +2393,7 @@ else { lean_object* x_45; lean_object* x_46; lean_dec(x_35); -x_45 = l_Lean_Parser_Tactic_intro___elambda__1___closed__13; +x_45 = l_Lean_Parser_Tactic_intro___elambda__1___closed__14; lean_inc(x_17); x_46 = l_Lean_Parser_ParserState_mkErrorsAt(x_34, x_45, x_17); x_18 = x_46; @@ -2398,8 +2410,8 @@ lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean lean_dec(x_1); x_20 = l_Lean_Parser_ParserState_restore(x_18, x_16, x_17); lean_dec(x_16); -x_21 = l_Lean_Parser_notFollowedByFn___closed__1; -x_22 = l_Lean_Parser_ParserState_mkError(x_20, x_21); +x_21 = l_Lean_Parser_Tactic_intro___elambda__1___closed__11; +x_22 = l_Lean_Parser_ParserState_mkUnexpectedError(x_20, x_21); x_23 = l_Lean_Parser_Tactic_intro___elambda__1___closed__2; x_24 = l_Lean_Parser_ParserState_mkNode(x_22, x_23, x_10); return x_24; @@ -2533,7 +2545,7 @@ lean_dec(x_94); if (x_96 == 0) { lean_object* x_97; lean_object* x_98; -x_97 = l_Lean_Parser_Tactic_intro___elambda__1___closed__13; +x_97 = l_Lean_Parser_Tactic_intro___elambda__1___closed__14; lean_inc(x_69); x_98 = l_Lean_Parser_ParserState_mkErrorsAt(x_90, x_97, x_69); x_70 = x_98; @@ -2549,7 +2561,7 @@ else { lean_object* x_99; lean_object* x_100; lean_dec(x_93); -x_99 = l_Lean_Parser_Tactic_intro___elambda__1___closed__13; +x_99 = l_Lean_Parser_Tactic_intro___elambda__1___closed__14; lean_inc(x_69); x_100 = l_Lean_Parser_ParserState_mkErrorsAt(x_90, x_99, x_69); x_70 = x_100; @@ -2560,7 +2572,7 @@ else { lean_object* x_101; lean_object* x_102; lean_dec(x_91); -x_101 = l_Lean_Parser_Tactic_intro___elambda__1___closed__13; +x_101 = l_Lean_Parser_Tactic_intro___elambda__1___closed__14; lean_inc(x_69); x_102 = l_Lean_Parser_ParserState_mkErrorsAt(x_90, x_101, x_69); x_70 = x_102; @@ -2577,8 +2589,8 @@ lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean lean_dec(x_1); x_72 = l_Lean_Parser_ParserState_restore(x_70, x_68, x_69); lean_dec(x_68); -x_73 = l_Lean_Parser_notFollowedByFn___closed__1; -x_74 = l_Lean_Parser_ParserState_mkError(x_72, x_73); +x_73 = l_Lean_Parser_Tactic_intro___elambda__1___closed__11; +x_74 = l_Lean_Parser_ParserState_mkUnexpectedError(x_72, x_73); x_75 = l_Lean_Parser_Tactic_intro___elambda__1___closed__2; x_76 = l_Lean_Parser_ParserState_mkNode(x_74, x_75, x_62); x_77 = 1; @@ -2790,7 +2802,7 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = l_Lean_Parser_Tactic_intro___elambda__1___closed__7; -x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_symbol_formatter___boxed), 6, 1); +x_2 = lean_alloc_closure((void*)(l_Lean_Parser_notSymbol_formatter___boxed), 5, 1); lean_closure_set(x_2, 0, x_1); return x_2; } @@ -2798,16 +2810,6 @@ return x_2; static lean_object* _init_l_Lean_Parser_Tactic_intro_formatter___closed__4() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Tactic_intro_formatter___closed__3; -x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_notFollowedBy_formatter___boxed), 5, 1); -lean_closure_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Parser_Tactic_intro_formatter___closed__5() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Term_app_formatter___closed__5; x_2 = l_Lean_Parser_antiquotNestedExpr_formatter___closed__2; @@ -2817,21 +2819,33 @@ lean_closure_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_intro_formatter___closed__6() { +static lean_object* _init_l_Lean_Parser_Tactic_intro_formatter___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Tactic_intro_formatter___closed__5; +x_1 = l_Lean_Parser_Tactic_intro_formatter___closed__4; x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_many_formatter), 6, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } +static lean_object* _init_l_Lean_Parser_Tactic_intro_formatter___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Tactic_intro_formatter___closed__3; +x_2 = l_Lean_Parser_Tactic_intro_formatter___closed__5; +x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; +} +} static lean_object* _init_l_Lean_Parser_Tactic_intro_formatter___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_intro_formatter___closed__4; +x_1 = l_Lean_Parser_Tactic_intro_formatter___closed__2; x_2 = l_Lean_Parser_Tactic_intro_formatter___closed__6; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); lean_closure_set(x_3, 0, x_1); @@ -2842,22 +2856,10 @@ return x_3; static lean_object* _init_l_Lean_Parser_Tactic_intro_formatter___closed__8() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_intro_formatter___closed__2; -x_2 = l_Lean_Parser_Tactic_intro_formatter___closed__7; -x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); -lean_closure_set(x_3, 0, x_1); -lean_closure_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Tactic_intro_formatter___closed__9() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_intro___elambda__1___closed__2; x_2 = lean_unsigned_to_nat(1024u); -x_3 = l_Lean_Parser_Tactic_intro_formatter___closed__8; +x_3 = l_Lean_Parser_Tactic_intro_formatter___closed__7; x_4 = lean_alloc_closure((void*)(l_Lean_Parser_leadingNode_formatter___boxed), 8, 3); lean_closure_set(x_4, 0, x_1); lean_closure_set(x_4, 1, x_2); @@ -2870,7 +2872,7 @@ _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = l_Lean_Parser_Tactic_intro_formatter___closed__1; -x_7 = l_Lean_Parser_Tactic_intro_formatter___closed__9; +x_7 = l_Lean_Parser_Tactic_intro_formatter___closed__8; x_8 = l_Lean_PrettyPrinter_Formatter_orelse_formatter(x_6, x_7, x_1, x_2, x_3, x_4, x_5); return x_8; } @@ -2911,8 +2913,8 @@ static lean_object* _init_l_Lean_Parser_Tactic_intro_parenthesizer___closed__2() _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_antiquotNestedExpr_parenthesizer___closed__3; -x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_notFollowedBy_parenthesizer___boxed), 5, 1); +x_1 = l_Lean_Parser_Tactic_intro___elambda__1___closed__7; +x_2 = lean_alloc_closure((void*)(l_Lean_Parser_notSymbol_parenthesizer___boxed), 5, 1); lean_closure_set(x_2, 0, x_1); return x_2; } @@ -13026,36 +13028,14 @@ return x_4; static lean_object* _init_l_Lean_Parser_Tactic_generalize_parenthesizer___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Level_ident_parenthesizer___closed__1; -x_2 = l_Lean_Parser_antiquotNestedExpr_parenthesizer___closed__3; -x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); -lean_closure_set(x_3, 0, x_1); -lean_closure_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Tactic_generalize_parenthesizer___closed__3() { -_start: -{ lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Tactic_generalize_parenthesizer___closed__2; -x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_try_parenthesizer), 6, 1); -lean_closure_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Parser_Tactic_generalize_parenthesizer___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Tactic_generalize_parenthesizer___closed__3; +x_1 = l_Lean_Parser_Command_openHiding_parenthesizer___closed__3; x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_optional_parenthesizer), 6, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Tactic_generalize_parenthesizer___closed__5() { +static lean_object* _init_l_Lean_Parser_Tactic_generalize_parenthesizer___closed__3() { _start: { lean_object* x_1; lean_object* x_2; @@ -13065,12 +13045,36 @@ lean_closure_set(x_2, 0, x_1); return x_2; } } +static lean_object* _init_l_Lean_Parser_Tactic_generalize_parenthesizer___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Tactic_generalize_parenthesizer___closed__3; +x_2 = l_Lean_Parser_Command_namespace_parenthesizer___closed__2; +x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_generalize_parenthesizer___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Tactic_generalize_parenthesizer___closed__2; +x_2 = l_Lean_Parser_Tactic_generalize_parenthesizer___closed__4; +x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; +} +} static lean_object* _init_l_Lean_Parser_Tactic_generalize_parenthesizer___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_antiquotNestedExpr_parenthesizer___closed__3; -x_2 = l_Lean_Parser_Level_ident_parenthesizer___closed__1; +x_1 = l_Lean_Parser_mkAntiquot_parenthesizer___rarg___closed__6; +x_2 = l_Lean_Parser_Tactic_generalize_parenthesizer___closed__5; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); @@ -13080,46 +13084,10 @@ return x_3; static lean_object* _init_l_Lean_Parser_Tactic_generalize_parenthesizer___closed__7() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_generalize_parenthesizer___closed__5; -x_2 = l_Lean_Parser_Tactic_generalize_parenthesizer___closed__6; -x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); -lean_closure_set(x_3, 0, x_1); -lean_closure_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Tactic_generalize_parenthesizer___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_generalize_parenthesizer___closed__4; -x_2 = l_Lean_Parser_Tactic_generalize_parenthesizer___closed__7; -x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); -lean_closure_set(x_3, 0, x_1); -lean_closure_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Tactic_generalize_parenthesizer___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_mkAntiquot_parenthesizer___rarg___closed__6; -x_2 = l_Lean_Parser_Tactic_generalize_parenthesizer___closed__8; -x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); -lean_closure_set(x_3, 0, x_1); -lean_closure_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Tactic_generalize_parenthesizer___closed__10() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_generalize___elambda__1___closed__2; x_2 = lean_unsigned_to_nat(1024u); -x_3 = l_Lean_Parser_Tactic_generalize_parenthesizer___closed__9; +x_3 = l_Lean_Parser_Tactic_generalize_parenthesizer___closed__6; x_4 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer___boxed), 8, 3); lean_closure_set(x_4, 0, x_1); lean_closure_set(x_4, 1, x_2); @@ -13132,7 +13100,7 @@ _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = l_Lean_Parser_Tactic_generalize_parenthesizer___closed__1; -x_7 = l_Lean_Parser_Tactic_generalize_parenthesizer___closed__10; +x_7 = l_Lean_Parser_Tactic_generalize_parenthesizer___closed__7; x_8 = l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer(x_6, x_7, x_1, x_2, x_3, x_4, x_5); return x_8; } @@ -13831,68 +13799,6 @@ x_1 = l_Lean_Parser_Tactic_locationTarget___closed__6; return x_1; } } -lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Tactic_locationHyp___elambda__1___spec__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -x_4 = lean_array_get_size(x_3); -lean_dec(x_3); -x_5 = lean_ctor_get(x_2, 1); -lean_inc(x_5); -lean_inc(x_1); -x_6 = l_Lean_Parser_ident___elambda__1(x_1, x_2); -x_7 = lean_ctor_get(x_6, 3); -lean_inc(x_7); -if (lean_obj_tag(x_7) == 0) -{ -lean_object* x_8; uint8_t x_9; -lean_dec(x_4); -x_8 = lean_ctor_get(x_6, 1); -lean_inc(x_8); -x_9 = lean_nat_dec_eq(x_5, x_8); -lean_dec(x_8); -lean_dec(x_5); -if (x_9 == 0) -{ -x_2 = x_6; -goto _start; -} -else -{ -lean_object* x_11; lean_object* x_12; -lean_dec(x_1); -x_11 = l_Lean_Parser_manyAux___main___closed__1; -x_12 = l_Lean_Parser_ParserState_mkUnexpectedError(x_6, x_11); -return x_12; -} -} -else -{ -lean_object* x_13; uint8_t x_14; -lean_dec(x_7); -lean_dec(x_1); -x_13 = lean_ctor_get(x_6, 1); -lean_inc(x_13); -x_14 = lean_nat_dec_eq(x_5, x_13); -lean_dec(x_13); -if (x_14 == 0) -{ -lean_dec(x_5); -lean_dec(x_4); -return x_6; -} -else -{ -lean_object* x_15; -x_15 = l_Lean_Parser_ParserState_restore(x_6, x_4, x_5); -lean_dec(x_4); -return x_15; -} -} -} -} static lean_object* _init_l_Lean_Parser_Tactic_locationHyp___elambda__1___closed__1() { _start: { @@ -13964,7 +13870,7 @@ 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_17; -x_13 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Tactic_locationHyp___elambda__1___spec__1(x_1, x_11); +x_13 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_structExplicitBinder___elambda__1___spec__1(x_1, x_11); x_14 = l_Lean_nullKind; lean_inc(x_10); x_15 = l_Lean_Parser_ParserState_mkNode(x_13, x_14, x_10); @@ -14054,7 +13960,7 @@ lean_inc(x_37); if (lean_obj_tag(x_37) == 0) { lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; lean_object* x_44; -x_38 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Tactic_locationHyp___elambda__1___spec__1(x_1, x_36); +x_38 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_structExplicitBinder___elambda__1___spec__1(x_1, x_36); x_39 = l_Lean_nullKind; lean_inc(x_35); x_40 = l_Lean_Parser_ParserState_mkNode(x_38, x_39, x_35); @@ -15427,20 +15333,10 @@ return x_5; static lean_object* _init_l_Lean_Parser_Tactic_locationHyp_formatter___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Level_ident_formatter___closed__1; -x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_many1_formatter), 6, 1); -lean_closure_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Parser_Tactic_locationHyp_formatter___closed__3() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_locationHyp___elambda__1___closed__2; x_2 = lean_unsigned_to_nat(1024u); -x_3 = l_Lean_Parser_Tactic_locationHyp_formatter___closed__2; +x_3 = l_Lean_Parser_Command_structExplicitBinder_formatter___closed__4; x_4 = lean_alloc_closure((void*)(l_Lean_Parser_leadingNode_formatter___boxed), 8, 3); lean_closure_set(x_4, 0, x_1); lean_closure_set(x_4, 1, x_2); @@ -15453,7 +15349,7 @@ _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = l_Lean_Parser_Tactic_locationHyp_formatter___closed__1; -x_7 = l_Lean_Parser_Tactic_locationHyp_formatter___closed__3; +x_7 = l_Lean_Parser_Tactic_locationHyp_formatter___closed__2; x_8 = l_Lean_PrettyPrinter_Formatter_orelse_formatter(x_6, x_7, x_1, x_2, x_3, x_4, x_5); return x_8; } @@ -15767,20 +15663,10 @@ return x_4; static lean_object* _init_l_Lean_Parser_Tactic_locationHyp_parenthesizer___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Level_ident_parenthesizer___closed__1; -x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_many1_parenthesizer), 6, 1); -lean_closure_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Parser_Tactic_locationHyp_parenthesizer___closed__3() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_locationHyp___elambda__1___closed__2; x_2 = lean_unsigned_to_nat(1024u); -x_3 = l_Lean_Parser_Tactic_locationHyp_parenthesizer___closed__2; +x_3 = l_Lean_Parser_Command_structExplicitBinder_parenthesizer___closed__4; x_4 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer___boxed), 8, 3); lean_closure_set(x_4, 0, x_1); lean_closure_set(x_4, 1, x_2); @@ -15793,7 +15679,7 @@ _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = l_Lean_Parser_Tactic_locationHyp_parenthesizer___closed__1; -x_7 = l_Lean_Parser_Tactic_locationHyp_parenthesizer___closed__3; +x_7 = l_Lean_Parser_Tactic_locationHyp_parenthesizer___closed__2; x_8 = l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer(x_6, x_7, x_1, x_2, x_3, x_4, x_5); return x_8; } @@ -18167,8 +18053,8 @@ static lean_object* _init_l_Lean_Parser_Tactic_rewrite___elambda__1___closed__8( _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Char_HasRepr___closed__1; -x_2 = l_Lean_Parser_Tactic_rewrite___elambda__1___closed__5; +x_1 = l_Lean_Parser_notFollowedByFn___closed__1; +x_2 = l_List_repr___rarg___closed__2; x_3 = lean_string_append(x_1, x_2); return x_3; } @@ -18177,8 +18063,8 @@ static lean_object* _init_l_Lean_Parser_Tactic_rewrite___elambda__1___closed__9( _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_rewrite___elambda__1___closed__8; -x_2 = l_Char_HasRepr___closed__1; +x_1 = l_Char_HasRepr___closed__1; +x_2 = l_Lean_Parser_Tactic_rewrite___elambda__1___closed__5; x_3 = lean_string_append(x_1, x_2); return x_3; } @@ -18187,17 +18073,27 @@ static lean_object* _init_l_Lean_Parser_Tactic_rewrite___elambda__1___closed__10 _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Tactic_rewrite___elambda__1___closed__9; +x_2 = l_Char_HasRepr___closed__1; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_rewrite___elambda__1___closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Char_HasRepr___closed__1; x_2 = l_Lean_Parser_Tactic_rewrite___elambda__1___closed__7; x_3 = lean_string_append(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_rewrite___elambda__1___closed__11() { +static lean_object* _init_l_Lean_Parser_Tactic_rewrite___elambda__1___closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_rewrite___elambda__1___closed__10; +x_1 = l_Lean_Parser_Tactic_rewrite___elambda__1___closed__11; x_2 = l_Char_HasRepr___closed__1; x_3 = lean_string_append(x_1, x_2); return x_3; @@ -18231,7 +18127,7 @@ lean_dec(x_9); x_68 = lean_ctor_get(x_7, 1); lean_inc(x_68); x_69 = l_Lean_Parser_Tactic_rewrite___elambda__1___closed__5; -x_70 = l_Lean_Parser_Tactic_rewrite___elambda__1___closed__9; +x_70 = l_Lean_Parser_Tactic_rewrite___elambda__1___closed__10; lean_inc(x_1); x_71 = l_Lean_Parser_nonReservedSymbolFnAux(x_69, x_70, x_1, x_7); x_72 = lean_ctor_get(x_71, 3); @@ -18265,7 +18161,7 @@ lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; uint lean_inc(x_68); x_76 = l_Lean_Parser_ParserState_restore(x_71, x_10, x_68); x_77 = l_Lean_Parser_Tactic_rewrite___elambda__1___closed__7; -x_78 = l_Lean_Parser_Tactic_rewrite___elambda__1___closed__11; +x_78 = l_Lean_Parser_Tactic_rewrite___elambda__1___closed__12; lean_inc(x_1); x_79 = l_Lean_Parser_nonReservedSymbolFnAux(x_77, x_78, x_1, x_76); x_80 = 1; @@ -18439,8 +18335,8 @@ if (lean_obj_tag(x_46) == 0) lean_object* x_47; lean_object* x_48; lean_object* x_49; x_47 = l_Lean_Parser_ParserState_restore(x_45, x_43, x_44); lean_dec(x_43); -x_48 = l_Lean_Parser_notFollowedByFn___closed__1; -x_49 = l_Lean_Parser_ParserState_mkError(x_47, x_48); +x_48 = l_Lean_Parser_Tactic_rewrite___elambda__1___closed__8; +x_49 = l_Lean_Parser_ParserState_mkUnexpectedError(x_47, x_48); x_11 = x_49; goto block_39; } @@ -18531,7 +18427,7 @@ lean_dec(x_94); x_165 = lean_ctor_get(x_92, 1); lean_inc(x_165); x_166 = l_Lean_Parser_Tactic_rewrite___elambda__1___closed__5; -x_167 = l_Lean_Parser_Tactic_rewrite___elambda__1___closed__9; +x_167 = l_Lean_Parser_Tactic_rewrite___elambda__1___closed__10; lean_inc(x_1); x_168 = l_Lean_Parser_nonReservedSymbolFnAux(x_166, x_167, x_1, x_92); x_169 = lean_ctor_get(x_168, 3); @@ -18565,7 +18461,7 @@ lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_inc(x_165); x_173 = l_Lean_Parser_ParserState_restore(x_168, x_95, x_165); x_174 = l_Lean_Parser_Tactic_rewrite___elambda__1___closed__7; -x_175 = l_Lean_Parser_Tactic_rewrite___elambda__1___closed__11; +x_175 = l_Lean_Parser_Tactic_rewrite___elambda__1___closed__12; lean_inc(x_1); x_176 = l_Lean_Parser_nonReservedSymbolFnAux(x_174, x_175, x_1, x_173); x_177 = 1; @@ -18754,8 +18650,8 @@ if (lean_obj_tag(x_141) == 0) lean_object* x_142; lean_object* x_143; lean_object* x_144; x_142 = l_Lean_Parser_ParserState_restore(x_140, x_138, x_139); lean_dec(x_138); -x_143 = l_Lean_Parser_notFollowedByFn___closed__1; -x_144 = l_Lean_Parser_ParserState_mkError(x_142, x_143); +x_143 = l_Lean_Parser_Tactic_rewrite___elambda__1___closed__8; +x_144 = l_Lean_Parser_ParserState_mkUnexpectedError(x_142, x_143); x_96 = x_144; goto block_134; } @@ -19058,8 +18954,8 @@ static lean_object* _init_l_Lean_Parser_Tactic_rewrite_formatter___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Term_structInstArrayRef_formatter___closed__2; -x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_notFollowedBy_formatter___boxed), 5, 1); +x_1 = l_List_repr___rarg___closed__2; +x_2 = lean_alloc_closure((void*)(l_Lean_Parser_notSymbol_formatter___boxed), 5, 1); lean_closure_set(x_2, 0, x_1); return x_2; } @@ -19237,29 +19133,27 @@ return x_2; static lean_object* _init_l_Lean_Parser_Tactic_rewrite_parenthesizer___closed__3() { _start: { -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_rwRule_parenthesizer), 5, 0); -return x_1; +lean_object* x_1; lean_object* x_2; +x_1 = l_List_repr___rarg___closed__2; +x_2 = lean_alloc_closure((void*)(l_Lean_Parser_notSymbol_parenthesizer___boxed), 5, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; } } static lean_object* _init_l_Lean_Parser_Tactic_rewrite_parenthesizer___closed__4() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_rewrite_parenthesizer___closed__3; -x_2 = l_Lean_Parser_Tactic_change_parenthesizer___closed__3; -x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); -lean_closure_set(x_3, 0, x_1); -lean_closure_set(x_3, 1, x_2); -return x_3; +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_rwRule_parenthesizer), 5, 0); +return x_1; } } static lean_object* _init_l_Lean_Parser_Tactic_rewrite_parenthesizer___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_intro_parenthesizer___closed__2; -x_2 = l_Lean_Parser_Tactic_rewrite_parenthesizer___closed__4; +x_1 = l_Lean_Parser_Tactic_rewrite_parenthesizer___closed__4; +x_2 = l_Lean_Parser_Tactic_change_parenthesizer___closed__3; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); @@ -19270,7 +19164,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_rewrite_parenthesizer___closed__6 _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_rewrite_parenthesizer___closed__2; +x_1 = l_Lean_Parser_Tactic_rewrite_parenthesizer___closed__3; x_2 = l_Lean_Parser_Tactic_rewrite_parenthesizer___closed__5; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); lean_closure_set(x_3, 0, x_1); @@ -19281,10 +19175,22 @@ return x_3; static lean_object* _init_l_Lean_Parser_Tactic_rewrite_parenthesizer___closed__7() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Tactic_rewrite_parenthesizer___closed__2; +x_2 = l_Lean_Parser_Tactic_rewrite_parenthesizer___closed__6; +x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_rewrite_parenthesizer___closed__8() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_rewrite___elambda__1___closed__2; x_2 = lean_unsigned_to_nat(1024u); -x_3 = l_Lean_Parser_Tactic_rewrite_parenthesizer___closed__6; +x_3 = l_Lean_Parser_Tactic_rewrite_parenthesizer___closed__7; x_4 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer___boxed), 8, 3); lean_closure_set(x_4, 0, x_1); lean_closure_set(x_4, 1, x_2); @@ -19297,7 +19203,7 @@ _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = l_Lean_Parser_Tactic_rewrite_parenthesizer___closed__1; -x_7 = l_Lean_Parser_Tactic_rewrite_parenthesizer___closed__7; +x_7 = l_Lean_Parser_Tactic_rewrite_parenthesizer___closed__8; x_8 = l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer(x_6, x_7, x_1, x_2, x_3, x_4, x_5); return x_8; } @@ -19388,7 +19294,7 @@ lean_dec(x_9); x_40 = lean_ctor_get(x_7, 1); lean_inc(x_40); x_41 = l_Lean_Parser_Tactic_rewrite___elambda__1___closed__5; -x_42 = l_Lean_Parser_Tactic_rewrite___elambda__1___closed__9; +x_42 = l_Lean_Parser_Tactic_rewrite___elambda__1___closed__10; lean_inc(x_1); x_43 = l_Lean_Parser_nonReservedSymbolFnAux(x_41, x_42, x_1, x_7); x_44 = lean_ctor_get(x_43, 3); @@ -19422,7 +19328,7 @@ lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint lean_inc(x_40); x_48 = l_Lean_Parser_ParserState_restore(x_43, x_10, x_40); x_49 = l_Lean_Parser_Tactic_rewrite___elambda__1___closed__7; -x_50 = l_Lean_Parser_Tactic_rewrite___elambda__1___closed__11; +x_50 = l_Lean_Parser_Tactic_rewrite___elambda__1___closed__12; lean_inc(x_1); x_51 = l_Lean_Parser_nonReservedSymbolFnAux(x_49, x_50, x_1, x_48); x_52 = 1; @@ -19582,7 +19488,7 @@ lean_dec(x_66); x_107 = lean_ctor_get(x_64, 1); lean_inc(x_107); x_108 = l_Lean_Parser_Tactic_rewrite___elambda__1___closed__5; -x_109 = l_Lean_Parser_Tactic_rewrite___elambda__1___closed__9; +x_109 = l_Lean_Parser_Tactic_rewrite___elambda__1___closed__10; lean_inc(x_1); x_110 = l_Lean_Parser_nonReservedSymbolFnAux(x_108, x_109, x_1, x_64); x_111 = lean_ctor_get(x_110, 3); @@ -19616,7 +19522,7 @@ lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_inc(x_107); x_115 = l_Lean_Parser_ParserState_restore(x_110, x_67, x_107); x_116 = l_Lean_Parser_Tactic_rewrite___elambda__1___closed__7; -x_117 = l_Lean_Parser_Tactic_rewrite___elambda__1___closed__11; +x_117 = l_Lean_Parser_Tactic_rewrite___elambda__1___closed__12; lean_inc(x_1); x_118 = l_Lean_Parser_nonReservedSymbolFnAux(x_116, x_117, x_1, x_115); x_119 = 1; @@ -20018,7 +19924,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_rwRuleSeq_parenthesizer___closed_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_rewrite_parenthesizer___closed__3; +x_1 = l_Lean_Parser_Tactic_rewrite_parenthesizer___closed__4; x_2 = l_Lean_Parser_antiquotNestedExpr_parenthesizer___closed__3; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_sepBy1_parenthesizer), 7, 2); lean_closure_set(x_3, 0, x_1); @@ -21324,7 +21230,7 @@ lean_dec(x_30); if (x_32 == 0) { lean_object* x_33; lean_object* x_34; -x_33 = l_Lean_Parser_Tactic_intro___elambda__1___closed__13; +x_33 = l_Lean_Parser_Tactic_intro___elambda__1___closed__14; x_34 = l_Lean_Parser_ParserState_mkErrorsAt(x_26, x_33, x_25); x_16 = x_34; goto block_22; @@ -21340,7 +21246,7 @@ else { lean_object* x_35; lean_object* x_36; lean_dec(x_29); -x_35 = l_Lean_Parser_Tactic_intro___elambda__1___closed__13; +x_35 = l_Lean_Parser_Tactic_intro___elambda__1___closed__14; x_36 = l_Lean_Parser_ParserState_mkErrorsAt(x_26, x_35, x_25); x_16 = x_36; goto block_22; @@ -21350,7 +21256,7 @@ else { lean_object* x_37; lean_object* x_38; lean_dec(x_27); -x_37 = l_Lean_Parser_Tactic_intro___elambda__1___closed__13; +x_37 = l_Lean_Parser_Tactic_intro___elambda__1___closed__14; x_38 = l_Lean_Parser_ParserState_mkErrorsAt(x_26, x_37, x_25); x_16 = x_38; goto block_22; @@ -22249,7 +22155,7 @@ lean_inc(x_11); if (lean_obj_tag(x_11) == 0) { lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_12 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Tactic_locationHyp___elambda__1___spec__1(x_1, x_10); +x_12 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_structExplicitBinder___elambda__1___spec__1(x_1, x_10); x_13 = l_Lean_nullKind; x_14 = l_Lean_Parser_ParserState_mkNode(x_12, x_13, x_9); x_15 = lean_ctor_get(x_14, 3); @@ -22984,7 +22890,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Tactic_generalizingVars_formatter___closed__1; -x_2 = l_Lean_Parser_Tactic_locationHyp_formatter___closed__2; +x_2 = l_Lean_Parser_Command_structExplicitBinder_formatter___closed__4; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); @@ -23090,16 +22996,26 @@ return x_9; static lean_object* _init_l_Lean_Parser_Tactic_inductionAlts_formatter___closed__1() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Tactic_intro___elambda__1___closed__7; +x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_symbol_formatter___boxed), 6, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_inductionAlts_formatter___closed__2() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_many1Indent_formatter___closed__1; -x_2 = l_Lean_Parser_Tactic_intro_formatter___closed__3; +x_2 = l_Lean_Parser_Tactic_inductionAlts_formatter___closed__1; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_inductionAlts_formatter___closed__2() { +static lean_object* _init_l_Lean_Parser_Tactic_inductionAlts_formatter___closed__3() { _start: { lean_object* x_1; @@ -23107,12 +23023,12 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_inductionAlt_formatter), 5 return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_inductionAlts_formatter___closed__3() { +static lean_object* _init_l_Lean_Parser_Tactic_inductionAlts_formatter___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_inductionAlts_formatter___closed__2; -x_2 = l_Lean_Parser_Tactic_inductionAlts_formatter___closed__1; +x_1 = l_Lean_Parser_Tactic_inductionAlts_formatter___closed__3; +x_2 = l_Lean_Parser_Tactic_inductionAlts_formatter___closed__2; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_sepBy1_formatter), 7, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); @@ -23124,7 +23040,7 @@ _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = l_Lean_Parser_Term_matchAlts_formatter___closed__4; -x_7 = l_Lean_Parser_Tactic_inductionAlts_formatter___closed__3; +x_7 = l_Lean_Parser_Tactic_inductionAlts_formatter___closed__4; x_8 = l_Lean_PrettyPrinter_Formatter_andthen_formatter(x_6, x_7, x_1, x_2, x_3, x_4, x_5); return x_8; } @@ -23323,7 +23239,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_majorPremise_parenthesizer___clos _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_generalize_parenthesizer___closed__4; +x_1 = l_Lean_Parser_Tactic_generalize_parenthesizer___closed__2; x_2 = l_Lean_Parser_antiquotNestedExpr_parenthesizer___closed__1; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); lean_closure_set(x_3, 0, x_1); @@ -23359,28 +23275,16 @@ lean_object* l_Lean_Parser_Tactic_usingRec_parenthesizer(lean_object* x_1, lean_ _start: { lean_object* x_6; lean_object* x_7; -x_6 = l_Lean_Parser_Tactic_generalize_parenthesizer___closed__6; +x_6 = l_Lean_Parser_Command_namespace_parenthesizer___closed__2; x_7 = l_Lean_PrettyPrinter_Parenthesizer_visitArgs(x_6, x_1, x_2, x_3, x_4, x_5); return x_7; } } -static lean_object* _init_l_Lean_Parser_Tactic_generalizingVars_parenthesizer___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_antiquotNestedExpr_parenthesizer___closed__3; -x_2 = l_Lean_Parser_Tactic_locationHyp_parenthesizer___closed__2; -x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); -lean_closure_set(x_3, 0, x_1); -lean_closure_set(x_3, 1, x_2); -return x_3; -} -} lean_object* l_Lean_Parser_Tactic_generalizingVars_parenthesizer(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; -x_6 = l_Lean_Parser_Tactic_generalizingVars_parenthesizer___closed__1; +x_6 = l_Lean_Parser_Command_universes_parenthesizer___closed__2; x_7 = l_Lean_PrettyPrinter_Parenthesizer_visitArgs(x_6, x_1, x_2, x_3, x_4, x_5); return x_7; } @@ -25094,46 +24998,36 @@ return x_88; static lean_object* _init_l_Lean_Parser_Tactic_matchAlts___closed__1() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Parser_inhabited___closed__1; -x_2 = l_Lean_Parser_Term_matchAlts___closed__1; -x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); -return x_3; +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Tactic_matchAlt; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l_Lean_Parser_Term_doMatchAlts___closed__1; +x_4 = l_Lean_Parser_sepBy1Info(x_2, x_3); +return x_4; } } static lean_object* _init_l_Lean_Parser_Tactic_matchAlts___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Tactic_matchAlt; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = l_Lean_Parser_Tactic_matchAlts___closed__1; -x_4 = l_Lean_Parser_sepBy1Info(x_2, x_3); -return x_4; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_matchAlts___closed__7; +x_2 = l_Lean_Parser_Tactic_matchAlts___closed__1; +x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Parser_Tactic_matchAlts___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_matchAlts___closed__7; -x_2 = l_Lean_Parser_Tactic_matchAlts___closed__2; -x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Tactic_matchAlts___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_nullKind; -x_2 = l_Lean_Parser_Tactic_matchAlts___closed__3; +x_2 = l_Lean_Parser_Tactic_matchAlts___closed__2; x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_matchAlts___closed__5() { +static lean_object* _init_l_Lean_Parser_Tactic_matchAlts___closed__4() { _start: { lean_object* x_1; @@ -25141,12 +25035,12 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_matchAlts___elambda__1), 2 return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_matchAlts___closed__6() { +static lean_object* _init_l_Lean_Parser_Tactic_matchAlts___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_matchAlts___closed__4; -x_2 = l_Lean_Parser_Tactic_matchAlts___closed__5; +x_1 = l_Lean_Parser_Tactic_matchAlts___closed__3; +x_2 = l_Lean_Parser_Tactic_matchAlts___closed__4; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -25157,7 +25051,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_matchAlts() { _start: { lean_object* x_1; -x_1 = l_Lean_Parser_Tactic_matchAlts___closed__6; +x_1 = l_Lean_Parser_Tactic_matchAlts___closed__5; return x_1; } } @@ -31123,6 +31017,7 @@ return x_5; } lean_object* initialize_Init(lean_object*); lean_object* initialize_Lean_Parser_Term(lean_object*); +lean_object* initialize_Lean_Parser_Command(lean_object*); static bool _G_initialized = false; lean_object* initialize_Lean_Parser_Tactic(lean_object* w) { lean_object * res; @@ -31134,6 +31029,9 @@ lean_dec_ref(res); res = initialize_Lean_Parser_Term(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Parser_Command(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Lean_Parser_Tactic_underscoreFn___closed__1 = _init_l_Lean_Parser_Tactic_underscoreFn___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_underscoreFn___closed__1); l_Lean_Parser_Tactic_underscoreFn___closed__2 = _init_l_Lean_Parser_Tactic_underscoreFn___closed__2(); @@ -31182,6 +31080,8 @@ l_Lean_Parser_Tactic_intro___elambda__1___closed__12 = _init_l_Lean_Parser_Tacti lean_mark_persistent(l_Lean_Parser_Tactic_intro___elambda__1___closed__12); l_Lean_Parser_Tactic_intro___elambda__1___closed__13 = _init_l_Lean_Parser_Tactic_intro___elambda__1___closed__13(); lean_mark_persistent(l_Lean_Parser_Tactic_intro___elambda__1___closed__13); +l_Lean_Parser_Tactic_intro___elambda__1___closed__14 = _init_l_Lean_Parser_Tactic_intro___elambda__1___closed__14(); +lean_mark_persistent(l_Lean_Parser_Tactic_intro___elambda__1___closed__14); l_Lean_Parser_Tactic_intro___closed__1 = _init_l_Lean_Parser_Tactic_intro___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_intro___closed__1); l_Lean_Parser_Tactic_intro___closed__2 = _init_l_Lean_Parser_Tactic_intro___closed__2(); @@ -31223,8 +31123,6 @@ l_Lean_Parser_Tactic_intro_formatter___closed__7 = _init_l_Lean_Parser_Tactic_in lean_mark_persistent(l_Lean_Parser_Tactic_intro_formatter___closed__7); l_Lean_Parser_Tactic_intro_formatter___closed__8 = _init_l_Lean_Parser_Tactic_intro_formatter___closed__8(); lean_mark_persistent(l_Lean_Parser_Tactic_intro_formatter___closed__8); -l_Lean_Parser_Tactic_intro_formatter___closed__9 = _init_l_Lean_Parser_Tactic_intro_formatter___closed__9(); -lean_mark_persistent(l_Lean_Parser_Tactic_intro_formatter___closed__9); l___regBuiltin_Lean_Parser_Tactic_intro_formatter___closed__1 = _init_l___regBuiltin_Lean_Parser_Tactic_intro_formatter___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Parser_Tactic_intro_formatter___closed__1); res = l___regBuiltin_Lean_Parser_Tactic_intro_formatter(lean_io_mk_world()); @@ -32334,12 +32232,6 @@ l_Lean_Parser_Tactic_generalize_parenthesizer___closed__6 = _init_l_Lean_Parser_ lean_mark_persistent(l_Lean_Parser_Tactic_generalize_parenthesizer___closed__6); l_Lean_Parser_Tactic_generalize_parenthesizer___closed__7 = _init_l_Lean_Parser_Tactic_generalize_parenthesizer___closed__7(); lean_mark_persistent(l_Lean_Parser_Tactic_generalize_parenthesizer___closed__7); -l_Lean_Parser_Tactic_generalize_parenthesizer___closed__8 = _init_l_Lean_Parser_Tactic_generalize_parenthesizer___closed__8(); -lean_mark_persistent(l_Lean_Parser_Tactic_generalize_parenthesizer___closed__8); -l_Lean_Parser_Tactic_generalize_parenthesizer___closed__9 = _init_l_Lean_Parser_Tactic_generalize_parenthesizer___closed__9(); -lean_mark_persistent(l_Lean_Parser_Tactic_generalize_parenthesizer___closed__9); -l_Lean_Parser_Tactic_generalize_parenthesizer___closed__10 = _init_l_Lean_Parser_Tactic_generalize_parenthesizer___closed__10(); -lean_mark_persistent(l_Lean_Parser_Tactic_generalize_parenthesizer___closed__10); l___regBuiltin_Lean_Parser_Tactic_generalize_parenthesizer___closed__1 = _init_l___regBuiltin_Lean_Parser_Tactic_generalize_parenthesizer___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Parser_Tactic_generalize_parenthesizer___closed__1); res = l___regBuiltin_Lean_Parser_Tactic_generalize_parenthesizer(lean_io_mk_world()); @@ -32520,8 +32412,6 @@ l_Lean_Parser_Tactic_locationHyp_formatter___closed__1 = _init_l_Lean_Parser_Tac lean_mark_persistent(l_Lean_Parser_Tactic_locationHyp_formatter___closed__1); l_Lean_Parser_Tactic_locationHyp_formatter___closed__2 = _init_l_Lean_Parser_Tactic_locationHyp_formatter___closed__2(); lean_mark_persistent(l_Lean_Parser_Tactic_locationHyp_formatter___closed__2); -l_Lean_Parser_Tactic_locationHyp_formatter___closed__3 = _init_l_Lean_Parser_Tactic_locationHyp_formatter___closed__3(); -lean_mark_persistent(l_Lean_Parser_Tactic_locationHyp_formatter___closed__3); l_Lean_Parser_Tactic_location_formatter___closed__1 = _init_l_Lean_Parser_Tactic_location_formatter___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_location_formatter___closed__1); l_Lean_Parser_Tactic_location_formatter___closed__2 = _init_l_Lean_Parser_Tactic_location_formatter___closed__2(); @@ -32571,8 +32461,6 @@ l_Lean_Parser_Tactic_locationHyp_parenthesizer___closed__1 = _init_l_Lean_Parser lean_mark_persistent(l_Lean_Parser_Tactic_locationHyp_parenthesizer___closed__1); l_Lean_Parser_Tactic_locationHyp_parenthesizer___closed__2 = _init_l_Lean_Parser_Tactic_locationHyp_parenthesizer___closed__2(); lean_mark_persistent(l_Lean_Parser_Tactic_locationHyp_parenthesizer___closed__2); -l_Lean_Parser_Tactic_locationHyp_parenthesizer___closed__3 = _init_l_Lean_Parser_Tactic_locationHyp_parenthesizer___closed__3(); -lean_mark_persistent(l_Lean_Parser_Tactic_locationHyp_parenthesizer___closed__3); l_Lean_Parser_Tactic_location_parenthesizer___closed__1 = _init_l_Lean_Parser_Tactic_location_parenthesizer___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_location_parenthesizer___closed__1); l_Lean_Parser_Tactic_location_parenthesizer___closed__2 = _init_l_Lean_Parser_Tactic_location_parenthesizer___closed__2(); @@ -32757,6 +32645,8 @@ l_Lean_Parser_Tactic_rewrite___elambda__1___closed__10 = _init_l_Lean_Parser_Tac lean_mark_persistent(l_Lean_Parser_Tactic_rewrite___elambda__1___closed__10); l_Lean_Parser_Tactic_rewrite___elambda__1___closed__11 = _init_l_Lean_Parser_Tactic_rewrite___elambda__1___closed__11(); lean_mark_persistent(l_Lean_Parser_Tactic_rewrite___elambda__1___closed__11); +l_Lean_Parser_Tactic_rewrite___elambda__1___closed__12 = _init_l_Lean_Parser_Tactic_rewrite___elambda__1___closed__12(); +lean_mark_persistent(l_Lean_Parser_Tactic_rewrite___elambda__1___closed__12); l_Lean_Parser_Tactic_rewrite___closed__1 = _init_l_Lean_Parser_Tactic_rewrite___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_rewrite___closed__1); l_Lean_Parser_Tactic_rewrite___closed__2 = _init_l_Lean_Parser_Tactic_rewrite___closed__2(); @@ -32841,6 +32731,8 @@ l_Lean_Parser_Tactic_rewrite_parenthesizer___closed__6 = _init_l_Lean_Parser_Tac lean_mark_persistent(l_Lean_Parser_Tactic_rewrite_parenthesizer___closed__6); l_Lean_Parser_Tactic_rewrite_parenthesizer___closed__7 = _init_l_Lean_Parser_Tactic_rewrite_parenthesizer___closed__7(); lean_mark_persistent(l_Lean_Parser_Tactic_rewrite_parenthesizer___closed__7); +l_Lean_Parser_Tactic_rewrite_parenthesizer___closed__8 = _init_l_Lean_Parser_Tactic_rewrite_parenthesizer___closed__8(); +lean_mark_persistent(l_Lean_Parser_Tactic_rewrite_parenthesizer___closed__8); l___regBuiltin_Lean_Parser_Tactic_rewrite_parenthesizer___closed__1 = _init_l___regBuiltin_Lean_Parser_Tactic_rewrite_parenthesizer___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Parser_Tactic_rewrite_parenthesizer___closed__1); res = l___regBuiltin_Lean_Parser_Tactic_rewrite_parenthesizer(lean_io_mk_world()); @@ -33122,6 +33014,8 @@ l_Lean_Parser_Tactic_inductionAlts_formatter___closed__2 = _init_l_Lean_Parser_T lean_mark_persistent(l_Lean_Parser_Tactic_inductionAlts_formatter___closed__2); l_Lean_Parser_Tactic_inductionAlts_formatter___closed__3 = _init_l_Lean_Parser_Tactic_inductionAlts_formatter___closed__3(); lean_mark_persistent(l_Lean_Parser_Tactic_inductionAlts_formatter___closed__3); +l_Lean_Parser_Tactic_inductionAlts_formatter___closed__4 = _init_l_Lean_Parser_Tactic_inductionAlts_formatter___closed__4(); +lean_mark_persistent(l_Lean_Parser_Tactic_inductionAlts_formatter___closed__4); l_Lean_Parser_Tactic_withAlts_formatter___closed__1 = _init_l_Lean_Parser_Tactic_withAlts_formatter___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_withAlts_formatter___closed__1); l_Lean_Parser_Tactic_withAlts_formatter___closed__2 = _init_l_Lean_Parser_Tactic_withAlts_formatter___closed__2(); @@ -33159,8 +33053,6 @@ l_Lean_Parser_Tactic_majorPremise_parenthesizer___closed__2 = _init_l_Lean_Parse lean_mark_persistent(l_Lean_Parser_Tactic_majorPremise_parenthesizer___closed__2); l_Lean_Parser_Tactic_majorPremise_parenthesizer___closed__3 = _init_l_Lean_Parser_Tactic_majorPremise_parenthesizer___closed__3(); lean_mark_persistent(l_Lean_Parser_Tactic_majorPremise_parenthesizer___closed__3); -l_Lean_Parser_Tactic_generalizingVars_parenthesizer___closed__1 = _init_l_Lean_Parser_Tactic_generalizingVars_parenthesizer___closed__1(); -lean_mark_persistent(l_Lean_Parser_Tactic_generalizingVars_parenthesizer___closed__1); l_Lean_Parser_Tactic_altRHS_parenthesizer___closed__1 = _init_l_Lean_Parser_Tactic_altRHS_parenthesizer___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_altRHS_parenthesizer___closed__1); l_Lean_Parser_Tactic_inductionAlt_parenthesizer___closed__1 = _init_l_Lean_Parser_Tactic_inductionAlt_parenthesizer___closed__1(); @@ -33301,8 +33193,6 @@ l_Lean_Parser_Tactic_matchAlts___closed__4 = _init_l_Lean_Parser_Tactic_matchAlt lean_mark_persistent(l_Lean_Parser_Tactic_matchAlts___closed__4); l_Lean_Parser_Tactic_matchAlts___closed__5 = _init_l_Lean_Parser_Tactic_matchAlts___closed__5(); lean_mark_persistent(l_Lean_Parser_Tactic_matchAlts___closed__5); -l_Lean_Parser_Tactic_matchAlts___closed__6 = _init_l_Lean_Parser_Tactic_matchAlts___closed__6(); -lean_mark_persistent(l_Lean_Parser_Tactic_matchAlts___closed__6); l_Lean_Parser_Tactic_matchAlts = _init_l_Lean_Parser_Tactic_matchAlts(); lean_mark_persistent(l_Lean_Parser_Tactic_matchAlts); l_Lean_Parser_Tactic_match___elambda__1___closed__1 = _init_l_Lean_Parser_Tactic_match___elambda__1___closed__1(); diff --git a/stage0/stdlib/Lean/Parser/Term.c b/stage0/stdlib/Lean/Parser/Term.c index e22cd8d43b..9674980a3e 100644 --- a/stage0/stdlib/Lean/Parser/Term.c +++ b/stage0/stdlib/Lean/Parser/Term.c @@ -293,6 +293,7 @@ lean_object* l_Lean_Parser_Term_namedArgument_formatter(lean_object*, lean_objec lean_object* l_Lean_Parser_Term_structInstArrayRef___closed__4; lean_object* l_Lean_Parser_Term_simpleBinder___closed__5; extern lean_object* l_Lean_Parser_leadPrec; +lean_object* l_Lean_Parser_notFollowedByFn___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_funBinder_quot_parenthesizer___closed__5; lean_object* l_Lean_Parser_Term_lt___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_funBinder_quot___closed__4; @@ -750,7 +751,6 @@ lean_object* l_Lean_Parser_Term_attributes___closed__7; lean_object* l_Lean_Parser_Term_letPatDecl_parenthesizer___closed__5; lean_object* l_Lean_Parser_Term_matchAlts_parenthesizer___closed__6; lean_object* l_Lean_Parser_Term_nativeDecide___elambda__1___closed__2; -lean_object* l_Lean_Parser_notFollowedByFn(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__12; lean_object* l_Lean_Parser_Term_match__syntax___closed__3; lean_object* l_Lean_Parser_Term_ensureExpectedType___closed__4; @@ -50632,11 +50632,13 @@ return x_2; static lean_object* _init_l_Lean_Parser_Term_letDecl___closed__3() { _start: { -lean_object* x_1; lean_object* x_2; +lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Term_letDecl___closed__2; -x_2 = lean_alloc_closure((void*)(l_Lean_Parser_notFollowedByFn), 3, 1); -lean_closure_set(x_2, 0, x_1); -return x_2; +x_2 = l_Lean_mkRecFor___closed__1; +x_3 = lean_alloc_closure((void*)(l_Lean_Parser_notFollowedByFn___boxed), 4, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Parser_Term_letDecl___closed__4() { diff --git a/stage0/stdlib/Lean/PrettyPrinter/Formatter.c b/stage0/stdlib/Lean/PrettyPrinter/Formatter.c index fa07cc75a0..4cde3725a9 100644 --- a/stage0/stdlib/Lean/PrettyPrinter/Formatter.c +++ b/stage0/stdlib/Lean/PrettyPrinter/Formatter.c @@ -218,6 +218,7 @@ lean_object* l_Lean_PrettyPrinter_Formatter_formatterForKind___closed__1; lean_object* l_Lean_MonadTracer_trace___at_Lean_PrettyPrinter_Formatter_checkKind___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_quotedSymbol_formatter___closed__1; lean_object* l_Lean_Syntax_MonadTraverser_goUp___at_Lean_PrettyPrinter_Formatter_visitArgs___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_PrettyPrinter_Formatter_error_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_attrParamSyntaxToIdentifier(lean_object*); uint8_t l_Lean_Syntax_structEq___main(lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_lookahead_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -229,6 +230,7 @@ uint8_t l_Array_isEqvAux___main___at_Lean_PrettyPrinter_Formatter_identNoAntiquo lean_object* l_Lean_PrettyPrinter_Formatter_pushToken___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Substring_beq(lean_object*, lean_object*); extern lean_object* l_String_Iterator_HasRepr___closed__2; +lean_object* l_Lean_PrettyPrinter_Formatter_error_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_checkTailWs_formatter(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_FileMap_ofString(lean_object*); extern lean_object* l_Lean_Format_Inhabited; @@ -305,6 +307,7 @@ uint8_t l_String_isPrefixOf(lean_object*, lean_object*); extern lean_object* l_Lean_ParserCompiler_CombinatorAttribute_Inhabited___closed__1; uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_symbol_formatter___lambda__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_PrettyPrinter_Formatter_error_formatter___rarg(lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_pushToken(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MonadTracer_trace___at_Lean_PrettyPrinter_Formatter_checkKind___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); @@ -3698,6 +3701,38 @@ lean_dec(x_1); return x_7; } } +lean_object* l_Lean_PrettyPrinter_Formatter_error_formatter___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = lean_box(0); +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* l_Lean_PrettyPrinter_Formatter_error_formatter(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_error_formatter___rarg), 1, 0); +return x_6; +} +} +lean_object* l_Lean_PrettyPrinter_Formatter_error_formatter___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_PrettyPrinter_Formatter_error_formatter(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_6; +} +} lean_object* l_Lean_PrettyPrinter_Formatter_try_formatter(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: { diff --git a/stage0/stdlib/Lean/PrettyPrinter/Parenthesizer.c b/stage0/stdlib/Lean/PrettyPrinter/Parenthesizer.c index 713f8745b5..b59a457a15 100644 --- a/stage0/stdlib/Lean/PrettyPrinter/Parenthesizer.c +++ b/stage0/stdlib/Lean/PrettyPrinter/Parenthesizer.c @@ -161,6 +161,7 @@ lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___closed__4; lean_object* l_Nat_forMAux___main___at_Lean_PrettyPrinter_Parenthesizer_parenthesizeCategoryCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___lambda__1___closed__5; lean_object* l_Lean_PrettyPrinter_parenthesizerAttribute; +lean_object* l_Lean_PrettyPrinter_Parenthesizer_error_parenthesizer___rarg(lean_object*); lean_object* l_Lean_PrettyPrinter_Parenthesizer_setExpected_parenthesizer___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_Traverser_setCur(lean_object*, lean_object*); extern lean_object* l_ULift_HasRepr___rarg___closed__2; @@ -284,6 +285,7 @@ lean_object* l_Lean_PrettyPrinter_mkParenthesizerAttribute___lambda__1(uint8_t, lean_object* l_Lean_PrettyPrinter_Parenthesizer_checkColGe_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Parenthesizer_symbol_parenthesizer___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Parenthesizer_fieldIdx_parenthesizer___boxed(lean_object*); +lean_object* l_Lean_PrettyPrinter_Parenthesizer_error_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Parenthesizer_checkTailWs_parenthesizer___rarg(lean_object*); lean_object* l_Lean_PrettyPrinter_Parenthesizer_ParenthesizerM_monadTraverser___closed__6; lean_object* l_Lean_PrettyPrinter_Parenthesizer_monadQuotation___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -460,6 +462,7 @@ lean_object* l_Lean_MonadTracer_trace___at_Lean_PrettyPrinter_Parenthesizer_mayb lean_object* l_Lean_PrettyPrinter_Parenthesizer_strLitNoAntiquot_parenthesizer___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Parenthesizer_level_parenthesizer___closed__1; lean_object* l_Lean_PrettyPrinter_Parenthesizer_identEq_parenthesizer___boxed(lean_object*); +lean_object* l_Lean_PrettyPrinter_Parenthesizer_error_parenthesizer___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___lambda__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_parenthesize___closed__2; lean_object* l_Lean_PrettyPrinter_Parenthesizer_level_parenthesizer___closed__2; @@ -7137,6 +7140,38 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } +lean_object* l_Lean_PrettyPrinter_Parenthesizer_error_parenthesizer___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = lean_box(0); +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* l_Lean_PrettyPrinter_Parenthesizer_error_parenthesizer(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_error_parenthesizer___rarg), 1, 0); +return x_6; +} +} +lean_object* l_Lean_PrettyPrinter_Parenthesizer_error_parenthesizer___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_PrettyPrinter_Parenthesizer_error_parenthesizer(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_6; +} +} lean_object* l_Lean_PrettyPrinter_Parenthesizer_try_parenthesizer(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: {