From 80cf5202b8897be115cc4b56b3ace3661d5e2837 Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Mon, 9 Aug 2021 14:29:10 -0700 Subject: [PATCH] chore: update stage0 --- stage0/src/Init/Core.lean | 2 +- stage0/src/Init/Prelude.lean | 2 +- stage0/src/Lean/Elab/StructInst.lean | 7 +- stage0/src/Lean/Elab/Structure.lean | 114 +- stage0/src/Lean/Expr.lean | 2 +- stage0/src/Lean/Meta.lean | 1 + stage0/src/Lean/Meta/Structure.lean | 40 + stage0/src/Lean/Structure.lean | 14 + stage0/stdlib/CMakeLists.txt | 2 +- stage0/stdlib/Lean/Elab/StructInst.c | 189 +- stage0/stdlib/Lean/Elab/Structure.c | 4784 +++++++++++++++----------- stage0/stdlib/Lean/Expr.c | 578 +++- stage0/stdlib/Lean/Meta.c | 6 +- stage0/stdlib/Lean/Meta/Structure.c | 1108 ++++++ stage0/stdlib/Lean/Structure.c | 1021 ++++-- 15 files changed, 5399 insertions(+), 2471 deletions(-) create mode 100644 stage0/src/Lean/Meta/Structure.lean create mode 100644 stage0/stdlib/Lean/Meta/Structure.c diff --git a/stage0/src/Init/Core.lean b/stage0/src/Init/Core.lean index e9e8779135..b4f78e6b80 100644 --- a/stage0/src/Init/Core.lean +++ b/stage0/src/Init/Core.lean @@ -284,7 +284,7 @@ theorem iff_iff_implies_and_implies (a b : Prop) : (a ↔ b) ↔ (a → b) ∧ ( theorem Iff.refl (a : Prop) : a ↔ a := Iff.intro (fun h => h) (fun h => h) -theorem Iff.rfl {a : Prop} : a ↔ a := +protected theorem Iff.rfl {a : Prop} : a ↔ a := Iff.refl a theorem Iff.trans (h₁ : a ↔ b) (h₂ : b ↔ c) : a ↔ c := diff --git a/stage0/src/Init/Prelude.lean b/stage0/src/Init/Prelude.lean index c26993f12f..383e5c6e07 100644 --- a/stage0/src/Init/Prelude.lean +++ b/stage0/src/Init/Prelude.lean @@ -107,7 +107,7 @@ init_quot inductive HEq {α : Sort u} (a : α) : {β : Sort u} → β → Prop where | refl {} : HEq a a -@[matchPattern] def HEq.rfl {α : Sort u} {a : α} : HEq a a := +@[matchPattern] protected def HEq.rfl {α : Sort u} {a : α} : HEq a a := HEq.refl a theorem eq_of_heq {α : Sort u} {a a' : α} (h : HEq a a') : Eq a a' := diff --git a/stage0/src/Lean/Elab/StructInst.lean b/stage0/src/Lean/Elab/StructInst.lean index 07239dd355..1ea3be7c38 100644 --- a/stage0/src/Lean/Elab/StructInst.lean +++ b/stage0/src/Lean/Elab/StructInst.lean @@ -749,10 +749,9 @@ partial def tryToSynthesizeDefault (structs : Array Struct) (allStructNames : Ar pure false else if h : i < structs.size then do let struct := structs.get ⟨i, h⟩ - let defaultName := struct.structName ++ fieldName ++ `_default - let env ← getEnv - match env.find? defaultName with - | some cinfo@(ConstantInfo.defnInfo defVal) => do + match getDefaultFnForField? (← getEnv) struct.structName fieldName with + | some defFn => + let cinfo ← getConstInfo defFn let mctx ← getMCtx let val? ← mkDefaultValue? struct cinfo match val? with diff --git a/stage0/src/Lean/Elab/Structure.lean b/stage0/src/Lean/Elab/Structure.lean index dbef2064da..33f6dd8218 100644 --- a/stage0/src/Lean/Elab/Structure.lean +++ b/stage0/src/Lean/Elab/Structure.lean @@ -7,6 +7,7 @@ import Lean.Parser.Command import Lean.Meta.Closure import Lean.Meta.SizeOf import Lean.Meta.Injective +import Lean.Meta.Structure import Lean.Elab.Command import Lean.Elab.DeclModifiers import Lean.Elab.DeclUtil @@ -62,7 +63,7 @@ inductive StructFieldKind where structure StructFieldInfo where name : Name - declName : Name -- Remark: this field value doesn't matter for fromParent fields. + declName : Name -- Remark: for `fromParent` fields, `declName` is only relevant in the generation of auxiliary "default value" functions. fvar : Expr kind : StructFieldKind inferMod : Bool := false @@ -227,23 +228,30 @@ private def validStructType (type : Expr) : Bool := | Expr.sort .. => true | _ => false -private def checkParentIsStructure (parent : Expr) : TermElabM Name := - match parent.getAppFn with - | Expr.const c _ _ => do - unless isStructure (← getEnv) c do - throwError "'{c}' is not a structure" - pure c - | _ => throwError "expected structure" - private def findFieldInfo? (infos : Array StructFieldInfo) (fieldName : Name) : Option StructFieldInfo := infos.find? fun info => info.name == fieldName private def containsFieldName (infos : Array StructFieldInfo) (fieldName : Name) : Bool := (findFieldInfo? infos fieldName).isSome +register_builtin_option structureDiamondWarning : Bool := { + defValue := true -- TODO: set as false after finishing support for diamonds + descr := "enable/disable warning messages for structure diamonds" +} + +/-- Return `some fieldName` if field `fieldName` of the parent structure `parentStructName` is already in `infos` -/ +private def findExistingField? (infos : Array StructFieldInfo) (parentStructName : Name) : CoreM (Option Name) := do + let fieldNames := getStructureFieldsFlattened (← getEnv) parentStructName + for fieldName in fieldNames do + if containsFieldName infos fieldName then + return some fieldName + return none + private partial def processSubfields (structDeclName : Name) (parentFVar : Expr) (parentStructName : Name) (subfieldNames : Array Name) (infos : Array StructFieldInfo) (k : Array StructFieldInfo → TermElabM α) : TermElabM α := - let rec loop (i : Nat) (infos : Array StructFieldInfo) := do + go 0 infos +where + go (i : Nat) (infos : Array StructFieldInfo) := do if h : i < subfieldNames.size then let subfieldName := subfieldNames.get ⟨i, h⟩ if containsFieldName infos subfieldName then @@ -252,31 +260,68 @@ private partial def processSubfields (structDeclName : Name) (parentFVar : Expr) 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. -/ + its default value is overwritten in the structure. If the default value is not overwritten, then its value is irrelevant. -/ let declName := structDeclName ++ subfieldName let infos := infos.push { name := subfieldName, declName, fvar := subfieldFVar, kind := StructFieldKind.fromParent } - loop (i+1) infos + go (i+1) infos + else + k infos + +private partial def copyNewFieldsFrom (structDeclName : Name) (infos : Array StructFieldInfo) (parent : Expr) (parentStructName : Name) (k : Array StructFieldInfo → TermElabM α) : TermElabM α := do + let fieldNames := getStructureFieldsFlattened (← getEnv) parentStructName + let rec go (i : Nat) (infos : Array StructFieldInfo) : TermElabM α := do + if h : i < fieldNames.size then + let fieldName := fieldNames.get ⟨i, h⟩ + let fieldType ← getFieldType parent fieldName + match (← findFieldInfo? infos fieldName) with + | some existingFieldInfo => + let existingFieldType ← inferType existingFieldInfo.fvar + unless (← isDefEq fieldType existingFieldType) do + throwError "parent field type mismatch, field '{fieldName}' from parent '{parentStructName}' {← mkHasTypeButIsExpectedMsg fieldType existingFieldType}" + go (i+1) infos + | none => + /- TODO: we are ignoring the following information from the `fieldName` declaraion at `parentStructName`. + - Binder annotation + - Visibility annotation (private/protected) + - `inferMod` + - Default value. + -/ + withLocalDeclD fieldName fieldType fun fieldFVar => do + let fieldDeclName := structDeclName ++ fieldName + let infos := infos.push { name := fieldName, declName := fieldDeclName, fvar := fieldFVar, value? := none, + kind := StructFieldKind.newField, inferMod := false } + go (i+1) infos + else + k infos + go 0 infos + +private partial def withParents (view : StructView) (k : Array StructFieldInfo → TermElabM α) : TermElabM α := do + go 0 #[] +where + go (i : Nat) (infos : Array StructFieldInfo) : TermElabM α := do + if h : i < view.parents.size then + let parentStx := view.parents.get ⟨i, h⟩ + withRef parentStx do + let parent ← Term.elabType parentStx + let parentStructName ← getStructureName parent + if let some existingFieldName ← findExistingField? infos parentStructName then + if structureDiamondWarning.get (← getOptions) then + logWarning s!"field '{existingFieldName}' from '{parentStructName}' has already been declared" + copyNewFieldsFrom view.declName infos parent parentStructName fun infos => go (i+1) infos + -- TODO: if `class`, then we need to create a let-decl that stores the local instance for the `parentStructure` + else + let toParentName := Name.mkSimple $ "to" ++ parentStructName.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 parentStructName 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 parentStructName + processSubfields view.declName parentFVar parentStructName subfieldNames infos fun infos => go (i+1) infos else k infos - loop 0 infos -private partial def withParents (view : StructView) (i : Nat) (infos : Array StructFieldInfo) (k : Array StructFieldInfo → TermElabM α) : TermElabM α := do - if h : i < view.parents.size then - let parentStx := view.parents.get ⟨i, h⟩ - withRef parentStx do - let parent ← Term.elabType parentStx - let parentName ← checkParentIsStructure parent - let toParentName := Name.mkSimple $ "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 private def elabFieldTypeValue (view : StructFieldView) : TermElabM (Option Expr × Option Expr) := do Term.withAutoBoundImplicit <| Term.elabBinders view.binders.getArgs fun params => do @@ -516,7 +561,7 @@ private def elabStructureView (view : StructView) : TermElabM Unit := do let type ← Term.elabType view.type unless validStructType type do throwErrorAt view.type "expected Type" withRef view.ref do - withParents view 0 #[] fun fieldInfos => + withParents view fun fieldInfos => withFields view.fields 0 fieldInfos fun fieldInfos => do Term.synthesizeSyntheticMVarsNoPostponing let u ← getResultUniverse type @@ -554,19 +599,20 @@ private def elabStructureView (view : StructView) : TermElabM Unit := do let projInstances := instParents.toList.map fun info => info.declName Term.applyAttributesAt view.declName view.modifiers.attrs AttributeApplicationTime.afterTypeChecking projInstances.forM fun declName => addInstance declName AttributeKind.global (eval_prio default) + -- TODO: we must create `to` functions for the parent structures that have been flattened, and mark them as instances (if class) 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 + pure (mkDefaultFnOfProjFn info.declName, type, info.value?.get!) + /- The `lctx` and `defaultAuxDecls` are used to create the auxiliary "default value" declarations The parameters `params` for these definitions must be marked as implicit, and all others as explicit. -/ let lctx := params.foldl (init := lctx) fun (lctx : LocalContext) (p : Expr) => lctx.setBinderInfo 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`. + if info.isFromParent then lctx -- `fromParent` fields are elaborated as let-decls, and are zeta-expanded when creating "default value" auxiliary functions else lctx.setBinderInfo info.fvar.fvarId! BinderInfo.default addDefaults lctx defaultAuxDecls diff --git a/stage0/src/Lean/Expr.lean b/stage0/src/Lean/Expr.lean index bfb6d4e759..53062012ac 100644 --- a/stage0/src/Lean/Expr.lean +++ b/stage0/src/Lean/Expr.lean @@ -32,7 +32,7 @@ instance (a b : Literal) : Decidable (a < b) := inductive BinderInfo where | default | implicit | strictImplicit | instImplicit | auxDecl - deriving Inhabited, BEq + deriving Inhabited, BEq, Repr def BinderInfo.hash : BinderInfo → UInt64 | BinderInfo.default => 947 diff --git a/stage0/src/Lean/Meta.lean b/stage0/src/Lean/Meta.lean index b1cadcec89..6bd4425b84 100644 --- a/stage0/src/Lean/Meta.lean +++ b/stage0/src/Lean/Meta.lean @@ -35,3 +35,4 @@ import Lean.Meta.SortLocalDecls import Lean.Meta.CollectFVars import Lean.Meta.GeneralizeVars import Lean.Meta.Injective +import Lean.Meta.Structure diff --git a/stage0/src/Lean/Meta/Structure.lean b/stage0/src/Lean/Meta/Structure.lean new file mode 100644 index 0000000000..b7b53aaf3d --- /dev/null +++ b/stage0/src/Lean/Meta/Structure.lean @@ -0,0 +1,40 @@ +/- +Copyright (c) 2021 Microsoft Corporation. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Leonardo de Moura + +Additional helper methods that require `MetaM` infrastructure. +-/ +import Lean.Structure +import Lean.Meta.AppBuilder + +namespace Lean.Meta + +def getStructureName (struct : Expr) : MetaM Name := + match struct.getAppFn with + | Expr.const declName .. => do + unless isStructure (← getEnv) declName do + throwError "'{declName}' is not a structure" + return declName + | _ => throwError "expected structure" + +def getFieldType (structType : Expr) (fieldName : Name) : MetaM Expr := do + let structName ← getStructureName structType + match findField? (← getEnv) structName fieldName with + | some baseStructName => + match getPathToBaseStructure? (← getEnv) baseStructName structName with + | none => throwError "failed to access field '{fieldName}' of structure '{structName}'" + | some path => + match getProjFnForField? (← getEnv) baseStructName fieldName with + | none => unreachable! + | some projFn => + withLocalDeclD `s structType fun struct => do + let mut struct := struct + for toField in path do + struct ← mkAppM toField #[struct] + let fieldVal ← mkAppM projFn #[struct] + let fieldType ← inferType fieldVal + return fieldType + | none => throwError "'{fieldName}' is not a field of structure '{structName}'" + +end Lean.Meta diff --git a/stage0/src/Lean/Structure.lean b/stage0/src/Lean/Structure.lean index e03bc92fed..56aab66db0 100644 --- a/stage0/src/Lean/Structure.lean +++ b/stage0/src/Lean/Structure.lean @@ -14,6 +14,8 @@ structure StructureFieldInfo where fieldName : Name projFn : Name subobject? : Option Name -- It is `some parentStructName` if it is a subobject, and `parentStructName` is the name of the parent structure + binderInfo : BinderInfo := BinderInfo.default + inferMod : Bool := false -- true if user used the `{}` when declaring the field deriving Inhabited, Repr def StructureFieldInfo.lt (i₁ i₂ : StructureFieldInfo) : Bool := @@ -135,6 +137,18 @@ def getProjFnForField? (env : Environment) (structName : Name) (fieldName : Name else none +def mkDefaultFnOfProjFn (projFn : Name) : Name := + projFn ++ `_default + +def getDefaultFnForField? (env : Environment) (structName : Name) (fieldName : Name) : Option Name := + if let some projName := getProjFnForField? env structName fieldName then + let defFn := mkDefaultFnOfProjFn projName + if env.contains defFn then defFn else none + else + -- Check if we have a default function for a default values overriden by substructure. + let defFn := mkDefaultFnOfProjFn (structName ++ fieldName) + if env.contains defFn then defFn else none + partial def getPathToBaseStructureAux (env : Environment) (baseStructName : Name) (structName : Name) (path : List Name) : Option (List Name) := if baseStructName == structName then some path.reverse diff --git a/stage0/stdlib/CMakeLists.txt b/stage0/stdlib/CMakeLists.txt index 8cf820d2c9..8eb00228ab 100644 --- a/stage0/stdlib/CMakeLists.txt +++ b/stage0/stdlib/CMakeLists.txt @@ -4,5 +4,5 @@ add_library (Init STATIC Init.c Init/Classical.c Init/Coe.c Init/Control.c Init/ set_target_properties(Init PROPERTIES ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib/lean") add_library (Std STATIC Std.c Std/Control.c Std/Control/Nondet.c Std/Data.c Std/Data/AssocList.c Std/Data/BinomialHeap.c Std/Data/DList.c Std/Data/HashMap.c Std/Data/HashSet.c Std/Data/PersistentArray.c Std/Data/PersistentHashMap.c Std/Data/PersistentHashSet.c Std/Data/Queue.c Std/Data/RBMap.c Std/Data/RBTree.c Std/Data/Stack.c Std/ShareCommon.c ) set_target_properties(Std PROPERTIES ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib/lean") -add_library (Lean STATIC Lean.c Lean/Attributes.c Lean/AuxRecursor.c Lean/Class.c Lean/Compiler.c Lean/Compiler/BorrowedAnnotation.c Lean/Compiler/ClosedTermCache.c Lean/Compiler/ConstFolding.c Lean/Compiler/ExportAttr.c Lean/Compiler/ExternAttr.c Lean/Compiler/IR.c Lean/Compiler/IR/Basic.c Lean/Compiler/IR/Borrow.c Lean/Compiler/IR/Boxing.c Lean/Compiler/IR/Checker.c Lean/Compiler/IR/CompilerM.c Lean/Compiler/IR/CtorLayout.c Lean/Compiler/IR/ElimDeadBranches.c Lean/Compiler/IR/ElimDeadVars.c Lean/Compiler/IR/EmitC.c Lean/Compiler/IR/EmitUtil.c Lean/Compiler/IR/ExpandResetReuse.c Lean/Compiler/IR/Format.c Lean/Compiler/IR/FreeVars.c Lean/Compiler/IR/LiveVars.c Lean/Compiler/IR/NormIds.c Lean/Compiler/IR/PushProj.c Lean/Compiler/IR/RC.c Lean/Compiler/IR/ResetReuse.c Lean/Compiler/IR/SimpCase.c Lean/Compiler/IR/Sorry.c Lean/Compiler/IR/UnboxResult.c Lean/Compiler/ImplementedByAttr.c Lean/Compiler/InitAttr.c Lean/Compiler/InlineAttrs.c Lean/Compiler/NameMangling.c Lean/Compiler/NeverExtractAttr.c Lean/Compiler/Specialize.c Lean/Compiler/Util.c Lean/CoreM.c Lean/Data.c Lean/Data/Format.c Lean/Data/Json.c Lean/Data/Json/Basic.c Lean/Data/Json/FromToJson.c Lean/Data/Json/Parser.c Lean/Data/Json/Printer.c Lean/Data/Json/Stream.c Lean/Data/JsonRpc.c Lean/Data/KVMap.c Lean/Data/LBool.c Lean/Data/LOption.c Lean/Data/Lsp.c Lean/Data/Lsp/Basic.c Lean/Data/Lsp/Capabilities.c Lean/Data/Lsp/Communication.c Lean/Data/Lsp/Diagnostics.c Lean/Data/Lsp/Extra.c Lean/Data/Lsp/InitShutdown.c Lean/Data/Lsp/Ipc.c Lean/Data/Lsp/LanguageFeatures.c Lean/Data/Lsp/TextSync.c Lean/Data/Lsp/Utf16.c Lean/Data/Lsp/Workspace.c Lean/Data/Name.c Lean/Data/NameTrie.c Lean/Data/Occurrences.c Lean/Data/OpenDecl.c Lean/Data/Options.c Lean/Data/Parsec.c Lean/Data/Position.c Lean/Data/PrefixTree.c Lean/Data/SMap.c Lean/Data/SSet.c Lean/Data/Trie.c Lean/Data/Xml.c Lean/Data/Xml/Basic.c Lean/Data/Xml/Parser.c Lean/Declaration.c Lean/DeclarationRange.c Lean/DocString.c Lean/Elab.c Lean/Elab/App.c Lean/Elab/Arg.c Lean/Elab/Attributes.c Lean/Elab/AutoBound.c Lean/Elab/Binders.c Lean/Elab/BindersUtil.c Lean/Elab/BuiltinCommand.c Lean/Elab/BuiltinNotation.c Lean/Elab/BuiltinTerm.c Lean/Elab/Command.c Lean/Elab/DeclModifiers.c Lean/Elab/DeclUtil.c Lean/Elab/Declaration.c Lean/Elab/DeclarationRange.c Lean/Elab/DefView.c Lean/Elab/Deriving.c Lean/Elab/Deriving/BEq.c Lean/Elab/Deriving/Basic.c Lean/Elab/Deriving/DecEq.c Lean/Elab/Deriving/FromToJson.c Lean/Elab/Deriving/Hashable.c Lean/Elab/Deriving/Inhabited.c Lean/Elab/Deriving/Ord.c Lean/Elab/Deriving/Repr.c Lean/Elab/Deriving/SizeOf.c Lean/Elab/Deriving/Util.c Lean/Elab/Do.c Lean/Elab/ElabRules.c Lean/Elab/Exception.c Lean/Elab/Extra.c Lean/Elab/Frontend.c Lean/Elab/GenInjective.c Lean/Elab/Import.c Lean/Elab/Inductive.c Lean/Elab/InfoTree.c Lean/Elab/LetRec.c Lean/Elab/Level.c Lean/Elab/Log.c Lean/Elab/Macro.c Lean/Elab/MacroArgUtil.c Lean/Elab/MacroRules.c Lean/Elab/Match.c Lean/Elab/MatchAltView.c Lean/Elab/Mixfix.c Lean/Elab/MutualDef.c Lean/Elab/Notation.c Lean/Elab/Open.c Lean/Elab/PatternVar.c Lean/Elab/PreDefinition.c Lean/Elab/PreDefinition/Basic.c Lean/Elab/PreDefinition/Main.c Lean/Elab/PreDefinition/MkInhabitant.c Lean/Elab/PreDefinition/Structural.c Lean/Elab/PreDefinition/WF.c Lean/Elab/Print.c Lean/Elab/Quotation.c Lean/Elab/Quotation/Precheck.c Lean/Elab/Quotation/Util.c Lean/Elab/SetOption.c Lean/Elab/StructInst.c Lean/Elab/Structure.c Lean/Elab/Syntax.c Lean/Elab/SyntheticMVars.c Lean/Elab/Tactic.c Lean/Elab/Tactic/Basic.c Lean/Elab/Tactic/BuiltinTactic.c Lean/Elab/Tactic/ElabTerm.c Lean/Elab/Tactic/Generalize.c Lean/Elab/Tactic/Induction.c Lean/Elab/Tactic/Injection.c Lean/Elab/Tactic/Location.c Lean/Elab/Tactic/Match.c Lean/Elab/Tactic/Rewrite.c Lean/Elab/Tactic/Simp.c Lean/Elab/Term.c Lean/Elab/Util.c Lean/Environment.c Lean/Eval.c Lean/Exception.c Lean/Expr.c Lean/HeadIndex.c Lean/Hygiene.c Lean/ImportingFlag.c Lean/InternalExceptionId.c Lean/KeyedDeclsAttribute.c Lean/Level.c Lean/LocalContext.c Lean/Message.c Lean/Meta.c Lean/Meta/AbstractMVars.c Lean/Meta/AbstractNestedProofs.c Lean/Meta/AppBuilder.c Lean/Meta/Basic.c Lean/Meta/Check.c Lean/Meta/Closure.c Lean/Meta/Coe.c Lean/Meta/CollectFVars.c Lean/Meta/CollectMVars.c Lean/Meta/DiscrTree.c Lean/Meta/DiscrTreeTypes.c Lean/Meta/ExprDefEq.c Lean/Meta/ForEachExpr.c Lean/Meta/FunInfo.c Lean/Meta/GeneralizeTelescope.c Lean/Meta/GeneralizeVars.c Lean/Meta/GetConst.c Lean/Meta/GlobalInstances.c Lean/Meta/IndPredBelow.c Lean/Meta/Inductive.c Lean/Meta/InferType.c Lean/Meta/Injective.c Lean/Meta/Instances.c Lean/Meta/KAbstract.c Lean/Meta/LevelDefEq.c Lean/Meta/Match.c Lean/Meta/Match/Basic.c Lean/Meta/Match/CaseArraySizes.c Lean/Meta/Match/CaseValues.c Lean/Meta/Match/MVarRenaming.c Lean/Meta/Match/Match.c Lean/Meta/Match/MatchPatternAttr.c Lean/Meta/Match/MatcherInfo.c Lean/Meta/MatchUtil.c Lean/Meta/Offset.c Lean/Meta/PPGoal.c Lean/Meta/RecursorInfo.c Lean/Meta/Reduce.c Lean/Meta/ReduceEval.c Lean/Meta/SizeOf.c Lean/Meta/SortLocalDecls.c Lean/Meta/SynthInstance.c Lean/Meta/Tactic.c Lean/Meta/Tactic/Apply.c Lean/Meta/Tactic/Assert.c Lean/Meta/Tactic/Assumption.c Lean/Meta/Tactic/AuxLemma.c Lean/Meta/Tactic/Cases.c Lean/Meta/Tactic/Clear.c Lean/Meta/Tactic/Constructor.c Lean/Meta/Tactic/Contradiction.c Lean/Meta/Tactic/Delta.c Lean/Meta/Tactic/ElimInfo.c Lean/Meta/Tactic/FVarSubst.c Lean/Meta/Tactic/Generalize.c Lean/Meta/Tactic/Induction.c Lean/Meta/Tactic/Injection.c Lean/Meta/Tactic/Intro.c Lean/Meta/Tactic/Replace.c Lean/Meta/Tactic/Revert.c Lean/Meta/Tactic/Rewrite.c Lean/Meta/Tactic/Simp.c Lean/Meta/Tactic/Simp/CongrLemmas.c Lean/Meta/Tactic/Simp/Main.c Lean/Meta/Tactic/Simp/Rewrite.c Lean/Meta/Tactic/Simp/SimpAll.c Lean/Meta/Tactic/Simp/SimpLemmas.c Lean/Meta/Tactic/Simp/Types.c Lean/Meta/Tactic/Subst.c Lean/Meta/Tactic/Util.c Lean/Meta/Transform.c Lean/Meta/TransparencyMode.c Lean/Meta/UnificationHint.c Lean/Meta/WHNF.c Lean/MetavarContext.c Lean/Modifiers.c Lean/MonadEnv.c Lean/Parser.c Lean/Parser/Attr.c Lean/Parser/Basic.c Lean/Parser/Command.c Lean/Parser/Do.c Lean/Parser/Extension.c Lean/Parser/Extra.c Lean/Parser/Level.c Lean/Parser/Module.c Lean/Parser/StrInterpolation.c Lean/Parser/Syntax.c Lean/Parser/Tactic.c Lean/Parser/Term.c Lean/ParserCompiler.c Lean/ParserCompiler/Attribute.c Lean/PrettyPrinter.c Lean/PrettyPrinter/Basic.c Lean/PrettyPrinter/Delaborator.c Lean/PrettyPrinter/Delaborator/Basic.c Lean/PrettyPrinter/Delaborator/Builtins.c Lean/PrettyPrinter/Delaborator/Options.c Lean/PrettyPrinter/Delaborator/SubExpr.c Lean/PrettyPrinter/Delaborator/TopDownAnalyze.c Lean/PrettyPrinter/Formatter.c Lean/PrettyPrinter/Parenthesizer.c Lean/ProjFns.c Lean/ReducibilityAttrs.c Lean/ResolveName.c Lean/Runtime.c Lean/ScopedEnvExtension.c Lean/Server.c Lean/Server/AsyncList.c Lean/Server/Completion.c Lean/Server/FileSource.c Lean/Server/FileWorker.c Lean/Server/FileWorker/RequestHandling.c Lean/Server/FileWorker/Utils.c Lean/Server/InfoUtils.c Lean/Server/Requests.c Lean/Server/Rpc.c Lean/Server/Rpc/Basic.c Lean/Server/Rpc/Deriving.c Lean/Server/Rpc/RequestHandling.c Lean/Server/Snapshots.c Lean/Server/Utils.c Lean/Server/Watchdog.c Lean/Structure.c Lean/Syntax.c Lean/ToExpr.c Lean/Util.c Lean/Util/CollectFVars.c Lean/Util/CollectLevelParams.c Lean/Util/CollectMVars.c Lean/Util/Constructions.c Lean/Util/FindExpr.c Lean/Util/FindLevelMVar.c Lean/Util/FindMVar.c Lean/Util/FoldConsts.c Lean/Util/ForEachExpr.c Lean/Util/MonadBacktrack.c Lean/Util/MonadCache.c Lean/Util/OccursCheck.c Lean/Util/PPExt.c Lean/Util/Path.c Lean/Util/Profile.c Lean/Util/RecDepth.c Lean/Util/Recognizers.c Lean/Util/ReplaceExpr.c Lean/Util/ReplaceLevel.c Lean/Util/SCC.c Lean/Util/Sorry.c Lean/Util/Trace.c ) +add_library (Lean STATIC Lean.c Lean/Attributes.c Lean/AuxRecursor.c Lean/Class.c Lean/Compiler.c Lean/Compiler/BorrowedAnnotation.c Lean/Compiler/ClosedTermCache.c Lean/Compiler/ConstFolding.c Lean/Compiler/ExportAttr.c Lean/Compiler/ExternAttr.c Lean/Compiler/IR.c Lean/Compiler/IR/Basic.c Lean/Compiler/IR/Borrow.c Lean/Compiler/IR/Boxing.c Lean/Compiler/IR/Checker.c Lean/Compiler/IR/CompilerM.c Lean/Compiler/IR/CtorLayout.c Lean/Compiler/IR/ElimDeadBranches.c Lean/Compiler/IR/ElimDeadVars.c Lean/Compiler/IR/EmitC.c Lean/Compiler/IR/EmitUtil.c Lean/Compiler/IR/ExpandResetReuse.c Lean/Compiler/IR/Format.c Lean/Compiler/IR/FreeVars.c Lean/Compiler/IR/LiveVars.c Lean/Compiler/IR/NormIds.c Lean/Compiler/IR/PushProj.c Lean/Compiler/IR/RC.c Lean/Compiler/IR/ResetReuse.c Lean/Compiler/IR/SimpCase.c Lean/Compiler/IR/Sorry.c Lean/Compiler/IR/UnboxResult.c Lean/Compiler/ImplementedByAttr.c Lean/Compiler/InitAttr.c Lean/Compiler/InlineAttrs.c Lean/Compiler/NameMangling.c Lean/Compiler/NeverExtractAttr.c Lean/Compiler/Specialize.c Lean/Compiler/Util.c Lean/CoreM.c Lean/Data.c Lean/Data/Format.c Lean/Data/Json.c Lean/Data/Json/Basic.c Lean/Data/Json/FromToJson.c Lean/Data/Json/Parser.c Lean/Data/Json/Printer.c Lean/Data/Json/Stream.c Lean/Data/JsonRpc.c Lean/Data/KVMap.c Lean/Data/LBool.c Lean/Data/LOption.c Lean/Data/Lsp.c Lean/Data/Lsp/Basic.c Lean/Data/Lsp/Capabilities.c Lean/Data/Lsp/Communication.c Lean/Data/Lsp/Diagnostics.c Lean/Data/Lsp/Extra.c Lean/Data/Lsp/InitShutdown.c Lean/Data/Lsp/Ipc.c Lean/Data/Lsp/LanguageFeatures.c Lean/Data/Lsp/TextSync.c Lean/Data/Lsp/Utf16.c Lean/Data/Lsp/Workspace.c Lean/Data/Name.c Lean/Data/NameTrie.c Lean/Data/Occurrences.c Lean/Data/OpenDecl.c Lean/Data/Options.c Lean/Data/Parsec.c Lean/Data/Position.c Lean/Data/PrefixTree.c Lean/Data/SMap.c Lean/Data/SSet.c Lean/Data/Trie.c Lean/Data/Xml.c Lean/Data/Xml/Basic.c Lean/Data/Xml/Parser.c Lean/Declaration.c Lean/DeclarationRange.c Lean/DocString.c Lean/Elab.c Lean/Elab/App.c Lean/Elab/Arg.c Lean/Elab/Attributes.c Lean/Elab/AutoBound.c Lean/Elab/Binders.c Lean/Elab/BindersUtil.c Lean/Elab/BuiltinCommand.c Lean/Elab/BuiltinNotation.c Lean/Elab/BuiltinTerm.c Lean/Elab/Command.c Lean/Elab/DeclModifiers.c Lean/Elab/DeclUtil.c Lean/Elab/Declaration.c Lean/Elab/DeclarationRange.c Lean/Elab/DefView.c Lean/Elab/Deriving.c Lean/Elab/Deriving/BEq.c Lean/Elab/Deriving/Basic.c Lean/Elab/Deriving/DecEq.c Lean/Elab/Deriving/FromToJson.c Lean/Elab/Deriving/Hashable.c Lean/Elab/Deriving/Inhabited.c Lean/Elab/Deriving/Ord.c Lean/Elab/Deriving/Repr.c Lean/Elab/Deriving/SizeOf.c Lean/Elab/Deriving/Util.c Lean/Elab/Do.c Lean/Elab/ElabRules.c Lean/Elab/Exception.c Lean/Elab/Extra.c Lean/Elab/Frontend.c Lean/Elab/GenInjective.c Lean/Elab/Import.c Lean/Elab/Inductive.c Lean/Elab/InfoTree.c Lean/Elab/LetRec.c Lean/Elab/Level.c Lean/Elab/Log.c Lean/Elab/Macro.c Lean/Elab/MacroArgUtil.c Lean/Elab/MacroRules.c Lean/Elab/Match.c Lean/Elab/MatchAltView.c Lean/Elab/Mixfix.c Lean/Elab/MutualDef.c Lean/Elab/Notation.c Lean/Elab/Open.c Lean/Elab/PatternVar.c Lean/Elab/PreDefinition.c Lean/Elab/PreDefinition/Basic.c Lean/Elab/PreDefinition/Main.c Lean/Elab/PreDefinition/MkInhabitant.c Lean/Elab/PreDefinition/Structural.c Lean/Elab/PreDefinition/WF.c Lean/Elab/Print.c Lean/Elab/Quotation.c Lean/Elab/Quotation/Precheck.c Lean/Elab/Quotation/Util.c Lean/Elab/SetOption.c Lean/Elab/StructInst.c Lean/Elab/Structure.c Lean/Elab/Syntax.c Lean/Elab/SyntheticMVars.c Lean/Elab/Tactic.c Lean/Elab/Tactic/Basic.c Lean/Elab/Tactic/BuiltinTactic.c Lean/Elab/Tactic/ElabTerm.c Lean/Elab/Tactic/Generalize.c Lean/Elab/Tactic/Induction.c Lean/Elab/Tactic/Injection.c Lean/Elab/Tactic/Location.c Lean/Elab/Tactic/Match.c Lean/Elab/Tactic/Rewrite.c Lean/Elab/Tactic/Simp.c Lean/Elab/Term.c Lean/Elab/Util.c Lean/Environment.c Lean/Eval.c Lean/Exception.c Lean/Expr.c Lean/HeadIndex.c Lean/Hygiene.c Lean/ImportingFlag.c Lean/InternalExceptionId.c Lean/KeyedDeclsAttribute.c Lean/Level.c Lean/LocalContext.c Lean/Message.c Lean/Meta.c Lean/Meta/AbstractMVars.c Lean/Meta/AbstractNestedProofs.c Lean/Meta/AppBuilder.c Lean/Meta/Basic.c Lean/Meta/Check.c Lean/Meta/Closure.c Lean/Meta/Coe.c Lean/Meta/CollectFVars.c Lean/Meta/CollectMVars.c Lean/Meta/DiscrTree.c Lean/Meta/DiscrTreeTypes.c Lean/Meta/ExprDefEq.c Lean/Meta/ForEachExpr.c Lean/Meta/FunInfo.c Lean/Meta/GeneralizeTelescope.c Lean/Meta/GeneralizeVars.c Lean/Meta/GetConst.c Lean/Meta/GlobalInstances.c Lean/Meta/IndPredBelow.c Lean/Meta/Inductive.c Lean/Meta/InferType.c Lean/Meta/Injective.c Lean/Meta/Instances.c Lean/Meta/KAbstract.c Lean/Meta/LevelDefEq.c Lean/Meta/Match.c Lean/Meta/Match/Basic.c Lean/Meta/Match/CaseArraySizes.c Lean/Meta/Match/CaseValues.c Lean/Meta/Match/MVarRenaming.c Lean/Meta/Match/Match.c Lean/Meta/Match/MatchPatternAttr.c Lean/Meta/Match/MatcherInfo.c Lean/Meta/MatchUtil.c Lean/Meta/Offset.c Lean/Meta/PPGoal.c Lean/Meta/RecursorInfo.c Lean/Meta/Reduce.c Lean/Meta/ReduceEval.c Lean/Meta/SizeOf.c Lean/Meta/SortLocalDecls.c Lean/Meta/Structure.c Lean/Meta/SynthInstance.c Lean/Meta/Tactic.c Lean/Meta/Tactic/Apply.c Lean/Meta/Tactic/Assert.c Lean/Meta/Tactic/Assumption.c Lean/Meta/Tactic/AuxLemma.c Lean/Meta/Tactic/Cases.c Lean/Meta/Tactic/Clear.c Lean/Meta/Tactic/Constructor.c Lean/Meta/Tactic/Contradiction.c Lean/Meta/Tactic/Delta.c Lean/Meta/Tactic/ElimInfo.c Lean/Meta/Tactic/FVarSubst.c Lean/Meta/Tactic/Generalize.c Lean/Meta/Tactic/Induction.c Lean/Meta/Tactic/Injection.c Lean/Meta/Tactic/Intro.c Lean/Meta/Tactic/Replace.c Lean/Meta/Tactic/Revert.c Lean/Meta/Tactic/Rewrite.c Lean/Meta/Tactic/Simp.c Lean/Meta/Tactic/Simp/CongrLemmas.c Lean/Meta/Tactic/Simp/Main.c Lean/Meta/Tactic/Simp/Rewrite.c Lean/Meta/Tactic/Simp/SimpAll.c Lean/Meta/Tactic/Simp/SimpLemmas.c Lean/Meta/Tactic/Simp/Types.c Lean/Meta/Tactic/Subst.c Lean/Meta/Tactic/Util.c Lean/Meta/Transform.c Lean/Meta/TransparencyMode.c Lean/Meta/UnificationHint.c Lean/Meta/WHNF.c Lean/MetavarContext.c Lean/Modifiers.c Lean/MonadEnv.c Lean/Parser.c Lean/Parser/Attr.c Lean/Parser/Basic.c Lean/Parser/Command.c Lean/Parser/Do.c Lean/Parser/Extension.c Lean/Parser/Extra.c Lean/Parser/Level.c Lean/Parser/Module.c Lean/Parser/StrInterpolation.c Lean/Parser/Syntax.c Lean/Parser/Tactic.c Lean/Parser/Term.c Lean/ParserCompiler.c Lean/ParserCompiler/Attribute.c Lean/PrettyPrinter.c Lean/PrettyPrinter/Basic.c Lean/PrettyPrinter/Delaborator.c Lean/PrettyPrinter/Delaborator/Basic.c Lean/PrettyPrinter/Delaborator/Builtins.c Lean/PrettyPrinter/Delaborator/Options.c Lean/PrettyPrinter/Delaborator/SubExpr.c Lean/PrettyPrinter/Delaborator/TopDownAnalyze.c Lean/PrettyPrinter/Formatter.c Lean/PrettyPrinter/Parenthesizer.c Lean/ProjFns.c Lean/ReducibilityAttrs.c Lean/ResolveName.c Lean/Runtime.c Lean/ScopedEnvExtension.c Lean/Server.c Lean/Server/AsyncList.c Lean/Server/Completion.c Lean/Server/FileSource.c Lean/Server/FileWorker.c Lean/Server/FileWorker/RequestHandling.c Lean/Server/FileWorker/Utils.c Lean/Server/InfoUtils.c Lean/Server/Requests.c Lean/Server/Rpc.c Lean/Server/Rpc/Basic.c Lean/Server/Rpc/Deriving.c Lean/Server/Rpc/RequestHandling.c Lean/Server/Snapshots.c Lean/Server/Utils.c Lean/Server/Watchdog.c Lean/Structure.c Lean/Syntax.c Lean/ToExpr.c Lean/Util.c Lean/Util/CollectFVars.c Lean/Util/CollectLevelParams.c Lean/Util/CollectMVars.c Lean/Util/Constructions.c Lean/Util/FindExpr.c Lean/Util/FindLevelMVar.c Lean/Util/FindMVar.c Lean/Util/FoldConsts.c Lean/Util/ForEachExpr.c Lean/Util/MonadBacktrack.c Lean/Util/MonadCache.c Lean/Util/OccursCheck.c Lean/Util/PPExt.c Lean/Util/Path.c Lean/Util/Profile.c Lean/Util/RecDepth.c Lean/Util/Recognizers.c Lean/Util/ReplaceExpr.c Lean/Util/ReplaceLevel.c Lean/Util/SCC.c Lean/Util/Sorry.c Lean/Util/Trace.c ) set_target_properties(Lean PROPERTIES ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib/lean") diff --git a/stage0/stdlib/Lean/Elab/StructInst.c b/stage0/stdlib/Lean/Elab/StructInst.c index 1c36b6bfd2..3fcc35b15a 100644 --- a/stage0/stdlib/Lean/Elab/StructInst.c +++ b/stage0/stdlib/Lean/Elab/StructInst.c @@ -15,6 +15,7 @@ extern "C" { #endif lean_object* l_List_reverse___rarg(lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName_throwUnexpectedExpectedType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_getConstInfo___at_Lean_Elab_Term_mkConst___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_modifyFields(lean_object*, lean_object*); @@ -122,10 +123,9 @@ lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expan lean_object* l_Lean_Elab_Term_StructInst_Struct_allDefault_match__1(lean_object*); lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_markDefaultMissing(lean_object*); -lean_object* lean_environment_find(lean_object*, lean_object*); lean_object* l_Lean_addTrace_addTraceOptions(lean_object*); static lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f___closed__1; -lean_object* l_Lean_Elab_Term_StructInst_initFn____x40_Lean_Elab_StructInst___hyg_7707_(lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_initFn____x40_Lean_Elab_StructInst___hyg_7697_(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_StructInst_expandStructInstExpectedType___closed__2; lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Meta_0__Lean_Syntax_isNatLitAux(lean_object*, lean_object*); @@ -407,7 +407,6 @@ uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_expr_dbg_to_string(lean_object*); static lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource___lambda__1___closed__5; -static lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___closed__2; lean_object* l_List_mapM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_defaultMissing_x3f(lean_object*); lean_object* l_Lean_getPathToBaseStructure_x3f(lean_object*, lean_object*, lean_object*); @@ -560,6 +559,7 @@ lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Ela static lean_object* l_Lean_Elab_Term_StructInst_expandStructInstExpectedType___closed__13; lean_object* l_Lean_mkApp(lean_object*, lean_object*); static lean_object* l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__1; +lean_object* l_Lean_getDefaultFnForField_x3f(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkSubstructSource_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_source___boxed(lean_object*); static lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource___lambda__1___closed__15; @@ -684,7 +684,6 @@ static lean_object* l_List_mapM___at___private_Lean_Elab_StructInst_0__Lean_Elab static lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName_throwUnexpectedExpectedType___closed__1; lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__3___closed__3; -static lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___closed__3; lean_object* l_Lean_Expr_getAppFn(lean_object*); static lean_object* l_Lean_Elab_Term_StructInst_formatStruct___closed__2; static lean_object* l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__8; @@ -21477,27 +21476,13 @@ return x_4; } else { -lean_object* x_5; +lean_object* x_5; lean_object* x_6; +lean_dec(x_3); x_5 = lean_ctor_get(x_1, 0); lean_inc(x_5); -if (lean_obj_tag(x_5) == 1) -{ -lean_object* x_6; lean_object* x_7; -lean_dec(x_3); lean_dec(x_1); -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_apply_2(x_2, x_5, x_6); -return x_7; -} -else -{ -lean_object* x_8; -lean_dec(x_5); -lean_dec(x_2); -x_8 = lean_apply_1(x_3, x_1); -return x_8; -} +x_6 = lean_apply_1(x_2, x_5); +return x_6; } } } @@ -21533,24 +21518,6 @@ static lean_object* _init_l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthes _start: { lean_object* x_1; -x_1 = lean_mk_string("_default"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___closed__3() { -_start: -{ -lean_object* x_1; x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___lambda__1___boxed), 1, 0); return x_1; } @@ -21589,46 +21556,48 @@ 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_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; x_21 = lean_array_fget(x_1, x_6); -x_22 = l_Lean_Elab_Term_StructInst_Struct_structName(x_21); -lean_inc(x_4); -x_23 = l_Lean_Name_append(x_22, x_4); +x_22 = lean_st_ref_get(x_13, x_14); +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); lean_dec(x_22); -x_24 = l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___closed__2; -x_25 = l_Lean_Name_append(x_23, x_24); +x_25 = lean_ctor_get(x_23, 0); +lean_inc(x_25); lean_dec(x_23); -x_26 = lean_st_ref_get(x_13, x_14); -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_26, 1); -lean_inc(x_28); -lean_dec(x_26); -x_29 = lean_ctor_get(x_27, 0); -lean_inc(x_29); -lean_dec(x_27); -x_30 = lean_environment_find(x_29, x_25); -if (lean_obj_tag(x_30) == 0) +x_26 = l_Lean_Elab_Term_StructInst_Struct_structName(x_21); +lean_inc(x_4); +x_27 = l_Lean_getDefaultFnForField_x3f(x_25, x_26, x_4); +if (lean_obj_tag(x_27) == 0) { -lean_object* x_31; lean_object* x_32; +lean_object* x_28; lean_object* x_29; lean_dec(x_21); -x_31 = lean_unsigned_to_nat(1u); -x_32 = lean_nat_add(x_6, x_31); +x_28 = lean_unsigned_to_nat(1u); +x_29 = lean_nat_add(x_6, x_28); lean_dec(x_6); -x_6 = x_32; -x_14 = x_28; +x_6 = x_29; +x_14 = x_24; goto _start; } else { -lean_object* x_34; -x_34 = lean_ctor_get(x_30, 0); -lean_inc(x_34); -lean_dec(x_30); -if (lean_obj_tag(x_34) == 1) +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_27, 0); +lean_inc(x_31); +lean_dec(x_27); +lean_inc(x_8); +x_32 = l_Lean_getConstInfo___at_Lean_Elab_Term_mkConst___spec__1(x_31, x_8, x_9, x_10, x_11, x_12, x_13, x_24); +if (lean_obj_tag(x_32) == 0) { -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_35 = lean_st_ref_get(x_13, x_28); +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +lean_dec(x_32); +x_35 = lean_st_ref_get(x_13, x_34); x_36 = lean_ctor_get(x_35, 1); lean_inc(x_36); lean_dec(x_35); @@ -21645,8 +21614,8 @@ lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_41 = l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValue_x3f(x_21, x_34, x_8, x_9, x_10, x_11, x_12, x_13, x_39); -lean_dec(x_34); +x_41 = l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValue_x3f(x_21, x_33, x_8, x_9, x_10, x_11, x_12, x_13, x_39); +lean_dec(x_33); lean_dec(x_21); if (lean_obj_tag(x_41) == 0) { @@ -21699,7 +21668,7 @@ x_55 = lean_ctor_get(x_53, 1); lean_inc(x_55); lean_dec(x_53); x_56 = 8192; -x_57 = l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___closed__3; +x_57 = l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___closed__1; x_58 = l_Lean_Expr_FindImpl_initCache; lean_inc(x_54); x_59 = l_Lean_Expr_FindImpl_findM_x3f_visit(x_57, x_56, x_54, x_58); @@ -21875,7 +21844,7 @@ x_95 = lean_ctor_get(x_93, 1); lean_inc(x_95); lean_dec(x_93); x_96 = 8192; -x_97 = l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___closed__3; +x_97 = l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___closed__1; x_98 = l_Lean_Expr_FindImpl_initCache; lean_inc(x_94); x_99 = l_Lean_Expr_FindImpl_findM_x3f_visit(x_97, x_96, x_94, x_98); @@ -22068,22 +22037,8 @@ return x_133; } else { -lean_object* x_134; lean_object* x_135; -lean_dec(x_34); +uint8_t x_134; lean_dec(x_21); -x_134 = lean_unsigned_to_nat(1u); -x_135 = lean_nat_add(x_6, x_134); -lean_dec(x_6); -x_6 = x_135; -x_14 = x_28; -goto _start; -} -} -} -} -else -{ -uint8_t x_137; lean_object* x_138; lean_object* x_139; lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -22095,12 +22050,48 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_137 = 0; -x_138 = lean_box(x_137); -x_139 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_139, 0, x_138); -lean_ctor_set(x_139, 1, x_14); -return x_139; +x_134 = !lean_is_exclusive(x_32); +if (x_134 == 0) +{ +return x_32; +} +else +{ +lean_object* x_135; lean_object* x_136; lean_object* x_137; +x_135 = lean_ctor_get(x_32, 0); +x_136 = lean_ctor_get(x_32, 1); +lean_inc(x_136); +lean_inc(x_135); +lean_dec(x_32); +x_137 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_137, 0, x_135); +lean_ctor_set(x_137, 1, x_136); +return x_137; +} +} +} +} +} +else +{ +uint8_t x_138; lean_object* x_139; lean_object* x_140; +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_2); +x_138 = 0; +x_139 = lean_box(x_138); +x_140 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_140, 0, x_139); +lean_ctor_set(x_140, 1, x_14); +return x_140; } } } @@ -22157,7 +22148,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__4; x_2 = l_List_forIn_loop___at_Lean_Elab_Term_StructInst_DefaultFields_step___spec__1___lambda__1___closed__1; -x_3 = lean_unsigned_to_nat(781u); +x_3 = lean_unsigned_to_nat(780u); x_4 = lean_unsigned_to_nat(25u); x_5 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__6; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -25469,7 +25460,7 @@ x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); return x_6; } } -lean_object* l_Lean_Elab_Term_StructInst_initFn____x40_Lean_Elab_StructInst___hyg_7707_(lean_object* x_1) { +lean_object* l_Lean_Elab_Term_StructInst_initFn____x40_Lean_Elab_StructInst___hyg_7697_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -25947,10 +25938,6 @@ l_Lean_Elab_Term_StructInst_DefaultFields_reduce___boxed__const__1 = _init_l_Lea lean_mark_persistent(l_Lean_Elab_Term_StructInst_DefaultFields_reduce___boxed__const__1); l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___closed__1 = _init_l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___closed__1); -l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___closed__2 = _init_l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___closed__2(); -lean_mark_persistent(l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___closed__2); -l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___closed__3 = _init_l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___closed__3(); -lean_mark_persistent(l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___closed__3); l_List_forIn_loop___at_Lean_Elab_Term_StructInst_DefaultFields_step___spec__1___lambda__1___closed__1 = _init_l_List_forIn_loop___at_Lean_Elab_Term_StructInst_DefaultFields_step___spec__1___lambda__1___closed__1(); lean_mark_persistent(l_List_forIn_loop___at_Lean_Elab_Term_StructInst_DefaultFields_step___spec__1___lambda__1___closed__1); l_List_forIn_loop___at_Lean_Elab_Term_StructInst_DefaultFields_step___spec__1___lambda__1___closed__2 = _init_l_List_forIn_loop___at_Lean_Elab_Term_StructInst_DefaultFields_step___spec__1___lambda__1___closed__2(); @@ -26000,7 +25987,7 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_StructInst_elabStructInst___c res = l___regBuiltin_Lean_Elab_Term_StructInst_elabStructInst(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = l_Lean_Elab_Term_StructInst_initFn____x40_Lean_Elab_StructInst___hyg_7707_(lean_io_mk_world()); +res = l_Lean_Elab_Term_StructInst_initFn____x40_Lean_Elab_StructInst___hyg_7697_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Elab/Structure.c b/stage0/stdlib/Lean/Elab/Structure.c index c0214985c2..c48eb72884 100644 --- a/stage0/stdlib/Lean/Elab/Structure.c +++ b/stage0/stdlib/Lean/Elab/Structure.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Elab.Structure -// Imports: Init Lean.Parser.Command Lean.Meta.Closure Lean.Meta.SizeOf Lean.Meta.Injective Lean.Elab.Command Lean.Elab.DeclModifiers Lean.Elab.DeclUtil Lean.Elab.Inductive Lean.Elab.DeclarationRange Lean.Elab.Binders +// Imports: Init Lean.Parser.Command Lean.Meta.Closure Lean.Meta.SizeOf Lean.Meta.Injective Lean.Meta.Structure Lean.Elab.Command Lean.Elab.DeclModifiers Lean.Elab.DeclUtil Lean.Elab.Inductive Lean.Elab.DeclarationRange Lean.Elab.Binders #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -20,7 +20,8 @@ lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabStructure___closed__11; static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__12; -lean_object* l_Lean_Elab_Command_elabStructure___lambda__1___boxed(lean_object**); +lean_object* l_Lean_Elab_Command_elabStructure___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_findExistingField_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__3; lean_object* l_Lean_Elab_Term_removeUnused(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse___closed__1; @@ -34,10 +35,10 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUnive lean_object* l_Lean_Elab_expandOptDeclSig(lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* lean_erase_macro_scopes(lean_object*); -static 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_copyNewFieldsFrom_go___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_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___spec__3(lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); -static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__6; +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_1816____closed__3; lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkResultingUniverse(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -51,6 +52,7 @@ static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure extern lean_object* l_Lean_nullKind; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields_match__3___rarg(lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__3___closed__13; +lean_object* l_Lean_Elab_Command_elabStructure___lambda__6(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* 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*); static lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___lambda__3___closed__3; @@ -58,6 +60,7 @@ lean_object* l_Lean_mkCasesOn___at___private_Lean_Elab_Inductive_0__Lean_Elab_Co lean_object* l_Lean_MetavarContext_instantiateLevelMVars___at_Lean_Meta_instantiateLevelMVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___closed__1; static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__19; +static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__6; lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getOptional_x3f(lean_object*); lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -70,16 +73,18 @@ uint64_t lean_uint64_of_nat(lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_expandDeclId___at_Lean_Elab_Command_elabStructure___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__3___closed__16; -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*, 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___lambda__2(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_append___rarg(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_Lean_Elab_Command_mkResultUniverse(lean_object*, lean_object*); uint8_t l_Lean_Elab_Modifiers_isProtected(lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__3___closed__6; +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___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(lean_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(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__2(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_DocString_0__Lean_docStringExt; +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2___closed__2; lean_object* l_Array_foldlMUnsafe_fold___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*, lean_object*); static lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___closed__10; @@ -89,17 +94,20 @@ static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkAuxCo static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__2___closed__1; 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* lean_array_uset(lean_object*, size_t, 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*, 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*); 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_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static size_t l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___closed__4; -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___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* l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__15___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkNoConfusion___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__4(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*); static lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__15___closed__2; +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___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_Elab_instInhabitedAttribute; static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8___rarg___closed__1; +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findExistingField_x3f_match__1(lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___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*); static lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__15___lambda__2___closed__1; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__5(lean_object*); lean_object* lean_environment_find(lean_object*, lean_object*); @@ -115,20 +123,20 @@ lean_object* l_Lean_Meta_mkInjectiveTheorems(lean_object*, lean_object*, lean_ob lean_object* lean_st_ref_get(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*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getFieldType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerStructure(lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___closed__3; -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_object*, lean_object*, lean_object*); lean_object* lean_mk_projections(lean_object*, lean_object*, lean_object*, uint8_t); uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_mkAuxName___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__15___lambda__2___closed__2; -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*); static lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__1___closed__2; lean_object* lean_private_to_user_name(lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__1___closed__1; +static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__4; static 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*); extern lean_object* l_Lean_declRangeExt; @@ -147,10 +155,10 @@ lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*) lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_structureDiamondWarning; static lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_elabStructure___spec__5___lambda__1___closed__1; lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_elabStructure___spec__7(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_withFields___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__3; 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, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -209,36 +217,37 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults_ma static lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___closed__4; lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__15___lambda__1___closed__2; +lean_object* l_Lean_mkDefaultFnOfProjFn(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__7(lean_object*, size_t, size_t, lean_object*); lean_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_Array_filterMapM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__4; +static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___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_applyVisibility___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__16___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_registerStructure___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_elabStructure___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabStructure___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_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_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___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_validStructType___boxed(lean_object*); lean_object* l_Lean_Elab_Command_StructFieldInfo_isFromParent___boxed(lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse_match__1(lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___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*); static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__17___lambda__1___closed__4; lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__10___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__2; uint8_t l_Lean_Elab_Command_StructFieldInfo_inferMod___default; lean_object* l_Lean_mkAppN(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__15___lambda__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_copyNewFieldsFrom_go___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, 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*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_setBinderInfo(lean_object*, lean_object*, uint8_t); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__8; lean_object* l_Lean_Elab_applyVisibility___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__16(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__4; static 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_withParents_go___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___closed__6; 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*, lean_object*, lean_object*, lean_object*); @@ -257,20 +266,18 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___l lean_object* l_Lean_Elab_Term_elabTermEnsuringType(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__1; +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findExistingField_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MapDeclarationExtension_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static uint64_t l_Lean_Elab_Command_instInhabitedStructFieldInfo___closed__1; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamFVars___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_elabStructure___spec__5___closed__1; -static 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_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*); lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda_loop___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*); uint8_t l___private_Lean_Elab_Structure_0__Lean_Elab_Command_validStructType(lean_object*); lean_object* l_Lean_Elab_expandMacroImpl_x3f(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__17___closed__3; lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__17___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_st_ref_take(lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__3; static 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*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -278,21 +285,21 @@ lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Structure_0__Lean_E uint8_t l_Lean_Elab_Command_StructFieldInfo_isSubobject(lean_object*); static lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__15___lambda__3___closed__1; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8(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* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_declareTacticSyntax(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__1(lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__17___lambda__2___closed__1; -lean_object* l_Lean_Elab_Command_elabStructure___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabStructure___lambda__5___boxed(lean_object**); lean_object* l_Array_foldlMUnsafe_fold___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*, lean_object*); lean_object* l_Lean_Elab_addDeclarationRanges___at_Lean_Elab_Command_elabStructure___spec__10___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_processSubfields_go___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___boxed__const__1; static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__2___closed__3; 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_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabStructure___lambda__4___boxed(lean_object**); +lean_object* l_Lean_Elab_Command_elabStructure___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUsed___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__17___lambda__2___closed__2; @@ -300,19 +307,21 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkAuxConstruct lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_defaultCtorName; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withUsed_match__1(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___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_Lean_Meta_mkHasTypeButIsExpectedMsg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getStructureFieldsFlattened(lean_object*, lean_object*, uint8_t); static lean_object* l_Lean_Elab_Command_elabStructure___closed__8; -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, 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*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__3___closed__10; static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__5___closed__2; static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__13; lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_getOptDerivingClasses___at_Lean_Elab_Command_elabStructure___spec__2___closed__4; static lean_object* l_Lean_Elab_getOptDerivingClasses___at_Lean_Elab_Command_elabStructure___spec__2___closed__1; -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*); lean_object* l_List_forM___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*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__6___closed__4; +lean_object* l_Lean_Name_toString(lean_object*, uint8_t); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go(lean_object*); uint8_t l_Lean_Expr_hasExprMVar(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_replaceRef(lean_object*, lean_object*); @@ -324,9 +333,9 @@ lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint lean_object* l_Lean_Expr_fvarId_x21(lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__3(lean_object*); lean_object* l_Array_filterMapM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabStructure___lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___spec__1___rarg___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_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_checkParentIsStructure___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__5___closed__1; lean_object* l_Lean_Elab_addAuxDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__20(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_withLetDecl___at_Lean_Elab_Term_elabLetDeclAux___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -334,20 +343,24 @@ static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure 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*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabStructure___closed__4; lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabCommand___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__2; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_expandDeclId___at_Lean_Elab_Command_elabStructure___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*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__2___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_instInhabitedStructFieldInfo___closed__2; lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__15___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__6___closed__5; lean_object* l_Lean_Meta_mkId(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkAuxConstructions___closed__6; static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__2___closed__1; +static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__1; static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__10___closed__2; lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, 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*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabStructure___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_StructFieldInfo_value_x3f___default; +uint8_t l_Lean_Option_get___at_Lean_ppExpr___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___lambda__3___closed__7; lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_elabDeriving___spec__4(size_t, size_t, lean_object*); uint8_t l_Lean_LocalDecl_binderInfo(lean_object*); @@ -357,14 +370,14 @@ lean_object* lean_st_mk_ref(lean_object*, lean_object*); lean_object* l_List_forM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___closed__1; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addCtorFields_match__1(lean_object*); +static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__5; static lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___at_Lean_Elab_Command_elabStructure___spec__1___lambda__1___closed__4; static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__2___closed__2; lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__3; lean_object* l_Lean_Syntax_getId(lean_object*); lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__5; -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*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f___closed__2; static uint8_t l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___closed__2; lean_object* l_Lean_mkRecOn___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -372,10 +385,11 @@ lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Struct lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_instInhabitedStructFieldInfo___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_addDefaults___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__10___closed__1; lean_object* l_Lean_Meta_addInstance(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go_match__1(lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findExistingField_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___boxed(lean_object**); lean_object* l_Lean_Elab_Command_elabStructure___lambda__2___boxed(lean_object**); lean_object* l_Lean_Elab_Command_StructFieldInfo_isSubobject___boxed(lean_object*); @@ -388,18 +402,19 @@ uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields_match__3(lean_object*); lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__2(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_protectedExt; -lean_object* l_Lean_Elab_Command_elabStructure___lambda__5(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabStructure___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, 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_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*); lean_object* l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findExistingField_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___closed__3; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_CollectLevelParams_main(lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_findExistingField_x3f___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___closed__4; lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___closed__1; lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg___closed__1; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_elabDeriving___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__6___closed__2; @@ -422,6 +437,7 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureV static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__2___closed__5; lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assignLevelMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_1816____closed__4; lean_object* l_Lean_Meta_getLocalInstances(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabStructure___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__5; @@ -435,10 +451,12 @@ lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, le lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields_match__1___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___closed__7; static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkAuxConstructions___closed__5; +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_findExistingField_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2___closed__5; lean_object* l_Lean_Elab_Term_collectUsedFVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_BinderInfo_isInstImplicit(uint8_t); lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_1816____closed__1; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___closed__9; @@ -451,6 +469,7 @@ lean_object* l_Lean_Elab_expandDeclIdCore(lean_object*); lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___closed__1; lean_object* l_Lean_Elab_getDeclarationRange___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__21___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___closed__5; static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__3___closed__12; @@ -464,6 +483,7 @@ lean_object* l_Lean_PersistentEnvExtension_addEntry___rarg(lean_object*, lean_ob static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__14; uint8_t l___private_Lean_Elab_Structure_0__Lean_Elab_Command_containsFieldName(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInStructure___closed__1; +static lean_object* l_Lean_Elab_Command_structureDiamondWarning___closed__1; static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__3___closed__17; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addCtorFields_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields(lean_object*); @@ -474,7 +494,6 @@ lean_object* l_Lean_Meta_mkProjection(lean_object*, lean_object*, lean_object*, lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addDocString___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__19(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__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__1; lean_object* l_Lean_mkAtomFrom(lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___closed__2; static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__17___closed__1; @@ -490,7 +509,6 @@ lean_object* l_Lean_Elab_Term_resetMessageLog(lean_object*, lean_object*, lean_o static lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__15___lambda__3___closed__2; uint8_t l_List_elem___at_Lean_NameHashSet_insert___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getPos_x3f(lean_object*, uint8_t); -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__2___closed__4; lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___spec__2(lean_object*); static lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__15___lambda__1___closed__1; @@ -515,17 +533,18 @@ lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___at_Lean_Elab_Comm lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___closed__6; lean_object* lean_environment_main_module(lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findExistingField_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1(lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___boxed__const__1; lean_object* l_Lean_addDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__22(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); -lean_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*, 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*); 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*); lean_object* l_Lean_mkPrivateName(lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___closed__8; +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___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_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__5(lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__17; @@ -536,16 +555,15 @@ lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Ela lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_elabDeriving___spec__5(size_t, size_t, lean_object*); lean_object* l_Lean_Syntax_getKind(lean_object*); 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*, 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_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamAux___spec__1(size_t, size_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_registerStructure_match__1___rarg(lean_object*, lean_object*, lean_object*); -static 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_beqStructFieldKind____x40_Lean_Elab_Structure___hyg_237__match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Elab_Structure_0__Lean_Elab_Command_beqStructFieldKind____x40_Lean_Elab_Structure___hyg_237_(uint8_t, uint8_t); 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* lean_panic_fn(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_containsFieldName___boxed(lean_object*, lean_object*); static 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_registerStructure_match__2(lean_object*); 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___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f___lambda__1___boxed(lean_object*, lean_object*); @@ -554,11 +572,12 @@ lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lea 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*); static lean_object* l_Lean_Elab_Command_elabStructure___closed__1; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3___boxed(lean_object**); +lean_object* l_Lean_Elab_log___at_Lean_Elab_Term_traceAtCmdPos___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withDeclName___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2___closed__3; lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___spec__4(lean_object*); static lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___closed__2; -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*, lean_object*, lean_object*); +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*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__4___closed__1; lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__17___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -584,7 +603,9 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields_m lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_expandDeclSig(lean_object*); static lean_object* l_Lean_Elab_Command_checkValidFieldModifier___closed__2; +static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__1; lean_object* l_Lean_Elab_Command_StructFieldInfo_isSubobject_match__1___rarg(uint8_t, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go_match__1(lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__10___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*); @@ -607,6 +628,7 @@ lean_object* l_Lean_expandMacros(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Elab_Command_StructFieldInfo_isFromParent(lean_object*); lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__13(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___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_defaultCtorName___closed__2; 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*); @@ -618,13 +640,17 @@ static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure lean_object* l_Lean_Elab_Command_StructFieldInfo_isFromParent_match__1___rarg(uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Elab_getOptDerivingClasses___at_Lean_Elab_Command_elabStructure___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__10; +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___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_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabStructure___spec__11(lean_object*, lean_object*, size_t, size_t, 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__17___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__6___closed__6; -lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_5606_(lean_object*); +lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_6027_(lean_object*); +lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_1816_(lean_object*); lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___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*); uint8_t l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_312_(uint8_t, uint8_t); static lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___at_Lean_Elab_Command_elabStructure___spec__1___lambda__2___closed__2; +lean_object* l_Lean_Option_register___at_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_4____spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_instBEqStructFieldKind___closed__1; @@ -644,12 +670,15 @@ lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lea 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_Lean_Meta_getStructureName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go_match__1___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__15___closed__1; lean_object* l_Lean_addDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__22___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_copyNewFieldsFrom_go(lean_object*); lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentD(lean_object*); static 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*, lean_object*, lean_object*); +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*, lean_object*); extern lean_object* l_Lean_Elab_unsupportedSyntaxExceptionId; lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__17(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_toAttributeKind___boxed(lean_object*, lean_object*, lean_object*); @@ -664,6 +693,7 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_ lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3(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*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__2; static lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__2___closed__2; lean_object* l_Lean_Elab_Command_elabStructure_match__1___rarg(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f___closed__1; @@ -679,6 +709,8 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields_m lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_FileMap_leanPosToLspPos(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___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___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___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_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__12___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_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*, lean_object*, lean_object*, lean_object*); @@ -686,7 +718,7 @@ lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_StructFieldInfo_isFromParent_match__1(lean_object*); static lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___closed__3; static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__10___closed__4; -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*, lean_object*, 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*, lean_object*); lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabLetDeclCore___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_withFields_match__2(lean_object*); lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___at_Lean_Elab_Command_elabStructure___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -714,6 +746,8 @@ static lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__2___closed__3; static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__2___closed__1; +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__3___closed__4; lean_object* l_Lean_indentExpr(lean_object*); @@ -724,6 +758,7 @@ static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__3___closed__8; lean_object* l_Lean_Elab_Command_checkValidFieldModifier(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___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___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_Term_withAutoBoundImplicit___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__6(lean_object*, size_t, size_t, lean_object*); @@ -731,16 +766,15 @@ lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lea lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Elab_Command_instInhabitedStructFieldKind; -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_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_elabStructure___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__3___closed__3; lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabStructure___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabStructure___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, 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_registerStructure_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabStructure___lambda__4(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); 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*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___closed__2; -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Syntax_SepArray_getElems___spec__1(lean_object*, size_t, size_t, lean_object*); uint8_t lean_is_class(lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -748,12 +782,12 @@ lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_C lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInst___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabStructure___spec__11___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___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_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*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabStructure___lambda__3___boxed(lean_object**); lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_mkDefViewOfConstant___spec__1(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*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Lean_isStructure(lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__2___closed__4; lean_object* l_Lean_addDocString___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__19___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_1816____closed__2; 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*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabStructure___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; @@ -762,6 +796,7 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToPar lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); static lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_elabStructure___spec__7___closed__2; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__4___rarg(uint8_t, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__3; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* 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*); @@ -8285,246 +8320,6 @@ x_3 = lean_box(x_2); return x_3; } } -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; -} -} -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_1); -lean_ctor_set(x_10, 1, x_9); -return x_10; -} -} -static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("expected structure"); -return x_1; -} -} -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_0__Lean_Elab_Command_checkParentIsStructure___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("' is not a structure"); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__3; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -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; -x_9 = l_Lean_Expr_getAppFn(x_1); -if (lean_obj_tag(x_9) == 4) -{ -lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -lean_dec(x_9); -x_11 = lean_st_ref_get(x_7, x_8); -x_12 = !lean_is_exclusive(x_11); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_13 = lean_ctor_get(x_11, 0); -x_14 = lean_ctor_get(x_11, 1); -x_15 = lean_ctor_get(x_13, 0); -lean_inc(x_15); -lean_dec(x_13); -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; uint8_t x_23; -lean_free_object(x_11); -x_17 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_17, 0, x_10); -x_18 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__17___closed__2; -x_19 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_17); -x_20 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__4; -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_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1(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_22; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_22, 0); -x_25 = lean_ctor_get(x_22, 1); -lean_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 -{ -lean_dec(x_2); -lean_ctor_set(x_11, 0, x_10); -return x_11; -} -} -else -{ -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_29 = lean_ctor_get(x_27, 0); -lean_inc(x_29); -lean_dec(x_27); -lean_inc(x_10); -x_30 = l_Lean_isStructure(x_29, x_10); -if (x_30 == 0) -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_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_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__17___closed__2; -x_33 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_31); -x_34 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__4; -x_35 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_35, 0, x_33); -lean_ctor_set(x_35, 1, x_34); -x_36 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1(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_36); - x_39 = lean_box(0); -} -if (lean_is_scalar(x_39)) { - x_40 = lean_alloc_ctor(1, 2, 0); -} else { - x_40 = x_39; -} -lean_ctor_set(x_40, 0, x_37); -lean_ctor_set(x_40, 1, x_38); -return x_40; -} -else -{ -lean_object* x_41; -lean_dec(x_2); -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_42; lean_object* x_43; -lean_dec(x_9); -x_42 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__2; -x_43 = l_Lean_throwError___at_Lean_Elab_Term_mkAuxName___spec__1(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_0__Lean_Elab_Command_checkParentIsStructure___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_10; -} -} -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_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); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_9; -} -} lean_object* l_Array_forInUnsafe_loop___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, size_t x_4, size_t x_5, lean_object* x_6) { _start: { @@ -8705,7 +8500,289 @@ x_4 = lean_box(x_3); return x_4; } } -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) { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_1816____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("structureDiamondWarning"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_1816____closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_1816____closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_1816____closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("enable/disable warning messages for structure diamonds"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_1816____closed__4() { +_start: +{ +uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = 1; +x_2 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___closed__3; +x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_1816____closed__3; +x_4 = lean_box(x_1); +x_5 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_5, 0, x_4); +lean_ctor_set(x_5, 1, x_2); +lean_ctor_set(x_5, 2, x_3); +return x_5; +} +} +lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_1816_(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_1816____closed__2; +x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_1816____closed__4; +x_4 = l_Lean_Option_register___at_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_4____spec__1(x_2, x_3, x_1); +return x_4; +} +} +static lean_object* _init_l_Lean_Elab_Command_structureDiamondWarning___closed__1() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; +x_1 = lean_box(0); +x_2 = 0; +x_3 = lean_box(x_2); +x_4 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_3); +return x_4; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findExistingField_x3f_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findExistingField_x3f_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_findExistingField_x3f_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_findExistingField_x3f___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +uint8_t x_10; +x_10 = x_5 < x_4; +if (x_10 == 0) +{ +lean_object* x_11; +lean_dec(x_2); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_6); +lean_ctor_set(x_11, 1, x_9); +return x_11; +} +else +{ +lean_object* x_12; uint8_t x_13; +lean_dec(x_6); +x_12 = lean_array_uget(x_3, x_5); +x_13 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_containsFieldName(x_1, x_12); +if (x_13 == 0) +{ +size_t x_14; size_t x_15; +lean_dec(x_12); +x_14 = 1; +x_15 = x_5 + x_14; +lean_inc(x_2); +{ +size_t _tmp_4 = x_15; +lean_object* _tmp_5 = x_2; +x_5 = _tmp_4; +x_6 = _tmp_5; +} +goto _start; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +lean_dec(x_2); +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_12); +x_18 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_18, 0, x_17); +x_19 = lean_box(0); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_9); +return x_21; +} +} +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findExistingField_x3f___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_1); +lean_ctor_set(x_6, 1, x_5); +return x_6; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findExistingField_x3f(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; lean_object* x_11; lean_object* x_12; lean_object* x_13; size_t x_14; size_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_6 = lean_st_ref_get(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 = lean_ctor_get(x_7, 0); +lean_inc(x_9); +lean_dec(x_7); +x_10 = 1; +x_11 = l_Lean_getStructureFieldsFlattened(x_9, x_2, x_10); +x_12 = lean_box(0); +x_13 = lean_array_get_size(x_11); +x_14 = lean_usize_of_nat(x_13); +lean_dec(x_13); +x_15 = 0; +x_16 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f___closed__1; +x_17 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_findExistingField_x3f___spec__1(x_1, x_16, x_11, x_14, x_15, x_16, x_3, x_4, x_8); +lean_dec(x_11); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +lean_dec(x_18); +if (lean_obj_tag(x_19) == 0) +{ +uint8_t x_20; +x_20 = !lean_is_exclusive(x_17); +if (x_20 == 0) +{ +lean_object* x_21; +x_21 = lean_ctor_get(x_17, 0); +lean_dec(x_21); +lean_ctor_set(x_17, 0, x_12); +return x_17; +} +else +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_ctor_get(x_17, 1); +lean_inc(x_22); +lean_dec(x_17); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_12); +lean_ctor_set(x_23, 1, x_22); +return x_23; +} +} +else +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_17); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_17, 0); +lean_dec(x_25); +x_26 = lean_ctor_get(x_19, 0); +lean_inc(x_26); +lean_dec(x_19); +lean_ctor_set(x_17, 0, x_26); +return x_17; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_17, 1); +lean_inc(x_27); +lean_dec(x_17); +x_28 = lean_ctor_get(x_19, 0); +lean_inc(x_28); +lean_dec(x_19); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +return x_29; +} +} +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_findExistingField_x3f___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +size_t x_10; size_t x_11; lean_object* x_12; +x_10 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_11 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_12 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_findExistingField_x3f___spec__1(x_1, x_2, x_3, x_10, x_11, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_1); +return x_12; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findExistingField_x3f___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findExistingField_x3f___lambda__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_6; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findExistingField_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findExistingField_x3f(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_6; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___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; @@ -8725,11 +8802,11 @@ 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); lean_dec(x_4); -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); +x_25 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___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; } } -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) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___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; @@ -8763,7 +8840,7 @@ 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), 16, 8); +x_23 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___lambda__1), 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); @@ -8851,7 +8928,7 @@ return x_32; } } } -static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__1() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__1() { _start: { lean_object* x_1; @@ -8859,16 +8936,16 @@ x_1 = lean_mk_string("field '"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__2() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__1; +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__3() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__3() { _start: { lean_object* x_1; @@ -8876,16 +8953,16 @@ x_1 = lean_mk_string("' from '"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__4() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__3; +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__3; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -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) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___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; @@ -8912,7 +8989,7 @@ if (x_19 == 0) { 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); +x_21 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___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 @@ -8926,11 +9003,11 @@ lean_dec(x_2); lean_dec(x_1); 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_23 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___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_25 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___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); @@ -8971,19 +9048,19 @@ return x_35; } } } -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg), 14, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg), 14, 0); return x_2; } } -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) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___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_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); +x_17 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___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; } @@ -8993,7 +9070,7 @@ _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); +x_15 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___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; } } @@ -9005,18 +9082,498 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Co return x_2; } } -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) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go_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_copyNewFieldsFrom_go_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___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; +lean_inc(x_2); +x_17 = l_Lean_Name_append(x_1, x_2); +x_18 = lean_box(0); +x_19 = 0; +x_20 = 0; +x_21 = lean_alloc_ctor(0, 4, 2); +lean_ctor_set(x_21, 0, x_2); +lean_ctor_set(x_21, 1, x_17); +lean_ctor_set(x_21, 2, x_9); +lean_ctor_set(x_21, 3, x_18); +lean_ctor_set_uint8(x_21, sizeof(void*)*4, x_19); +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); +lean_dec(x_4); +x_25 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___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; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___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; +lean_dec(x_8); +x_16 = lean_unsigned_to_nat(1u); +x_17 = lean_nat_add(x_1, x_16); +lean_dec(x_1); +x_18 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg(x_2, x_3, x_4, x_5, x_6, x_17, x_7, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +return x_18; +} +} +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("parent field type mismatch, field '"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("' from parent '"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("' "); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___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_5); +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_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_17 = lean_apply_8(x_4, 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; +x_18 = lean_array_fget(x_5, x_6); +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_19 = l_Lean_Meta_getFieldType(x_2, x_18, x_10, x_11, x_12, x_13, x_14); +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_findFieldInfo_x3f(x_7, x_18); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; uint8_t x_24; lean_object* x_25; +lean_inc(x_18); +x_23 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___lambda__1), 16, 8); +lean_closure_set(x_23, 0, x_1); +lean_closure_set(x_23, 1, x_18); +lean_closure_set(x_23, 2, x_7); +lean_closure_set(x_23, 3, x_6); +lean_closure_set(x_23, 4, x_2); +lean_closure_set(x_23, 5, x_3); +lean_closure_set(x_23, 6, x_4); +lean_closure_set(x_23, 7, x_5); +x_24 = 0; +x_25 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda_loop___spec__1___rarg(x_18, x_24, x_20, x_23, x_8, x_9, x_10, x_11, x_12, x_13, x_21); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_22, 0); +lean_inc(x_26); +lean_dec(x_22); +x_27 = lean_ctor_get(x_26, 2); +lean_inc(x_27); +lean_dec(x_26); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_28 = lean_infer_type(x_27, x_10, x_11, x_12, x_13, x_21); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +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_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_29); +lean_inc(x_20); +x_31 = l_Lean_Meta_isExprDefEq(x_20, x_29, x_10, x_11, x_12, x_13, x_30); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; uint8_t x_33; +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_unbox(x_32); +lean_dec(x_32); +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; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_34 = lean_ctor_get(x_31, 1); +lean_inc(x_34); +lean_dec(x_31); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_35 = l_Lean_Meta_mkHasTypeButIsExpectedMsg(x_20, x_29, x_10, x_11, x_12, x_13, x_34); +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 1); +lean_inc(x_37); +lean_dec(x_35); +x_38 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_38, 0, x_18); +x_39 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__2; +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_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__4; +x_42 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +x_43 = lean_alloc_ctor(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_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__6; +x_46 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_45); +x_47 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_36); +x_48 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___closed__4; +x_49 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +x_50 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1(x_49, x_8, x_9, x_10, x_11, x_12, x_13, x_37); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_51 = !lean_is_exclusive(x_50); +if (x_51 == 0) +{ +return x_50; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_50, 0); +x_53 = lean_ctor_get(x_50, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_50); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +return x_54; +} +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +lean_dec(x_29); +lean_dec(x_20); +lean_dec(x_18); +x_55 = lean_ctor_get(x_31, 1); +lean_inc(x_55); +lean_dec(x_31); +x_56 = lean_box(0); +x_57 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___lambda__2(x_6, x_1, x_2, x_3, x_4, x_5, x_7, x_56, x_8, x_9, x_10, x_11, x_12, x_13, x_55); +return x_57; +} +} +else +{ +uint8_t x_58; +lean_dec(x_29); +lean_dec(x_20); +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_58 = !lean_is_exclusive(x_31); +if (x_58 == 0) +{ +return x_31; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_31, 0); +x_60 = lean_ctor_get(x_31, 1); +lean_inc(x_60); +lean_inc(x_59); +lean_dec(x_31); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +return x_61; +} +} +} +else +{ +uint8_t x_62; +lean_dec(x_20); +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_62 = !lean_is_exclusive(x_28); +if (x_62 == 0) +{ +return x_28; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_28, 0); +x_64 = lean_ctor_get(x_28, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_28); +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_63); +lean_ctor_set(x_65, 1, x_64); +return x_65; +} +} +} +} +else +{ +uint8_t x_66; +lean_dec(x_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_66 = !lean_is_exclusive(x_19); +if (x_66 == 0) +{ +return x_19; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_19, 0); +x_68 = lean_ctor_get(x_19, 1); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_19); +x_69 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_69, 0, x_67); +lean_ctor_set(x_69, 1, x_68); +return x_69; +} +} +} +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg), 14, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_13 = lean_st_ref_get(x_11, 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 = lean_ctor_get(x_14, 0); +lean_inc(x_16); +lean_dec(x_14); +x_17 = 1; +lean_inc(x_4); +x_18 = l_Lean_getStructureFieldsFlattened(x_16, x_4, x_17); +x_19 = lean_unsigned_to_nat(0u); +x_20 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg(x_1, x_3, x_4, x_5, x_18, x_19, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_15); +return x_20; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom___rarg), 12, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_apply_1(x_3, x_1); +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_3); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_1(x_2, x_5); +return x_6; +} +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go_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_withParents_go_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___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); lean_dec(x_1); -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); +x_14 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg(x_2, x_3, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); return x_14; } } -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) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___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; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; @@ -9039,16 +9596,16 @@ x_22 = lean_array_push(x_3, x_21); x_23 = 1; lean_inc(x_5); x_24 = l_Lean_getStructureFieldsFlattened(x_4, x_5, x_23); -x_25 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg___lambda__1), 11, 3); +x_25 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__1), 11, 3); lean_closure_set(x_25, 0, x_6); lean_closure_set(x_25, 1, x_1); lean_closure_set(x_25, 2, x_7); x_26 = lean_unsigned_to_nat(0u); -x_27 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg(x_16, x_8, x_5, x_24, x_25, x_26, x_22, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +x_27 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg(x_16, x_8, x_5, x_24, x_25, x_26, x_22, x_9, x_10, x_11, x_12, x_13, x_14, x_15); return x_27; } } -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) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___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; @@ -9065,7 +9622,7 @@ 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); +x_21 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___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); @@ -9103,7 +9660,21 @@ return x_28; } } } -static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg___closed__1() { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_1, 4); +lean_inc(x_15); +x_16 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__1), 11, 3); +lean_closure_set(x_16, 0, x_2); +lean_closure_set(x_16, 1, x_1); +lean_closure_set(x_16, 2, x_3); +x_17 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom___rarg(x_15, x_4, x_5, x_6, x_16, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +return x_17; +} +} +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___closed__1() { _start: { lean_object* x_1; @@ -9111,37 +9682,39 @@ x_1 = lean_mk_string("to"); return x_1; } } -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) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___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; x_12 = lean_ctor_get(x_1, 7); lean_inc(x_12); x_13 = lean_array_get_size(x_12); -x_14 = lean_nat_dec_lt(x_2, x_13); +x_14 = lean_nat_dec_lt(x_3, x_13); lean_dec(x_13); if (x_14 == 0) { lean_object* x_15; lean_dec(x_12); -lean_dec(x_2); +lean_dec(x_3); lean_dec(x_1); -x_15 = lean_apply_8(x_4, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_15 = lean_apply_8(x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); return x_15; } else { lean_object* x_16; uint8_t x_17; -x_16 = lean_array_fget(x_12, x_2); +x_16 = lean_array_fget(x_12, x_3); lean_dec(x_12); x_17 = !lean_is_exclusive(x_9); if (x_17 == 0) { -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_9, 3); -x_19 = l_Lean_replaceRef(x_16, x_18); -lean_dec(x_18); -lean_ctor_set(x_9, 3, x_19); +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_9, 0); +x_19 = lean_ctor_get(x_9, 3); +x_20 = l_Lean_replaceRef(x_16, x_19); +lean_dec(x_19); +lean_inc(x_18); +lean_ctor_set(x_9, 3, x_20); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); @@ -9149,116 +9722,92 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_16); -x_20 = l_Lean_Elab_Term_elabType(x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_20) == 0) +x_21 = l_Lean_Elab_Term_elabType(x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_21) == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_20, 1); +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_21, 0); lean_inc(x_22); -lean_dec(x_20); -lean_inc(x_5); -x_23 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure(x_21, x_5, x_6, x_7, x_8, x_9, x_10, x_22); -if (lean_obj_tag(x_23) == 0) +x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +lean_dec(x_21); +lean_inc(x_22); +x_24 = l_Lean_Meta_getStructureName(x_22, x_7, x_8, x_9, x_10, x_23); +if (lean_obj_tag(x_24) == 0) { -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -x_25 = lean_ctor_get(x_23, 1); +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_25 = lean_ctor_get(x_24, 0); lean_inc(x_25); -lean_dec(x_23); -lean_inc(x_24); -x_26 = lean_erase_macro_scopes(x_24); -x_27 = l_Lean_Name_getString_x21(x_26); -lean_dec(x_26); -x_28 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg___closed__1; -x_29 = lean_string_append(x_28, x_27); -lean_dec(x_27); -x_30 = lean_box(0); -x_31 = lean_name_mk_string(x_30, x_29); -x_32 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_containsFieldName(x_3, x_31); -if (x_32 == 0) -{ -lean_object* x_33; lean_object* x_34; -lean_dec(x_16); -x_33 = lean_box(0); -x_34 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg___lambda__3(x_1, x_31, x_3, x_24, x_2, x_4, x_21, x_33, x_5, x_6, x_7, x_8, x_9, x_10, x_25); -return x_34; -} -else -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); lean_dec(x_24); -lean_dec(x_21); +lean_inc(x_25); +x_27 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findExistingField_x3f(x_4, x_25, x_9, x_10, x_26); +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; +lean_dec(x_18); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec(x_27); +lean_inc(x_25); +x_30 = lean_erase_macro_scopes(x_25); +x_31 = l_Lean_Name_getString_x21(x_30); +lean_dec(x_30); +x_32 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___closed__1; +x_33 = lean_string_append(x_32, x_31); +lean_dec(x_31); +x_34 = lean_box(0); +x_35 = lean_name_mk_string(x_34, x_33); +x_36 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_containsFieldName(x_4, x_35); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; +lean_dec(x_16); +x_37 = lean_box(0); +x_38 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__3(x_1, x_35, x_4, x_25, x_3, x_2, x_22, x_37, x_5, x_6, x_7, x_8, x_9, x_10, x_29); +return x_38; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; +lean_dec(x_25); +lean_dec(x_22); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_35 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_35, 0, x_31); -x_36 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__2; -x_37 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_35); -x_38 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__17___lambda__1___closed__4; -x_39 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set(x_39, 1, x_38); -x_40 = l_Lean_throwErrorAt___at_Lean_Elab_Term_Quotation_getAntiquotationIds___spec__1(x_16, x_39, x_5, x_6, x_7, x_8, x_9, x_10, x_25); +x_39 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_39, 0, x_35); +x_40 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__2; +x_41 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_39); +x_42 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__17___lambda__1___closed__4; +x_43 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +x_44 = l_Lean_throwErrorAt___at_Lean_Elab_Term_Quotation_getAntiquotationIds___spec__1(x_16, x_43, x_5, x_6, x_7, x_8, x_9, x_10, x_29); lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_16); -x_41 = !lean_is_exclusive(x_40); -if (x_41 == 0) -{ -return x_40; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_40, 0); -x_43 = lean_ctor_get(x_40, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_40); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -return x_44; -} -} -} -else -{ -uint8_t x_45; -lean_dec(x_21); -lean_dec(x_9); -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_45 = !lean_is_exclusive(x_23); +x_45 = !lean_is_exclusive(x_44); if (x_45 == 0) { -return x_23; +return x_44; } else { lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_23, 0); -x_47 = lean_ctor_get(x_23, 1); +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_23); +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); @@ -9268,8 +9817,70 @@ return x_48; } else { -uint8_t x_49; +lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; +lean_dec(x_16); +x_49 = lean_ctor_get(x_27, 1); +lean_inc(x_49); +lean_dec(x_27); +x_50 = lean_ctor_get(x_28, 0); +lean_inc(x_50); +lean_dec(x_28); +x_51 = l_Lean_Elab_Command_structureDiamondWarning; +x_52 = l_Lean_Option_get___at_Lean_ppExpr___spec__1(x_18, x_51); +lean_dec(x_18); +if (x_52 == 0) +{ +lean_object* x_53; lean_object* x_54; +lean_dec(x_50); +x_53 = lean_box(0); +x_54 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__4(x_1, x_3, x_2, x_4, x_22, x_25, x_53, x_5, x_6, x_7, x_8, x_9, x_10, x_49); +return x_54; +} +else +{ +uint8_t x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_55 = 1; +x_56 = l_Lean_Name_toString(x_50, x_55); +x_57 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__1; +x_58 = lean_string_append(x_57, x_56); +lean_dec(x_56); +x_59 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__3; +x_60 = lean_string_append(x_58, x_59); +lean_inc(x_25); +x_61 = l_Lean_Name_toString(x_25, x_55); +x_62 = lean_string_append(x_60, x_61); +lean_dec(x_61); +x_63 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__17___lambda__1___closed__3; +x_64 = lean_string_append(x_62, x_63); +x_65 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_65, 0, x_64); +x_66 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_66, 0, x_65); +x_67 = 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_68 = l_Lean_Elab_log___at_Lean_Elab_Term_traceAtCmdPos___spec__2(x_66, x_67, x_5, x_6, x_7, x_8, x_9, x_10, x_49); +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +lean_dec(x_68); +x_71 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__4(x_1, x_3, x_2, x_4, x_22, x_25, x_69, x_5, x_6, x_7, x_8, x_9, x_10, x_70); +lean_dec(x_69); +return x_71; +} +} +} +else +{ +uint8_t x_72; +lean_dec(x_22); lean_dec(x_9); +lean_dec(x_18); lean_dec(x_16); lean_dec(x_10); lean_dec(x_8); @@ -9280,241 +9891,377 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_49 = !lean_is_exclusive(x_20); -if (x_49 == 0) +x_72 = !lean_is_exclusive(x_24); +if (x_72 == 0) { -return x_20; +return x_24; } else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_20, 0); -x_51 = lean_ctor_get(x_20, 1); -lean_inc(x_51); -lean_inc(x_50); -lean_dec(x_20); -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* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_24, 0); +x_74 = lean_ctor_get(x_24, 1); +lean_inc(x_74); +lean_inc(x_73); +lean_dec(x_24); +x_75 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_75, 0, x_73); +lean_ctor_set(x_75, 1, x_74); +return x_75; } } } else { -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_53 = lean_ctor_get(x_9, 0); -x_54 = lean_ctor_get(x_9, 1); -x_55 = lean_ctor_get(x_9, 2); -x_56 = lean_ctor_get(x_9, 3); -x_57 = lean_ctor_get(x_9, 4); -x_58 = lean_ctor_get(x_9, 5); -x_59 = lean_ctor_get(x_9, 6); -x_60 = lean_ctor_get(x_9, 7); -lean_inc(x_60); -lean_inc(x_59); -lean_inc(x_58); -lean_inc(x_57); -lean_inc(x_56); -lean_inc(x_55); -lean_inc(x_54); -lean_inc(x_53); +uint8_t x_76; lean_dec(x_9); -x_61 = l_Lean_replaceRef(x_16, x_56); -lean_dec(x_56); -x_62 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_62, 0, x_53); -lean_ctor_set(x_62, 1, x_54); -lean_ctor_set(x_62, 2, x_55); -lean_ctor_set(x_62, 3, x_61); -lean_ctor_set(x_62, 4, x_57); -lean_ctor_set(x_62, 5, x_58); -lean_ctor_set(x_62, 6, x_59); -lean_ctor_set(x_62, 7, x_60); +lean_dec(x_18); +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_76 = !lean_is_exclusive(x_21); +if (x_76 == 0) +{ +return x_21; +} +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_21, 0); +x_78 = lean_ctor_get(x_21, 1); +lean_inc(x_78); +lean_inc(x_77); +lean_dec(x_21); +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 +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_80 = lean_ctor_get(x_9, 0); +x_81 = lean_ctor_get(x_9, 1); +x_82 = lean_ctor_get(x_9, 2); +x_83 = lean_ctor_get(x_9, 3); +x_84 = lean_ctor_get(x_9, 4); +x_85 = lean_ctor_get(x_9, 5); +x_86 = lean_ctor_get(x_9, 6); +x_87 = lean_ctor_get(x_9, 7); +lean_inc(x_87); +lean_inc(x_86); +lean_inc(x_85); +lean_inc(x_84); +lean_inc(x_83); +lean_inc(x_82); +lean_inc(x_81); +lean_inc(x_80); +lean_dec(x_9); +x_88 = l_Lean_replaceRef(x_16, x_83); +lean_dec(x_83); +lean_inc(x_80); +x_89 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_89, 0, x_80); +lean_ctor_set(x_89, 1, x_81); +lean_ctor_set(x_89, 2, x_82); +lean_ctor_set(x_89, 3, x_88); +lean_ctor_set(x_89, 4, x_84); +lean_ctor_set(x_89, 5, x_85); +lean_ctor_set(x_89, 6, x_86); +lean_ctor_set(x_89, 7, x_87); lean_inc(x_10); -lean_inc(x_62); +lean_inc(x_89); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_16); -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) +x_90 = l_Lean_Elab_Term_elabType(x_16, x_5, x_6, x_7, x_8, x_89, x_10, x_11); +if (lean_obj_tag(x_90) == 0) { -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_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_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_76; lean_object* x_77; -lean_dec(x_16); -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_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_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_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__17___lambda__1___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_Lean_Elab_Term_Quotation_getAntiquotationIds___spec__1(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_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_83); - x_86 = lean_box(0); -} -if (lean_is_scalar(x_86)) { - x_87 = lean_alloc_ctor(1, 2, 0); -} else { - x_87 = x_86; -} -lean_ctor_set(x_87, 0, x_84); -lean_ctor_set(x_87, 1, x_85); -return x_87; -} -} -else -{ -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_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_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); -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_92 = lean_ctor_get(x_63, 0); +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_90, 0); +lean_inc(x_91); +x_92 = lean_ctor_get(x_90, 1); 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; +lean_dec(x_90); +lean_inc(x_91); +x_93 = l_Lean_Meta_getStructureName(x_91, x_7, x_8, x_89, x_10, x_92); +if (lean_obj_tag(x_93) == 0) +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_94 = lean_ctor_get(x_93, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_93, 1); +lean_inc(x_95); +lean_dec(x_93); +lean_inc(x_94); +x_96 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findExistingField_x3f(x_4, x_94, x_89, x_10, x_95); +x_97 = lean_ctor_get(x_96, 0); +lean_inc(x_97); +if (lean_obj_tag(x_97) == 0) +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; +lean_dec(x_80); +x_98 = lean_ctor_get(x_96, 1); +lean_inc(x_98); +lean_dec(x_96); +lean_inc(x_94); +x_99 = lean_erase_macro_scopes(x_94); +x_100 = l_Lean_Name_getString_x21(x_99); +lean_dec(x_99); +x_101 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___closed__1; +x_102 = lean_string_append(x_101, x_100); +lean_dec(x_100); +x_103 = lean_box(0); +x_104 = lean_name_mk_string(x_103, x_102); +x_105 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_containsFieldName(x_4, x_104); +if (x_105 == 0) +{ +lean_object* x_106; lean_object* x_107; +lean_dec(x_16); +x_106 = lean_box(0); +x_107 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__3(x_1, x_104, x_4, x_94, x_3, x_2, x_91, x_106, x_5, x_6, x_7, x_8, x_89, x_10, x_98); +return x_107; +} +else +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +lean_dec(x_94); +lean_dec(x_91); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_108 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_108, 0, x_104); +x_109 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__2; +x_110 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_110, 0, x_109); +lean_ctor_set(x_110, 1, x_108); +x_111 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__17___lambda__1___closed__4; +x_112 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_112, 0, x_110); +lean_ctor_set(x_112, 1, x_111); +x_113 = l_Lean_throwErrorAt___at_Lean_Elab_Term_Quotation_getAntiquotationIds___spec__1(x_16, x_112, x_5, x_6, x_7, x_8, x_89, x_10, x_98); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_16); +x_114 = lean_ctor_get(x_113, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_113, 1); +lean_inc(x_115); +if (lean_is_exclusive(x_113)) { + lean_ctor_release(x_113, 0); + lean_ctor_release(x_113, 1); + x_116 = x_113; } else { - lean_dec_ref(x_63); - x_94 = lean_box(0); + lean_dec_ref(x_113); + x_116 = lean_box(0); } -if (lean_is_scalar(x_94)) { - x_95 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_116)) { + x_117 = lean_alloc_ctor(1, 2, 0); } else { - x_95 = x_94; + x_117 = x_116; } -lean_ctor_set(x_95, 0, x_92); -lean_ctor_set(x_95, 1, x_93); -return x_95; +lean_ctor_set(x_117, 0, x_114); +lean_ctor_set(x_117, 1, x_115); +return x_117; +} +} +else +{ +lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; +lean_dec(x_16); +x_118 = lean_ctor_get(x_96, 1); +lean_inc(x_118); +lean_dec(x_96); +x_119 = lean_ctor_get(x_97, 0); +lean_inc(x_119); +lean_dec(x_97); +x_120 = l_Lean_Elab_Command_structureDiamondWarning; +x_121 = l_Lean_Option_get___at_Lean_ppExpr___spec__1(x_80, x_120); +lean_dec(x_80); +if (x_121 == 0) +{ +lean_object* x_122; lean_object* x_123; +lean_dec(x_119); +x_122 = lean_box(0); +x_123 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__4(x_1, x_3, x_2, x_4, x_91, x_94, x_122, x_5, x_6, x_7, x_8, x_89, x_10, x_118); +return x_123; +} +else +{ +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_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; +x_124 = 1; +x_125 = l_Lean_Name_toString(x_119, x_124); +x_126 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__1; +x_127 = lean_string_append(x_126, x_125); +lean_dec(x_125); +x_128 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__3; +x_129 = lean_string_append(x_127, x_128); +lean_inc(x_94); +x_130 = l_Lean_Name_toString(x_94, x_124); +x_131 = lean_string_append(x_129, x_130); +lean_dec(x_130); +x_132 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__17___lambda__1___closed__3; +x_133 = lean_string_append(x_131, x_132); +x_134 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_134, 0, x_133); +x_135 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_135, 0, x_134); +x_136 = 1; +lean_inc(x_10); +lean_inc(x_89); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_137 = l_Lean_Elab_log___at_Lean_Elab_Term_traceAtCmdPos___spec__2(x_135, x_136, x_5, x_6, x_7, x_8, x_89, x_10, x_118); +x_138 = lean_ctor_get(x_137, 0); +lean_inc(x_138); +x_139 = lean_ctor_get(x_137, 1); +lean_inc(x_139); +lean_dec(x_137); +x_140 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__4(x_1, x_3, x_2, x_4, x_91, x_94, x_138, x_5, x_6, x_7, x_8, x_89, x_10, x_139); +lean_dec(x_138); +return x_140; } } } +else +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; +lean_dec(x_91); +lean_dec(x_89); +lean_dec(x_80); +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_141 = lean_ctor_get(x_93, 0); +lean_inc(x_141); +x_142 = lean_ctor_get(x_93, 1); +lean_inc(x_142); +if (lean_is_exclusive(x_93)) { + lean_ctor_release(x_93, 0); + lean_ctor_release(x_93, 1); + x_143 = x_93; +} else { + lean_dec_ref(x_93); + x_143 = lean_box(0); +} +if (lean_is_scalar(x_143)) { + x_144 = lean_alloc_ctor(1, 2, 0); +} else { + x_144 = x_143; +} +lean_ctor_set(x_144, 0, x_141); +lean_ctor_set(x_144, 1, x_142); +return x_144; +} +} +else +{ +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; +lean_dec(x_89); +lean_dec(x_80); +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_145 = lean_ctor_get(x_90, 0); +lean_inc(x_145); +x_146 = lean_ctor_get(x_90, 1); +lean_inc(x_146); +if (lean_is_exclusive(x_90)) { + lean_ctor_release(x_90, 0); + lean_ctor_release(x_90, 1); + x_147 = x_90; +} else { + lean_dec_ref(x_90); + x_147 = lean_box(0); +} +if (lean_is_scalar(x_147)) { + x_148 = lean_alloc_ctor(1, 2, 0); +} else { + x_148 = x_147; +} +lean_ctor_set(x_148, 0, x_145); +lean_ctor_set(x_148, 1, x_146); +return x_148; +} +} +} +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go(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_go___rarg), 11, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___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_go___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_withParents_go___rarg___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; +x_15 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_7); +return x_15; +} +} +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) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_unsigned_to_nat(0u); +x_11 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; +x_12 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg(x_1, x_2, x_10, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_12; } } lean_object* 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); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg), 9, 0); return x_2; } } -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; -} -} static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___lambda__1___closed__1() { _start: { @@ -11871,7 +12618,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__16; x_2 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__17; -x_3 = lean_unsigned_to_nat(346u); +x_3 = lean_unsigned_to_nat(391u); x_4 = lean_unsigned_to_nat(37u); x_5 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__18; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -12109,7 +12856,7 @@ lean_dec(x_2); lean_dec(x_1); x_53 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_53, 0, x_17); -x_54 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__2; +x_54 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__2; x_55 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_55, 0, x_54); lean_ctor_set(x_55, 1, x_53); @@ -12141,7 +12888,7 @@ 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_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__2; +x_61 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__2; x_62 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_62, 0, x_61); lean_ctor_set(x_62, 1, x_60); @@ -12528,7 +13275,7 @@ lean_dec(x_2); lean_dec(x_1); x_159 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_159, 0, x_17); -x_160 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__2; +x_160 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__2; x_161 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_161, 0, x_160); lean_ctor_set(x_161, 1, x_159); @@ -12560,7 +13307,7 @@ lean_dec(x_2); lean_dec(x_1); x_166 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_166, 0, x_17); -x_167 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__2; +x_167 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__2; x_168 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_168, 0, x_167); lean_ctor_set(x_168, 1, x_166); @@ -16071,6 +16818,40 @@ return x_12; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure_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_registerStructure_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_registerStructure_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ if (lean_obj_tag(x_1) == 0) { lean_object* x_4; @@ -16105,11 +16886,11 @@ return x_8; } } } -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure_match__1(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure_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_registerStructure_match__1___rarg), 3, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure_match__2___rarg), 3, 0); return x_2; } } @@ -16135,7 +16916,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__16; x_2 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2___closed__1; -x_3 = lean_unsigned_to_nat(483u); +x_3 = lean_unsigned_to_nat(528u); x_4 = lean_unsigned_to_nat(21u); x_5 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -16156,7 +16937,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__16; x_2 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2___closed__1; -x_3 = lean_unsigned_to_nat(482u); +x_3 = lean_unsigned_to_nat(527u); x_4 = lean_unsigned_to_nat(23u); x_5 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2___closed__4; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -16189,186 +16970,218 @@ x_15 = 2; x_16 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_beqStructFieldKind____x40_Lean_Elab_Structure___hyg_237_(x_10, x_15); if (x_16 == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; +lean_object* x_17; uint8_t x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; x_17 = lean_box(0); -x_18 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_18, 0, x_8); -lean_ctor_set(x_18, 1, x_9); -lean_ctor_set(x_18, 2, x_17); -x_19 = lean_array_push(x_5, x_18); +x_18 = 0; +x_19 = 0; +x_20 = lean_alloc_ctor(0, 3, 2); +lean_ctor_set(x_20, 0, x_8); +lean_ctor_set(x_20, 1, x_9); +lean_ctor_set(x_20, 2, x_17); +lean_ctor_set_uint8(x_20, sizeof(void*)*3, x_18); +lean_ctor_set_uint8(x_20, sizeof(void*)*3 + 1, x_19); +x_21 = lean_array_push(x_5, x_20); x_3 = x_14; -x_5 = x_19; +x_5 = x_21; goto _start; } else { -lean_object* x_21; +lean_object* x_23; lean_inc(x_9); lean_inc(x_1); -x_21 = lean_environment_find(x_1, x_9); -if (lean_obj_tag(x_21) == 0) +x_23 = lean_environment_find(x_1, x_9); +if (lean_obj_tag(x_23) == 0) { -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_22 = lean_box(0); -x_23 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2___closed__3; -x_24 = lean_panic_fn(x_22, x_23); -x_25 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_25, 0, x_8); -lean_ctor_set(x_25, 1, x_9); -lean_ctor_set(x_25, 2, x_24); -x_26 = lean_array_push(x_5, x_25); +lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; +x_24 = lean_box(0); +x_25 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2___closed__3; +x_26 = lean_panic_fn(x_24, x_25); +x_27 = 0; +x_28 = 0; +x_29 = lean_alloc_ctor(0, 3, 2); +lean_ctor_set(x_29, 0, x_8); +lean_ctor_set(x_29, 1, x_9); +lean_ctor_set(x_29, 2, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*3, x_27); +lean_ctor_set_uint8(x_29, sizeof(void*)*3 + 1, x_28); +x_30 = lean_array_push(x_5, x_29); x_3 = x_14; -x_5 = x_26; +x_5 = x_30; goto _start; } else { -uint8_t x_28; -x_28 = !lean_is_exclusive(x_21); -if (x_28 == 0) +uint8_t x_32; +x_32 = !lean_is_exclusive(x_23); +if (x_32 == 0) { -lean_object* x_29; -x_29 = lean_ctor_get(x_21, 0); -if (lean_obj_tag(x_29) == 1) +lean_object* x_33; +x_33 = lean_ctor_get(x_23, 0); +if (lean_obj_tag(x_33) == 1) { -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_30 = lean_ctor_get(x_29, 0); -lean_inc(x_30); -lean_dec(x_29); -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -lean_dec(x_30); -x_32 = lean_ctor_get(x_31, 2); -lean_inc(x_32); -lean_dec(x_31); -x_33 = l_Lean_Expr_getForallBody(x_32); -lean_dec(x_32); -x_34 = l_Lean_Expr_getAppFn(x_33); +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); lean_dec(x_33); -if (lean_obj_tag(x_34) == 4) -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; x_35 = lean_ctor_get(x_34, 0); lean_inc(x_35); lean_dec(x_34); -lean_ctor_set(x_21, 0, x_35); -x_36 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_36, 0, x_8); -lean_ctor_set(x_36, 1, x_9); -lean_ctor_set(x_36, 2, x_21); -x_37 = lean_array_push(x_5, x_36); -x_3 = x_14; -x_5 = x_37; -goto _start; -} -else +x_36 = lean_ctor_get(x_35, 2); +lean_inc(x_36); +lean_dec(x_35); +x_37 = l_Lean_Expr_getForallBody(x_36); +lean_dec(x_36); +x_38 = l_Lean_Expr_getAppFn(x_37); +lean_dec(x_37); +if (lean_obj_tag(x_38) == 4) { -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -lean_dec(x_34); -lean_free_object(x_21); -x_39 = lean_box(0); -x_40 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2___closed__5; -x_41 = lean_panic_fn(x_39, x_40); -x_42 = lean_alloc_ctor(0, 3, 0); +lean_object* x_39; uint8_t x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +lean_dec(x_38); +lean_ctor_set(x_23, 0, x_39); +x_40 = 0; +x_41 = 0; +x_42 = lean_alloc_ctor(0, 3, 2); lean_ctor_set(x_42, 0, x_8); lean_ctor_set(x_42, 1, x_9); -lean_ctor_set(x_42, 2, x_41); +lean_ctor_set(x_42, 2, x_23); +lean_ctor_set_uint8(x_42, sizeof(void*)*3, x_40); +lean_ctor_set_uint8(x_42, sizeof(void*)*3 + 1, x_41); x_43 = lean_array_push(x_5, x_42); x_3 = x_14; x_5 = x_43; goto _start; } -} else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -lean_free_object(x_21); -lean_dec(x_29); +lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; +lean_dec(x_38); +lean_free_object(x_23); x_45 = lean_box(0); -x_46 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2___closed__3; +x_46 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2___closed__5; x_47 = lean_panic_fn(x_45, x_46); -x_48 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_48, 0, x_8); -lean_ctor_set(x_48, 1, x_9); -lean_ctor_set(x_48, 2, x_47); -x_49 = lean_array_push(x_5, x_48); +x_48 = 0; +x_49 = 0; +x_50 = lean_alloc_ctor(0, 3, 2); +lean_ctor_set(x_50, 0, x_8); +lean_ctor_set(x_50, 1, x_9); +lean_ctor_set(x_50, 2, x_47); +lean_ctor_set_uint8(x_50, sizeof(void*)*3, x_48); +lean_ctor_set_uint8(x_50, sizeof(void*)*3 + 1, x_49); +x_51 = lean_array_push(x_5, x_50); x_3 = x_14; -x_5 = x_49; +x_5 = x_51; goto _start; } } else { -lean_object* x_51; -x_51 = lean_ctor_get(x_21, 0); -lean_inc(x_51); -lean_dec(x_21); -if (lean_obj_tag(x_51) == 1) -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -lean_dec(x_51); -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -lean_dec(x_52); -x_54 = lean_ctor_get(x_53, 2); -lean_inc(x_54); -lean_dec(x_53); -x_55 = l_Lean_Expr_getForallBody(x_54); -lean_dec(x_54); -x_56 = l_Lean_Expr_getAppFn(x_55); -lean_dec(x_55); -if (lean_obj_tag(x_56) == 4) -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_57 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -lean_dec(x_56); -x_58 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_58, 0, x_57); -x_59 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_59, 0, x_8); -lean_ctor_set(x_59, 1, x_9); -lean_ctor_set(x_59, 2, x_58); -x_60 = lean_array_push(x_5, x_59); +lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; uint8_t x_57; lean_object* x_58; lean_object* x_59; +lean_free_object(x_23); +lean_dec(x_33); +x_53 = lean_box(0); +x_54 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2___closed__3; +x_55 = lean_panic_fn(x_53, x_54); +x_56 = 0; +x_57 = 0; +x_58 = lean_alloc_ctor(0, 3, 2); +lean_ctor_set(x_58, 0, x_8); +lean_ctor_set(x_58, 1, x_9); +lean_ctor_set(x_58, 2, x_55); +lean_ctor_set_uint8(x_58, sizeof(void*)*3, x_56); +lean_ctor_set_uint8(x_58, sizeof(void*)*3 + 1, x_57); +x_59 = lean_array_push(x_5, x_58); x_3 = x_14; -x_5 = x_60; +x_5 = x_59; goto _start; } +} else { +lean_object* x_61; +x_61 = lean_ctor_get(x_23, 0); +lean_inc(x_61); +lean_dec(x_23); +if (lean_obj_tag(x_61) == 1) +{ lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -lean_dec(x_56); -x_62 = lean_box(0); -x_63 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2___closed__5; -x_64 = lean_panic_fn(x_62, x_63); -x_65 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_65, 0, x_8); -lean_ctor_set(x_65, 1, x_9); -lean_ctor_set(x_65, 2, x_64); -x_66 = lean_array_push(x_5, x_65); -x_3 = x_14; -x_5 = x_66; -goto _start; -} -} -else +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); +lean_dec(x_61); +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +lean_dec(x_62); +x_64 = lean_ctor_get(x_63, 2); +lean_inc(x_64); +lean_dec(x_63); +x_65 = l_Lean_Expr_getForallBody(x_64); +lean_dec(x_64); +x_66 = l_Lean_Expr_getAppFn(x_65); +lean_dec(x_65); +if (lean_obj_tag(x_66) == 4) { -lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; -lean_dec(x_51); -x_68 = lean_box(0); -x_69 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2___closed__3; -x_70 = lean_panic_fn(x_68, x_69); -x_71 = lean_alloc_ctor(0, 3, 0); +lean_object* x_67; lean_object* x_68; uint8_t x_69; uint8_t x_70; lean_object* x_71; lean_object* x_72; +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +lean_dec(x_66); +x_68 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_68, 0, x_67); +x_69 = 0; +x_70 = 0; +x_71 = lean_alloc_ctor(0, 3, 2); lean_ctor_set(x_71, 0, x_8); lean_ctor_set(x_71, 1, x_9); -lean_ctor_set(x_71, 2, x_70); +lean_ctor_set(x_71, 2, x_68); +lean_ctor_set_uint8(x_71, sizeof(void*)*3, x_69); +lean_ctor_set_uint8(x_71, sizeof(void*)*3 + 1, x_70); x_72 = lean_array_push(x_5, x_71); x_3 = x_14; x_5 = x_72; goto _start; } +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; uint8_t x_78; lean_object* x_79; lean_object* x_80; +lean_dec(x_66); +x_74 = lean_box(0); +x_75 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2___closed__5; +x_76 = lean_panic_fn(x_74, x_75); +x_77 = 0; +x_78 = 0; +x_79 = lean_alloc_ctor(0, 3, 2); +lean_ctor_set(x_79, 0, x_8); +lean_ctor_set(x_79, 1, x_9); +lean_ctor_set(x_79, 2, x_76); +lean_ctor_set_uint8(x_79, sizeof(void*)*3, x_77); +lean_ctor_set_uint8(x_79, sizeof(void*)*3 + 1, x_78); +x_80 = lean_array_push(x_5, x_79); +x_3 = x_14; +x_5 = x_80; +goto _start; +} +} +else +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; uint8_t x_86; lean_object* x_87; lean_object* x_88; +lean_dec(x_61); +x_82 = lean_box(0); +x_83 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2___closed__3; +x_84 = lean_panic_fn(x_82, x_83); +x_85 = 0; +x_86 = 0; +x_87 = lean_alloc_ctor(0, 3, 2); +lean_ctor_set(x_87, 0, x_8); +lean_ctor_set(x_87, 1, x_9); +lean_ctor_set(x_87, 2, x_84); +lean_ctor_set_uint8(x_87, sizeof(void*)*3, x_85); +lean_ctor_set_uint8(x_87, sizeof(void*)*3 + 1, x_86); +x_88 = lean_array_push(x_5, x_87); +x_3 = x_14; +x_5 = x_88; +goto _start; +} } } } @@ -17554,29 +18367,11 @@ static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_Struct _start: { lean_object* x_1; -x_1 = lean_mk_string("_default"); -return x_1; -} -} -static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__3() { -_start: -{ -lean_object* x_1; x_1 = lean_mk_string("Init.Data.Option.BasicAux"); return x_1; } } -static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__4() { +static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__2() { _start: { lean_object* x_1; @@ -17584,7 +18379,7 @@ x_1 = lean_mk_string("Option.get!"); return x_1; } } -static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__5() { +static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__3() { _start: { lean_object* x_1; @@ -17592,15 +18387,15 @@ x_1 = lean_mk_string("value is none"); return x_1; } } -static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__6() { +static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_1 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__3; -x_2 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__4; +x_1 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__1; +x_2 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__2; x_3 = lean_unsigned_to_nat(16u); x_4 = lean_unsigned_to_nat(14u); -x_5 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__5; +x_5 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); return x_6; } @@ -17639,7 +18434,7 @@ lean_inc(x_6); x_19 = lean_infer_type(x_18, x_6, x_7, x_8, x_9, x_10); if (lean_obj_tag(x_19) == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +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); @@ -17647,81 +18442,80 @@ lean_inc(x_21); lean_dec(x_19); x_22 = lean_ctor_get(x_17, 1); lean_inc(x_22); -x_23 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__2; -x_24 = l_Lean_Name_append(x_22, x_23); +x_23 = l_Lean_mkDefaultFnOfProjFn(x_22); lean_dec(x_22); -x_25 = lean_ctor_get(x_17, 3); -lean_inc(x_25); +x_24 = lean_ctor_get(x_17, 3); +lean_inc(x_24); lean_dec(x_17); -if (lean_obj_tag(x_25) == 0) +if (lean_obj_tag(x_24) == 0) { -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; size_t x_31; size_t x_32; lean_object* x_33; lean_object* x_34; -x_26 = l_Lean_instInhabitedExpr; -x_27 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__6; -x_28 = lean_panic_fn(x_26, x_27); +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; size_t x_30; size_t x_31; lean_object* x_32; lean_object* x_33; +x_25 = l_Lean_instInhabitedExpr; +x_26 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__4; +x_27 = lean_panic_fn(x_25, x_26); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_20); +lean_ctor_set(x_28, 1, x_27); x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_20); +lean_ctor_set(x_29, 0, x_23); lean_ctor_set(x_29, 1, x_28); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_24); -lean_ctor_set(x_30, 1, x_29); -x_31 = 1; -x_32 = x_2 + x_31; -x_33 = x_30; -x_34 = lean_array_uset(x_16, x_2, x_33); -x_2 = x_32; -x_3 = x_34; +x_30 = 1; +x_31 = x_2 + x_30; +x_32 = x_29; +x_33 = lean_array_uset(x_16, x_2, x_32); +x_2 = x_31; +x_3 = x_33; x_10 = x_21; goto _start; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; size_t x_39; size_t x_40; lean_object* x_41; lean_object* x_42; -x_36 = lean_ctor_get(x_25, 0); -lean_inc(x_36); -lean_dec(x_25); +lean_object* x_35; lean_object* x_36; lean_object* x_37; size_t x_38; size_t x_39; lean_object* x_40; lean_object* x_41; +x_35 = lean_ctor_get(x_24, 0); +lean_inc(x_35); +lean_dec(x_24); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_20); +lean_ctor_set(x_36, 1, x_35); x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_20); +lean_ctor_set(x_37, 0, x_23); lean_ctor_set(x_37, 1, x_36); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_24); -lean_ctor_set(x_38, 1, x_37); -x_39 = 1; -x_40 = x_2 + x_39; -x_41 = x_38; -x_42 = lean_array_uset(x_16, x_2, x_41); -x_2 = x_40; -x_3 = x_42; +x_38 = 1; +x_39 = x_2 + x_38; +x_40 = x_37; +x_41 = lean_array_uset(x_16, x_2, x_40); +x_2 = x_39; +x_3 = x_41; x_10 = x_21; goto _start; } } else { -uint8_t x_44; +uint8_t x_43; lean_dec(x_17); lean_dec(x_16); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_44 = !lean_is_exclusive(x_19); -if (x_44 == 0) +x_43 = !lean_is_exclusive(x_19); +if (x_43 == 0) { return x_19; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_19, 0); -x_46 = lean_ctor_get(x_19, 1); -lean_inc(x_46); +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_19, 0); +x_45 = lean_ctor_get(x_19, 1); lean_inc(x_45); +lean_inc(x_44); lean_dec(x_19); -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; +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; } } } @@ -18130,74 +18924,72 @@ x_2 = lean_box_usize(x_1); return x_2; } } -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, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +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, lean_object* x_13, lean_object* x_14) { _start: { -lean_object* x_16; -lean_inc(x_14); +lean_object* x_15; lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); +lean_inc(x_8); lean_inc(x_1); -x_16 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInStructure(x_1, x_2, x_3, x_4, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -if (lean_obj_tag(x_16) == 0) +x_15 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInStructure(x_1, x_2, x_3, x_4, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_15) == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_17 = lean_ctor_get(x_16, 0); +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); lean_inc(x_17); -x_18 = lean_ctor_get(x_16, 1); +lean_dec(x_15); +x_18 = lean_ctor_get(x_5, 2); lean_inc(x_18); -lean_dec(x_16); -x_19 = lean_ctor_get(x_5, 2); +x_19 = lean_ctor_get(x_5, 3); lean_inc(x_19); -x_20 = lean_ctor_get(x_5, 3); -lean_inc(x_20); -x_21 = l_Lean_Elab_sortDeclLevelParams(x_19, x_20, x_17); -if (lean_obj_tag(x_21) == 0) +x_20 = l_Lean_Elab_sortDeclLevelParams(x_18, x_19, x_16); +if (lean_obj_tag(x_20) == 0) { -lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; -lean_dec(x_7); +lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -lean_dec(x_21); -x_23 = lean_alloc_ctor(2, 1, 0); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +lean_dec(x_20); +x_22 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_22, 0, x_21); +x_23 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_23, 0, x_22); -x_24 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_24, 0, x_23); -x_25 = !lean_is_exclusive(x_13); -if (x_25 == 0) +x_24 = !lean_is_exclusive(x_12); +if (x_24 == 0) { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_13, 3); -x_27 = l_Lean_replaceRef(x_6, x_26); -lean_dec(x_26); -lean_ctor_set(x_13, 3, x_27); -x_28 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_24, x_9, x_10, x_11, x_12, x_13, x_14, x_18); -lean_dec(x_14); +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_12, 3); +x_26 = l_Lean_replaceRef(x_6, x_25); +lean_dec(x_25); +lean_ctor_set(x_12, 3, x_26); +x_27 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_23, x_8, x_9, x_10, x_11, x_12, x_13, x_17); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); -return x_28; +lean_dec(x_9); +return x_27; } else { -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_29 = lean_ctor_get(x_13, 0); -x_30 = lean_ctor_get(x_13, 1); -x_31 = lean_ctor_get(x_13, 2); -x_32 = lean_ctor_get(x_13, 3); -x_33 = lean_ctor_get(x_13, 4); -x_34 = lean_ctor_get(x_13, 5); -x_35 = lean_ctor_get(x_13, 6); -x_36 = lean_ctor_get(x_13, 7); -lean_inc(x_36); +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_28 = lean_ctor_get(x_12, 0); +x_29 = lean_ctor_get(x_12, 1); +x_30 = lean_ctor_get(x_12, 2); +x_31 = lean_ctor_get(x_12, 3); +x_32 = lean_ctor_get(x_12, 4); +x_33 = lean_ctor_get(x_12, 5); +x_34 = lean_ctor_get(x_12, 6); +x_35 = lean_ctor_get(x_12, 7); lean_inc(x_35); lean_inc(x_34); lean_inc(x_33); @@ -18205,460 +18997,469 @@ lean_inc(x_32); lean_inc(x_31); lean_inc(x_30); lean_inc(x_29); -lean_dec(x_13); -x_37 = l_Lean_replaceRef(x_6, x_32); -lean_dec(x_32); -x_38 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_38, 0, x_29); -lean_ctor_set(x_38, 1, x_30); -lean_ctor_set(x_38, 2, x_31); -lean_ctor_set(x_38, 3, x_37); -lean_ctor_set(x_38, 4, x_33); -lean_ctor_set(x_38, 5, x_34); -lean_ctor_set(x_38, 6, x_35); -lean_ctor_set(x_38, 7, x_36); -x_39 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_24, x_9, x_10, x_11, x_12, x_38, x_14, x_18); -lean_dec(x_14); -lean_dec(x_38); +lean_inc(x_28); lean_dec(x_12); +x_36 = l_Lean_replaceRef(x_6, x_31); +lean_dec(x_31); +x_37 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_37, 0, x_28); +lean_ctor_set(x_37, 1, x_29); +lean_ctor_set(x_37, 2, x_30); +lean_ctor_set(x_37, 3, x_36); +lean_ctor_set(x_37, 4, x_32); +lean_ctor_set(x_37, 5, x_33); +lean_ctor_set(x_37, 6, x_34); +lean_ctor_set(x_37, 7, x_35); +x_38 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_23, x_8, x_9, x_10, x_11, x_37, x_13, x_17); +lean_dec(x_13); +lean_dec(x_37); lean_dec(x_11); lean_dec(x_10); -return x_39; +lean_dec(x_9); +return x_38; } } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_21, 0); -lean_inc(x_40); -lean_dec(x_21); -x_41 = l_Array_append___rarg(x_2, x_3); -lean_inc(x_14); +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_20, 0); +lean_inc(x_39); +lean_dec(x_20); +x_40 = l_Array_append___rarg(x_2, x_3); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -lean_inc(x_41); +lean_inc(x_8); lean_inc(x_40); +lean_inc(x_39); lean_inc(x_5); -x_42 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCtor(x_5, x_40, x_41, x_4, x_9, x_10, x_11, x_12, x_13, x_14, x_18); -if (lean_obj_tag(x_42) == 0) +x_41 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCtor(x_5, x_39, x_40, x_4, x_8, x_9, x_10, x_11, x_12, x_13, x_17); +if (lean_obj_tag(x_41) == 0) { -lean_object* x_43; lean_object* x_44; uint8_t x_45; uint8_t x_46; lean_object* x_47; -x_43 = lean_ctor_get(x_42, 0); +lean_object* x_42; lean_object* x_43; uint8_t x_44; uint8_t x_45; lean_object* x_46; +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_41, 1); lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 1); -lean_inc(x_44); -lean_dec(x_42); -x_45 = 0; -x_46 = 1; -lean_inc(x_11); -lean_inc(x_41); -x_47 = l_Lean_Meta_mkForallFVars(x_41, x_1, x_45, x_46, x_11, x_12, x_13, x_14, x_44); -if (lean_obj_tag(x_47) == 0) -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_47, 0); -lean_inc(x_48); -x_49 = lean_ctor_get(x_47, 1); -lean_inc(x_49); -lean_dec(x_47); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -x_50 = l_Lean_Meta_instantiateMVars(x_48, x_11, x_12, x_13, x_14, x_49); -if (lean_obj_tag(x_50) == 0) -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; lean_object* x_61; lean_object* x_62; -x_51 = lean_ctor_get(x_50, 0); -lean_inc(x_51); -x_52 = lean_ctor_get(x_50, 1); -lean_inc(x_52); -lean_dec(x_50); -x_53 = lean_ctor_get(x_5, 4); -lean_inc(x_53); -x_54 = lean_box(0); -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_43); -lean_ctor_set(x_55, 1, x_54); -lean_inc(x_53); -x_56 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_56, 0, x_53); -lean_ctor_set(x_56, 1, x_51); -lean_ctor_set(x_56, 2, x_55); -x_57 = lean_array_get_size(x_41); -x_58 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_58, 0, x_56); -lean_ctor_set(x_58, 1, x_54); -x_59 = lean_ctor_get(x_5, 1); -lean_inc(x_59); -x_60 = lean_ctor_get_uint8(x_59, sizeof(void*)*2 + 3); -lean_inc(x_57); -x_61 = lean_alloc_ctor(6, 3, 1); -lean_ctor_set(x_61, 0, x_40); -lean_ctor_set(x_61, 1, x_57); -lean_ctor_set(x_61, 2, x_58); -lean_ctor_set_uint8(x_61, sizeof(void*)*3, x_60); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_61); -x_62 = l_Lean_Elab_Term_ensureNoUnassignedMVars(x_61, x_9, x_10, x_11, x_12, x_13, x_14, x_52); -if (lean_obj_tag(x_62) == 0) -{ -lean_object* x_63; lean_object* x_64; -x_63 = lean_ctor_get(x_62, 1); -lean_inc(x_63); -lean_dec(x_62); -lean_inc(x_13); -lean_inc(x_9); -x_64 = l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__3(x_61, x_9, x_10, x_11, x_12, x_13, x_14, x_63); -if (lean_obj_tag(x_64) == 0) -{ -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_65 = lean_ctor_get(x_64, 1); -lean_inc(x_65); -lean_dec(x_64); -x_66 = lean_array_get_size(x_4); -x_67 = lean_unsigned_to_nat(0u); -x_68 = lean_nat_dec_lt(x_67, x_66); -x_69 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); -lean_dec(x_5); -if (x_68 == 0) -{ -lean_inc(x_7); -x_70 = x_7; -goto block_159; -} -else -{ -uint8_t x_160; -x_160 = lean_nat_dec_le(x_66, x_66); -if (x_160 == 0) -{ -lean_inc(x_7); -x_70 = x_7; -goto block_159; -} -else -{ -size_t x_161; size_t x_162; lean_object* x_163; -x_161 = 0; -x_162 = lean_usize_of_nat(x_66); -lean_inc(x_7); -x_163 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__9(x_4, x_161, x_162, x_7); -x_70 = x_163; -goto block_159; -} -} -block_159: -{ -lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_71 = lean_array_to_list(lean_box(0), x_70); -x_72 = l_List_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__1(x_71); -lean_inc(x_13); -lean_inc(x_9); -lean_inc(x_53); -x_73 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections(x_53, x_72, x_69, x_9, x_10, x_11, x_12, x_13, x_14, x_65); -if (lean_obj_tag(x_73) == 0) -{ -lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_74 = lean_ctor_get(x_73, 1); -lean_inc(x_74); -lean_dec(x_73); -lean_inc(x_53); -x_75 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure(x_53, x_4, x_9, x_10, x_11, x_12, x_13, x_14, x_74); -x_76 = lean_ctor_get(x_75, 1); -lean_inc(x_76); -lean_dec(x_75); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_53); -x_77 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkAuxConstructions(x_53, x_9, x_10, x_11, x_12, x_13, x_14, x_76); -if (lean_obj_tag(x_77) == 0) -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_77, 1); -lean_inc(x_78); -lean_dec(x_77); -if (x_68 == 0) -{ -lean_inc(x_7); -x_79 = x_7; -x_80 = x_78; -goto block_140; -} -else -{ -uint8_t x_141; -x_141 = lean_nat_dec_le(x_66, x_66); -if (x_141 == 0) -{ -lean_inc(x_7); -x_79 = x_7; -x_80 = x_78; -goto block_140; -} -else -{ -size_t x_142; size_t x_143; lean_object* x_144; -x_142 = 0; -x_143 = lean_usize_of_nat(x_66); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_7); -x_144 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__8(x_4, x_142, x_143, x_7, x_9, x_10, x_11, x_12, x_13, x_14, x_78); -if (lean_obj_tag(x_144) == 0) -{ -lean_object* x_145; lean_object* x_146; -x_145 = lean_ctor_get(x_144, 0); -lean_inc(x_145); -x_146 = lean_ctor_get(x_144, 1); -lean_inc(x_146); -lean_dec(x_144); -x_79 = x_145; -x_80 = x_146; -goto block_140; -} -else -{ -uint8_t x_147; -lean_dec(x_66); -lean_dec(x_59); -lean_dec(x_57); -lean_dec(x_53); lean_dec(x_41); -lean_dec(x_14); +x_44 = 0; +x_45 = 1; +lean_inc(x_10); +lean_inc(x_40); +x_46 = l_Lean_Meta_mkForallFVars(x_40, x_1, x_44, x_45, x_10, x_11, x_12, x_13, x_43); +if (lean_obj_tag(x_46) == 0) +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_46, 1); +lean_inc(x_48); +lean_dec(x_46); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_49 = l_Lean_Meta_instantiateMVars(x_47, x_10, x_11, x_12, x_13, x_48); +if (lean_obj_tag(x_49) == 0) +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; lean_object* x_60; lean_object* x_61; +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_49, 1); +lean_inc(x_51); +lean_dec(x_49); +x_52 = lean_ctor_get(x_5, 4); +lean_inc(x_52); +x_53 = lean_box(0); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_42); +lean_ctor_set(x_54, 1, x_53); +lean_inc(x_52); +x_55 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_55, 0, x_52); +lean_ctor_set(x_55, 1, x_50); +lean_ctor_set(x_55, 2, x_54); +x_56 = lean_array_get_size(x_40); +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_53); +x_58 = lean_ctor_get(x_5, 1); +lean_inc(x_58); +x_59 = lean_ctor_get_uint8(x_58, sizeof(void*)*2 + 3); +lean_inc(x_56); +x_60 = lean_alloc_ctor(6, 3, 1); +lean_ctor_set(x_60, 0, x_39); +lean_ctor_set(x_60, 1, x_56); +lean_ctor_set(x_60, 2, x_57); +lean_ctor_set_uint8(x_60, sizeof(void*)*3, x_59); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_60); +x_61 = l_Lean_Elab_Term_ensureNoUnassignedMVars(x_60, x_8, x_9, x_10, x_11, x_12, x_13, x_51); +if (lean_obj_tag(x_61) == 0) +{ +lean_object* x_62; lean_object* x_63; +x_62 = lean_ctor_get(x_61, 1); +lean_inc(x_62); +lean_dec(x_61); +lean_inc(x_12); +lean_inc(x_8); +x_63 = l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__3(x_60, x_8, x_9, x_10, x_11, x_12, x_13, x_62); +if (lean_obj_tag(x_63) == 0) +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; uint8_t x_68; lean_object* x_69; +x_64 = lean_ctor_get(x_63, 1); +lean_inc(x_64); +lean_dec(x_63); +x_65 = lean_array_get_size(x_4); +x_66 = lean_unsigned_to_nat(0u); +x_67 = lean_nat_dec_lt(x_66, x_65); +x_68 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +lean_dec(x_5); +if (x_67 == 0) +{ +lean_object* x_165; +x_165 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; +x_69 = x_165; +goto block_164; +} +else +{ +uint8_t x_166; +x_166 = lean_nat_dec_le(x_65, x_65); +if (x_166 == 0) +{ +lean_object* x_167; +x_167 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; +x_69 = x_167; +goto block_164; +} +else +{ +size_t x_168; size_t x_169; lean_object* x_170; lean_object* x_171; +x_168 = 0; +x_169 = lean_usize_of_nat(x_65); +x_170 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; +x_171 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__9(x_4, x_168, x_169, x_170); +x_69 = x_171; +goto block_164; +} +} +block_164: +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_array_to_list(lean_box(0), x_69); +x_71 = l_List_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__1(x_70); +lean_inc(x_12); +lean_inc(x_8); +lean_inc(x_52); +x_72 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections(x_52, x_71, x_68, x_8, x_9, x_10, x_11, x_12, x_13, x_64); +if (lean_obj_tag(x_72) == 0) +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_73 = lean_ctor_get(x_72, 1); +lean_inc(x_73); +lean_dec(x_72); +lean_inc(x_52); +x_74 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure(x_52, x_4, x_8, x_9, x_10, x_11, x_12, x_13, x_73); +x_75 = lean_ctor_get(x_74, 1); +lean_inc(x_75); +lean_dec(x_74); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_52); +x_76 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkAuxConstructions(x_52, x_8, x_9, x_10, x_11, x_12, x_13, x_75); +if (lean_obj_tag(x_76) == 0) +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_76, 1); +lean_inc(x_77); +lean_dec(x_76); +if (x_67 == 0) +{ +lean_object* x_143; +x_143 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; +x_78 = x_143; +x_79 = x_77; +goto block_142; +} +else +{ +uint8_t x_144; +x_144 = lean_nat_dec_le(x_65, x_65); +if (x_144 == 0) +{ +lean_object* x_145; +x_145 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; +x_78 = x_145; +x_79 = x_77; +goto block_142; +} +else +{ +size_t x_146; size_t x_147; lean_object* x_148; lean_object* x_149; +x_146 = 0; +x_147 = lean_usize_of_nat(x_65); +x_148 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_149 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__8(x_4, x_146, x_147, x_148, x_8, x_9, x_10, x_11, x_12, x_13, x_77); +if (lean_obj_tag(x_149) == 0) +{ +lean_object* x_150; lean_object* x_151; +x_150 = lean_ctor_get(x_149, 0); +lean_inc(x_150); +x_151 = lean_ctor_get(x_149, 1); +lean_inc(x_151); +lean_dec(x_149); +x_78 = x_150; +x_79 = x_151; +goto block_142; +} +else +{ +uint8_t x_152; +lean_dec(x_65); +lean_dec(x_58); +lean_dec(x_56); +lean_dec(x_52); +lean_dec(x_40); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_7); -x_147 = !lean_is_exclusive(x_144); -if (x_147 == 0) +lean_dec(x_8); +x_152 = !lean_is_exclusive(x_149); +if (x_152 == 0) { -return x_144; +return x_149; } else { -lean_object* x_148; lean_object* x_149; lean_object* x_150; -x_148 = lean_ctor_get(x_144, 0); -x_149 = lean_ctor_get(x_144, 1); -lean_inc(x_149); -lean_inc(x_148); -lean_dec(x_144); -x_150 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_150, 0, x_148); -lean_ctor_set(x_150, 1, x_149); -return x_150; +lean_object* x_153; lean_object* x_154; lean_object* x_155; +x_153 = lean_ctor_get(x_149, 0); +x_154 = lean_ctor_get(x_149, 1); +lean_inc(x_154); +lean_inc(x_153); +lean_dec(x_149); +x_155 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_155, 0, x_153); +lean_ctor_set(x_155, 1, x_154); +return x_155; } } } } -block_140: +block_142: { -lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; lean_object* x_85; -x_81 = lean_array_to_list(lean_box(0), x_79); -x_82 = l_List_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__2(x_81); -x_83 = lean_ctor_get(x_59, 1); -lean_inc(x_83); -lean_dec(x_59); -x_84 = 0; -lean_inc(x_14); +lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; lean_object* x_84; +x_80 = lean_array_to_list(lean_box(0), x_78); +x_81 = l_List_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__2(x_80); +x_82 = lean_ctor_get(x_58, 1); +lean_inc(x_82); +lean_dec(x_58); +x_83 = 0; lean_inc(x_13); -lean_inc(x_9); -x_85 = l_Lean_Elab_Term_applyAttributesAt(x_53, x_83, x_84, x_9, x_10, x_11, x_12, x_13, x_14, x_80); -lean_dec(x_83); -if (lean_obj_tag(x_85) == 0) +lean_inc(x_12); +lean_inc(x_8); +x_84 = l_Lean_Elab_Term_applyAttributesAt(x_52, x_82, x_83, x_8, x_9, x_10, x_11, x_12, x_13, x_79); +lean_dec(x_82); +if (lean_obj_tag(x_84) == 0) { -lean_object* x_86; lean_object* x_87; -x_86 = lean_ctor_get(x_85, 1); -lean_inc(x_86); -lean_dec(x_85); -lean_inc(x_14); +lean_object* x_85; lean_object* x_86; +x_85 = lean_ctor_get(x_84, 1); +lean_inc(x_85); +lean_dec(x_84); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -x_87 = l_List_forM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__3(x_82, x_9, x_10, x_11, x_12, x_13, x_14, x_86); -if (lean_obj_tag(x_87) == 0) +lean_inc(x_10); +x_86 = l_List_forM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__3(x_81, x_8, x_9, x_10, x_11, x_12, x_13, x_85); +if (lean_obj_tag(x_86) == 0) { -lean_object* x_88; lean_object* x_89; size_t x_90; lean_object* x_91; -x_88 = lean_ctor_get(x_87, 1); +lean_object* x_87; lean_object* x_88; size_t x_89; lean_object* x_90; +x_87 = lean_ctor_get(x_86, 1); +lean_inc(x_87); +lean_dec(x_86); +x_88 = lean_ctor_get(x_10, 1); lean_inc(x_88); -lean_dec(x_87); -x_89 = lean_ctor_get(x_11, 1); -lean_inc(x_89); -x_90 = 0; -if (x_68 == 0) +x_89 = 0; +if (x_67 == 0) { -x_91 = x_7; -goto block_128; +lean_object* x_128; +x_128 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; +x_90 = x_128; +goto block_127; } else { uint8_t x_129; -x_129 = lean_nat_dec_le(x_66, x_66); +x_129 = lean_nat_dec_le(x_65, x_65); if (x_129 == 0) { -x_91 = x_7; -goto block_128; +lean_object* x_130; +x_130 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; +x_90 = x_130; +goto block_127; } else { -size_t x_130; lean_object* x_131; -x_130 = lean_usize_of_nat(x_66); -x_131 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__7(x_4, x_90, x_130, x_7); -x_91 = x_131; -goto block_128; +size_t x_131; lean_object* x_132; lean_object* x_133; +x_131 = lean_usize_of_nat(x_65); +x_132 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; +x_133 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__7(x_4, x_89, x_131, x_132); +x_90 = x_133; +goto block_127; } } -block_128: +block_127: { -lean_object* x_92; size_t x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_92 = lean_array_get_size(x_91); -x_93 = lean_usize_of_nat(x_92); -lean_dec(x_92); -x_94 = x_91; -x_95 = lean_box_usize(x_93); -x_96 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___boxed__const__1; -x_97 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___boxed), 10, 3); -lean_closure_set(x_97, 0, x_95); -lean_closure_set(x_97, 1, x_96); -lean_closure_set(x_97, 2, x_94); -x_98 = x_97; -lean_inc(x_14); +lean_object* x_91; size_t x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_91 = lean_array_get_size(x_90); +x_92 = lean_usize_of_nat(x_91); +lean_dec(x_91); +x_93 = x_90; +x_94 = lean_box_usize(x_92); +x_95 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___boxed__const__1; +x_96 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___boxed), 10, 3); +lean_closure_set(x_96, 0, x_94); +lean_closure_set(x_96, 1, x_95); +lean_closure_set(x_96, 2, x_93); +x_97 = x_96; lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_99 = lean_apply_7(x_98, x_9, x_10, x_11, x_12, x_13, x_14, x_88); -if (lean_obj_tag(x_99) == 0) +lean_inc(x_8); +x_98 = lean_apply_7(x_97, x_8, x_9, x_10, x_11, x_12, x_13, x_87); +if (lean_obj_tag(x_98) == 0) { -lean_object* x_100; lean_object* x_101; uint8_t x_102; -x_100 = lean_ctor_get(x_99, 0); +lean_object* x_99; lean_object* x_100; uint8_t x_101; +x_99 = lean_ctor_get(x_98, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_98, 1); lean_inc(x_100); -x_101 = lean_ctor_get(x_99, 1); -lean_inc(x_101); -lean_dec(x_99); -x_102 = lean_nat_dec_lt(x_67, x_57); -if (x_102 == 0) +lean_dec(x_98); +x_101 = lean_nat_dec_lt(x_66, x_56); +if (x_101 == 0) { -lean_dec(x_57); -lean_dec(x_41); -if (x_68 == 0) +lean_dec(x_56); +lean_dec(x_40); +if (x_67 == 0) { -lean_object* x_103; -lean_dec(x_66); -x_103 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_89, x_100, x_9, x_10, x_11, x_12, x_13, x_14, x_101); -return x_103; +lean_object* x_102; +lean_dec(x_65); +x_102 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_88, x_99, x_8, x_9, x_10, x_11, x_12, x_13, x_100); +return x_102; } else { -uint8_t x_104; -x_104 = lean_nat_dec_le(x_66, x_66); -if (x_104 == 0) +uint8_t x_103; +x_103 = lean_nat_dec_le(x_65, x_65); +if (x_103 == 0) { -lean_object* x_105; -lean_dec(x_66); -x_105 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_89, x_100, x_9, x_10, x_11, x_12, x_13, x_14, x_101); -return x_105; +lean_object* x_104; +lean_dec(x_65); +x_104 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_88, x_99, x_8, x_9, x_10, x_11, x_12, x_13, x_100); +return x_104; } else { -size_t x_106; lean_object* x_107; lean_object* x_108; -x_106 = lean_usize_of_nat(x_66); -lean_dec(x_66); -x_107 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__5(x_4, x_90, x_106, x_89); -x_108 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_107, x_100, x_9, x_10, x_11, x_12, x_13, x_14, x_101); -return x_108; +size_t x_105; lean_object* x_106; lean_object* x_107; +x_105 = lean_usize_of_nat(x_65); +lean_dec(x_65); +x_106 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__5(x_4, x_89, x_105, x_88); +x_107 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_106, x_99, x_8, x_9, x_10, x_11, x_12, x_13, x_100); +return x_107; } } } else { -uint8_t x_109; -x_109 = lean_nat_dec_le(x_57, x_57); -if (x_109 == 0) +uint8_t x_108; +x_108 = lean_nat_dec_le(x_56, x_56); +if (x_108 == 0) { -lean_dec(x_57); -lean_dec(x_41); -if (x_68 == 0) +lean_dec(x_56); +lean_dec(x_40); +if (x_67 == 0) { -lean_object* x_110; -lean_dec(x_66); -x_110 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_89, x_100, x_9, x_10, x_11, x_12, x_13, x_14, x_101); -return x_110; +lean_object* x_109; +lean_dec(x_65); +x_109 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_88, x_99, x_8, x_9, x_10, x_11, x_12, x_13, x_100); +return x_109; } else { -uint8_t x_111; -x_111 = lean_nat_dec_le(x_66, x_66); -if (x_111 == 0) +uint8_t x_110; +x_110 = lean_nat_dec_le(x_65, x_65); +if (x_110 == 0) { -lean_object* x_112; -lean_dec(x_66); -x_112 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_89, x_100, x_9, x_10, x_11, x_12, x_13, x_14, x_101); -return x_112; +lean_object* x_111; +lean_dec(x_65); +x_111 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_88, x_99, x_8, x_9, x_10, x_11, x_12, x_13, x_100); +return x_111; } else { -size_t x_113; lean_object* x_114; lean_object* x_115; -x_113 = lean_usize_of_nat(x_66); -lean_dec(x_66); -x_114 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__5(x_4, x_90, x_113, x_89); -x_115 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_114, x_100, x_9, x_10, x_11, x_12, x_13, x_14, x_101); -return x_115; +size_t x_112; lean_object* x_113; lean_object* x_114; +x_112 = lean_usize_of_nat(x_65); +lean_dec(x_65); +x_113 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__5(x_4, x_89, x_112, x_88); +x_114 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_113, x_99, x_8, x_9, x_10, x_11, x_12, x_13, x_100); +return x_114; } } } else { -size_t x_116; lean_object* x_117; -x_116 = lean_usize_of_nat(x_57); -lean_dec(x_57); -x_117 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__6(x_41, x_90, x_116, x_89); -lean_dec(x_41); -if (x_68 == 0) +size_t x_115; lean_object* x_116; +x_115 = lean_usize_of_nat(x_56); +lean_dec(x_56); +x_116 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__6(x_40, x_89, x_115, x_88); +lean_dec(x_40); +if (x_67 == 0) { -lean_object* x_118; -lean_dec(x_66); -x_118 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_117, x_100, x_9, x_10, x_11, x_12, x_13, x_14, x_101); -return x_118; +lean_object* x_117; +lean_dec(x_65); +x_117 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_116, x_99, x_8, x_9, x_10, x_11, x_12, x_13, x_100); +return x_117; } else { -uint8_t x_119; -x_119 = lean_nat_dec_le(x_66, x_66); -if (x_119 == 0) +uint8_t x_118; +x_118 = lean_nat_dec_le(x_65, x_65); +if (x_118 == 0) { -lean_object* x_120; -lean_dec(x_66); -x_120 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_117, x_100, x_9, x_10, x_11, x_12, x_13, x_14, x_101); -return x_120; +lean_object* x_119; +lean_dec(x_65); +x_119 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_116, x_99, x_8, x_9, x_10, x_11, x_12, x_13, x_100); +return x_119; } else { -size_t x_121; lean_object* x_122; lean_object* x_123; -x_121 = lean_usize_of_nat(x_66); -lean_dec(x_66); -x_122 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__5(x_4, x_90, x_121, x_117); -x_123 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_122, x_100, x_9, x_10, x_11, x_12, x_13, x_14, x_101); -return x_123; +size_t x_120; lean_object* x_121; lean_object* x_122; +x_120 = lean_usize_of_nat(x_65); +lean_dec(x_65); +x_121 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__5(x_4, x_89, x_120, x_116); +x_122 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_121, x_99, x_8, x_9, x_10, x_11, x_12, x_13, x_100); +return x_122; } } } @@ -18666,275 +19467,200 @@ return x_123; } else { -uint8_t x_124; -lean_dec(x_89); -lean_dec(x_66); -lean_dec(x_57); -lean_dec(x_41); -lean_dec(x_14); +uint8_t x_123; +lean_dec(x_88); +lean_dec(x_65); +lean_dec(x_56); +lean_dec(x_40); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_124 = !lean_is_exclusive(x_99); -if (x_124 == 0) +lean_dec(x_8); +x_123 = !lean_is_exclusive(x_98); +if (x_123 == 0) { -return x_99; +return x_98; } else { -lean_object* x_125; lean_object* x_126; lean_object* x_127; -x_125 = lean_ctor_get(x_99, 0); -x_126 = lean_ctor_get(x_99, 1); -lean_inc(x_126); +lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_124 = lean_ctor_get(x_98, 0); +x_125 = lean_ctor_get(x_98, 1); lean_inc(x_125); -lean_dec(x_99); -x_127 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_127, 0, x_125); -lean_ctor_set(x_127, 1, x_126); -return x_127; +lean_inc(x_124); +lean_dec(x_98); +x_126 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +return x_126; } } } } else { -uint8_t x_132; -lean_dec(x_66); -lean_dec(x_57); -lean_dec(x_41); -lean_dec(x_14); +uint8_t x_134; +lean_dec(x_65); +lean_dec(x_56); +lean_dec(x_40); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_7); -x_132 = !lean_is_exclusive(x_87); -if (x_132 == 0) +lean_dec(x_8); +x_134 = !lean_is_exclusive(x_86); +if (x_134 == 0) { -return x_87; +return x_86; } else { -lean_object* x_133; lean_object* x_134; lean_object* x_135; -x_133 = lean_ctor_get(x_87, 0); -x_134 = lean_ctor_get(x_87, 1); -lean_inc(x_134); -lean_inc(x_133); -lean_dec(x_87); -x_135 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_135, 0, x_133); -lean_ctor_set(x_135, 1, x_134); -return x_135; +lean_object* x_135; lean_object* x_136; lean_object* x_137; +x_135 = lean_ctor_get(x_86, 0); +x_136 = lean_ctor_get(x_86, 1); +lean_inc(x_136); +lean_inc(x_135); +lean_dec(x_86); +x_137 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_137, 0, x_135); +lean_ctor_set(x_137, 1, x_136); +return x_137; } } } else { -uint8_t x_136; -lean_dec(x_82); -lean_dec(x_66); -lean_dec(x_57); -lean_dec(x_41); -lean_dec(x_14); +uint8_t x_138; +lean_dec(x_81); +lean_dec(x_65); +lean_dec(x_56); +lean_dec(x_40); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_7); -x_136 = !lean_is_exclusive(x_85); -if (x_136 == 0) +lean_dec(x_8); +x_138 = !lean_is_exclusive(x_84); +if (x_138 == 0) { -return x_85; +return x_84; } else { -lean_object* x_137; lean_object* x_138; lean_object* x_139; -x_137 = lean_ctor_get(x_85, 0); -x_138 = lean_ctor_get(x_85, 1); -lean_inc(x_138); -lean_inc(x_137); -lean_dec(x_85); -x_139 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_139, 0, x_137); -lean_ctor_set(x_139, 1, x_138); -return x_139; +lean_object* x_139; lean_object* x_140; lean_object* x_141; +x_139 = lean_ctor_get(x_84, 0); +x_140 = lean_ctor_get(x_84, 1); +lean_inc(x_140); +lean_inc(x_139); +lean_dec(x_84); +x_141 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_141, 0, x_139); +lean_ctor_set(x_141, 1, x_140); +return x_141; } } } } else { -uint8_t x_151; -lean_dec(x_66); -lean_dec(x_59); -lean_dec(x_57); -lean_dec(x_53); -lean_dec(x_41); -lean_dec(x_14); +uint8_t x_156; +lean_dec(x_65); +lean_dec(x_58); +lean_dec(x_56); +lean_dec(x_52); +lean_dec(x_40); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_7); -x_151 = !lean_is_exclusive(x_77); -if (x_151 == 0) +lean_dec(x_8); +x_156 = !lean_is_exclusive(x_76); +if (x_156 == 0) { -return x_77; +return x_76; } else { -lean_object* x_152; lean_object* x_153; lean_object* x_154; -x_152 = lean_ctor_get(x_77, 0); -x_153 = lean_ctor_get(x_77, 1); -lean_inc(x_153); -lean_inc(x_152); -lean_dec(x_77); -x_154 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_154, 0, x_152); -lean_ctor_set(x_154, 1, x_153); -return x_154; -} -} -} -else -{ -uint8_t x_155; -lean_dec(x_66); -lean_dec(x_59); -lean_dec(x_57); -lean_dec(x_53); -lean_dec(x_41); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_7); -x_155 = !lean_is_exclusive(x_73); -if (x_155 == 0) -{ -return x_73; -} -else -{ -lean_object* x_156; lean_object* x_157; lean_object* x_158; -x_156 = lean_ctor_get(x_73, 0); -x_157 = lean_ctor_get(x_73, 1); +lean_object* x_157; lean_object* x_158; lean_object* x_159; +x_157 = lean_ctor_get(x_76, 0); +x_158 = lean_ctor_get(x_76, 1); +lean_inc(x_158); lean_inc(x_157); -lean_inc(x_156); -lean_dec(x_73); -x_158 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_158, 0, x_156); -lean_ctor_set(x_158, 1, x_157); -return x_158; -} +lean_dec(x_76); +x_159 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_159, 0, x_157); +lean_ctor_set(x_159, 1, x_158); +return x_159; } } } else { -uint8_t x_164; -lean_dec(x_59); -lean_dec(x_57); -lean_dec(x_53); -lean_dec(x_41); -lean_dec(x_14); +uint8_t x_160; +lean_dec(x_65); +lean_dec(x_58); +lean_dec(x_56); +lean_dec(x_52); +lean_dec(x_40); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_5); -x_164 = !lean_is_exclusive(x_64); -if (x_164 == 0) +lean_dec(x_8); +x_160 = !lean_is_exclusive(x_72); +if (x_160 == 0) { -return x_64; +return x_72; } else { -lean_object* x_165; lean_object* x_166; lean_object* x_167; -x_165 = lean_ctor_get(x_64, 0); -x_166 = lean_ctor_get(x_64, 1); -lean_inc(x_166); -lean_inc(x_165); -lean_dec(x_64); -x_167 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_167, 0, x_165); -lean_ctor_set(x_167, 1, x_166); -return x_167; +lean_object* x_161; lean_object* x_162; lean_object* x_163; +x_161 = lean_ctor_get(x_72, 0); +x_162 = lean_ctor_get(x_72, 1); +lean_inc(x_162); +lean_inc(x_161); +lean_dec(x_72); +x_163 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_163, 0, x_161); +lean_ctor_set(x_163, 1, x_162); +return x_163; } } } -else -{ -uint8_t x_168; -lean_dec(x_61); -lean_dec(x_59); -lean_dec(x_57); -lean_dec(x_53); -lean_dec(x_41); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_5); -x_168 = !lean_is_exclusive(x_62); -if (x_168 == 0) -{ -return x_62; -} -else -{ -lean_object* x_169; lean_object* x_170; lean_object* x_171; -x_169 = lean_ctor_get(x_62, 0); -x_170 = lean_ctor_get(x_62, 1); -lean_inc(x_170); -lean_inc(x_169); -lean_dec(x_62); -x_171 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_171, 0, x_169); -lean_ctor_set(x_171, 1, x_170); -return x_171; -} -} } else { uint8_t x_172; -lean_dec(x_43); -lean_dec(x_41); +lean_dec(x_58); +lean_dec(x_56); +lean_dec(x_52); lean_dec(x_40); -lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_7); +lean_dec(x_8); lean_dec(x_5); -x_172 = !lean_is_exclusive(x_50); +x_172 = !lean_is_exclusive(x_63); if (x_172 == 0) { -return x_50; +return x_63; } else { lean_object* x_173; lean_object* x_174; lean_object* x_175; -x_173 = lean_ctor_get(x_50, 0); -x_174 = lean_ctor_get(x_50, 1); +x_173 = lean_ctor_get(x_63, 0); +x_174 = lean_ctor_get(x_63, 1); lean_inc(x_174); lean_inc(x_173); -lean_dec(x_50); +lean_dec(x_63); x_175 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_175, 0, x_173); lean_ctor_set(x_175, 1, x_174); @@ -18945,30 +19671,31 @@ return x_175; else { uint8_t x_176; -lean_dec(x_43); -lean_dec(x_41); +lean_dec(x_60); +lean_dec(x_58); +lean_dec(x_56); +lean_dec(x_52); lean_dec(x_40); -lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_7); +lean_dec(x_8); lean_dec(x_5); -x_176 = !lean_is_exclusive(x_47); +x_176 = !lean_is_exclusive(x_61); if (x_176 == 0) { -return x_47; +return x_61; } else { lean_object* x_177; lean_object* x_178; lean_object* x_179; -x_177 = lean_ctor_get(x_47, 0); -x_178 = lean_ctor_get(x_47, 1); +x_177 = lean_ctor_get(x_61, 0); +x_178 = lean_ctor_get(x_61, 1); lean_inc(x_178); lean_inc(x_177); -lean_dec(x_47); +lean_dec(x_61); x_179 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_179, 0, x_177); lean_ctor_set(x_179, 1, x_178); @@ -18979,30 +19706,29 @@ return x_179; else { uint8_t x_180; -lean_dec(x_41); +lean_dec(x_42); lean_dec(x_40); -lean_dec(x_14); +lean_dec(x_39); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_7); +lean_dec(x_8); lean_dec(x_5); -lean_dec(x_1); -x_180 = !lean_is_exclusive(x_42); +x_180 = !lean_is_exclusive(x_49); if (x_180 == 0) { -return x_42; +return x_49; } else { lean_object* x_181; lean_object* x_182; lean_object* x_183; -x_181 = lean_ctor_get(x_42, 0); -x_182 = lean_ctor_get(x_42, 1); +x_181 = lean_ctor_get(x_49, 0); +x_182 = lean_ctor_get(x_49, 1); lean_inc(x_182); lean_inc(x_181); -lean_dec(x_42); +lean_dec(x_49); x_183 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_183, 0, x_181); lean_ctor_set(x_183, 1, x_182); @@ -19010,34 +19736,32 @@ return x_183; } } } -} else { uint8_t x_184; -lean_dec(x_14); +lean_dec(x_42); +lean_dec(x_40); +lean_dec(x_39); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_7); +lean_dec(x_8); lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_184 = !lean_is_exclusive(x_16); +x_184 = !lean_is_exclusive(x_46); if (x_184 == 0) { -return x_16; +return x_46; } else { lean_object* x_185; lean_object* x_186; lean_object* x_187; -x_185 = lean_ctor_get(x_16, 0); -x_186 = lean_ctor_get(x_16, 1); +x_185 = lean_ctor_get(x_46, 0); +x_186 = lean_ctor_get(x_46, 1); lean_inc(x_186); lean_inc(x_185); -lean_dec(x_16); +lean_dec(x_46); x_187 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_187, 0, x_185); lean_ctor_set(x_187, 1, x_186); @@ -19045,6 +19769,73 @@ return x_187; } } } +else +{ +uint8_t x_188; +lean_dec(x_40); +lean_dec(x_39); +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_5); +lean_dec(x_1); +x_188 = !lean_is_exclusive(x_41); +if (x_188 == 0) +{ +return x_41; +} +else +{ +lean_object* x_189; lean_object* x_190; lean_object* x_191; +x_189 = lean_ctor_get(x_41, 0); +x_190 = lean_ctor_get(x_41, 1); +lean_inc(x_190); +lean_inc(x_189); +lean_dec(x_41); +x_191 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_191, 0, x_189); +lean_ctor_set(x_191, 1, x_190); +return x_191; +} +} +} +} +else +{ +uint8_t x_192; +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_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_192 = !lean_is_exclusive(x_15); +if (x_192 == 0) +{ +return x_15; +} +else +{ +lean_object* x_193; lean_object* x_194; lean_object* x_195; +x_193 = lean_ctor_get(x_15, 0); +x_194 = lean_ctor_get(x_15, 1); +lean_inc(x_194); +lean_inc(x_193); +lean_dec(x_15); +x_195 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_195, 0, x_193); +lean_ctor_set(x_195, 1, x_194); +return x_195; +} +} +} } static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__2___closed__1() { _start: @@ -19099,571 +19890,558 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -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, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { -lean_object* x_16; -lean_inc(x_14); +lean_object* x_15; lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_16 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParam(x_8, x_1, x_2, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_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_48 = lean_ctor_get(x_13, 0); -lean_inc(x_48); -x_49 = lean_ctor_get(x_13, 1); -lean_inc(x_49); -x_50 = lean_ctor_get(x_13, 2); -lean_inc(x_50); -x_51 = lean_ctor_get(x_13, 3); -lean_inc(x_51); -x_52 = lean_ctor_get(x_13, 4); -lean_inc(x_52); -x_53 = lean_ctor_get(x_13, 5); -lean_inc(x_53); -x_54 = lean_ctor_get(x_13, 6); -lean_inc(x_54); -x_55 = lean_ctor_get(x_13, 7); -lean_inc(x_55); -x_56 = l_Lean_replaceRef(x_4, x_51); -lean_dec(x_51); -x_57 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_57, 0, x_48); -lean_ctor_set(x_57, 1, x_49); -lean_ctor_set(x_57, 2, x_50); -lean_ctor_set(x_57, 3, x_56); -lean_ctor_set(x_57, 4, x_52); -lean_ctor_set(x_57, 5, x_53); -lean_ctor_set(x_57, 6, x_54); -lean_ctor_set(x_57, 7, x_55); -if (x_6 == 0) -{ -lean_object* x_58; -lean_inc(x_14); -lean_inc(x_57); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_9); -lean_inc(x_7); -x_58 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse(x_7, x_9, x_10, x_11, x_12, x_57, x_14, x_18); -if (lean_obj_tag(x_58) == 0) -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_58, 0); -lean_inc(x_59); -x_60 = lean_ctor_get(x_58, 1); -lean_inc(x_60); -lean_dec(x_58); -lean_inc(x_9); -x_61 = l_Lean_Elab_Command_checkResultingUniverse(x_59, x_9, x_10, x_11, x_12, x_57, x_14, x_60); -lean_dec(x_57); -if (lean_obj_tag(x_61) == 0) -{ -lean_object* x_62; -x_62 = lean_ctor_get(x_61, 1); -lean_inc(x_62); -lean_dec(x_61); -x_19 = x_7; -x_20 = x_62; -goto block_47; -} -else -{ -uint8_t x_63; -lean_dec(x_17); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_63 = !lean_is_exclusive(x_61); -if (x_63 == 0) -{ -return x_61; -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_61, 0); -x_65 = lean_ctor_get(x_61, 1); -lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_61); -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; -} -} -} -else -{ -uint8_t x_67; -lean_dec(x_57); -lean_dec(x_17); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_67 = !lean_is_exclusive(x_58); -if (x_67 == 0) -{ -return x_58; -} -else -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_58, 0); -x_69 = lean_ctor_get(x_58, 1); -lean_inc(x_69); -lean_inc(x_68); -lean_dec(x_58); -x_70 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_70, 0, x_68); -lean_ctor_set(x_70, 1, x_69); -return x_70; -} -} -} -else -{ -lean_object* x_71; -lean_inc(x_14); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_71 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse(x_17, x_7, x_9, x_10, x_11, x_12, x_57, x_14, x_18); -if (lean_obj_tag(x_71) == 0) -{ -lean_object* x_72; lean_object* x_73; -x_72 = lean_ctor_get(x_71, 0); -lean_inc(x_72); -x_73 = lean_ctor_get(x_71, 1); -lean_inc(x_73); -lean_dec(x_71); -x_19 = x_72; -x_20 = x_73; -goto block_47; -} -else -{ -uint8_t x_74; -lean_dec(x_17); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_74 = !lean_is_exclusive(x_71); -if (x_74 == 0) -{ -return x_71; -} -else -{ -lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_75 = lean_ctor_get(x_71, 0); -x_76 = lean_ctor_get(x_71, 1); -lean_inc(x_76); -lean_inc(x_75); -lean_dec(x_71); -x_77 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_77, 0, x_75); -lean_ctor_set(x_77, 1, x_76); -return x_77; -} -} -} -block_47: -{ -lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; -x_21 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__2___closed__4; -x_36 = lean_st_ref_get(x_14, x_20); -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_37, 3); -lean_inc(x_38); -lean_dec(x_37); -x_39 = lean_ctor_get_uint8(x_38, sizeof(void*)*1); -lean_dec(x_38); -if (x_39 == 0) -{ -lean_object* x_40; uint8_t x_41; -x_40 = lean_ctor_get(x_36, 1); -lean_inc(x_40); -lean_dec(x_36); -x_41 = 0; -x_22 = x_41; -x_23 = x_40; -goto block_35; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; -x_42 = lean_ctor_get(x_36, 1); -lean_inc(x_42); -lean_dec(x_36); -x_43 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_21, x_9, x_10, x_11, x_12, x_13, x_14, x_42); -x_44 = lean_ctor_get(x_43, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_43, 1); -lean_inc(x_45); -lean_dec(x_43); -x_46 = lean_unbox(x_44); -lean_dec(x_44); -x_22 = x_46; -x_23 = x_45; -goto block_35; -} -block_35: -{ -if (x_22 == 0) -{ -lean_object* x_24; lean_object* x_25; -x_24 = lean_box(0); -x_25 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1(x_19, x_8, x_1, x_17, x_3, x_4, x_5, x_24, x_9, x_10, x_11, x_12, x_13, x_14, x_23); -lean_dec(x_4); -lean_dec(x_17); -return x_25; -} -else -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -lean_inc(x_19); -x_26 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_26, 0, x_19); -x_27 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__2___closed__6; -x_28 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_26); -x_29 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___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_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_21, x_30, x_9, x_10, x_11, x_12, x_13, x_14, x_23); -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 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1(x_19, x_8, x_1, x_17, x_3, x_4, x_5, x_32, x_9, x_10, x_11, x_12, x_13, x_14, x_33); -lean_dec(x_32); -lean_dec(x_4); -lean_dec(x_17); -return x_34; -} -} -} -} -else -{ -uint8_t x_78; -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_78 = !lean_is_exclusive(x_16); -if (x_78 == 0) -{ -return x_16; -} -else -{ -lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_79 = lean_ctor_get(x_16, 0); -x_80 = lean_ctor_get(x_16, 1); -lean_inc(x_80); -lean_inc(x_79); -lean_dec(x_16); -x_81 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_81, 0, x_79); -lean_ctor_set(x_81, 1, x_80); -return x_81; -} -} -} -} -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, lean_object* x_11, lean_object* x_12) { -_start: -{ -uint8_t x_13; lean_object* x_14; lean_object* x_15; -x_13 = 0; -x_14 = lean_box(0); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_15 = l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(x_13, x_13, x_14, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_15 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParam(x_7, x_1, x_2, x_8, x_9, x_10, x_11, x_12, x_13, x_14); if (lean_obj_tag(x_15) == 0) { -lean_object* x_16; lean_object* x_17; -x_16 = lean_ctor_get(x_15, 1); +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); lean_dec(x_15); +x_47 = lean_ctor_get(x_12, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_12, 1); +lean_inc(x_48); +x_49 = lean_ctor_get(x_12, 2); +lean_inc(x_49); +x_50 = lean_ctor_get(x_12, 3); +lean_inc(x_50); +x_51 = lean_ctor_get(x_12, 4); +lean_inc(x_51); +x_52 = lean_ctor_get(x_12, 5); +lean_inc(x_52); +x_53 = lean_ctor_get(x_12, 6); +lean_inc(x_53); +x_54 = lean_ctor_get(x_12, 7); +lean_inc(x_54); +x_55 = l_Lean_replaceRef(x_4, x_50); +lean_dec(x_50); +x_56 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_56, 0, x_47); +lean_ctor_set(x_56, 1, x_48); +lean_ctor_set(x_56, 2, x_49); +lean_ctor_set(x_56, 3, x_55); +lean_ctor_set(x_56, 4, x_51); +lean_ctor_set(x_56, 5, x_52); +lean_ctor_set(x_56, 6, x_53); +lean_ctor_set(x_56, 7, x_54); +if (x_5 == 0) +{ +lean_object* x_57; +lean_inc(x_13); +lean_inc(x_56); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_8); +lean_inc(x_6); +x_57 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse(x_6, x_8, x_9, x_10, x_11, x_56, x_13, x_17); +if (lean_obj_tag(x_57) == 0) +{ +lean_object* x_58; lean_object* x_59; lean_object* 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); +lean_inc(x_8); +x_60 = l_Lean_Elab_Command_checkResultingUniverse(x_58, x_8, x_9, x_10, x_11, x_56, x_13, x_59); +lean_dec(x_56); +if (lean_obj_tag(x_60) == 0) +{ +lean_object* x_61; +x_61 = lean_ctor_get(x_60, 1); +lean_inc(x_61); +lean_dec(x_60); +x_18 = x_6; +x_19 = x_61; +goto block_46; +} +else +{ +uint8_t x_62; +lean_dec(x_16); +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_4); +lean_dec(x_3); +lean_dec(x_1); +x_62 = !lean_is_exclusive(x_60); +if (x_62 == 0) +{ +return x_60; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_60, 0); +x_64 = lean_ctor_get(x_60, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_60); +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_63); +lean_ctor_set(x_65, 1, x_64); +return x_65; +} +} +} +else +{ +uint8_t x_66; +lean_dec(x_56); +lean_dec(x_16); +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_4); +lean_dec(x_3); +lean_dec(x_1); +x_66 = !lean_is_exclusive(x_57); +if (x_66 == 0) +{ +return x_57; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_57, 0); +x_68 = lean_ctor_get(x_57, 1); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_57); +x_69 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_69, 0, x_67); +lean_ctor_set(x_69, 1, x_68); +return x_69; +} +} +} +else +{ +lean_object* x_70; +lean_inc(x_13); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_6); -lean_inc(x_1); -x_17 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse(x_1, x_6, x_7, x_8, x_9, x_10, x_11, x_16); -if (lean_obj_tag(x_17) == 0) +x_70 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse(x_16, x_6, x_8, x_9, x_10, x_11, x_56, x_13, x_17); +if (lean_obj_tag(x_70) == 0) { -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_17, 0); +lean_object* x_71; lean_object* x_72; +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_70, 1); +lean_inc(x_72); +lean_dec(x_70); +x_18 = x_71; +x_19 = x_72; +goto block_46; +} +else +{ +uint8_t x_73; +lean_dec(x_16); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_73 = !lean_is_exclusive(x_70); +if (x_73 == 0) +{ +return x_70; +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_70, 0); +x_75 = lean_ctor_get(x_70, 1); +lean_inc(x_75); +lean_inc(x_74); +lean_dec(x_70); +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +return x_76; +} +} +} +block_46: +{ +lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_20 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__2___closed__4; +x_35 = lean_st_ref_get(x_13, x_19); +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_36, 3); +lean_inc(x_37); +lean_dec(x_36); +x_38 = lean_ctor_get_uint8(x_37, sizeof(void*)*1); +lean_dec(x_37); +if (x_38 == 0) +{ +lean_object* x_39; uint8_t x_40; +x_39 = lean_ctor_get(x_35, 1); +lean_inc(x_39); +lean_dec(x_35); +x_40 = 0; +x_21 = x_40; +x_22 = x_39; +goto block_34; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; +x_41 = lean_ctor_get(x_35, 1); +lean_inc(x_41); +lean_dec(x_35); +x_42 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_20, x_8, x_9, x_10, x_11, x_12, x_13, x_41); +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec(x_42); +x_45 = lean_unbox(x_43); +lean_dec(x_43); +x_21 = x_45; +x_22 = x_44; +goto block_34; +} +block_34: +{ +if (x_21 == 0) +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_box(0); +x_24 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1(x_18, x_7, x_1, x_16, x_3, x_4, x_23, x_8, x_9, x_10, x_11, x_12, x_13, x_22); +lean_dec(x_4); +lean_dec(x_16); +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_inc(x_18); -x_19 = lean_ctor_get(x_17, 1); -lean_inc(x_19); -lean_dec(x_17); -lean_inc(x_6); -x_20 = l_Lean_Elab_Command_shouldInferResultUniverse(x_18, x_6, x_7, x_8, x_9, x_10, x_11, x_19); -if (lean_obj_tag(x_20) == 0) -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_20, 1); -lean_inc(x_22); -lean_dec(x_20); -x_23 = lean_ctor_get(x_2, 5); -lean_inc(x_23); -x_24 = lean_ctor_get(x_2, 6); -lean_inc(x_24); -lean_inc(x_5); -lean_inc(x_24); -x_25 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__2___boxed), 15, 7); -lean_closure_set(x_25, 0, x_24); -lean_closure_set(x_25, 1, x_5); -lean_closure_set(x_25, 2, x_2); -lean_closure_set(x_25, 3, x_3); -lean_closure_set(x_25, 4, x_4); -lean_closure_set(x_25, 5, x_21); -lean_closure_set(x_25, 6, x_1); -x_26 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withUsed___rarg(x_23, x_24, x_5, x_25, x_6, x_7, x_8, x_9, x_10, x_11, x_22); -lean_dec(x_23); -return x_26; -} -else -{ -uint8_t x_27; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_27 = !lean_is_exclusive(x_20); -if (x_27 == 0) -{ -return x_20; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_20, 0); -x_29 = lean_ctor_get(x_20, 1); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_20); -x_30 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_30, 0, x_28); -lean_ctor_set(x_30, 1, x_29); -return x_30; -} -} -} -else -{ -uint8_t x_31; -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_31 = !lean_is_exclusive(x_17); -if (x_31 == 0) -{ -return x_17; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_17, 0); -x_33 = lean_ctor_get(x_17, 1); -lean_inc(x_33); +x_25 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_25, 0, x_18); +x_26 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__2___closed__6; +x_27 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_25); +x_28 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___closed__4; +x_29 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +x_30 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_20, x_29, x_8, x_9, x_10, x_11, x_12, x_13, x_22); +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_30, 1); lean_inc(x_32); -lean_dec(x_17); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); -return x_34; +lean_dec(x_30); +x_33 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1(x_18, x_7, x_1, x_16, x_3, x_4, x_31, x_8, x_9, x_10, x_11, x_12, x_13, x_32); +lean_dec(x_31); +lean_dec(x_4); +lean_dec(x_16); +return x_33; +} } } } else { -uint8_t x_35; +uint8_t x_77; +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_35 = !lean_is_exclusive(x_15); -if (x_35 == 0) +x_77 = !lean_is_exclusive(x_15); +if (x_77 == 0) { return x_15; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_15, 0); -x_37 = lean_ctor_get(x_15, 1); -lean_inc(x_37); -lean_inc(x_36); +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_15, 0); +x_79 = lean_ctor_get(x_15, 1); +lean_inc(x_79); +lean_inc(x_78); lean_dec(x_15); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set(x_38, 1, x_37); -return x_38; +x_80 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_80, 0, x_78); +lean_ctor_set(x_80, 1, x_79); +return x_80; } } } } -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, 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__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__3), 12, 4); -lean_closure_set(x_14, 0, x_1); -lean_closure_set(x_14, 1, x_2); -lean_closure_set(x_14, 2, x_3); -lean_closure_set(x_14, 3, x_4); -x_15 = lean_unsigned_to_nat(0u); -x_16 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg(x_5, x_15, x_6, x_14, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +uint8_t x_12; lean_object* x_13; lean_object* x_14; +x_12 = 0; +x_13 = lean_box(0); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_14 = l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(x_12, 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_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_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_0__Lean_Elab_Command_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; 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_ctor_get(x_2, 5); +lean_inc(x_22); +x_23 = lean_ctor_get(x_2, 6); +lean_inc(x_23); +lean_inc(x_4); +lean_inc(x_23); +x_24 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__2___boxed), 14, 6); +lean_closure_set(x_24, 0, x_23); +lean_closure_set(x_24, 1, x_4); +lean_closure_set(x_24, 2, x_2); +lean_closure_set(x_24, 3, x_3); +lean_closure_set(x_24, 4, x_20); +lean_closure_set(x_24, 5, x_1); +x_25 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withUsed___rarg(x_22, x_23, x_4, x_24, x_5, x_6, x_7, x_8, x_9, x_10, x_21); +lean_dec(x_22); +return x_25; +} +else +{ +uint8_t x_26; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_26 = !lean_is_exclusive(x_19); +if (x_26 == 0) +{ +return x_19; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_19, 0); +x_28 = lean_ctor_get(x_19, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_19); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +return x_29; +} +} +} +else +{ +uint8_t x_30; +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_16); +if (x_30 == 0) +{ return x_16; } +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_16, 0); +x_32 = lean_ctor_get(x_16, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_16); +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_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_14); +if (x_34 == 0) +{ +return x_14; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_14, 0); +x_36 = lean_ctor_get(x_14, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_14); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +} +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, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__3), 11, 3); +lean_closure_set(x_13, 0, x_1); +lean_closure_set(x_13, 1, x_2); +lean_closure_set(x_13, 2, x_3); +x_14 = lean_unsigned_to_nat(0u); +x_15 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg(x_4, x_14, x_5, x_13, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_15; +} } 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, lean_object* x_11) { _start: { -lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +lean_object* x_12; lean_object* x_13; uint8_t x_14; x_12 = lean_ctor_get(x_1, 0); lean_inc(x_12); -x_13 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; lean_inc(x_12); lean_inc(x_1); -x_14 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__4), 13, 5); -lean_closure_set(x_14, 0, x_2); -lean_closure_set(x_14, 1, x_1); -lean_closure_set(x_14, 2, x_12); -lean_closure_set(x_14, 3, x_13); -lean_closure_set(x_14, 4, x_3); -x_15 = !lean_is_exclusive(x_9); -if (x_15 == 0) +x_13 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__4), 12, 4); +lean_closure_set(x_13, 0, x_2); +lean_closure_set(x_13, 1, x_1); +lean_closure_set(x_13, 2, x_12); +lean_closure_set(x_13, 3, x_3); +x_14 = !lean_is_exclusive(x_9); +if (x_14 == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_16 = lean_ctor_get(x_9, 3); -x_17 = l_Lean_replaceRef(x_12, x_16); -lean_dec(x_16); +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_9, 3); +x_16 = l_Lean_replaceRef(x_12, x_15); +lean_dec(x_15); lean_dec(x_12); -lean_ctor_set(x_9, 3, x_17); -x_18 = lean_unsigned_to_nat(0u); -x_19 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg(x_1, x_18, x_13, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_19; +lean_ctor_set(x_9, 3, x_16); +x_17 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg(x_1, x_13, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_17; } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_20 = lean_ctor_get(x_9, 0); -x_21 = lean_ctor_get(x_9, 1); -x_22 = lean_ctor_get(x_9, 2); -x_23 = lean_ctor_get(x_9, 3); -x_24 = lean_ctor_get(x_9, 4); -x_25 = lean_ctor_get(x_9, 5); -x_26 = lean_ctor_get(x_9, 6); -x_27 = lean_ctor_get(x_9, 7); -lean_inc(x_27); -lean_inc(x_26); +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_18 = lean_ctor_get(x_9, 0); +x_19 = lean_ctor_get(x_9, 1); +x_20 = lean_ctor_get(x_9, 2); +x_21 = lean_ctor_get(x_9, 3); +x_22 = lean_ctor_get(x_9, 4); +x_23 = lean_ctor_get(x_9, 5); +x_24 = lean_ctor_get(x_9, 6); +x_25 = lean_ctor_get(x_9, 7); lean_inc(x_25); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); lean_dec(x_9); -x_28 = l_Lean_replaceRef(x_12, x_23); -lean_dec(x_23); +x_26 = l_Lean_replaceRef(x_12, x_21); +lean_dec(x_21); lean_dec(x_12); -x_29 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_29, 0, x_20); -lean_ctor_set(x_29, 1, x_21); -lean_ctor_set(x_29, 2, x_22); -lean_ctor_set(x_29, 3, x_28); -lean_ctor_set(x_29, 4, x_24); -lean_ctor_set(x_29, 5, x_25); -lean_ctor_set(x_29, 6, x_26); -lean_ctor_set(x_29, 7, x_27); -x_30 = lean_unsigned_to_nat(0u); -x_31 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg(x_1, x_30, x_13, x_14, x_5, x_6, x_7, x_8, x_29, x_10, x_11); -return x_31; +x_27 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_27, 0, x_18); +lean_ctor_set(x_27, 1, x_19); +lean_ctor_set(x_27, 2, x_20); +lean_ctor_set(x_27, 3, x_26); +lean_ctor_set(x_27, 4, x_22); +lean_ctor_set(x_27, 5, x_23); +lean_ctor_set(x_27, 6, x_24); +lean_ctor_set(x_27, 7, x_25); +x_28 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg(x_1, x_13, x_5, x_6, x_7, x_8, x_27, x_10, x_11); +return x_28; } } } @@ -19973,25 +20751,25 @@ lean_dec(x_1); return x_15; } } -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, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +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, lean_object* x_13, lean_object* x_14) { _start: { -lean_object* x_16; -x_16 = 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, x_13, x_14, x_15); -lean_dec(x_8); +lean_object* x_15; +x_15 = 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, x_13, x_14); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); -return x_16; +return x_15; } } -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, lean_object* x_14, lean_object* x_15) { +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, lean_object* x_14) { _start: { -uint8_t x_16; lean_object* x_17; -x_16 = lean_unbox(x_6); -lean_dec(x_6); -x_17 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__2(x_1, x_2, x_3, x_4, x_5, x_16, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -return x_17; +uint8_t x_15; lean_object* x_16; +x_15 = lean_unbox(x_5); +lean_dec(x_5); +x_16 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__2(x_1, x_2, x_3, x_4, x_15, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +return x_16; } } 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, lean_object* x_11) { @@ -21810,7 +22588,17 @@ return x_23; } } } -lean_object* l_Lean_Elab_Command_elabStructure___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, uint8_t x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19) { +lean_object* l_Lean_Elab_Command_elabStructure___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_1); +lean_ctor_set(x_10, 1, x_9); +return x_10; +} +} +lean_object* l_Lean_Elab_Command_elabStructure___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, uint8_t 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: { uint8_t x_20; lean_object* x_21; lean_object* x_22; @@ -22099,7 +22887,7 @@ return x_63; } } } -lean_object* l_Lean_Elab_Command_elabStructure___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, uint8_t x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18) { +lean_object* l_Lean_Elab_Command_elabStructure___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, uint8_t x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18) { _start: { lean_object* x_19; @@ -22141,7 +22929,7 @@ lean_inc(x_24); lean_dec(x_22); x_25 = lean_box(x_5); x_26 = lean_box(x_9); -x_27 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabStructure___lambda__1___boxed), 19, 11); +x_27 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabStructure___lambda__2___boxed), 19, 11); lean_closure_set(x_27, 0, x_1); lean_closure_set(x_27, 1, x_2); lean_closure_set(x_27, 2, x_4); @@ -22239,7 +23027,7 @@ return x_38; } } } -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, uint8_t x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +lean_object* l_Lean_Elab_Command_elabStructure___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, uint8_t x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { _start: { lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; @@ -22282,7 +23070,7 @@ lean_dec(x_26); x_28 = lean_box(x_4); x_29 = lean_box(x_8); lean_inc(x_24); -x_30 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabStructure___lambda__2___boxed), 18, 11); +x_30 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabStructure___lambda__3___boxed), 18, 11); lean_closure_set(x_30, 0, x_3); lean_closure_set(x_30, 1, x_2); lean_closure_set(x_30, 2, x_24); @@ -22334,7 +23122,7 @@ return x_35; } } } -lean_object* l_Lean_Elab_Command_elabStructure___lambda__4(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, uint8_t x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17) { +lean_object* l_Lean_Elab_Command_elabStructure___lambda__5(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, uint8_t x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17) { _start: { uint8_t x_18; lean_object* x_19; lean_object* x_20; @@ -22400,7 +23188,7 @@ lean_inc(x_41); lean_dec(x_39); x_42 = lean_box(x_5); x_43 = lean_box(x_8); -x_44 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabStructure___lambda__3___boxed), 16, 9); +x_44 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabStructure___lambda__4___boxed), 16, 9); lean_closure_set(x_44, 0, x_2); lean_closure_set(x_44, 1, x_3); lean_closure_set(x_44, 2, x_4); @@ -22501,7 +23289,7 @@ lean_inc(x_66); lean_dec(x_64); x_67 = lean_box(x_5); x_68 = lean_box(x_8); -x_69 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabStructure___lambda__3___boxed), 16, 9); +x_69 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabStructure___lambda__4___boxed), 16, 9); lean_closure_set(x_69, 0, x_2); lean_closure_set(x_69, 1, x_3); lean_closure_set(x_69, 2, x_4); @@ -22589,7 +23377,7 @@ return x_78; } } } -lean_object* l_Lean_Elab_Command_elabStructure___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l_Lean_Elab_Command_elabStructure___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; @@ -22604,7 +23392,7 @@ x_17 = lean_ctor_get(x_15, 5); lean_inc(x_17); x_18 = lean_box(x_4); x_19 = lean_box(x_6); -x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabStructure___lambda__4___boxed), 17, 9); +x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabStructure___lambda__5___boxed), 17, 9); lean_closure_set(x_20, 0, x_15); lean_closure_set(x_20, 1, x_1); lean_closure_set(x_20, 2, x_2); @@ -23039,7 +23827,7 @@ x_32 = l_Lean_Syntax_getArg(x_22, x_8); lean_dec(x_22); x_33 = l_Lean_Syntax_getArg(x_32, x_13); lean_dec(x_32); -x_34 = l_Lean_Elab_Command_elabStructure___lambda__5(x_14, x_27, x_2, x_12, x_28, x_26, x_17, x_29, x_33, x_3, x_4, x_30); +x_34 = l_Lean_Elab_Command_elabStructure___lambda__6(x_14, x_27, x_2, x_12, x_28, x_26, x_17, x_29, x_33, x_3, x_4, x_30); return x_34; } else @@ -23087,7 +23875,7 @@ x_56 = l_Lean_Elab_Command_elabStructure___closed__4; x_57 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_57, 0, x_56); lean_ctor_set(x_57, 1, x_55); -x_58 = l_Lean_Elab_Command_elabStructure___lambda__5(x_14, x_27, x_2, x_12, x_28, x_26, x_17, x_29, x_57, x_3, x_4, x_41); +x_58 = l_Lean_Elab_Command_elabStructure___lambda__6(x_14, x_27, x_2, x_12, x_28, x_26, x_17, x_29, x_57, x_3, x_4, x_41); return x_58; } } @@ -23267,7 +24055,22 @@ lean_dec(x_2); return x_11; } } -lean_object* l_Lean_Elab_Command_elabStructure___lambda__1___boxed(lean_object** _args) { +lean_object* l_Lean_Elab_Command_elabStructure___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Elab_Command_elabStructure___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_10; +} +} +lean_object* l_Lean_Elab_Command_elabStructure___lambda__2___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; lean_object* x_3 = _args[2]; @@ -23294,11 +24097,11 @@ x_20 = lean_unbox(x_4); lean_dec(x_4); x_21 = lean_unbox(x_11); lean_dec(x_11); -x_22 = l_Lean_Elab_Command_elabStructure___lambda__1(x_1, x_2, x_3, x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_21, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19); +x_22 = l_Lean_Elab_Command_elabStructure___lambda__2(x_1, x_2, x_3, x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_21, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19); return x_22; } } -lean_object* l_Lean_Elab_Command_elabStructure___lambda__2___boxed(lean_object** _args) { +lean_object* l_Lean_Elab_Command_elabStructure___lambda__3___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; lean_object* x_3 = _args[2]; @@ -23324,11 +24127,11 @@ x_19 = lean_unbox(x_5); lean_dec(x_5); x_20 = lean_unbox(x_9); lean_dec(x_9); -x_21 = l_Lean_Elab_Command_elabStructure___lambda__2(x_1, x_2, x_3, x_4, x_19, x_6, x_7, x_8, x_20, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); +x_21 = l_Lean_Elab_Command_elabStructure___lambda__3(x_1, x_2, x_3, x_4, x_19, x_6, x_7, x_8, x_20, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); 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, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +lean_object* l_Lean_Elab_Command_elabStructure___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { _start: { uint8_t x_17; uint8_t x_18; lean_object* x_19; @@ -23336,11 +24139,11 @@ x_17 = lean_unbox(x_4); lean_dec(x_4); x_18 = lean_unbox(x_8); lean_dec(x_8); -x_19 = l_Lean_Elab_Command_elabStructure___lambda__3(x_1, x_2, x_3, x_17, x_5, x_6, x_7, x_18, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +x_19 = l_Lean_Elab_Command_elabStructure___lambda__4(x_1, x_2, x_3, x_17, x_5, x_6, x_7, x_18, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); return x_19; } } -lean_object* l_Lean_Elab_Command_elabStructure___lambda__4___boxed(lean_object** _args) { +lean_object* l_Lean_Elab_Command_elabStructure___lambda__5___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; lean_object* x_3 = _args[2]; @@ -23365,12 +24168,12 @@ x_18 = lean_unbox(x_5); lean_dec(x_5); x_19 = lean_unbox(x_8); lean_dec(x_8); -x_20 = l_Lean_Elab_Command_elabStructure___lambda__4(x_1, x_2, x_3, x_4, x_18, x_6, x_7, x_19, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +x_20 = l_Lean_Elab_Command_elabStructure___lambda__5(x_1, x_2, x_3, x_4, x_18, x_6, x_7, x_19, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); lean_dec(x_1); return x_20; } } -lean_object* l_Lean_Elab_Command_elabStructure___lambda__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l_Lean_Elab_Command_elabStructure___lambda__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { uint8_t x_13; uint8_t x_14; lean_object* x_15; @@ -23378,11 +24181,11 @@ x_13 = lean_unbox(x_4); lean_dec(x_4); x_14 = lean_unbox(x_6); lean_dec(x_6); -x_15 = l_Lean_Elab_Command_elabStructure___lambda__5(x_1, x_2, x_3, x_13, x_5, x_14, x_7, x_8, x_9, x_10, x_11, x_12); +x_15 = l_Lean_Elab_Command_elabStructure___lambda__6(x_1, x_2, x_3, x_13, x_5, x_14, x_7, x_8, x_9, x_10, x_11, x_12); return x_15; } } -lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_5606_(lean_object* x_1) { +lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_6027_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -23396,6 +24199,7 @@ lean_object* initialize_Lean_Parser_Command(lean_object*); lean_object* initialize_Lean_Meta_Closure(lean_object*); lean_object* initialize_Lean_Meta_SizeOf(lean_object*); lean_object* initialize_Lean_Meta_Injective(lean_object*); +lean_object* initialize_Lean_Meta_Structure(lean_object*); lean_object* initialize_Lean_Elab_Command(lean_object*); lean_object* initialize_Lean_Elab_DeclModifiers(lean_object*); lean_object* initialize_Lean_Elab_DeclUtil(lean_object*); @@ -23422,6 +24226,9 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Injective(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Meta_Structure(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); res = initialize_Lean_Elab_Command(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -23664,28 +24471,47 @@ lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expand l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___closed__2 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___closed__2(); l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___closed__3 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___closed__3(); l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___closed__4 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___closed__4(); -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_findFieldInfo_x3f___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f___closed__1(); lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f___closed__1); l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f___closed__2 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f___closed__2(); lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f___closed__2); -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_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_1816____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_1816____closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_1816____closed__1); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_1816____closed__2 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_1816____closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_1816____closed__2); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_1816____closed__3 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_1816____closed__3(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_1816____closed__3); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_1816____closed__4 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_1816____closed__4(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_1816____closed__4); +l_Lean_Elab_Command_structureDiamondWarning___closed__1 = _init_l_Lean_Elab_Command_structureDiamondWarning___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_structureDiamondWarning___closed__1); +res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_1816_(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +l_Lean_Elab_Command_structureDiamondWarning = lean_io_result_get_value(res); +lean_mark_persistent(l_Lean_Elab_Command_structureDiamondWarning); +lean_dec_ref(res); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__1); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__2 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__2); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__3 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__3); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__4 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__4); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__1); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__2 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__2); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__3 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__3); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__4 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__4); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__5 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__5); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__6 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__6); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___closed__1); l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___lambda__1___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___lambda__1___closed__1(); lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___lambda__1___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(); @@ -23780,10 +24606,6 @@ l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_e lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__3); l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__4 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__4(); lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__4); -l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__5 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__5(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__5); -l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__6 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__6(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__6); l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__10___closed__1 = _init_l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__10___closed__1(); lean_mark_persistent(l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__10___closed__1); l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__10___closed__2 = _init_l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__10___closed__2(); @@ -23876,7 +24698,7 @@ l_Lean_Elab_Command_elabStructure___closed__10 = _init_l_Lean_Elab_Command_elabS lean_mark_persistent(l_Lean_Elab_Command_elabStructure___closed__10); l_Lean_Elab_Command_elabStructure___closed__11 = _init_l_Lean_Elab_Command_elabStructure___closed__11(); lean_mark_persistent(l_Lean_Elab_Command_elabStructure___closed__11); -res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_5606_(lean_io_mk_world()); +res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_6027_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Expr.c b/stage0/stdlib/Lean/Expr.c index 23ca7861a5..3849f0c3ed 100644 --- a/stage0/stdlib/Lean/Expr.c +++ b/stage0/stdlib/Lean/Expr.c @@ -56,6 +56,7 @@ uint8_t l_UInt64_decEq(uint64_t, uint64_t); static lean_object* l_Lean_Expr_bindingDomain_x21___closed__2; lean_object* l_Lean_Expr_abstract___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Expr_getRevArg_x21___closed__1; +static lean_object* l_Lean_instReprBinderInfo___closed__1; static lean_object* l_Lean_mkNatLit___closed__1; lean_object* l_Lean_Expr_isAtomic_match__1(lean_object*); lean_object* l_Lean_Expr_updateConst___boxed(lean_object*, lean_object*, lean_object*); @@ -134,10 +135,12 @@ lean_object* l_Lean_ExprStructEq_beq_match__1(lean_object*); static lean_object* l___private_Lean_Expr_0__Lean_reprLiteral____x40_Lean_Expr___hyg_98____closed__6; uint8_t l_Lean_Level_hasMVar(lean_object*); lean_object* l_Lean_Expr_constName_x21___boxed(lean_object*); +static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__12; lean_object* l_Lean_Expr_isArrow___boxed(lean_object*); lean_object* l_Lean_Expr_withAppRev___rarg(lean_object*, lean_object*); static uint64_t l_Lean_Expr_mkData___closed__3; lean_object* l_Lean_annotation_x3f___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365__match__1(lean_object*); uint64_t l_Lean_Expr_mkDataForBinder(uint64_t, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t); uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_Expr_setPPExplicit(lean_object*, uint8_t); @@ -176,7 +179,9 @@ static lean_object* l_Lean_Literal_type___closed__3; lean_object* l_Lean_Expr_isLet_match__1(lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); +static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__26; lean_object* lean_expr_lift_loose_bvars(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__3; uint8_t lean_expr_has_level_mvar(lean_object*); static lean_object* l_Lean_ExprStructEq_instBEqExprStructEq___closed__1; static lean_object* l_Lean_Expr_updateForall_x21___closed__1; @@ -194,22 +199,28 @@ uint8_t l_Lean_Level_hasParam(lean_object*); lean_object* l_Lean_Expr_updateApp_x21(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_mkAppRevRange(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_isHeadBetaTargetFn_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__14; lean_object* l_Lean_Expr_updateForall_x21___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_appArg_x21(lean_object*); +static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__28; static lean_object* l_Lean_Expr_fvarId_x21___closed__2; uint8_t lean_expr_lt(lean_object*, lean_object*); lean_object* l_Lean_Expr_getRevArg_x21(lean_object*, lean_object*); static lean_object* l_Lean_Expr_letName_x21___closed__1; +static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__5; lean_object* l_Lean_Expr_getRevArgD_match__1(lean_object*); lean_object* l_Lean_Expr_replaceFVars(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__30; static lean_object* l___private_Lean_Expr_0__Lean_reprLiteral____x40_Lean_Expr___hyg_98____closed__4; uint8_t l_USize_decLt(size_t, size_t); lean_object* l_Lean_Expr_letName_x21___boxed(lean_object*); +static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__18; lean_object* l_Lean_instCoeExprExprStructEq___boxed(lean_object*); static lean_object* l_Lean_Expr_updateForall_x21___closed__3; lean_object* l_Lean_Expr_updateForall_x21(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_List_map___at_Lean_Expr_instantiateLevelParamsArray___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_looseBVarRange___boxed(lean_object*); +static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__15; lean_object* l_Lean_Expr_isNatLit_match__1(lean_object*); lean_object* l_Lean_Expr_mkDataForBinder___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_BinderInfo_hash___boxed(lean_object*); @@ -234,13 +245,14 @@ lean_object* l_Lean_Expr_bindingName_x21___boxed(lean_object*); static lean_object* l_Lean_Expr_updateLambdaE_x21___closed__1; lean_object* l_Lean_Expr_getAppFn___boxed(lean_object*); lean_object* l_Lean_Expr_isBinding_match__1(lean_object*); +static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__7; lean_object* l_Lean_Expr_inferImplicit_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_expr_has_loose_bvar(lean_object*, lean_object*); lean_object* l_Lean_mkAppN(lean_object*, lean_object*); lean_object* l_Lean_Expr_natLit_x3f___boxed(lean_object*); lean_object* l_Lean_mkMData(lean_object*, lean_object*); -lean_object* l_Lean_BinderInfo_hash_match__1(lean_object*); lean_object* l_Lean_Expr_instantiateLevelParamsCore(lean_object*, lean_object*); +static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__11; lean_object* l_Lean_Expr_updateFn___boxed(lean_object*, lean_object*); lean_object* l_Lean_mkDecIsTrue(lean_object*, lean_object*); extern uint64_t l_instInhabitedUInt64; @@ -252,7 +264,9 @@ uint8_t l_Lean_Expr_Data_hasExprMVar(uint64_t); lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Literal_type(lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_getParamSubstArray(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__19; static lean_object* l_Lean_Expr_bindingName_x21___closed__3; +static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__25; lean_object* l_Lean_Expr_hasLooseBVarInExplicitDomain___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_isConstOf___boxed(lean_object*, lean_object*); lean_object* lean_expr_mk_mdata(lean_object*, lean_object*); @@ -267,17 +281,19 @@ lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l___private_Lean_Expr_0__Lean_reprLiteral____x40_Lean_Expr___hyg_98_(lean_object*, lean_object*); lean_object* l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_312____boxed(lean_object*, lean_object*); lean_object* l_Lean_Expr_isProj_match__1(lean_object*); +lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____boxed(lean_object*, lean_object*); static lean_object* l_Lean_Expr_updateForall_x21___closed__2; static lean_object* l_Lean_Expr_updateLambdaE_x21___closed__2; lean_object* l_Lean_mkProj(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Expr_getOptParamDefault_x3f___closed__2; -lean_object* l_Lean_BinderInfo_hash_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_inferImplicit_match__1___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_instantiate_rev_range(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_updateFn(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); uint8_t l_Lean_ExprStructEq_beq(lean_object*, lean_object*); lean_object* l_Lean_Expr_updateApp___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__29; +static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__1; lean_object* l_Lean_ExprStructEq_beq___boxed(lean_object*, lean_object*); lean_object* l_Lean_Level_instantiateParams___at_Lean_Expr_instantiateLevelParams___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux_match__1(lean_object*); @@ -294,11 +310,13 @@ lean_object* l_Lean_Expr_constLevels_x21(lean_object*); lean_object* l_Lean_Expr_hasLevelParam___boxed(lean_object*); lean_object* l_Lean_Expr_isConst_match__1(lean_object*); lean_object* l_Lean_Expr_getRevArg_x21_match__1(lean_object*); +static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__2; lean_object* l_Lean_Expr_isConstOf_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_isLambda_match__1(lean_object*); uint8_t lean_expr_has_mvar(lean_object*); lean_object* l_Lean_mkRawNatLit(lean_object*); static lean_object* l_Lean_mkNatLit___closed__6; +static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__22; uint8_t l_Lean_KVMap_getBool(lean_object*, lean_object*, uint8_t); static lean_object* l_Lean_Expr_ctorName___closed__5; lean_object* l___private_Lean_Expr_0__Lean_Expr_mkAppRevRangeAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -308,14 +326,17 @@ lean_object* l_Lean_Expr_instantiateLevelParamsCore_visit_match__1___rarg(lean_o lean_object* l_Lean_BinderInfo_isInstImplicit_match__1(lean_object*); lean_object* l_Lean_Expr_replaceFVar(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_headBeta(lean_object*); +static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__4; uint8_t lean_expr_binder_info(lean_object*); static uint64_t l_Lean_Expr_mkData___closed__2; lean_object* lean_level_update_max(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__27; lean_object* l_Lean_mkAnnotation(lean_object*, lean_object*); lean_object* l_Lean_Expr_isLit_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_isHeadBetaTargetFn_match__1(lean_object*); uint8_t l_Lean_BinderInfo_isStrictImplicit(uint8_t); lean_object* l_Lean_Expr_isMData_match__1___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__9; lean_object* l_Lean_Expr_looseBVarRangeEx___boxed(lean_object*); uint8_t l_Lean_Expr_hasExprMVar(lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); @@ -332,6 +353,7 @@ lean_object* l___private_Lean_Expr_0__Lean_Expr_getParamSubstArray___boxed(lean_ uint8_t l_Lean_Expr_isHeadBetaTarget(lean_object*); uint8_t l_Lean_Expr_isBinding(lean_object*); lean_object* l_Lean_Expr_bindingBody_x21___boxed(lean_object*); +static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__8; lean_object* l_Lean_Expr_updateProj_x21(lean_object*, lean_object*); lean_object* l_Lean_Level_instantiateParams___at_Lean_Expr_instantiateLevelParams___spec__3(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_mkDecIsTrue___closed__1; @@ -339,14 +361,17 @@ lean_object* l_Lean_Expr_instantiateLevelParams(lean_object*, lean_object*, lean lean_object* l_Lean_instDecidableLt___boxed(lean_object*, lean_object*); lean_object* l_Lean_Expr_getAutoParamTactic_x3f___boxed(lean_object*); lean_object* l_Lean_Expr_isForall_match__1(lean_object*); +static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__17; lean_object* l_Lean_BinderInfo_isExplicit_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_Data_hasLevelParam___boxed(lean_object*); lean_object* l_Lean_Expr_isFVar___boxed(lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Expr_setAppPPExplicitForExposingMVars___spec__1(size_t, size_t, lean_object*); uint64_t l_Lean_Name_hash(lean_object*); +static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__23; lean_object* l_Nat_repr(lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_getParamSubst_match__1(lean_object*); lean_object* l_List_map___rarg(lean_object*, lean_object*); +static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__13; uint8_t l_Lean_Expr_Data_hasFVar(uint64_t); lean_object* l_Lean_Expr_getAppNumArgsAux_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Expr_instBEqExpr___closed__1; @@ -373,6 +398,7 @@ lean_object* l_Lean_BinderInfo_isInstImplicit_match__1___rarg___boxed(lean_objec lean_object* l_Lean_Expr_instantiateLevelParamsCore_visit___at_Lean_Expr_instantiateLevelParams___spec__1___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Expr_ctorName___closed__3; lean_object* l_Lean_Expr_hasAnyFVar_visit___at_Lean_Expr_containsFVar___spec__1___boxed(lean_object*, lean_object*); +static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__21; lean_object* l_Lean_Expr_natLit_x3f(lean_object*); lean_object* lean_expr_mk_const(lean_object*, lean_object*); lean_object* l_Lean_Expr_data_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -400,6 +426,7 @@ lean_object* l_Lean_Expr_hasAnyFVar_visit_match__1___rarg(lean_object*, lean_obj static lean_object* l_Lean_Literal_type___closed__2; lean_object* l_Lean_Expr_mkDataForLet___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_instantiate___boxed(lean_object*, lean_object*); +static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__6; uint8_t l___private_Lean_Expr_0__Lean_beqLiteral____x40_Lean_Expr___hyg_30_(lean_object*, lean_object*); static lean_object* l_Lean_mkSimpleThunk___closed__1; lean_object* l___private_Lean_Expr_0__Lean_reprLiteral____x40_Lean_Expr___hyg_98__match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -407,7 +434,6 @@ static lean_object* l_Lean_Expr_appFn_x21___closed__1; static lean_object* l_Lean_Expr_updateApp_x21___closed__1; lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isConst(lean_object*); -lean_object* l_Lean_BinderInfo_hash_match__1___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasLevelMVar(lean_object*); lean_object* lean_expr_mk_let(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); @@ -472,6 +498,7 @@ static lean_object* l_Lean_Expr_ctorName___closed__9; lean_object* l_Lean_Expr_instantiateRevRange___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_hasLooseBVarInExplicitDomain_match__1___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); static lean_object* l_Lean_mkNatLit___closed__7; +lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365_(uint8_t, lean_object*); uint8_t l_Lean_instInhabitedBinderInfo; static lean_object* l_Lean_Expr_updateLambda_x21___closed__1; lean_object* l_Lean_Expr_mkDataForLet___boxed__const__1; @@ -527,6 +554,7 @@ lean_object* l_Lean_Expr_betaRev(lean_object*, lean_object*); uint64_t l_Lean_instInhabitedData__1; static lean_object* l_Lean_instBEqLiteral___closed__1; lean_object* l_Lean_instHashableBinderInfo; +lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365__match__1___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_BinderInfo_isInstImplicit___boxed(lean_object*); extern lean_object* l_Lean_KVMap_empty; lean_object* l_Lean_Expr_isLambda_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -565,6 +593,8 @@ static lean_object* l_Lean_Expr_appFn_x21___closed__2; static lean_object* l_Lean_mkNatLit___closed__5; lean_object* l_Lean_Expr_Data_hasExprMVar___boxed(lean_object*); static lean_object* l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__5; +lean_object* l_Lean_instReprBinderInfo; +lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365__match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_etaExpanded_x3f(lean_object*); lean_object* l_Lean_Expr_liftLooseBVars___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Expr_bvarIdx_x21___closed__2; @@ -672,11 +702,13 @@ lean_object* l_Lean_Expr_setOption___at_Lean_Expr_setPPExplicit___spec__1___boxe lean_object* l_Lean_Expr_isAtomic___boxed(lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux_match__1(lean_object*); lean_object* l_Lean_Expr_Data_nonDepLet___boxed(lean_object*); +static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__20; lean_object* l_Lean_mkNatLit(lean_object*); lean_object* l_Lean_Level_instantiateParams(lean_object*, lean_object*); lean_object* l_Lean_mkStrLit(lean_object*); lean_object* l_Lean_Expr_getArgD(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); +static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__10; lean_object* l_Lean_Expr_etaExpandedStrict_x3f(lean_object*); lean_object* l_Lean_Expr_updateLambdaE_x21(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_hasLooseBVar___boxed(lean_object*, lean_object*); @@ -695,6 +727,7 @@ static lean_object* l_Lean_instBEqBinderInfo___closed__1; lean_object* l___private_Lean_Expr_0__Lean_beqLiteral____x40_Lean_Expr___hyg_30__match__1(lean_object*); lean_object* lean_expr_update_app(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Expr_isCharLit___closed__2; +static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__24; lean_object* l_Lean_Expr_setOption___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_instantiateLevelParamsCore_visit___at_Lean_Expr_instantiateLevelParams___spec__1(lean_object*, lean_object*, lean_object*); uint64_t l_Lean_BinderInfo_hash(uint8_t); @@ -714,6 +747,7 @@ lean_object* l_Lean_Expr_equal___boxed(lean_object*, lean_object*); lean_object* l_Lean_Expr_updateLet_x21(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Literal_lt(lean_object*, lean_object*); lean_object* l_Lean_Expr_updateForall___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__16; lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l_Lean_Expr_bindingInfo_x21___boxed(lean_object*); lean_object* l_Lean_mkSimpleThunk(lean_object*); @@ -1624,7 +1658,7 @@ x_1 = l_Lean_instBEqBinderInfo___closed__1; return x_1; } } -lean_object* l_Lean_BinderInfo_hash_match__1___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365__match__1___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { switch (x_1) { @@ -1686,24 +1720,488 @@ return x_16; } } } -lean_object* l_Lean_BinderInfo_hash_match__1(lean_object* x_1) { +lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365__match__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_BinderInfo_hash_match__1___rarg___boxed), 6, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365__match__1___rarg___boxed), 6, 0); return x_2; } } -lean_object* l_Lean_BinderInfo_hash_match__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365__match__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { uint8_t x_7; lean_object* x_8; x_7 = lean_unbox(x_1); lean_dec(x_1); -x_8 = l_Lean_BinderInfo_hash_match__1___rarg(x_7, x_2, x_3, x_4, x_5, x_6); +x_8 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365__match__1___rarg(x_7, x_2, x_3, x_4, x_5, x_6); return x_8; } } +static lean_object* _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Lean.BinderInfo.default"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____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_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Expr_0__Lean_reprLiteral____x40_Lean_Expr___hyg_98____closed__4; +x_2 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__2; +x_3 = lean_alloc_ctor(3, 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___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__4() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; +x_1 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__3; +x_2 = 0; +x_3 = lean_alloc_ctor(5, 1, 1); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Expr_0__Lean_reprLiteral____x40_Lean_Expr___hyg_98____closed__5; +x_2 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__2; +x_3 = lean_alloc_ctor(3, 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___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__6() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; +x_1 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__5; +x_2 = 0; +x_3 = lean_alloc_ctor(5, 1, 1); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Lean.BinderInfo.implicit"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____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___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Expr_0__Lean_reprLiteral____x40_Lean_Expr___hyg_98____closed__4; +x_2 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__8; +x_3 = lean_alloc_ctor(3, 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___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__10() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; +x_1 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__9; +x_2 = 0; +x_3 = lean_alloc_ctor(5, 1, 1); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Expr_0__Lean_reprLiteral____x40_Lean_Expr___hyg_98____closed__5; +x_2 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__8; +x_3 = lean_alloc_ctor(3, 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___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__12() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; +x_1 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__11; +x_2 = 0; +x_3 = lean_alloc_ctor(5, 1, 1); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__13() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Lean.BinderInfo.strictImplicit"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__14() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____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___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__15() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Expr_0__Lean_reprLiteral____x40_Lean_Expr___hyg_98____closed__4; +x_2 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__14; +x_3 = lean_alloc_ctor(3, 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___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__16() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; +x_1 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__15; +x_2 = 0; +x_3 = lean_alloc_ctor(5, 1, 1); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__17() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Expr_0__Lean_reprLiteral____x40_Lean_Expr___hyg_98____closed__5; +x_2 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__14; +x_3 = lean_alloc_ctor(3, 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___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__18() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; +x_1 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__17; +x_2 = 0; +x_3 = lean_alloc_ctor(5, 1, 1); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__19() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Lean.BinderInfo.instImplicit"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__20() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__19; +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_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__21() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Expr_0__Lean_reprLiteral____x40_Lean_Expr___hyg_98____closed__4; +x_2 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__20; +x_3 = lean_alloc_ctor(3, 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___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__22() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; +x_1 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__21; +x_2 = 0; +x_3 = lean_alloc_ctor(5, 1, 1); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__23() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Expr_0__Lean_reprLiteral____x40_Lean_Expr___hyg_98____closed__5; +x_2 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__20; +x_3 = lean_alloc_ctor(3, 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___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__24() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; +x_1 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__23; +x_2 = 0; +x_3 = lean_alloc_ctor(5, 1, 1); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__25() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Lean.BinderInfo.auxDecl"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__26() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__25; +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_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__27() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Expr_0__Lean_reprLiteral____x40_Lean_Expr___hyg_98____closed__4; +x_2 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__26; +x_3 = lean_alloc_ctor(3, 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___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__28() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; +x_1 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__27; +x_2 = 0; +x_3 = lean_alloc_ctor(5, 1, 1); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__29() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Expr_0__Lean_reprLiteral____x40_Lean_Expr___hyg_98____closed__5; +x_2 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__26; +x_3 = lean_alloc_ctor(3, 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___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__30() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; +x_1 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__29; +x_2 = 0; +x_3 = lean_alloc_ctor(5, 1, 1); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); +return x_3; +} +} +lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365_(uint8_t x_1, lean_object* x_2) { +_start: +{ +switch (x_1) { +case 0: +{ +lean_object* x_3; uint8_t x_4; +x_3 = lean_unsigned_to_nat(1024u); +x_4 = lean_nat_dec_le(x_3, x_2); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; +x_5 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__4; +x_6 = l_Repr_addAppParen(x_5, x_2); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; +x_7 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__6; +x_8 = l_Repr_addAppParen(x_7, x_2); +return x_8; +} +} +case 1: +{ +lean_object* x_9; uint8_t x_10; +x_9 = lean_unsigned_to_nat(1024u); +x_10 = lean_nat_dec_le(x_9, x_2); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__10; +x_12 = l_Repr_addAppParen(x_11, x_2); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; +x_13 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__12; +x_14 = l_Repr_addAppParen(x_13, x_2); +return x_14; +} +} +case 2: +{ +lean_object* x_15; uint8_t x_16; +x_15 = lean_unsigned_to_nat(1024u); +x_16 = lean_nat_dec_le(x_15, x_2); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; +x_17 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__16; +x_18 = l_Repr_addAppParen(x_17, x_2); +return x_18; +} +else +{ +lean_object* x_19; lean_object* x_20; +x_19 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__18; +x_20 = l_Repr_addAppParen(x_19, x_2); +return x_20; +} +} +case 3: +{ +lean_object* x_21; uint8_t x_22; +x_21 = lean_unsigned_to_nat(1024u); +x_22 = lean_nat_dec_le(x_21, x_2); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; +x_23 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__22; +x_24 = l_Repr_addAppParen(x_23, x_2); +return x_24; +} +else +{ +lean_object* x_25; lean_object* x_26; +x_25 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__24; +x_26 = l_Repr_addAppParen(x_25, x_2); +return x_26; +} +} +default: +{ +lean_object* x_27; uint8_t x_28; +x_27 = lean_unsigned_to_nat(1024u); +x_28 = lean_nat_dec_le(x_27, x_2); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; +x_29 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__28; +x_30 = l_Repr_addAppParen(x_29, x_2); +return x_30; +} +else +{ +lean_object* x_31; lean_object* x_32; +x_31 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__30; +x_32 = l_Repr_addAppParen(x_31, x_2); +return x_32; +} +} +} +} +} +lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = lean_unbox(x_1); +lean_dec(x_1); +x_4 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365_(x_3, x_2); +lean_dec(x_2); +return x_4; +} +} +static lean_object* _init_l_Lean_instReprBinderInfo___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____boxed), 2, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_instReprBinderInfo() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_instReprBinderInfo___closed__1; +return x_1; +} +} uint64_t l_Lean_BinderInfo_hash(uint8_t x_1) { _start: { @@ -15755,6 +16253,70 @@ l_Lean_instBEqBinderInfo___closed__1 = _init_l_Lean_instBEqBinderInfo___closed__ lean_mark_persistent(l_Lean_instBEqBinderInfo___closed__1); l_Lean_instBEqBinderInfo = _init_l_Lean_instBEqBinderInfo(); lean_mark_persistent(l_Lean_instBEqBinderInfo); +l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__1 = _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__1(); +lean_mark_persistent(l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__1); +l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__2 = _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__2(); +lean_mark_persistent(l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__2); +l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__3 = _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__3(); +lean_mark_persistent(l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__3); +l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__4 = _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__4(); +lean_mark_persistent(l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__4); +l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__5 = _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__5(); +lean_mark_persistent(l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__5); +l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__6 = _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__6(); +lean_mark_persistent(l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__6); +l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__7 = _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__7(); +lean_mark_persistent(l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__7); +l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__8 = _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__8(); +lean_mark_persistent(l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__8); +l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__9 = _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__9(); +lean_mark_persistent(l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__9); +l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__10 = _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__10(); +lean_mark_persistent(l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__10); +l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__11 = _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__11(); +lean_mark_persistent(l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__11); +l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__12 = _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__12(); +lean_mark_persistent(l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__12); +l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__13 = _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__13(); +lean_mark_persistent(l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__13); +l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__14 = _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__14(); +lean_mark_persistent(l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__14); +l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__15 = _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__15(); +lean_mark_persistent(l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__15); +l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__16 = _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__16(); +lean_mark_persistent(l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__16); +l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__17 = _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__17(); +lean_mark_persistent(l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__17); +l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__18 = _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__18(); +lean_mark_persistent(l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__18); +l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__19 = _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__19(); +lean_mark_persistent(l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__19); +l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__20 = _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__20(); +lean_mark_persistent(l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__20); +l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__21 = _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__21(); +lean_mark_persistent(l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__21); +l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__22 = _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__22(); +lean_mark_persistent(l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__22); +l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__23 = _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__23(); +lean_mark_persistent(l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__23); +l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__24 = _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__24(); +lean_mark_persistent(l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__24); +l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__25 = _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__25(); +lean_mark_persistent(l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__25); +l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__26 = _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__26(); +lean_mark_persistent(l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__26); +l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__27 = _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__27(); +lean_mark_persistent(l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__27); +l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__28 = _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__28(); +lean_mark_persistent(l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__28); +l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__29 = _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__29(); +lean_mark_persistent(l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__29); +l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__30 = _init_l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__30(); +lean_mark_persistent(l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365____closed__30); +l_Lean_instReprBinderInfo___closed__1 = _init_l_Lean_instReprBinderInfo___closed__1(); +lean_mark_persistent(l_Lean_instReprBinderInfo___closed__1); +l_Lean_instReprBinderInfo = _init_l_Lean_instReprBinderInfo(); +lean_mark_persistent(l_Lean_instReprBinderInfo); l_Lean_instHashableBinderInfo___closed__1 = _init_l_Lean_instHashableBinderInfo___closed__1(); lean_mark_persistent(l_Lean_instHashableBinderInfo___closed__1); l_Lean_instHashableBinderInfo = _init_l_Lean_instHashableBinderInfo(); diff --git a/stage0/stdlib/Lean/Meta.c b/stage0/stdlib/Lean/Meta.c index 6dc1278a5d..2aba4e00cd 100644 --- a/stage0/stdlib/Lean/Meta.c +++ b/stage0/stdlib/Lean/Meta.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Meta -// Imports: Init Lean.Meta.Basic Lean.Meta.LevelDefEq Lean.Meta.WHNF Lean.Meta.InferType Lean.Meta.FunInfo Lean.Meta.ExprDefEq Lean.Meta.DiscrTree Lean.Meta.Reduce Lean.Meta.Instances Lean.Meta.AbstractMVars Lean.Meta.SynthInstance Lean.Meta.AppBuilder Lean.Meta.Tactic Lean.Meta.KAbstract Lean.Meta.RecursorInfo Lean.Meta.GeneralizeTelescope Lean.Meta.Match Lean.Meta.ReduceEval Lean.Meta.Closure Lean.Meta.AbstractNestedProofs Lean.Meta.ForEachExpr Lean.Meta.Transform Lean.Meta.PPGoal Lean.Meta.UnificationHint Lean.Meta.Inductive Lean.Meta.SizeOf Lean.Meta.IndPredBelow Lean.Meta.Coe Lean.Meta.SortLocalDecls Lean.Meta.CollectFVars Lean.Meta.GeneralizeVars Lean.Meta.Injective +// Imports: Init Lean.Meta.Basic Lean.Meta.LevelDefEq Lean.Meta.WHNF Lean.Meta.InferType Lean.Meta.FunInfo Lean.Meta.ExprDefEq Lean.Meta.DiscrTree Lean.Meta.Reduce Lean.Meta.Instances Lean.Meta.AbstractMVars Lean.Meta.SynthInstance Lean.Meta.AppBuilder Lean.Meta.Tactic Lean.Meta.KAbstract Lean.Meta.RecursorInfo Lean.Meta.GeneralizeTelescope Lean.Meta.Match Lean.Meta.ReduceEval Lean.Meta.Closure Lean.Meta.AbstractNestedProofs Lean.Meta.ForEachExpr Lean.Meta.Transform Lean.Meta.PPGoal Lean.Meta.UnificationHint Lean.Meta.Inductive Lean.Meta.SizeOf Lean.Meta.IndPredBelow Lean.Meta.Coe Lean.Meta.SortLocalDecls Lean.Meta.CollectFVars Lean.Meta.GeneralizeVars Lean.Meta.Injective Lean.Meta.Structure #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -46,6 +46,7 @@ lean_object* initialize_Lean_Meta_SortLocalDecls(lean_object*); lean_object* initialize_Lean_Meta_CollectFVars(lean_object*); lean_object* initialize_Lean_Meta_GeneralizeVars(lean_object*); lean_object* initialize_Lean_Meta_Injective(lean_object*); +lean_object* initialize_Lean_Meta_Structure(lean_object*); static bool _G_initialized = false; lean_object* initialize_Lean_Meta(lean_object* w) { lean_object * res; @@ -150,6 +151,9 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Injective(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Meta_Structure(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Meta/Structure.c b/stage0/stdlib/Lean/Meta/Structure.c new file mode 100644 index 0000000000..29f34394c6 --- /dev/null +++ b/stage0/stdlib/Lean/Meta/Structure.c @@ -0,0 +1,1108 @@ +// Lean compiler output +// Module: Lean.Meta.Structure +// Imports: Init Lean.Structure Lean.Meta.AppBuilder +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +static lean_object* l_Lean_Meta_getStructureName___closed__3; +static lean_object* l_Lean_Meta_getFieldType___closed__3; +lean_object* l_Lean_stringToMessageData(lean_object*); +static lean_object* l_Lean_Meta_getFieldType___closed__5; +lean_object* lean_mk_empty_array_with_capacity(lean_object*); +lean_object* lean_name_mk_string(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_getStructureName___closed__4; +lean_object* l_Lean_Meta_mkAppM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLocalDeclImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Meta_getStructureName___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getStructureName___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_st_ref_get(lean_object*, lean_object*); +lean_object* l_Lean_Meta_getFieldType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_getStructureName___closed__1; +lean_object* lean_array_push(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_getFieldType___closed__6; +static lean_object* l_Lean_Meta_getStructureName___closed__2; +lean_object* l_Lean_Meta_getStructureName___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_forIn_loop___at_Lean_Meta_getFieldType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_getProjFnForField_x3f(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Meta_getStructureName___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_getFieldType___closed__10; +static lean_object* l_Lean_Meta_getFieldType___closed__13; +lean_object* l_Lean_Meta_getFieldType_match__3(lean_object*); +static lean_object* l_Lean_Meta_getStructureName___closed__6; +lean_object* l_Lean_Meta_getStructureName_match__1(lean_object*); +lean_object* l_Lean_Meta_getFieldType___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_getFieldType___spec__2___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getFieldType_match__3___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_getFieldType___closed__4; +lean_object* l_Lean_Meta_getStructureName_match__1___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_getFieldType___closed__9; +lean_object* l_Lean_getPathToBaseStructure_x3f(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getFieldType_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getFieldType_match__1(lean_object*); +static lean_object* l_Lean_Meta_getFieldType___closed__12; +lean_object* l_Lean_throwError___at_Lean_Meta_abstractRange___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_getFieldType___closed__1; +static lean_object* l_Lean_Meta_getFieldType___closed__2; +lean_object* l_Lean_Meta_getFieldType_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* lean_panic_fn(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_getFieldType___closed__8; +lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getFieldType_match__2(lean_object*); +lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_getFieldType___spec__2(lean_object*); +lean_object* l_Lean_Meta_getStructureName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Meta_withIncRecDepth___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_findField_x3f(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_getAppFn(lean_object*); +lean_object* l_Lean_Meta_getStructureName___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_List_forIn_loop___at_Lean_Meta_getFieldType___spec__1___closed__1; +static lean_object* l_Lean_Meta_getFieldType___closed__7; +lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_getFieldType___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_getFieldType___closed__11; +static lean_object* l_Lean_Meta_getStructureName___closed__5; +lean_object* l_Lean_Meta_instInhabitedMetaM___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_isStructure(lean_object*, lean_object*); +lean_object* l_Lean_Meta_getStructureName_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_Lean_Meta_getStructureName_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_getStructureName_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_throwError___at_Lean_Meta_getStructureName___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_7 = lean_ctor_get(x_4, 3); +x_8 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_8, 0); +lean_inc(x_7); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_7); +lean_ctor_set(x_11, 1, x_10); +lean_ctor_set_tag(x_8, 1); +lean_ctor_set(x_8, 0, x_11); +return x_8; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_8, 0); +x_13 = lean_ctor_get(x_8, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_8); +lean_inc(x_7); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_7); +lean_ctor_set(x_14, 1, x_12); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_13); +return x_15; +} +} +} +lean_object* l_Lean_Meta_getStructureName___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; +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_1); +lean_ctor_set(x_8, 1, x_7); +return x_8; +} +} +static lean_object* _init_l_Lean_Meta_getStructureName___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("expected structure"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_getStructureName___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_getStructureName___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_getStructureName___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("'"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_getStructureName___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_getStructureName___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_getStructureName___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("' is not a structure"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_getStructureName___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_getStructureName___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l_Lean_Meta_getStructureName(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_Expr_getAppFn(x_1); +lean_dec(x_1); +if (lean_obj_tag(x_7) == 4) +{ +lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +lean_dec(x_7); +x_9 = lean_st_ref_get(x_5, x_6); +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_9, 0); +x_12 = lean_ctor_get(x_9, 1); +x_13 = lean_ctor_get(x_11, 0); +lean_inc(x_13); +lean_dec(x_11); +lean_inc(x_8); +x_14 = l_Lean_isStructure(x_13, x_8); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +lean_free_object(x_9); +x_15 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_15, 0, x_8); +x_16 = l_Lean_Meta_getStructureName___closed__4; +x_17 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_15); +x_18 = l_Lean_Meta_getStructureName___closed__6; +x_19 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +x_20 = l_Lean_throwError___at_Lean_Meta_withIncRecDepth___spec__1(x_19, x_2, x_3, x_4, x_5, x_12); +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) +{ +return x_20; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_20, 0); +x_23 = lean_ctor_get(x_20, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_20); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +else +{ +lean_ctor_set(x_9, 0, x_8); +return x_9; +} +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_25 = lean_ctor_get(x_9, 0); +x_26 = lean_ctor_get(x_9, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_9); +x_27 = lean_ctor_get(x_25, 0); +lean_inc(x_27); +lean_dec(x_25); +lean_inc(x_8); +x_28 = l_Lean_isStructure(x_27, x_8); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_29 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_29, 0, x_8); +x_30 = l_Lean_Meta_getStructureName___closed__4; +x_31 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_29); +x_32 = l_Lean_Meta_getStructureName___closed__6; +x_33 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_32); +x_34 = l_Lean_throwError___at_Lean_Meta_withIncRecDepth___spec__1(x_33, x_2, x_3, x_4, x_5, x_26); +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +if (lean_is_exclusive(x_34)) { + lean_ctor_release(x_34, 0); + lean_ctor_release(x_34, 1); + x_37 = x_34; +} else { + lean_dec_ref(x_34); + x_37 = lean_box(0); +} +if (lean_is_scalar(x_37)) { + x_38 = lean_alloc_ctor(1, 2, 0); +} else { + x_38 = x_37; +} +lean_ctor_set(x_38, 0, x_35); +lean_ctor_set(x_38, 1, x_36); +return x_38; +} +else +{ +lean_object* x_39; +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_8); +lean_ctor_set(x_39, 1, x_26); +return x_39; +} +} +} +else +{ +lean_object* x_40; lean_object* x_41; +lean_dec(x_7); +x_40 = l_Lean_Meta_getStructureName___closed__2; +x_41 = l_Lean_throwError___at_Lean_Meta_getStructureName___spec__1(x_40, x_2, x_3, x_4, x_5, x_6); +return x_41; +} +} +} +lean_object* l_Lean_throwError___at_Lean_Meta_getStructureName___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_throwError___at_Lean_Meta_getStructureName___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +} +lean_object* l_Lean_Meta_getStructureName___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Meta_getStructureName___lambda__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_4); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +lean_object* l_Lean_Meta_getStructureName___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Meta_getStructureName(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +} +lean_object* l_Lean_Meta_getFieldType_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_Lean_Meta_getFieldType_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_getFieldType_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_getFieldType_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Meta_getFieldType_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_getFieldType_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_getFieldType_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Meta_getFieldType_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_getFieldType_match__3___rarg), 3, 0); +return x_2; +} +} +static lean_object* _init_l_List_forIn_loop___at_Lean_Meta_getFieldType___spec__1___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(1u); +x_2 = lean_mk_empty_array_with_capacity(x_1); +return x_2; +} +} +lean_object* l_List_forIn_loop___at_Lean_Meta_getFieldType___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: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_8; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_2); +lean_ctor_set(x_8, 1, x_7); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_9 = lean_ctor_get(x_1, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_1, 1); +lean_inc(x_10); +lean_dec(x_1); +x_11 = l_List_forIn_loop___at_Lean_Meta_getFieldType___spec__1___closed__1; +x_12 = lean_array_push(x_11, x_2); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_13 = l_Lean_Meta_mkAppM(x_9, x_12, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; +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_1 = x_10; +x_2 = x_14; +x_7 = x_15; +goto _start; +} +else +{ +uint8_t x_17; +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_17 = !lean_is_exclusive(x_13); +if (x_17 == 0) +{ +return x_13; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_13, 0); +x_19 = lean_ctor_get(x_13, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_13); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +return x_20; +} +} +} +} +} +lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_getFieldType___spec__2___rarg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l___private_Lean_Meta_Basic_0__Lean_Meta_withLocalDeclImp___rarg(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) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +return x_10; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_ctor_get(x_10, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_10); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +return x_14; +} +} +else +{ +uint8_t x_15; +x_15 = !lean_is_exclusive(x_10); +if (x_15 == 0) +{ +return x_10; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_10, 0); +x_17 = lean_ctor_get(x_10, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_10); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +return x_18; +} +} +} +} +lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_getFieldType___spec__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withLocalDecl___at_Lean_Meta_getFieldType___spec__2___rarg___boxed), 9, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_getFieldType___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_9 = l_List_forIn_loop___at_Lean_Meta_getFieldType___spec__1(x_1, x_3, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_12 = l_List_forIn_loop___at_Lean_Meta_getFieldType___spec__1___closed__1; +x_13 = lean_array_push(x_12, x_10); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_14 = l_Lean_Meta_mkAppM(x_2, x_13, x_4, x_5, x_6, x_7, x_11); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = lean_infer_type(x_15, x_4, x_5, x_6, x_7, x_16); +if (lean_obj_tag(x_17) == 0) +{ +uint8_t x_18; +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) +{ +return x_17; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_17, 0); +x_20 = lean_ctor_get(x_17, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_17); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +else +{ +uint8_t x_22; +x_22 = !lean_is_exclusive(x_17); +if (x_22 == 0) +{ +return x_17; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_17, 0); +x_24 = lean_ctor_get(x_17, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_17); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +return x_25; +} +} +} +else +{ +uint8_t x_26; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_26 = !lean_is_exclusive(x_14); +if (x_26 == 0) +{ +return x_14; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_14, 0); +x_28 = lean_ctor_get(x_14, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_14); +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 +{ +uint8_t x_30; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_30 = !lean_is_exclusive(x_9); +if (x_30 == 0) +{ +return x_9; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_9, 0); +x_32 = lean_ctor_get(x_9, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_9); +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; +} +} +} +} +static lean_object* _init_l_Lean_Meta_getFieldType___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("' is not a field of structure '"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_getFieldType___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_getFieldType___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_getFieldType___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("failed to access field '"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_getFieldType___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_getFieldType___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_getFieldType___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("' of structure '"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_getFieldType___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_getFieldType___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_getFieldType___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_instInhabitedMetaM___boxed), 5, 1); +lean_closure_set(x_1, 0, lean_box(0)); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_getFieldType___closed__8() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Lean.Meta.Structure"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_getFieldType___closed__9() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Lean.Meta.getFieldType"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_getFieldType___closed__10() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("unreachable code has been reached"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_getFieldType___closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_1 = l_Lean_Meta_getFieldType___closed__8; +x_2 = l_Lean_Meta_getFieldType___closed__9; +x_3 = lean_unsigned_to_nat(29u); +x_4 = lean_unsigned_to_nat(16u); +x_5 = l_Lean_Meta_getFieldType___closed__10; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +static lean_object* _init_l_Lean_Meta_getFieldType___closed__12() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("s"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_getFieldType___closed__13() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_getFieldType___closed__12; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* l_Lean_Meta_getFieldType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +lean_inc(x_1); +x_8 = l_Lean_Meta_getStructureName(x_1, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +lean_dec(x_8); +x_11 = lean_st_ref_get(x_6, x_10); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_ctor_get(x_12, 0); +lean_inc(x_14); +lean_dec(x_12); +lean_inc(x_9); +x_15 = l_Lean_findField_x3f(x_14, x_9, x_2); +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; lean_object* x_24; +lean_dec(x_1); +x_16 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_16, 0, x_2); +x_17 = l_Lean_Meta_getStructureName___closed__4; +x_18 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_16); +x_19 = l_Lean_Meta_getFieldType___closed__2; +x_20 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +x_21 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_21, 0, x_9); +x_22 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +x_23 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_17); +x_24 = l_Lean_throwError___at_Lean_Meta_abstractRange___spec__1(x_23, x_3, x_4, x_5, x_6, x_13); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +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; +x_25 = lean_ctor_get(x_15, 0); +lean_inc(x_25); +lean_dec(x_15); +x_26 = lean_st_ref_get(x_6, x_13); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); +x_29 = lean_ctor_get(x_27, 0); +lean_inc(x_29); +lean_dec(x_27); +lean_inc(x_9); +x_30 = l_Lean_getPathToBaseStructure_x3f(x_29, x_25, x_9); +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +lean_dec(x_25); +lean_dec(x_1); +x_31 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_31, 0, x_2); +x_32 = l_Lean_Meta_getFieldType___closed__4; +x_33 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_31); +x_34 = l_Lean_Meta_getFieldType___closed__6; +x_35 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +x_36 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_36, 0, x_9); +x_37 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +x_38 = l_Lean_Meta_getStructureName___closed__4; +x_39 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +x_40 = l_Lean_throwError___at_Lean_Meta_abstractRange___spec__1(x_39, x_3, x_4, x_5, x_6, x_28); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_40; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +lean_dec(x_9); +x_41 = lean_ctor_get(x_30, 0); +lean_inc(x_41); +lean_dec(x_30); +x_42 = lean_st_ref_get(x_6, x_28); +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec(x_42); +x_45 = lean_ctor_get(x_43, 0); +lean_inc(x_45); +lean_dec(x_43); +x_46 = l_Lean_getProjFnForField_x3f(x_45, x_25, x_2); +if (lean_obj_tag(x_46) == 0) +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +lean_dec(x_41); +lean_dec(x_1); +x_47 = l_Lean_Meta_getFieldType___closed__7; +x_48 = l_Lean_Meta_getFieldType___closed__11; +x_49 = lean_panic_fn(x_47, x_48); +x_50 = lean_apply_5(x_49, x_3, x_4, x_5, x_6, x_44); +return x_50; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; lean_object* x_55; +x_51 = lean_ctor_get(x_46, 0); +lean_inc(x_51); +lean_dec(x_46); +x_52 = lean_alloc_closure((void*)(l_Lean_Meta_getFieldType___lambda__1), 8, 2); +lean_closure_set(x_52, 0, x_41); +lean_closure_set(x_52, 1, x_51); +x_53 = l_Lean_Meta_getFieldType___closed__13; +x_54 = 0; +x_55 = l_Lean_Meta_withLocalDecl___at_Lean_Meta_getFieldType___spec__2___rarg(x_53, x_54, x_1, x_52, x_3, x_4, x_5, x_6, x_44); +return x_55; +} +} +} +} +else +{ +uint8_t x_56; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_56 = !lean_is_exclusive(x_8); +if (x_56 == 0) +{ +return x_8; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_8, 0); +x_58 = lean_ctor_get(x_8, 1); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_8); +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_57); +lean_ctor_set(x_59, 1, x_58); +return x_59; +} +} +} +} +lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_getFieldType___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_2); +lean_dec(x_2); +x_11 = l_Lean_Meta_withLocalDecl___at_Lean_Meta_getFieldType___spec__2___rarg(x_1, x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_11; +} +} +lean_object* initialize_Init(lean_object*); +lean_object* initialize_Lean_Structure(lean_object*); +lean_object* initialize_Lean_Meta_AppBuilder(lean_object*); +static bool _G_initialized = false; +lean_object* initialize_Lean_Meta_Structure(lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Init(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Structure(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Meta_AppBuilder(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Meta_getStructureName___closed__1 = _init_l_Lean_Meta_getStructureName___closed__1(); +lean_mark_persistent(l_Lean_Meta_getStructureName___closed__1); +l_Lean_Meta_getStructureName___closed__2 = _init_l_Lean_Meta_getStructureName___closed__2(); +lean_mark_persistent(l_Lean_Meta_getStructureName___closed__2); +l_Lean_Meta_getStructureName___closed__3 = _init_l_Lean_Meta_getStructureName___closed__3(); +lean_mark_persistent(l_Lean_Meta_getStructureName___closed__3); +l_Lean_Meta_getStructureName___closed__4 = _init_l_Lean_Meta_getStructureName___closed__4(); +lean_mark_persistent(l_Lean_Meta_getStructureName___closed__4); +l_Lean_Meta_getStructureName___closed__5 = _init_l_Lean_Meta_getStructureName___closed__5(); +lean_mark_persistent(l_Lean_Meta_getStructureName___closed__5); +l_Lean_Meta_getStructureName___closed__6 = _init_l_Lean_Meta_getStructureName___closed__6(); +lean_mark_persistent(l_Lean_Meta_getStructureName___closed__6); +l_List_forIn_loop___at_Lean_Meta_getFieldType___spec__1___closed__1 = _init_l_List_forIn_loop___at_Lean_Meta_getFieldType___spec__1___closed__1(); +lean_mark_persistent(l_List_forIn_loop___at_Lean_Meta_getFieldType___spec__1___closed__1); +l_Lean_Meta_getFieldType___closed__1 = _init_l_Lean_Meta_getFieldType___closed__1(); +lean_mark_persistent(l_Lean_Meta_getFieldType___closed__1); +l_Lean_Meta_getFieldType___closed__2 = _init_l_Lean_Meta_getFieldType___closed__2(); +lean_mark_persistent(l_Lean_Meta_getFieldType___closed__2); +l_Lean_Meta_getFieldType___closed__3 = _init_l_Lean_Meta_getFieldType___closed__3(); +lean_mark_persistent(l_Lean_Meta_getFieldType___closed__3); +l_Lean_Meta_getFieldType___closed__4 = _init_l_Lean_Meta_getFieldType___closed__4(); +lean_mark_persistent(l_Lean_Meta_getFieldType___closed__4); +l_Lean_Meta_getFieldType___closed__5 = _init_l_Lean_Meta_getFieldType___closed__5(); +lean_mark_persistent(l_Lean_Meta_getFieldType___closed__5); +l_Lean_Meta_getFieldType___closed__6 = _init_l_Lean_Meta_getFieldType___closed__6(); +lean_mark_persistent(l_Lean_Meta_getFieldType___closed__6); +l_Lean_Meta_getFieldType___closed__7 = _init_l_Lean_Meta_getFieldType___closed__7(); +lean_mark_persistent(l_Lean_Meta_getFieldType___closed__7); +l_Lean_Meta_getFieldType___closed__8 = _init_l_Lean_Meta_getFieldType___closed__8(); +lean_mark_persistent(l_Lean_Meta_getFieldType___closed__8); +l_Lean_Meta_getFieldType___closed__9 = _init_l_Lean_Meta_getFieldType___closed__9(); +lean_mark_persistent(l_Lean_Meta_getFieldType___closed__9); +l_Lean_Meta_getFieldType___closed__10 = _init_l_Lean_Meta_getFieldType___closed__10(); +lean_mark_persistent(l_Lean_Meta_getFieldType___closed__10); +l_Lean_Meta_getFieldType___closed__11 = _init_l_Lean_Meta_getFieldType___closed__11(); +lean_mark_persistent(l_Lean_Meta_getFieldType___closed__11); +l_Lean_Meta_getFieldType___closed__12 = _init_l_Lean_Meta_getFieldType___closed__12(); +lean_mark_persistent(l_Lean_Meta_getFieldType___closed__12); +l_Lean_Meta_getFieldType___closed__13 = _init_l_Lean_Meta_getFieldType___closed__13(); +lean_mark_persistent(l_Lean_Meta_getFieldType___closed__13); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Lean/Structure.c b/stage0/stdlib/Lean/Structure.c index 6cf02fb629..0edbddbad1 100644 --- a/stage0/stdlib/Lean/Structure.c +++ b/stage0/stdlib/Lean/Structure.c @@ -16,118 +16,130 @@ extern "C" { lean_object* l_List_reverse___rarg(lean_object*); static lean_object* l_Lean_getStructureCtor___closed__1; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_getParentStructures___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); -static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__15; -static lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_197____closed__4; static lean_object* l_Lean_getStructureCtor___closed__2; +lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_251____lambda__2___boxed(lean_object*); size_t l_USize_add(size_t, size_t); -static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__3; +static lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_251____closed__4; +static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__24; lean_object* l_Lean_instInhabitedStructureDescr; lean_object* l_Lean_getStructureCtor_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); -static lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3___closed__1; lean_object* lean_nat_div(lean_object*, lean_object*); lean_object* l_Lean_getPathToBaseStructureAux_match__1(lean_object*); +static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__9; +static lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_251____closed__6; static lean_object* l_Lean_instInhabitedStructureInfo___closed__1; lean_object* l_Lean_StructureInfo_fieldInfo___default; lean_object* l_Lean_getStructureInfo_x3f_match__1(lean_object*); static lean_object* l_Lean_getStructureCtor___closed__4; -static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__14; -static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__9; lean_object* lean_name_mk_string(lean_object*, lean_object*); +lean_object* l_Lean_mkDefaultFnOfProjFn___boxed(lean_object*); lean_object* l_Lean_structureExt___elambda__1(lean_object*); uint8_t l_USize_decEq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); -lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3___lambda__3(lean_object*, lean_object*); +static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__14; lean_object* l_Lean_instInhabitedStructureState; uint8_t l_Lean_Name_quickLt(lean_object*, lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_197____closed__5; lean_object* l_Array_qpartition_loop___at_Lean_registerStructure___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_structureExt___closed__7; static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_getStructureInfo_x3f___spec__3___closed__5; +static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__15; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); -static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__24; +static lean_object* l_Lean_mkDefaultFnOfProjFn___closed__1; lean_object* l_Lean_EnvExtensionInterfaceUnsafe_registerExt___rarg(lean_object*, lean_object*); -lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____boxed(lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_251____closed__2; lean_object* lean_environment_find(lean_object*, lean_object*); -lean_object* l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__1___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__1; lean_object* l_Array_forInUnsafe_loop___at_Lean_getPathToBaseStructureAux___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_getStructureCtor_match__2(lean_object*); static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_getStructureInfo_x3f___spec__3___closed__3; -static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__4; -static lean_object* l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__1___closed__1; +static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__1; +static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__2; lean_object* lean_st_ref_get(lean_object*, lean_object*); extern lean_object* l_Lean_instHashableName; lean_object* l_Lean_registerStructure(lean_object*, lean_object*); -static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__8; +static lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_251____closed__1; uint8_t lean_name_eq(lean_object*, lean_object*); -static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__17; -static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__7; +lean_object* l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Array_qpartition_loop___at_Lean_registerStructure___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); +lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4(lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); -static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__21; -static lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_197____closed__6; +static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__7; +static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__27; +static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__17; +lean_object* l_Array_anyMUnsafe_any___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4___closed__2; lean_object* l_Lean_StructureInfo_fieldNames___default; -static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__2; +static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__4; +static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__8; lean_object* l_Lean_getProjFnForField_x3f(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_structureExt___elambda__4___boxed(lean_object*, lean_object*); uint8_t l_USize_decLt(size_t, size_t); +lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Structure_0__Lean_getStructureFieldsFlattenedAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_StructureInfo_lt(lean_object*, lean_object*); uint8_t l_Array_anyMUnsafe_any___at_Lean_findField_x3f___spec__2(lean_object*, lean_object*, size_t, size_t); -static lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_197____closed__1; +lean_object* l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3___lambda__4(lean_object*); +lean_object* l_Lean_mkDefaultFnOfProjFn(lean_object*); lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_getStructureInfo_x3f___spec__3(lean_object*, lean_object*); -lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4___lambda__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getStructureFieldsFlattened___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Environment_0__Lean_EnvExtensionInterfaceUnsafe_invalidExtMsg; uint8_t l_Lean_StructureFieldInfo_lt(lean_object*, lean_object*); -static lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4___lambda__2___closed__1; lean_object* l_Lean_structureExt___elambda__3___boxed(lean_object*, lean_object*); lean_object* l_Lean_structureExt___elambda__3(lean_object*, lean_object*); static lean_object* l_Lean_instInhabitedStructureFieldInfo___closed__1; -lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_197____lambda__1(lean_object*, lean_object*); +lean_object* l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Structure_0__Lean_getStructureFieldsFlattenedAux___spec__1(lean_object*, lean_object*, uint8_t, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_getFieldInfo_x3f(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3___lambda__4___closed__2; lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Lean_isStructureLike___boxed(lean_object*, lean_object*); lean_object* l_Lean_getStructureCtor_match__1(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_getParentStructures___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedConstructorVal; +lean_object* l_Lean_getDefaultFnForField_x3f_match__1(lean_object*); lean_object* l_Lean_findField_x3f___lambda__1___boxed(lean_object*, lean_object*); +static lean_object* l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__1___closed__1; lean_object* l_Lean_instInhabitedStructureFieldInfo; lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l_EStateM_bind___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* lean_array_swap(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_197____closed__2; lean_object* l_Lean_getStructureFieldsFlattened(lean_object*, lean_object*, uint8_t); -static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__22; static lean_object* l_Lean_getStructureFields___closed__1; lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_getStructureInfo_x3f___spec__3___boxed(lean_object*, lean_object*); lean_object* l_Lean_Name_toString(lean_object*, uint8_t); static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_getStructureInfo_x3f___spec__3___closed__1; +static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__28; lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3___lambda__2(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_instReprStructureFieldInfo___closed__1; -lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3___lambda__2(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_getStructureCtor___closed__5; +static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__5; static lean_object* l_Lean_getStructureCtor___closed__3; -static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__5; +static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__18; +static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__3; +static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__30; static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_getStructureInfo_x3f___spec__3___closed__2; lean_object* l_Nat_repr(lean_object*); -static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__18; static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_getStructureInfo_x3f___spec__3___closed__4; +static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__29; lean_object* l_Lean_structureExt; uint8_t l_Array_contains___at_Lean_findField_x3f___spec__1(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); static lean_object* l_Lean_StructureInfo_fieldNames___default___closed__1; -lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_197____lambda__2(lean_object*); +lean_object* l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getStructureFields(lean_object*, lean_object*); +static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__25; +uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); lean_object* l_Lean_getStructureInfo_x3f(lean_object*, lean_object*); +lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_251____lambda__3(lean_object*); +static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__22; +uint8_t l_Lean_StructureFieldInfo_binderInfo___default; +lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_251____lambda__2(lean_object*); lean_object* l_Lean_PersistentEnvExtension_getState___at_Lean_getStructureInfo_x3f___spec__2___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_persistentEnvExtensionsRef; static lean_object* l_Lean_structureExt___closed__4; @@ -137,62 +149,62 @@ lean_object* l_Lean_StructureInfo_lt___boxed(lean_object*, lean_object*); lean_object* l_Lean_structureExt___elambda__2___boxed(lean_object*); lean_object* l_Lean_getPathToBaseStructure_x3f(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_findField_x3f___lambda__1(lean_object*, lean_object*); +lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__19; -lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3___lambda__4(lean_object*); +static lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3___lambda__4___closed__2; lean_object* l_Std_PersistentHashMap_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_structureExt___closed__1; -static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__11; +static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__16; lean_object* l_Lean_PersistentEnvExtension_getModuleEntries___at_Lean_getStructureInfo_x3f___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentEnvExtension_getModuleEntries___at_Lean_getStructureInfo_x3f___spec__4___boxed(lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); +static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__11; lean_object* l_Lean_getStructureCtor_match__1___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__19; lean_object* l_Array_qsort_sort___at_Lean_registerStructure___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_findField_x3f___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_PersistentEnvExtension_addEntry___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Structure_0__Lean_StructureState_map___default; -lean_object* l_Array_anyMUnsafe_any___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Array_anyMUnsafe_any___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__5(lean_object*, lean_object*, size_t, size_t); lean_object* l_Array_binSearchAux___at_Lean_getFieldInfo_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at_Lean_findField_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_197____lambda__3(lean_object*); lean_object* l_Lean_getAllParentStructures(lean_object*, lean_object*); -lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4___lambda__1(lean_object*, lean_object*); lean_object* l_Lean_EnvExtensionInterfaceUnsafe_instInhabitedExt___lambda__1(lean_object*); +lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3___lambda__4___boxed(lean_object*); +lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3___lambda__3(lean_object*, lean_object*); static lean_object* l_Lean_getStructureFields___closed__2; lean_object* l_Array_mapMUnsafe_map___at_Lean_registerStructure___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_structureExt___elambda__4___rarg(lean_object*); +lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365_(uint8_t, lean_object*); +static lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3___lambda__4___closed__1; lean_object* l_Lean_structureExt___elambda__4(lean_object*, lean_object*); static lean_object* l_Lean_getStructureCtor___closed__6; -lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4(lean_object*, lean_object*); static lean_object* l_Lean_structureExt___closed__3; -lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41_(lean_object*, lean_object*); +lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61_(lean_object*, lean_object*); lean_object* l_List_redLength___rarg(lean_object*); lean_object* l_Array_contains___at_Lean_findField_x3f___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_structureExt___elambda__1___boxed(lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_197____closed__3; -static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__16; +static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__20; +static lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_251____closed__3; lean_object* l_Lean_getParentStructures(lean_object*, lean_object*); -lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3___lambda__4___boxed(lean_object*); -static lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3___lambda__4___closed__1; +static lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4___lambda__2___closed__1; static lean_object* l_Array_qsort_sort___at_Lean_registerStructure___spec__2___closed__1; uint8_t lean_nat_dec_le(lean_object*, lean_object*); +lean_object* l_Lean_getDefaultFnForField_x3f(lean_object*, lean_object*, lean_object*); lean_object* l_Array_qsort_sort___at_Lean_registerStructure___spec__2___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_197____lambda__2___boxed(lean_object*); -static lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4___closed__1; +lean_object* l_Lean_Name_append(lean_object*, lean_object*); +uint8_t l_Array_anyMUnsafe_any___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__5(lean_object*, lean_object*, size_t, size_t); +static lean_object* l_Lean_mkDefaultFnOfProjFn___closed__2; static lean_object* l_Lean_structureExt___closed__2; lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* l_Lean_getStructureLikeNumFields_match__1___rarg(lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__20; -lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_197_(lean_object*); -static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__10; -lean_object* l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_251_(lean_object*); +lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4___lambda__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getStructureInfo_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Structure_0__Lean_StructureState_map___default___closed__3; -static lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4___closed__2; -lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_structureExt___closed__5; lean_object* l_Lean_PersistentEnvExtension_getState___at_Lean_getStructureInfo_x3f___spec__2(lean_object*, lean_object*); +static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__32; +static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__10; lean_object* l_Lean_getParentStructures_match__1(lean_object*); lean_object* l_Array_binSearchAux___at_Lean_getStructureInfo_x3f___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getStructureCtor(lean_object*, lean_object*); @@ -200,42 +212,46 @@ lean_object* l_Lean_isStructure___boxed(lean_object*, lean_object*); lean_object* l_Lean_SimplePersistentEnvExtension_getState___at_Lean_getStructureInfo_x3f___spec__1(lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_instInhabitedPersistentEnvExtensionState___rarg(lean_object*); -static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__23; static lean_object* l___private_Lean_Structure_0__Lean_StructureState_map___default___closed__2; lean_object* l_Lean_Environment_getModuleIdxFor_x3f(lean_object*, lean_object*); +static lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3___closed__1; lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*); -lean_object* l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getStructureFields_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4___closed__1; lean_object* l_Lean_getStructureLikeNumFields(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_getAllParentStructures_visit___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_registerStructure___spec__1(size_t, size_t, lean_object*); -static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__13; static lean_object* l___private_Lean_Structure_0__Lean_StructureState_map___default___closed__1; +lean_object* l_Lean_getDefaultFnForField_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_getPathToBaseStructureAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_instInhabitedStructureInfo; lean_object* l_Lean_isSubobjectField_x3f(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getParentStructures_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4___lambda__2(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__21; +lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4___lambda__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_structureExt___elambda__2(lean_object*); lean_object* lean_string_length(lean_object*); +static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__13; lean_object* l_Lean_findField_x3f(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_structureExt___closed__6; -lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4___lambda__1(lean_object*, lean_object*); lean_object* l_Lean_getPathToBaseStructureAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_findField_x3f___closed__1; +static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__23; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Structure_0__Lean_getStructureFieldsFlattenedAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_findField_x3f___closed__2; lean_object* l_Lean_isSubobjectField_x3f_match__1(lean_object*); lean_object* l_Lean_getStructureLikeNumFields_match__1(lean_object*); lean_object* l_Array_binSearchAux___at_Lean_getFieldInfo_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getAllParentStructures_visit(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getPathToBaseStructureAux_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_find_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SimplePersistentEnvExtension_getState___at_Lean_getStructureInfo_x3f___spec__1___boxed(lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_251____lambda__1(lean_object*, lean_object*); lean_object* l_List_lengthAux___rarg(lean_object*, lean_object*); +uint8_t l_Lean_StructureFieldInfo_inferMod___default; lean_object* l_Lean_getPathToBaseStructure_x3f___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_isSubobjectField_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_EStateM_pure___rarg(lean_object*, lean_object*); @@ -243,33 +259,57 @@ uint8_t l_Lean_isStructureLike(lean_object*, lean_object*); uint32_t lean_uint32_of_nat(lean_object*); static lean_object* l_Lean_instInhabitedStructureDescr___closed__1; lean_object* l_Lean_StructureFieldInfo_lt___boxed(lean_object*, lean_object*); -static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__6; -static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__12; lean_object* l_Lean_findField_x3f___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__6; +lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3(lean_object*, lean_object*); +static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__12; lean_object* l_Lean_getStructureFields_match__1(lean_object*); lean_object* lean_nat_to_int(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_findField_x3f___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_structureExt___elambda__4___rarg___closed__3; +static lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_251____closed__5; lean_object* l___private_Lean_Structure_0__Lean_getStructureFieldsFlattenedAux(lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_Array_forInUnsafe_loop___at_Lean_getAllParentStructures_visit___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__26; uint8_t l_Lean_isStructure(lean_object*, lean_object*); static uint32_t l_Lean_structureExt___elambda__4___rarg___closed__1; lean_object* l_Lean_getPathToBaseStructureAux(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); extern lean_object* l_Lean_Name_instBEqName; static lean_object* l_Lean_structureExt___elambda__4___rarg___closed__2; +static lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__31; lean_object* l_Repr_addAppParen(lean_object*, lean_object*); +static uint8_t _init_l_Lean_StructureFieldInfo_binderInfo___default() { +_start: +{ +uint8_t x_1; +x_1 = 0; +return x_1; +} +} +static uint8_t _init_l_Lean_StructureFieldInfo_inferMod___default() { +_start: +{ +uint8_t x_1; +x_1 = 0; +return x_1; +} +} static lean_object* _init_l_Lean_instInhabitedStructureFieldInfo___closed__1() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; +lean_object* x_1; lean_object* x_2; uint8_t x_3; uint8_t x_4; lean_object* x_5; x_1 = lean_box(0); x_2 = lean_box(0); -x_3 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_2); -lean_ctor_set(x_3, 2, x_1); -return x_3; +x_3 = 0; +x_4 = 0; +x_5 = lean_alloc_ctor(0, 3, 2); +lean_ctor_set(x_5, 0, x_2); +lean_ctor_set(x_5, 1, x_2); +lean_ctor_set(x_5, 2, x_1); +lean_ctor_set_uint8(x_5, sizeof(void*)*3, x_3); +lean_ctor_set_uint8(x_5, sizeof(void*)*3 + 1, x_4); +return x_5; } } static lean_object* _init_l_Lean_instInhabitedStructureFieldInfo() { @@ -280,7 +320,7 @@ x_1 = l_Lean_instInhabitedStructureFieldInfo___closed__1; return x_1; } } -static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__1() { +static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__1() { _start: { lean_object* x_1; @@ -288,29 +328,29 @@ x_1 = lean_mk_string("fieldName"); return x_1; } } -static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__2() { +static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__1; +x_1 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____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_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__3() { +static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__2; +x_2 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__2; x_3 = lean_alloc_ctor(4, 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___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__4() { +static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__4() { _start: { lean_object* x_1; @@ -318,29 +358,29 @@ x_1 = lean_mk_string(" := "); return x_1; } } -static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__5() { +static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__4; +x_1 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__4; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__6() { +static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__3; -x_2 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__5; +x_1 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__3; +x_2 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__5; x_3 = lean_alloc_ctor(4, 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___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__7() { +static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__7() { _start: { lean_object* x_1; @@ -348,17 +388,17 @@ x_1 = lean_mk_string("`"); return x_1; } } -static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__8() { +static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__7; +x_1 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____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___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__9() { +static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__9() { _start: { lean_object* x_1; @@ -366,17 +406,17 @@ x_1 = lean_mk_string(","); return x_1; } } -static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__10() { +static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__10() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__9; +x_1 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__9; 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_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__11() { +static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__11() { _start: { lean_object* x_1; @@ -384,17 +424,17 @@ x_1 = lean_mk_string("projFn"); return x_1; } } -static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__12() { +static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__12() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__11; +x_1 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__11; 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_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__13() { +static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__13() { _start: { lean_object* x_1; @@ -402,17 +442,53 @@ x_1 = lean_mk_string("subobject?"); return x_1; } } -static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__14() { +static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__14() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__13; +x_1 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____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___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__15() { +static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__15() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("binderInfo"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__16() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__15; +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_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__17() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("inferMod"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__18() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__17; +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_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__19() { _start: { lean_object* x_1; @@ -420,35 +496,35 @@ x_1 = lean_mk_string("{ "); return x_1; } } -static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__16() { +static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__20() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__15; +x_1 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__19; x_2 = lean_string_length(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__17() { +static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__21() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__16; +x_1 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__20; x_2 = lean_nat_to_int(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__18() { +static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__22() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__15; +x_1 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__19; 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_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__19() { +static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__23() { _start: { lean_object* x_1; @@ -456,17 +532,53 @@ x_1 = lean_mk_string(" }"); return x_1; } } -static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__20() { +static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__24() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__19; +x_1 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__23; 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_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__21() { +static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__25() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("false"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__26() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__25; +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_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__27() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("true"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__28() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__27; +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_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__29() { _start: { lean_object* x_1; @@ -474,17 +586,17 @@ x_1 = lean_mk_string("none"); return x_1; } } -static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__22() { +static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__30() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__21; +x_1 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__29; 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_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__23() { +static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__31() { _start: { lean_object* x_1; @@ -492,35 +604,35 @@ x_1 = lean_mk_string("some "); return x_1; } } -static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__24() { +static lean_object* _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__32() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__23; +x_1 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__31; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41_(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61_(lean_object* x_1, lean_object* x_2) { _start: { -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* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; x_3 = lean_ctor_get(x_1, 0); lean_inc(x_3); x_4 = 1; x_5 = l_Lean_Name_toString(x_3, x_4); x_6 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_6, 0, x_5); -x_7 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__8; +x_7 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__8; x_8 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_8, 0, x_7); lean_ctor_set(x_8, 1, x_6); -x_9 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__6; +x_9 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__6; x_10 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_10, 0, x_9); lean_ctor_set(x_10, 1, x_8); -x_11 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__10; +x_11 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__10; x_12 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -528,11 +640,11 @@ x_13 = lean_box(1); x_14 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); -x_15 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__12; +x_15 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__12; x_16 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_16, 0, x_14); lean_ctor_set(x_16, 1, x_15); -x_17 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__5; +x_17 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__5; x_18 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_18, 0, x_16); lean_ctor_set(x_18, 1, x_17); @@ -553,7 +665,7 @@ lean_ctor_set(x_24, 1, x_11); x_25 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_25, 0, x_24); lean_ctor_set(x_25, 1, x_13); -x_26 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__14; +x_26 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__14; x_27 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_27, 0, x_25); lean_ctor_set(x_27, 1, x_26); @@ -562,62 +674,89 @@ lean_ctor_set(x_28, 0, x_27); lean_ctor_set(x_28, 1, x_17); x_29 = lean_ctor_get(x_1, 2); lean_inc(x_29); +x_30 = lean_ctor_get_uint8(x_1, sizeof(void*)*3); +x_31 = lean_unsigned_to_nat(0u); +x_32 = l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_365_(x_30, x_31); +x_33 = lean_ctor_get_uint8(x_1, sizeof(void*)*3 + 1); lean_dec(x_1); 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; uint8_t x_38; lean_object* x_39; -x_30 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__22; -x_31 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_31, 0, x_28); -lean_ctor_set(x_31, 1, x_30); -x_32 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__18; -x_33 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_31); -x_34 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__20; -x_35 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_35, 0, x_33); -lean_ctor_set(x_35, 1, x_34); -x_36 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__17; -x_37 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_35); -x_38 = 0; -x_39 = lean_alloc_ctor(5, 1, 1); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set_uint8(x_39, sizeof(void*)*1, x_38); -return x_39; +lean_object* x_68; +x_68 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__30; +x_34 = x_68; +goto block_67; } 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; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; -x_40 = lean_ctor_get(x_29, 0); -lean_inc(x_40); +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; +x_69 = lean_ctor_get(x_29, 0); +lean_inc(x_69); lean_dec(x_29); -x_41 = l_Lean_Name_toString(x_40, x_4); -x_42 = lean_alloc_ctor(2, 1, 0); +x_70 = l_Lean_Name_toString(x_69, x_4); +x_71 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_71, 0, x_70); +x_72 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_72, 0, x_7); +lean_ctor_set(x_72, 1, x_71); +x_73 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__32; +x_74 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_72); +x_75 = l_Repr_addAppParen(x_74, x_31); +x_34 = x_75; +goto block_67; +} +block_67: +{ +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_35 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_35, 0, x_28); +lean_ctor_set(x_35, 1, x_34); +x_36 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_11); +x_37 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_13); +x_38 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__16; +x_39 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +x_40 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_17); +x_41 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_32); +x_42 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_11); x_43 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_43, 0, x_7); -lean_ctor_set(x_43, 1, x_42); -x_44 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__24; +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_13); +x_44 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__18; x_45 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_45, 1, x_43); -x_46 = lean_unsigned_to_nat(0u); -x_47 = l_Repr_addAppParen(x_45, x_46); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +x_46 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_17); +if (x_33 == 0) +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; +x_47 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__26; x_48 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_48, 0, x_28); +lean_ctor_set(x_48, 0, x_46); lean_ctor_set(x_48, 1, x_47); -x_49 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__18; +x_49 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__22; x_50 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_50, 0, x_49); lean_ctor_set(x_50, 1, x_48); -x_51 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__20; +x_51 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__24; x_52 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_52, 0, x_50); lean_ctor_set(x_52, 1, x_51); -x_53 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__17; +x_53 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__21; x_54 = lean_alloc_ctor(3, 2, 0); lean_ctor_set(x_54, 0, x_53); lean_ctor_set(x_54, 1, x_52); @@ -627,13 +766,39 @@ lean_ctor_set(x_56, 0, x_54); lean_ctor_set_uint8(x_56, sizeof(void*)*1, x_55); return x_56; } +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; lean_object* x_66; +x_57 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__28; +x_58 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_58, 0, x_46); +lean_ctor_set(x_58, 1, x_57); +x_59 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__22; +x_60 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_58); +x_61 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__24; +x_62 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_62, 0, x_60); +lean_ctor_set(x_62, 1, x_61); +x_63 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__21; +x_64 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_62); +x_65 = 0; +x_66 = lean_alloc_ctor(5, 1, 1); +lean_ctor_set(x_66, 0, x_64); +lean_ctor_set_uint8(x_66, sizeof(void*)*1, x_65); +return x_66; } } -lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____boxed(lean_object* x_1, lean_object* x_2) { +} +} +lean_object* l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41_(x_1, x_2); +x_3 = l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61_(x_1, x_2); lean_dec(x_2); return x_3; } @@ -642,7 +807,7 @@ static lean_object* _init_l_Lean_instReprStructureFieldInfo___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____boxed), 2, 0); return x_1; } } @@ -788,7 +953,7 @@ x_1 = l___private_Lean_Structure_0__Lean_StructureState_map___default___closed__ return x_1; } } -lean_object* l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Structure___hyg_197____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* l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { uint8_t x_7; @@ -841,7 +1006,7 @@ goto _start; } } } -static lean_object* _init_l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__1___closed__1() { +static lean_object* _init_l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__1___closed__1() { _start: { lean_object* x_1; @@ -849,7 +1014,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_StructureInfo_lt___boxed), 2, 0); return x_1; } } -lean_object* l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_13; @@ -902,9 +1067,9 @@ if (x_23 == 0) { lean_object* x_24; lean_object* x_25; lean_dec(x_16); -x_24 = l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__1___closed__1; +x_24 = l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__1___closed__1; lean_inc_n(x_2, 2); -x_25 = l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__2(x_24, x_3, x_19, x_17, x_2, x_2); +x_25 = l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__2(x_24, x_3, x_19, x_17, x_2, x_2); x_4 = x_25; goto block_12; } @@ -915,9 +1080,9 @@ lean_dec(x_19); x_26 = lean_array_swap(x_17, x_16, x_3); lean_dec(x_16); x_27 = lean_array_get(x_18, x_26, x_3); -x_28 = l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__1___closed__1; +x_28 = l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__1___closed__1; lean_inc_n(x_2, 2); -x_29 = l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__2(x_28, x_3, x_27, x_26, x_2, x_2); +x_29 = l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__2(x_28, x_3, x_27, x_26, x_2, x_2); x_4 = x_29; goto block_12; } @@ -935,9 +1100,9 @@ if (x_33 == 0) { lean_object* x_34; lean_object* x_35; lean_dec(x_16); -x_34 = l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__1___closed__1; +x_34 = l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__1___closed__1; lean_inc_n(x_2, 2); -x_35 = l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__2(x_34, x_3, x_32, x_30, x_2, x_2); +x_35 = l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__2(x_34, x_3, x_32, x_30, x_2, x_2); x_4 = x_35; goto block_12; } @@ -948,9 +1113,9 @@ lean_dec(x_32); x_36 = lean_array_swap(x_30, x_16, x_3); lean_dec(x_16); x_37 = lean_array_get(x_18, x_36, x_3); -x_38 = l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__1___closed__1; +x_38 = l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__1___closed__1; lean_inc_n(x_2, 2); -x_39 = l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__2(x_38, x_3, x_37, x_36, x_2, x_2); +x_39 = l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__2(x_38, x_3, x_37, x_36, x_2, x_2); x_4 = x_39; goto block_12; } @@ -969,7 +1134,7 @@ x_7 = lean_nat_dec_le(x_3, x_5); if (x_7 == 0) { lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_8 = l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__1(x_6, x_2, x_5); +x_8 = l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__1(x_6, x_2, x_5); x_9 = lean_unsigned_to_nat(1u); x_10 = lean_nat_add(x_5, x_9); lean_dec(x_5); @@ -986,7 +1151,7 @@ return x_6; } } } -uint8_t l_Array_anyMUnsafe_any___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__5(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { +uint8_t l_Array_anyMUnsafe_any___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__5(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { _start: { uint8_t x_5; @@ -1024,7 +1189,7 @@ return x_14; } } } -lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4___lambda__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4___lambda__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; @@ -1038,15 +1203,15 @@ lean_ctor_set(x_5, 1, x_2); return x_5; } } -static lean_object* _init_l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4___lambda__2___closed__1() { +static lean_object* _init_l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4___lambda__2___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4___lambda__1), 2, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4___lambda__1), 2, 0); return x_1; } } -lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; @@ -1063,7 +1228,7 @@ lean_inc(x_8); x_9 = lean_ctor_get(x_1, 5); lean_inc(x_9); lean_dec(x_1); -x_10 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4___lambda__2___closed__1; +x_10 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4___lambda__2___closed__1; x_11 = lean_alloc_closure((void*)(l_EStateM_bind___rarg), 3, 2); lean_closure_set(x_11, 0, x_5); lean_closure_set(x_11, 1, x_10); @@ -1144,7 +1309,7 @@ return x_30; } } } -static lean_object* _init_l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4___closed__1() { +static lean_object* _init_l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4___closed__1() { _start: { lean_object* x_1; @@ -1152,7 +1317,7 @@ x_1 = lean_mk_string("invalid environment extension, '"); return x_1; } } -static lean_object* _init_l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4___closed__2() { +static lean_object* _init_l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4___closed__2() { _start: { lean_object* x_1; @@ -1160,7 +1325,7 @@ x_1 = lean_mk_string("' has already been used"); return x_1; } } -lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; uint8_t x_5; @@ -1182,7 +1347,7 @@ lean_dec(x_8); lean_free_object(x_4); lean_dec(x_6); x_11 = lean_box(0); -x_12 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4___lambda__2(x_1, x_11, x_7); +x_12 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4___lambda__2(x_1, x_11, x_7); return x_12; } else @@ -1196,7 +1361,7 @@ lean_dec(x_8); lean_free_object(x_4); lean_dec(x_6); x_14 = lean_box(0); -x_15 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4___lambda__2(x_1, x_14, x_7); +x_15 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4___lambda__2(x_1, x_14, x_7); return x_15; } else @@ -1205,14 +1370,14 @@ size_t x_16; size_t x_17; uint8_t x_18; x_16 = 0; x_17 = lean_usize_of_nat(x_8); lean_dec(x_8); -x_18 = l_Array_anyMUnsafe_any___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__5(x_1, x_6, x_16, x_17); +x_18 = l_Array_anyMUnsafe_any___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__5(x_1, x_6, x_16, x_17); lean_dec(x_6); if (x_18 == 0) { lean_object* x_19; lean_object* x_20; lean_free_object(x_4); x_19 = lean_box(0); -x_20 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4___lambda__2(x_1, x_19, x_7); +x_20 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4___lambda__2(x_1, x_19, x_7); return x_20; } else @@ -1223,10 +1388,10 @@ lean_inc(x_21); lean_dec(x_1); x_22 = 1; x_23 = l_Lean_Name_toString(x_21, x_22); -x_24 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4___closed__1; +x_24 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4___closed__1; x_25 = lean_string_append(x_24, x_23); lean_dec(x_23); -x_26 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4___closed__2; +x_26 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4___closed__2; x_27 = lean_string_append(x_25, x_26); x_28 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_28, 0, x_27); @@ -1254,7 +1419,7 @@ lean_object* x_34; lean_object* x_35; lean_dec(x_31); lean_dec(x_29); x_34 = lean_box(0); -x_35 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4___lambda__2(x_1, x_34, x_30); +x_35 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4___lambda__2(x_1, x_34, x_30); return x_35; } else @@ -1267,7 +1432,7 @@ lean_object* x_37; lean_object* x_38; lean_dec(x_31); lean_dec(x_29); x_37 = lean_box(0); -x_38 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4___lambda__2(x_1, x_37, x_30); +x_38 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4___lambda__2(x_1, x_37, x_30); return x_38; } else @@ -1276,13 +1441,13 @@ size_t x_39; size_t x_40; uint8_t x_41; x_39 = 0; x_40 = lean_usize_of_nat(x_31); lean_dec(x_31); -x_41 = l_Array_anyMUnsafe_any___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__5(x_1, x_29, x_39, x_40); +x_41 = l_Array_anyMUnsafe_any___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__5(x_1, x_29, x_39, x_40); lean_dec(x_29); if (x_41 == 0) { lean_object* x_42; lean_object* x_43; x_42 = lean_box(0); -x_43 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4___lambda__2(x_1, x_42, x_30); +x_43 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4___lambda__2(x_1, x_42, x_30); return x_43; } else @@ -1293,10 +1458,10 @@ lean_inc(x_44); lean_dec(x_1); x_45 = 1; x_46 = l_Lean_Name_toString(x_44, x_45); -x_47 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4___closed__1; +x_47 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4___closed__1; x_48 = lean_string_append(x_47, x_46); lean_dec(x_46); -x_49 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4___closed__2; +x_49 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4___closed__2; x_50 = lean_string_append(x_48, x_49); x_51 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_51, 0, x_50); @@ -1310,7 +1475,7 @@ return x_52; } } } -lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; @@ -1324,7 +1489,7 @@ lean_ctor_set(x_8, 1, x_5); return x_8; } } -lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -1369,7 +1534,7 @@ return x_15; } } } -lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3___lambda__3(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3___lambda__3(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; @@ -1384,7 +1549,7 @@ x_6 = lean_apply_1(x_3, x_5); return x_6; } } -static lean_object* _init_l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3___lambda__4___closed__1() { +static lean_object* _init_l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3___lambda__4___closed__1() { _start: { lean_object* x_1; @@ -1392,17 +1557,17 @@ x_1 = lean_mk_string("number of local entries: "); return x_1; } } -static lean_object* _init_l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3___lambda__4___closed__2() { +static lean_object* _init_l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3___lambda__4___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3___lambda__4___closed__1; +x_1 = l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3___lambda__4___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3___lambda__4(lean_object* x_1) { +lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3___lambda__4(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; lean_object* x_7; lean_object* x_8; @@ -1412,22 +1577,22 @@ x_4 = l_List_lengthAux___rarg(x_2, x_3); x_5 = l_Nat_repr(x_4); x_6 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_6, 0, x_5); -x_7 = l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3___lambda__4___closed__2; +x_7 = l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3___lambda__4___closed__2; x_8 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_8, 0, x_7); lean_ctor_set(x_8, 1, x_6); return x_8; } } -static lean_object* _init_l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3___closed__1() { +static lean_object* _init_l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3___lambda__4___boxed), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3___lambda__4___boxed), 1, 0); return x_1; } } -lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; @@ -1444,15 +1609,15 @@ lean_ctor_set(x_8, 0, x_5); lean_ctor_set(x_8, 1, x_7); x_9 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1); lean_closure_set(x_9, 0, x_8); -x_10 = lean_alloc_closure((void*)(l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3___lambda__1___boxed), 5, 2); +x_10 = lean_alloc_closure((void*)(l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3___lambda__1___boxed), 5, 2); lean_closure_set(x_10, 0, x_4); lean_closure_set(x_10, 1, x_5); lean_inc(x_1); -x_11 = lean_alloc_closure((void*)(l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3___lambda__2), 3, 1); +x_11 = lean_alloc_closure((void*)(l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3___lambda__2), 3, 1); lean_closure_set(x_11, 0, x_1); -x_12 = lean_alloc_closure((void*)(l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3___lambda__3), 2, 1); +x_12 = lean_alloc_closure((void*)(l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3___lambda__3), 2, 1); lean_closure_set(x_12, 0, x_1); -x_13 = l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3___closed__1; +x_13 = l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3___closed__1; x_14 = lean_alloc_ctor(0, 6, 0); lean_ctor_set(x_14, 0, x_3); lean_ctor_set(x_14, 1, x_9); @@ -1460,11 +1625,11 @@ lean_ctor_set(x_14, 2, x_10); lean_ctor_set(x_14, 3, x_11); lean_ctor_set(x_14, 4, x_12); lean_ctor_set(x_14, 5, x_13); -x_15 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4(x_14, x_2); +x_15 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4(x_14, x_2); return x_15; } } -lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_197____lambda__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_251____lambda__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; @@ -1476,7 +1641,7 @@ x_6 = l_Std_PersistentHashMap_insert___rarg(x_4, x_5, x_1, x_3, x_2); return x_6; } } -lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_197____lambda__2(lean_object* x_1) { +lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_251____lambda__2(lean_object* x_1) { _start: { lean_object* x_2; @@ -1484,7 +1649,7 @@ x_2 = l___private_Lean_Structure_0__Lean_StructureState_map___default___closed__ return x_2; } } -lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_197____lambda__3(lean_object* x_1) { +lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_251____lambda__3(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; lean_object* x_7; lean_object* x_8; lean_object* x_9; @@ -1497,12 +1662,12 @@ x_6 = lean_unsigned_to_nat(1u); x_7 = lean_nat_sub(x_5, x_6); lean_dec(x_5); x_8 = lean_unsigned_to_nat(0u); -x_9 = l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__1(x_4, x_8, x_7); +x_9 = l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__1(x_4, x_8, x_7); lean_dec(x_7); return x_9; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Structure___hyg_197____closed__1() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Structure___hyg_251____closed__1() { _start: { lean_object* x_1; @@ -1510,48 +1675,48 @@ x_1 = lean_mk_string("structExt"); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Structure___hyg_197____closed__2() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Structure___hyg_251____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_initFn____x40_Lean_Structure___hyg_197____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Structure___hyg_251____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Structure___hyg_197____closed__3() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Structure___hyg_251____closed__3() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_initFn____x40_Lean_Structure___hyg_197____lambda__1), 2, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_initFn____x40_Lean_Structure___hyg_251____lambda__1), 2, 0); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Structure___hyg_197____closed__4() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Structure___hyg_251____closed__4() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_initFn____x40_Lean_Structure___hyg_197____lambda__2___boxed), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_initFn____x40_Lean_Structure___hyg_251____lambda__2___boxed), 1, 0); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Structure___hyg_197____closed__5() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Structure___hyg_251____closed__5() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_initFn____x40_Lean_Structure___hyg_197____lambda__3), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_initFn____x40_Lean_Structure___hyg_251____lambda__3), 1, 0); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Structure___hyg_197____closed__6() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Structure___hyg_251____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_initFn____x40_Lean_Structure___hyg_197____closed__2; -x_2 = l_Lean_initFn____x40_Lean_Structure___hyg_197____closed__3; -x_3 = l_Lean_initFn____x40_Lean_Structure___hyg_197____closed__4; -x_4 = l_Lean_initFn____x40_Lean_Structure___hyg_197____closed__5; +x_1 = l_Lean_initFn____x40_Lean_Structure___hyg_251____closed__2; +x_2 = l_Lean_initFn____x40_Lean_Structure___hyg_251____closed__3; +x_3 = l_Lean_initFn____x40_Lean_Structure___hyg_251____closed__4; +x_4 = l_Lean_initFn____x40_Lean_Structure___hyg_251____closed__5; x_5 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); @@ -1560,34 +1725,34 @@ lean_ctor_set(x_5, 3, x_4); return x_5; } } -lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_197_(lean_object* x_1) { +lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_251_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_initFn____x40_Lean_Structure___hyg_197____closed__6; -x_3 = l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3(x_2, x_1); +x_2 = l_Lean_initFn____x40_Lean_Structure___hyg_251____closed__6; +x_3 = l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3(x_2, x_1); return x_3; } } -lean_object* l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Structure___hyg_197____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* l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; -x_7 = l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__2(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__2(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_2); return x_7; } } -lean_object* l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__1(x_1, x_2, x_3); +x_4 = l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__1(x_1, x_2, x_3); lean_dec(x_3); return x_4; } } -lean_object* l_Array_anyMUnsafe_any___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_anyMUnsafe_any___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { size_t x_5; size_t x_6; uint8_t x_7; lean_object* x_8; @@ -1595,45 +1760,45 @@ x_5 = lean_unbox_usize(x_3); lean_dec(x_3); x_6 = lean_unbox_usize(x_4); lean_dec(x_4); -x_7 = l_Array_anyMUnsafe_any___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__5(x_1, x_2, x_5, x_6); +x_7 = l_Array_anyMUnsafe_any___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__5(x_1, x_2, x_5, x_6); lean_dec(x_2); lean_dec(x_1); x_8 = lean_box(x_7); return x_8; } } -lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4___lambda__2(x_1, x_2, x_3); +x_4 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4___lambda__2(x_1, x_2, x_3); lean_dec(x_2); return x_4; } } -lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3___lambda__1(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3___lambda__1(x_1, x_2, x_3, x_4, x_5); lean_dec(x_4); return x_6; } } -lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3___lambda__4___boxed(lean_object* x_1) { +lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3___lambda__4___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3___lambda__4(x_1); +x_2 = l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3___lambda__4(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_197____lambda__2___boxed(lean_object* x_1) { +lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_251____lambda__2___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_initFn____x40_Lean_Structure___hyg_197____lambda__2(x_1); +x_2 = l_Lean_initFn____x40_Lean_Structure___hyg_251____lambda__2(x_1); lean_dec(x_1); return x_2; } @@ -2654,7 +2819,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_getStructureCtor___closed__1; x_2 = l_Lean_getStructureCtor___closed__2; -x_3 = lean_unsigned_to_nat(66u); +x_3 = lean_unsigned_to_nat(68u); x_4 = lean_unsigned_to_nat(9u); x_5 = l_Lean_getStructureCtor___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -2675,7 +2840,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_getStructureCtor___closed__1; x_2 = l_Lean_getStructureCtor___closed__2; -x_3 = lean_unsigned_to_nat(65u); +x_3 = lean_unsigned_to_nat(67u); x_4 = lean_unsigned_to_nat(11u); x_5 = l_Lean_getStructureCtor___closed__5; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -2853,7 +3018,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_getStructureCtor___closed__1; x_2 = l_Lean_getStructureFields___closed__1; -x_3 = lean_unsigned_to_nat(73u); +x_3 = lean_unsigned_to_nat(75u); x_4 = lean_unsigned_to_nat(4u); x_5 = l_Lean_getStructureCtor___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -2976,7 +3141,7 @@ return x_5; } else { -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; x_6 = lean_ctor_get(x_4, 0); lean_inc(x_6); lean_dec(x_4); @@ -2985,32 +3150,36 @@ lean_inc(x_7); lean_dec(x_6); x_8 = lean_box(0); x_9 = lean_box(0); -x_10 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_10, 0, x_3); -lean_ctor_set(x_10, 1, x_9); -lean_ctor_set(x_10, 2, x_8); -x_11 = lean_array_get_size(x_7); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_sub(x_11, x_12); -x_14 = lean_unsigned_to_nat(0u); -x_15 = lean_nat_dec_lt(x_14, x_11); -lean_dec(x_11); -if (x_15 == 0) -{ -lean_object* x_16; +x_10 = 0; +x_11 = 0; +x_12 = lean_alloc_ctor(0, 3, 2); +lean_ctor_set(x_12, 0, x_3); +lean_ctor_set(x_12, 1, x_9); +lean_ctor_set(x_12, 2, x_8); +lean_ctor_set_uint8(x_12, sizeof(void*)*3, x_10); +lean_ctor_set_uint8(x_12, sizeof(void*)*3 + 1, x_11); +x_13 = lean_array_get_size(x_7); +x_14 = lean_unsigned_to_nat(1u); +x_15 = lean_nat_sub(x_13, x_14); +x_16 = lean_unsigned_to_nat(0u); +x_17 = lean_nat_dec_lt(x_16, x_13); lean_dec(x_13); -lean_dec(x_10); +if (x_17 == 0) +{ +lean_object* x_18; +lean_dec(x_15); +lean_dec(x_12); lean_dec(x_7); -x_16 = lean_box(0); -return x_16; +x_18 = lean_box(0); +return x_18; } else { -lean_object* x_17; -x_17 = l_Array_binSearchAux___at_Lean_getFieldInfo_x3f___spec__1(x_7, x_10, x_14, x_13); -lean_dec(x_10); +lean_object* x_19; +x_19 = l_Array_binSearchAux___at_Lean_getFieldInfo_x3f___spec__1(x_7, x_12, x_16, x_15); +lean_dec(x_12); lean_dec(x_7); -return x_17; +return x_19; } } } @@ -3805,6 +3974,160 @@ return x_11; } } } +static lean_object* _init_l_Lean_mkDefaultFnOfProjFn___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("_default"); +return x_1; +} +} +static lean_object* _init_l_Lean_mkDefaultFnOfProjFn___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_mkDefaultFnOfProjFn___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* l_Lean_mkDefaultFnOfProjFn(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_mkDefaultFnOfProjFn___closed__2; +x_3 = l_Lean_Name_append(x_1, x_2); +return x_3; +} +} +lean_object* l_Lean_mkDefaultFnOfProjFn___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_mkDefaultFnOfProjFn(x_1); +lean_dec(x_1); +return x_2; +} +} +lean_object* l_Lean_getDefaultFnForField_x3f_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_apply_1(x_3, x_1); +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_3); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_1(x_2, x_5); +return x_6; +} +} +} +lean_object* l_Lean_getDefaultFnForField_x3f_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_getDefaultFnForField_x3f_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_getDefaultFnForField_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_4 = l_Lean_getProjFnForField_x3f(x_1, x_2, x_3); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_5 = l_Lean_Name_append(x_2, x_3); +lean_dec(x_2); +x_6 = l_Lean_mkDefaultFnOfProjFn(x_5); +lean_dec(x_5); +lean_inc(x_6); +x_7 = l_Lean_Environment_contains(x_1, x_6); +if (x_7 == 0) +{ +lean_object* x_8; +lean_dec(x_6); +x_8 = lean_box(0); +return x_8; +} +else +{ +lean_object* x_9; +x_9 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_9, 0, x_6); +return x_9; +} +} +else +{ +uint8_t x_10; +lean_dec(x_3); +lean_dec(x_2); +x_10 = !lean_is_exclusive(x_4); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_11 = lean_ctor_get(x_4, 0); +x_12 = l_Lean_mkDefaultFnOfProjFn(x_11); +lean_dec(x_11); +lean_inc(x_12); +x_13 = l_Lean_Environment_contains(x_1, x_12); +if (x_13 == 0) +{ +lean_object* x_14; +lean_dec(x_12); +lean_free_object(x_4); +x_14 = lean_box(0); +return x_14; +} +else +{ +lean_ctor_set(x_4, 0, x_12); +return x_4; +} +} +else +{ +lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_15 = lean_ctor_get(x_4, 0); +lean_inc(x_15); +lean_dec(x_4); +x_16 = l_Lean_mkDefaultFnOfProjFn(x_15); +lean_dec(x_15); +lean_inc(x_16); +x_17 = l_Lean_Environment_contains(x_1, x_16); +if (x_17 == 0) +{ +lean_object* x_18; +lean_dec(x_16); +x_18 = lean_box(0); +return x_18; +} +else +{ +lean_object* x_19; +x_19 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_19, 0, x_16); +return x_19; +} +} +} +} +} lean_object* l_Lean_getPathToBaseStructureAux_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -4339,58 +4662,76 @@ lean_dec_ref(res); res = initialize_Lean_ProjFns(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l_Lean_StructureFieldInfo_binderInfo___default = _init_l_Lean_StructureFieldInfo_binderInfo___default(); +l_Lean_StructureFieldInfo_inferMod___default = _init_l_Lean_StructureFieldInfo_inferMod___default(); l_Lean_instInhabitedStructureFieldInfo___closed__1 = _init_l_Lean_instInhabitedStructureFieldInfo___closed__1(); lean_mark_persistent(l_Lean_instInhabitedStructureFieldInfo___closed__1); l_Lean_instInhabitedStructureFieldInfo = _init_l_Lean_instInhabitedStructureFieldInfo(); lean_mark_persistent(l_Lean_instInhabitedStructureFieldInfo); -l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__1 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__1(); -lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__1); -l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__2 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__2(); -lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__2); -l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__3 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__3(); -lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__3); -l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__4 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__4(); -lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__4); -l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__5 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__5(); -lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__5); -l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__6 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__6(); -lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__6); -l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__7 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__7(); -lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__7); -l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__8 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__8(); -lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__8); -l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__9 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__9(); -lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__9); -l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__10 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__10(); -lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__10); -l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__11 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__11(); -lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__11); -l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__12 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__12(); -lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__12); -l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__13 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__13(); -lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__13); -l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__14 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__14(); -lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__14); -l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__15 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__15(); -lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__15); -l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__16 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__16(); -lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__16); -l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__17 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__17(); -lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__17); -l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__18 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__18(); -lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__18); -l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__19 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__19(); -lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__19); -l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__20 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__20(); -lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__20); -l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__21 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__21(); -lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__21); -l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__22 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__22(); -lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__22); -l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__23 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__23(); -lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__23); -l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__24 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__24(); -lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_41____closed__24); +l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__1 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__1(); +lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__1); +l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__2 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__2(); +lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__2); +l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__3 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__3(); +lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__3); +l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__4 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__4(); +lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__4); +l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__5 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__5(); +lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__5); +l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__6 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__6(); +lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__6); +l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__7 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__7(); +lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__7); +l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__8 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__8(); +lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__8); +l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__9 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__9(); +lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__9); +l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__10 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__10(); +lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__10); +l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__11 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__11(); +lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__11); +l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__12 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__12(); +lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__12); +l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__13 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__13(); +lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__13); +l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__14 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__14(); +lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__14); +l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__15 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__15(); +lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__15); +l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__16 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__16(); +lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__16); +l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__17 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__17(); +lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__17); +l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__18 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__18(); +lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__18); +l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__19 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__19(); +lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__19); +l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__20 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__20(); +lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__20); +l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__21 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__21(); +lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__21); +l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__22 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__22(); +lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__22); +l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__23 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__23(); +lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__23); +l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__24 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__24(); +lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__24); +l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__25 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__25(); +lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__25); +l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__26 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__26(); +lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__26); +l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__27 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__27(); +lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__27); +l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__28 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__28(); +lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__28); +l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__29 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__29(); +lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__29); +l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__30 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__30(); +lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__30); +l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__31 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__31(); +lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__31); +l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__32 = _init_l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__32(); +lean_mark_persistent(l___private_Lean_Structure_0__Lean_reprStructureFieldInfo____x40_Lean_Structure___hyg_61____closed__32); l_Lean_instReprStructureFieldInfo___closed__1 = _init_l_Lean_instReprStructureFieldInfo___closed__1(); lean_mark_persistent(l_Lean_instReprStructureFieldInfo___closed__1); l_Lean_instReprStructureFieldInfo = _init_l_Lean_instReprStructureFieldInfo(); @@ -4415,32 +4756,32 @@ l___private_Lean_Structure_0__Lean_StructureState_map___default = _init_l___priv lean_mark_persistent(l___private_Lean_Structure_0__Lean_StructureState_map___default); l_Lean_instInhabitedStructureState = _init_l_Lean_instInhabitedStructureState(); lean_mark_persistent(l_Lean_instInhabitedStructureState); -l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__1___closed__1 = _init_l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__1___closed__1(); -lean_mark_persistent(l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__1___closed__1); -l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4___lambda__2___closed__1 = _init_l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4___lambda__2___closed__1(); -lean_mark_persistent(l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4___lambda__2___closed__1); -l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4___closed__1 = _init_l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4___closed__1(); -lean_mark_persistent(l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4___closed__1); -l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4___closed__2 = _init_l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4___closed__2(); -lean_mark_persistent(l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__4___closed__2); -l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3___lambda__4___closed__1 = _init_l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3___lambda__4___closed__1(); -lean_mark_persistent(l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3___lambda__4___closed__1); -l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3___lambda__4___closed__2 = _init_l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3___lambda__4___closed__2(); -lean_mark_persistent(l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3___lambda__4___closed__2); -l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3___closed__1 = _init_l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3___closed__1(); -lean_mark_persistent(l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_197____spec__3___closed__1); -l_Lean_initFn____x40_Lean_Structure___hyg_197____closed__1 = _init_l_Lean_initFn____x40_Lean_Structure___hyg_197____closed__1(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Structure___hyg_197____closed__1); -l_Lean_initFn____x40_Lean_Structure___hyg_197____closed__2 = _init_l_Lean_initFn____x40_Lean_Structure___hyg_197____closed__2(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Structure___hyg_197____closed__2); -l_Lean_initFn____x40_Lean_Structure___hyg_197____closed__3 = _init_l_Lean_initFn____x40_Lean_Structure___hyg_197____closed__3(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Structure___hyg_197____closed__3); -l_Lean_initFn____x40_Lean_Structure___hyg_197____closed__4 = _init_l_Lean_initFn____x40_Lean_Structure___hyg_197____closed__4(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Structure___hyg_197____closed__4); -l_Lean_initFn____x40_Lean_Structure___hyg_197____closed__5 = _init_l_Lean_initFn____x40_Lean_Structure___hyg_197____closed__5(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Structure___hyg_197____closed__5); -l_Lean_initFn____x40_Lean_Structure___hyg_197____closed__6 = _init_l_Lean_initFn____x40_Lean_Structure___hyg_197____closed__6(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Structure___hyg_197____closed__6); +l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__1___closed__1 = _init_l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__1___closed__1(); +lean_mark_persistent(l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__1___closed__1); +l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4___lambda__2___closed__1 = _init_l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4___lambda__2___closed__1); +l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4___closed__1 = _init_l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4___closed__1(); +lean_mark_persistent(l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4___closed__1); +l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4___closed__2 = _init_l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4___closed__2(); +lean_mark_persistent(l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__4___closed__2); +l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3___lambda__4___closed__1 = _init_l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3___lambda__4___closed__1(); +lean_mark_persistent(l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3___lambda__4___closed__1); +l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3___lambda__4___closed__2 = _init_l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3___lambda__4___closed__2(); +lean_mark_persistent(l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3___lambda__4___closed__2); +l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3___closed__1 = _init_l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3___closed__1(); +lean_mark_persistent(l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_251____spec__3___closed__1); +l_Lean_initFn____x40_Lean_Structure___hyg_251____closed__1 = _init_l_Lean_initFn____x40_Lean_Structure___hyg_251____closed__1(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Structure___hyg_251____closed__1); +l_Lean_initFn____x40_Lean_Structure___hyg_251____closed__2 = _init_l_Lean_initFn____x40_Lean_Structure___hyg_251____closed__2(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Structure___hyg_251____closed__2); +l_Lean_initFn____x40_Lean_Structure___hyg_251____closed__3 = _init_l_Lean_initFn____x40_Lean_Structure___hyg_251____closed__3(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Structure___hyg_251____closed__3); +l_Lean_initFn____x40_Lean_Structure___hyg_251____closed__4 = _init_l_Lean_initFn____x40_Lean_Structure___hyg_251____closed__4(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Structure___hyg_251____closed__4); +l_Lean_initFn____x40_Lean_Structure___hyg_251____closed__5 = _init_l_Lean_initFn____x40_Lean_Structure___hyg_251____closed__5(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Structure___hyg_251____closed__5); +l_Lean_initFn____x40_Lean_Structure___hyg_251____closed__6 = _init_l_Lean_initFn____x40_Lean_Structure___hyg_251____closed__6(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Structure___hyg_251____closed__6); l_Lean_structureExt___elambda__4___rarg___closed__1 = _init_l_Lean_structureExt___elambda__4___rarg___closed__1(); l_Lean_structureExt___elambda__4___rarg___closed__2 = _init_l_Lean_structureExt___elambda__4___rarg___closed__2(); lean_mark_persistent(l_Lean_structureExt___elambda__4___rarg___closed__2); @@ -4460,7 +4801,7 @@ l_Lean_structureExt___closed__6 = _init_l_Lean_structureExt___closed__6(); lean_mark_persistent(l_Lean_structureExt___closed__6); l_Lean_structureExt___closed__7 = _init_l_Lean_structureExt___closed__7(); lean_mark_persistent(l_Lean_structureExt___closed__7); -res = l_Lean_initFn____x40_Lean_Structure___hyg_197_(lean_io_mk_world()); +res = l_Lean_initFn____x40_Lean_Structure___hyg_251_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_structureExt = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_structureExt); @@ -4501,6 +4842,10 @@ l_Lean_findField_x3f___closed__1 = _init_l_Lean_findField_x3f___closed__1(); lean_mark_persistent(l_Lean_findField_x3f___closed__1); l_Lean_findField_x3f___closed__2 = _init_l_Lean_findField_x3f___closed__2(); lean_mark_persistent(l_Lean_findField_x3f___closed__2); +l_Lean_mkDefaultFnOfProjFn___closed__1 = _init_l_Lean_mkDefaultFnOfProjFn___closed__1(); +lean_mark_persistent(l_Lean_mkDefaultFnOfProjFn___closed__1); +l_Lean_mkDefaultFnOfProjFn___closed__2 = _init_l_Lean_mkDefaultFnOfProjFn___closed__2(); +lean_mark_persistent(l_Lean_mkDefaultFnOfProjFn___closed__2); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus