diff --git a/stage0/src/Lean/Elab/Structure.lean b/stage0/src/Lean/Elab/Structure.lean index 3c21c569ac..774e059545 100644 --- a/stage0/src/Lean/Elab/Structure.lean +++ b/stage0/src/Lean/Elab/Structure.lean @@ -258,26 +258,28 @@ private partial def withParents (view : StructView) (i : Nat) (infos : Array Str else k infos -private def elabFieldTypeValue (view : StructFieldView) (params : Array Expr) : TermElabM (Option Expr × Option Expr) := do +private def elabFieldTypeValue (view : StructFieldView) (params : Array Expr) (k : Option Expr → Option Expr → TermElabM α) : TermElabM α := do match view.type? with | none => match view.value? with - | none => pure (none, none) + | none => k none none | some valStx => + let params ← Term.addAutoBoundImplicits params let value ← Term.elabTerm valStx none let value ← mkLambdaFVars params value - pure (none, value) + k none value | some typeStx => - let type ← Term.elabType typeStx - match view.value? with - | none => - let type ← mkForallFVars params type - pure (type, none) - | some valStx => - let value ← Term.elabTermEnsuringType valStx type - let type ← mkForallFVars params type - let value ← mkLambdaFVars params value - pure (type, value) + Term.elabTypeWithAutoBoundImplicit typeStx fun type => do + let params ← Term.addAutoBoundImplicits params + match view.value? with + | none => + let type ← mkForallFVars params type + k type none + | some valStx => + let value ← Term.elabTermEnsuringType valStx type + let type ← mkForallFVars params type + let value ← mkLambdaFVars params value + k type value private partial def withFields (views : Array StructFieldView) (i : Nat) (infos : Array StructFieldInfo) (k : Array StructFieldInfo → TermElabM α) : TermElabM α := do @@ -286,20 +288,21 @@ private partial def withFields withRef view.ref $ match findFieldInfo? infos view.name with | none => do - let (type?, value?) ← Term.elabBinders view.binders.getArgs fun params => elabFieldTypeValue view params - match type?, value? with - | none, none => throwError "invalid field, type expected" - | some type, _ => - withLocalDecl view.name view.binderInfo type fun fieldFVar => - let infos := infos.push { name := view.name, declName := view.declName, fvar := fieldFVar, value? := value?, - kind := StructFieldKind.newField, inferMod := view.inferMod } - withFields views (i+1) infos k - | none, some value => - let type ← inferType value - withLocalDecl view.name view.binderInfo type fun fieldFVar => - let infos := infos.push { name := view.name, declName := view.declName, fvar := fieldFVar, value? := value, - kind := StructFieldKind.newField, inferMod := view.inferMod } - withFields views (i+1) infos k + Term.withAutoBoundImplicitLocal <| Term.elabBinders (catchAutoBoundImplicit := true) view.binders.getArgs fun params => + elabFieldTypeValue view params fun type? value? => do + match type?, value? with + | none, none => throwError "invalid field, type expected" + | some type, _ => + withLocalDecl view.name view.binderInfo type fun fieldFVar => + let infos := infos.push { name := view.name, declName := view.declName, fvar := fieldFVar, value? := value?, + kind := StructFieldKind.newField, inferMod := view.inferMod } + withFields views (i+1) infos k + | none, some value => + let type ← inferType value + withLocalDecl view.name view.binderInfo type fun fieldFVar => + let infos := infos.push { name := view.name, declName := view.declName, fvar := fieldFVar, value? := value, + kind := StructFieldKind.newField, inferMod := view.inferMod } + withFields views (i+1) infos k | some info => match info.kind with | StructFieldKind.newField => throwError! "field '{view.name}' has already been declared" diff --git a/stage0/src/kernel/expr.cpp b/stage0/src/kernel/expr.cpp index 994a2caf53..50a9df8b6e 100644 --- a/stage0/src/kernel/expr.cpp +++ b/stage0/src/kernel/expr.cpp @@ -421,9 +421,16 @@ extern "C" object * lean_expr_update_let(obj_arg e, obj_arg new_type, obj_arg ne static bool has_loose_bvars_in_domain(expr const & b, unsigned vidx, bool strict) { if (is_pi(b)) { - return - (has_loose_bvar(binding_domain(b), vidx) && is_explicit(binding_info(b))) || - has_loose_bvars_in_domain(binding_body(b), vidx+1, strict); + if (has_loose_bvar(binding_domain(b), vidx)) { + if (is_explicit(binding_info(b))) { + return true; + } else if (has_loose_bvars_in_domain(binding_body(b), 0, strict)) { + // "Transitivity": vidx occurs in current implicit argument, so we search for current argument in the body. + return true; + } + } + // finally we search for vidx in the body + return has_loose_bvars_in_domain(binding_body(b), vidx+1, strict); } else if (!strict) { return has_loose_bvar(b, vidx); } else { diff --git a/stage0/stdlib/Lean/Elab/Structure.c b/stage0/stdlib/Lean/Elab/Structure.c index 61eed8a412..9a4b66a884 100644 --- a/stage0/stdlib/Lean/Elab/Structure.c +++ b/stage0/stdlib/Lean/Elab/Structure.c @@ -18,7 +18,6 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelPa lean_object* l_Lean_Elab_Command_instInhabitedStructFieldInfo; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* 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*); -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__12; lean_object* l_Lean_addDeclarationRanges___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*); lean_object* l_Lean_Elab_Command_elabStructure___lambda__1___boxed(lean_object**); lean_object* l_Lean_Elab_Term_removeUnused(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -87,10 +86,10 @@ lean_object* l_Lean_Elab_Command_mkResultUniverse(lean_object*, lean_object*); uint8_t l_Lean_Elab_Modifiers_isProtected(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_elabFieldTypeValue_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3___closed__3; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_expandDeclId___at_Lean_Elab_Command_elabStructure___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* l_Array_forM___at_Lean_Meta_ToHide_fixpointStep___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__11; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__2___closed__1; lean_object* l_Array_foldlMUnsafe___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___lambda__4___closed__2; @@ -99,12 +98,12 @@ lean_object* l_Lean_Elab_Command_checkValidFieldModifier___closed__3; extern lean_object* l_Lean_MetavarContext_instantiateLevelMVars___at_Lean_Meta_instantiateLevelMVars___spec__1___closed__2; 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* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__5___rarg(uint8_t, 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*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_12336____closed__13; extern lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_1077____closed__1; +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__5___boxed(lean_object**); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__10___closed__2; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___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_withFields_match__5___rarg___boxed(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*); lean_object* l_Array_forM___at_Lean_Elab_Command_elabStructure___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -168,6 +167,7 @@ lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_elabStructure___spec_ lean_object* l_Lean_throwErrorAt___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*, 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*); 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*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___lambda__4___closed__1; @@ -216,6 +216,7 @@ lean_object* l_Array_foldlMUnsafe___at___private_Lean_Elab_Structure_0__Lean_Ela lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addCtorFields___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabTypeWithAutoBoundImplicit___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__2; lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__6(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamFVars___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -336,7 +337,7 @@ lean_object* l_Lean_addDocString___at___private_Lean_Elab_Structure_0__Lean_Elab lean_object* l_List_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__8(lean_object*); lean_object* l_Lean_Elab_getOptDerivingClasses___at_Lean_Elab_Command_elabStructure___spec__2___boxed__const__1; 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*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forM___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*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -399,7 +400,6 @@ extern lean_object* l_Lean_docStringExt; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addCtorFields_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedExpr; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__6___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___lambda__2___closed__1; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults_match__1(lean_object*); extern lean_object* l_Lean_MetavarContext_instantiateLevelMVars___at_Lean_Meta_instantiateLevelMVars___spec__1___closed__5; @@ -498,6 +498,7 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelPa lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___at_Lean_Elab_Command_elabStructure___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3___closed__2; extern lean_object* l_Lean_CollectLevelParams_instInhabitedState___closed__1; extern lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___closed__2; lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabStructure___spec__3(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); @@ -533,15 +534,16 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelPa extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1136____closed__31; lean_object* l_Lean_Elab_toAttributeKind___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___lambda__1___boxed(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_withFields___rarg___lambda__3___closed__1; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_containsFieldName___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda___spec__1___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___closed__2; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_removeUnused(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__3___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkAuxConstructions___lambda__1(uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabStructure___closed__1; -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3___boxed(lean_object**); lean_object* l_Array_appendCore___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedExpr___closed__1; 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*); @@ -580,6 +582,7 @@ extern lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___rarg___lam lean_object* l_Lean_Elab_Term_elabType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkForall(lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__14___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_processSubfields___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -599,14 +602,14 @@ lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___at_Lean_Elab_Comm lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__8___closed__8; lean_object* l_Lean_Elab_Command_StructFieldInfo_isFromParent_match__1___rarg(uint8_t, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_expandOptDocComment_x3f___rarg___closed__2; +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___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*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUsed___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInStructure___spec__2(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_collectUsed___closed__1; lean_object* l_Lean_Meta_withLetDecl___at_Lean_Elab_Term_elabLetDeclAux___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__10; lean_object* l_Array_forM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__8___closed__4; -lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_4478_(lean_object*); +lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_4477_(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_expandFields___lambda__1___boxed(lean_object**); uint8_t l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_206_(uint8_t, uint8_t); @@ -616,11 +619,11 @@ lean_object* lean_expr_abstract(lean_object*, lean_object*); lean_object* l_Lean_setReducibilityStatus___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__14___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___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_elabFieldTypeValue___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getTailPos_x3f(lean_object*, uint8_t); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5637____closed__17; lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___at_Lean_Elab_Command_elabStructure___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_inferImplicit(lean_object*, lean_object*, uint8_t); lean_object* l___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*); @@ -644,10 +647,11 @@ lean_object* l_Array_forM___at___private_Lean_Elab_Structure_0__Lean_Elab_Comman extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5637____closed__9; extern lean_object* l_Lean_Parser_Command_private___elambda__1___closed__2; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* 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___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInStructure___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabStructure_match__1___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__5(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_Name_appendBefore(lean_object*, lean_object*); lean_object* l_Lean_Elab_addDeclarationRanges___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*); extern lean_object* l_Lean_mkOptionalNode___closed__2; @@ -687,7 +691,6 @@ extern lean_object* l_Lean_Parser_Command_structImplicitBinder___elambda__1___cl lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__2___closed__1; lean_object* l_Array_foldlMUnsafe___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*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__7___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___closed__1; lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__4___closed__3; lean_object* l_Array_foldlMUnsafe___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInFVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_getDeclarationSelectionRef(lean_object*); @@ -712,7 +715,6 @@ lean_object* l_Lean_Elab_Command_elabStructure___lambda__4(lean_object*, lean_ob 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*); extern lean_object* l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__2___closed__2; -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__6(lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue_match__3(lean_object*); extern lean_object* l_Array_findSomeM_x3f___rarg___closed__1; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -737,9 +739,9 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToPar lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe___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*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__8___closed__5; -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__4___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__4___rarg(uint8_t, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue(lean_object*); lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUsed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -7713,32 +7715,390 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Co return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___closed__1() { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___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_1; lean_object* x_2; -x_1 = lean_box(0); -x_2 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2, 0, x_1); -lean_ctor_set(x_2, 1, x_1); -return x_2; -} -} -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: +lean_object* x_12; +lean_inc(x_7); +lean_inc(x_5); +x_12 = l_Lean_Elab_Term_addAutoBoundImplicits(x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_12) == 0) { -lean_object* x_10; -x_10 = lean_ctor_get(x_1, 5); +lean_object* x_13; +x_13 = lean_ctor_get(x_2, 6); +lean_inc(x_13); +lean_dec(x_2); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_12, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_12, 1); +lean_inc(x_15); +lean_dec(x_12); +lean_inc(x_7); +x_16 = l_Lean_Meta_mkForallFVars(x_14, x_4, 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; lean_object* x_20; lean_object* x_21; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_19, 0, x_17); +x_20 = lean_box(0); +x_21 = lean_apply_9(x_3, x_19, x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_18); +return x_21; +} +else +{ +uint8_t x_22; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_22 = !lean_is_exclusive(x_16); +if (x_22 == 0) +{ +return x_16; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_16, 0); +x_24 = lean_ctor_get(x_16, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_16); +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 +{ +lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_26 = lean_ctor_get(x_12, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_12, 1); +lean_inc(x_27); +lean_dec(x_12); +x_28 = !lean_is_exclusive(x_13); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32; +x_29 = lean_ctor_get(x_13, 0); +lean_inc(x_4); +lean_ctor_set(x_13, 0, x_4); +x_30 = lean_box(0); +x_31 = 1; lean_inc(x_10); -if (lean_obj_tag(x_10) == 0) +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_32 = l_Lean_Elab_Term_elabTermEnsuringType(x_29, x_13, x_31, x_30, x_5, x_6, x_7, x_8, x_9, x_10, x_27); +if (lean_obj_tag(x_32) == 0) { -lean_object* x_11; -x_11 = lean_ctor_get(x_1, 6); -lean_inc(x_11); -lean_dec(x_1); -if (lean_obj_tag(x_11) == 0) +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +lean_dec(x_32); +lean_inc(x_7); +lean_inc(x_26); +x_35 = l_Lean_Meta_mkForallFVars(x_26, x_4, x_7, x_8, x_9, x_10, x_34); +if (lean_obj_tag(x_35) == 0) { -lean_object* x_12; lean_object* x_13; +lean_object* x_36; lean_object* x_37; lean_object* x_38; +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); +lean_inc(x_7); +x_38 = l_Lean_Meta_mkLambdaFVars(x_26, x_33, x_7, x_8, x_9, x_10, x_37); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +lean_dec(x_38); +x_41 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_41, 0, x_36); +x_42 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_42, 0, x_39); +x_43 = lean_apply_9(x_3, x_41, x_42, x_5, x_6, x_7, x_8, x_9, x_10, x_40); +return x_43; +} +else +{ +uint8_t x_44; +lean_dec(x_36); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_44 = !lean_is_exclusive(x_38); +if (x_44 == 0) +{ +return x_38; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_38, 0); +x_46 = lean_ctor_get(x_38, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_38); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +else +{ +uint8_t x_48; +lean_dec(x_33); +lean_dec(x_26); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_48 = !lean_is_exclusive(x_35); +if (x_48 == 0) +{ +return x_35; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_35, 0); +x_50 = lean_ctor_get(x_35, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_35); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +return x_51; +} +} +} +else +{ +uint8_t x_52; +lean_dec(x_26); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_52 = !lean_is_exclusive(x_32); +if (x_52 == 0) +{ +return x_32; +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_32, 0); +x_54 = lean_ctor_get(x_32, 1); +lean_inc(x_54); +lean_inc(x_53); +lean_dec(x_32); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_55, 1, x_54); +return x_55; +} +} +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; lean_object* x_60; +x_56 = lean_ctor_get(x_13, 0); +lean_inc(x_56); +lean_dec(x_13); +lean_inc(x_4); +x_57 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_57, 0, x_4); +x_58 = lean_box(0); +x_59 = 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_60 = l_Lean_Elab_Term_elabTermEnsuringType(x_56, x_57, x_59, x_58, x_5, x_6, x_7, x_8, x_9, x_10, x_27); +if (lean_obj_tag(x_60) == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +lean_dec(x_60); +lean_inc(x_7); +lean_inc(x_26); +x_63 = l_Lean_Meta_mkForallFVars(x_26, x_4, x_7, x_8, x_9, x_10, x_62); +if (lean_obj_tag(x_63) == 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_7); +x_66 = l_Lean_Meta_mkLambdaFVars(x_26, x_61, x_7, x_8, x_9, 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; +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_66, 1); +lean_inc(x_68); +lean_dec(x_66); +x_69 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_69, 0, x_64); +x_70 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_70, 0, x_67); +x_71 = lean_apply_9(x_3, x_69, x_70, x_5, x_6, x_7, x_8, x_9, x_10, x_68); +return x_71; +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +lean_dec(x_64); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_72 = lean_ctor_get(x_66, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_66, 1); +lean_inc(x_73); +if (lean_is_exclusive(x_66)) { + lean_ctor_release(x_66, 0); + lean_ctor_release(x_66, 1); + x_74 = x_66; +} else { + lean_dec_ref(x_66); + x_74 = lean_box(0); +} +if (lean_is_scalar(x_74)) { + x_75 = lean_alloc_ctor(1, 2, 0); +} else { + x_75 = x_74; +} +lean_ctor_set(x_75, 0, x_72); +lean_ctor_set(x_75, 1, x_73); +return x_75; +} +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +lean_dec(x_61); +lean_dec(x_26); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_76 = lean_ctor_get(x_63, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_63, 1); +lean_inc(x_77); +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + lean_ctor_release(x_63, 1); + x_78 = x_63; +} else { + lean_dec_ref(x_63); + x_78 = lean_box(0); +} +if (lean_is_scalar(x_78)) { + x_79 = lean_alloc_ctor(1, 2, 0); +} else { + x_79 = x_78; +} +lean_ctor_set(x_79, 0, x_76); +lean_ctor_set(x_79, 1, x_77); +return x_79; +} +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +lean_dec(x_26); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_80 = lean_ctor_get(x_60, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_60, 1); +lean_inc(x_81); +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + lean_ctor_release(x_60, 1); + x_82 = x_60; +} else { + lean_dec_ref(x_60); + x_82 = lean_box(0); +} +if (lean_is_scalar(x_82)) { + x_83 = lean_alloc_ctor(1, 2, 0); +} else { + x_83 = x_82; +} +lean_ctor_set(x_83, 0, x_80); +lean_ctor_set(x_83, 1, x_81); +return x_83; +} +} +} +} +else +{ +uint8_t x_84; +lean_dec(x_10); +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -7746,89 +8106,122 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_12 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___closed__1; -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_9); -return x_13; +x_84 = !lean_is_exclusive(x_12); +if (x_84 == 0) +{ +return x_12; } else { -uint8_t x_14; -x_14 = !lean_is_exclusive(x_11); -if (x_14 == 0) +lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_85 = lean_ctor_get(x_12, 0); +x_86 = lean_ctor_get(x_12, 1); +lean_inc(x_86); +lean_inc(x_85); +lean_dec(x_12); +x_87 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_87, 0, x_85); +lean_ctor_set(x_87, 1, x_86); +return x_87; +} +} +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: { -lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; -x_15 = lean_ctor_get(x_11, 0); -x_16 = lean_box(0); -x_17 = 1; +lean_object* x_11; +x_11 = lean_ctor_get(x_1, 5); +lean_inc(x_11); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; +x_12 = lean_ctor_get(x_1, 6); +lean_inc(x_12); +lean_dec(x_1); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; +lean_dec(x_2); +x_13 = lean_box(0); +x_14 = lean_apply_9(x_3, x_13, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_14; +} +else +{ +uint8_t x_15; +x_15 = !lean_is_exclusive(x_12); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_12, 0); +lean_inc(x_6); +lean_inc(x_4); +x_17 = l_Lean_Elab_Term_addAutoBoundImplicits(x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_2); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_box(0); +x_21 = 1; +lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_18 = l_Lean_Elab_Term_elabTerm(x_15, x_16, x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_18) == 0) +lean_inc(x_4); +x_22 = l_Lean_Elab_Term_elabTerm(x_16, x_20, x_21, x_4, x_5, x_6, x_7, x_8, x_9, x_19); +if (lean_obj_tag(x_22) == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); -lean_dec(x_18); -x_21 = l_Lean_Meta_mkLambdaFVars(x_2, x_19, x_5, x_6, x_7, x_8, x_20); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -if (lean_obj_tag(x_21) == 0) +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +lean_inc(x_6); +x_25 = l_Lean_Meta_mkLambdaFVars(x_18, x_23, x_6, x_7, x_8, x_9, x_24); +if (lean_obj_tag(x_25) == 0) { -uint8_t x_22; -x_22 = !lean_is_exclusive(x_21); -if (x_22 == 0) -{ -lean_object* x_23; lean_object* x_24; -x_23 = lean_ctor_get(x_21, 0); -lean_ctor_set(x_11, 0, x_23); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_16); -lean_ctor_set(x_24, 1, x_11); -lean_ctor_set(x_21, 0, x_24); -return x_21; -} -else -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_25 = lean_ctor_get(x_21, 0); -x_26 = lean_ctor_get(x_21, 1); +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_25, 0); lean_inc(x_26); -lean_inc(x_25); -lean_dec(x_21); -lean_ctor_set(x_11, 0, x_25); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_16); -lean_ctor_set(x_27, 1, x_11); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +lean_ctor_set(x_12, 0, x_26); +x_28 = lean_apply_9(x_3, x_20, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_27); return x_28; } -} else { uint8_t x_29; -lean_free_object(x_11); -x_29 = !lean_is_exclusive(x_21); +lean_free_object(x_12); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_29 = !lean_is_exclusive(x_25); if (x_29 == 0) { -return x_21; +return x_25; } else { lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_21, 0); -x_31 = lean_ctor_get(x_21, 1); +x_30 = lean_ctor_get(x_25, 0); +x_31 = lean_ctor_get(x_25, 1); lean_inc(x_31); lean_inc(x_30); -lean_dec(x_21); +lean_dec(x_25); x_32 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_32, 0, x_30); lean_ctor_set(x_32, 1, x_31); @@ -7839,25 +8232,28 @@ return x_32; else { uint8_t x_33; -lean_free_object(x_11); +lean_dec(x_18); +lean_free_object(x_12); +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_2); -x_33 = !lean_is_exclusive(x_18); +lean_dec(x_4); +lean_dec(x_3); +x_33 = !lean_is_exclusive(x_22); if (x_33 == 0) { -return x_18; +return x_22; } else { lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_18, 0); -x_35 = lean_ctor_get(x_18, 1); +x_34 = lean_ctor_get(x_22, 0); +x_35 = lean_ctor_get(x_22, 1); lean_inc(x_35); lean_inc(x_34); -lean_dec(x_18); +lean_dec(x_22); x_36 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_36, 0, x_34); lean_ctor_set(x_36, 1, x_35); @@ -7867,866 +8263,216 @@ return x_36; } else { -lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; -x_37 = lean_ctor_get(x_11, 0); -lean_inc(x_37); -lean_dec(x_11); -x_38 = lean_box(0); -x_39 = 1; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_40 = l_Lean_Elab_Term_elabTerm(x_37, x_38, x_39, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_40) == 0) +uint8_t x_37; +lean_free_object(x_12); +lean_dec(x_16); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_37 = !lean_is_exclusive(x_17); +if (x_37 == 0) { -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_40, 0); +return x_17; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_17, 0); +x_39 = lean_ctor_get(x_17, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_17); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; +} +} +} +else +{ +lean_object* x_41; lean_object* x_42; +x_41 = lean_ctor_get(x_12, 0); lean_inc(x_41); -x_42 = lean_ctor_get(x_40, 1); -lean_inc(x_42); -lean_dec(x_40); -x_43 = l_Lean_Meta_mkLambdaFVars(x_2, x_41, x_5, x_6, x_7, x_8, x_42); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -if (lean_obj_tag(x_43) == 0) +lean_dec(x_12); +lean_inc(x_6); +lean_inc(x_4); +x_42 = l_Lean_Elab_Term_addAutoBoundImplicits(x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_2); +if (lean_obj_tag(x_42) == 0) { -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_44 = lean_ctor_get(x_43, 0); +lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; lean_object* x_47; +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_42, 1); lean_inc(x_44); -x_45 = lean_ctor_get(x_43, 1); -lean_inc(x_45); -if (lean_is_exclusive(x_43)) { - lean_ctor_release(x_43, 0); - lean_ctor_release(x_43, 1); - x_46 = x_43; -} else { - lean_dec_ref(x_43); - x_46 = lean_box(0); -} -x_47 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_47, 0, x_44); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_38); -lean_ctor_set(x_48, 1, x_47); -if (lean_is_scalar(x_46)) { - x_49 = lean_alloc_ctor(0, 2, 0); -} else { - x_49 = x_46; -} -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_45); -return x_49; -} -else +lean_dec(x_42); +x_45 = lean_box(0); +x_46 = 1; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_47 = l_Lean_Elab_Term_elabTerm(x_41, x_45, x_46, x_4, x_5, x_6, x_7, x_8, x_9, x_44); +if (lean_obj_tag(x_47) == 0) { -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_50 = lean_ctor_get(x_43, 0); -lean_inc(x_50); -x_51 = lean_ctor_get(x_43, 1); +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_6); +x_50 = l_Lean_Meta_mkLambdaFVars(x_43, x_48, x_6, x_7, x_8, x_9, 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; +x_51 = lean_ctor_get(x_50, 0); lean_inc(x_51); -if (lean_is_exclusive(x_43)) { - lean_ctor_release(x_43, 0); - lean_ctor_release(x_43, 1); - x_52 = x_43; -} else { - lean_dec_ref(x_43); - x_52 = lean_box(0); -} -if (lean_is_scalar(x_52)) { - x_53 = lean_alloc_ctor(1, 2, 0); -} else { - x_53 = x_52; -} -lean_ctor_set(x_53, 0, x_50); -lean_ctor_set(x_53, 1, x_51); -return x_53; -} +x_52 = lean_ctor_get(x_50, 1); +lean_inc(x_52); +lean_dec(x_50); +x_53 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_53, 0, x_51); +x_54 = lean_apply_9(x_3, x_45, x_53, x_4, x_5, x_6, x_7, x_8, x_9, x_52); +return x_54; } else { -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_2); -x_54 = lean_ctor_get(x_40, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_40, 1); +lean_dec(x_4); +lean_dec(x_3); +x_55 = lean_ctor_get(x_50, 0); lean_inc(x_55); -if (lean_is_exclusive(x_40)) { - lean_ctor_release(x_40, 0); - lean_ctor_release(x_40, 1); - x_56 = x_40; +x_56 = lean_ctor_get(x_50, 1); +lean_inc(x_56); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + lean_ctor_release(x_50, 1); + x_57 = x_50; } else { - lean_dec_ref(x_40); - x_56 = lean_box(0); + lean_dec_ref(x_50); + x_57 = lean_box(0); } -if (lean_is_scalar(x_56)) { - x_57 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_57)) { + x_58 = lean_alloc_ctor(1, 2, 0); } else { - x_57 = x_56; -} -lean_ctor_set(x_57, 0, x_54); -lean_ctor_set(x_57, 1, x_55); -return x_57; -} + x_58 = x_57; } +lean_ctor_set(x_58, 0, x_55); +lean_ctor_set(x_58, 1, x_56); +return x_58; } } else { -uint8_t x_58; -x_58 = !lean_is_exclusive(x_10); -if (x_58 == 0) -{ -lean_object* x_59; lean_object* x_60; -x_59 = lean_ctor_get(x_10, 0); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_60 = l_Lean_Elab_Term_elabType(x_59, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_60) == 0) -{ -lean_object* x_61; -x_61 = lean_ctor_get(x_1, 6); -lean_inc(x_61); -lean_dec(x_1); -if (lean_obj_tag(x_61) == 0) -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +lean_dec(x_43); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_62 = lean_ctor_get(x_60, 0); -lean_inc(x_62); -x_63 = lean_ctor_get(x_60, 1); +x_59 = lean_ctor_get(x_47, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_47, 1); +lean_inc(x_60); +if (lean_is_exclusive(x_47)) { + lean_ctor_release(x_47, 0); + lean_ctor_release(x_47, 1); + x_61 = x_47; +} else { + lean_dec_ref(x_47); + x_61 = lean_box(0); +} +if (lean_is_scalar(x_61)) { + x_62 = lean_alloc_ctor(1, 2, 0); +} else { + x_62 = x_61; +} +lean_ctor_set(x_62, 0, x_59); +lean_ctor_set(x_62, 1, x_60); +return x_62; +} +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +lean_dec(x_41); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_63 = lean_ctor_get(x_42, 0); lean_inc(x_63); -lean_dec(x_60); -x_64 = l_Lean_Meta_mkForallFVars(x_2, x_62, x_5, x_6, x_7, x_8, x_63); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -if (lean_obj_tag(x_64) == 0) -{ -uint8_t x_65; -x_65 = !lean_is_exclusive(x_64); -if (x_65 == 0) -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = lean_ctor_get(x_64, 0); -lean_ctor_set(x_10, 0, x_66); -x_67 = lean_box(0); -x_68 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_68, 0, x_10); -lean_ctor_set(x_68, 1, x_67); -lean_ctor_set(x_64, 0, x_68); -return x_64; -} -else -{ -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_69 = lean_ctor_get(x_64, 0); -x_70 = lean_ctor_get(x_64, 1); -lean_inc(x_70); -lean_inc(x_69); -lean_dec(x_64); -lean_ctor_set(x_10, 0, x_69); -x_71 = lean_box(0); -x_72 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_72, 0, x_10); -lean_ctor_set(x_72, 1, x_71); -x_73 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_73, 0, x_72); -lean_ctor_set(x_73, 1, x_70); -return x_73; -} -} -else -{ -uint8_t x_74; -lean_free_object(x_10); -x_74 = !lean_is_exclusive(x_64); -if (x_74 == 0) -{ -return x_64; -} -else -{ -lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_75 = lean_ctor_get(x_64, 0); -x_76 = lean_ctor_get(x_64, 1); -lean_inc(x_76); -lean_inc(x_75); -lean_dec(x_64); -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; -} -} -} -else -{ -lean_object* x_78; lean_object* x_79; uint8_t x_80; -x_78 = lean_ctor_get(x_60, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_60, 1); -lean_inc(x_79); -lean_dec(x_60); -x_80 = !lean_is_exclusive(x_61); -if (x_80 == 0) -{ -lean_object* x_81; lean_object* x_82; uint8_t x_83; lean_object* x_84; -x_81 = lean_ctor_get(x_61, 0); -lean_inc(x_78); -lean_ctor_set(x_61, 0, x_78); -x_82 = lean_box(0); -x_83 = 1; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_84 = l_Lean_Elab_Term_elabTermEnsuringType(x_81, x_61, x_83, x_82, x_3, x_4, x_5, x_6, x_7, x_8, x_79); -if (lean_obj_tag(x_84) == 0) -{ -lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_85 = lean_ctor_get(x_84, 0); -lean_inc(x_85); -x_86 = lean_ctor_get(x_84, 1); -lean_inc(x_86); -lean_dec(x_84); -lean_inc(x_5); -lean_inc(x_2); -x_87 = l_Lean_Meta_mkForallFVars(x_2, x_78, x_5, x_6, x_7, x_8, x_86); -if (lean_obj_tag(x_87) == 0) -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_88 = lean_ctor_get(x_87, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_87, 1); -lean_inc(x_89); -lean_dec(x_87); -x_90 = l_Lean_Meta_mkLambdaFVars(x_2, x_85, x_5, x_6, x_7, x_8, x_89); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -if (lean_obj_tag(x_90) == 0) -{ -uint8_t x_91; -x_91 = !lean_is_exclusive(x_90); -if (x_91 == 0) -{ -lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_92 = lean_ctor_get(x_90, 0); -lean_ctor_set(x_10, 0, x_88); -x_93 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_93, 0, x_92); -x_94 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_94, 0, x_10); -lean_ctor_set(x_94, 1, x_93); -lean_ctor_set(x_90, 0, x_94); -return x_90; -} -else -{ -lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_95 = lean_ctor_get(x_90, 0); -x_96 = lean_ctor_get(x_90, 1); -lean_inc(x_96); -lean_inc(x_95); -lean_dec(x_90); -lean_ctor_set(x_10, 0, x_88); -x_97 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_97, 0, x_95); -x_98 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_98, 0, x_10); -lean_ctor_set(x_98, 1, x_97); -x_99 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_99, 0, x_98); -lean_ctor_set(x_99, 1, x_96); -return x_99; -} -} -else -{ -uint8_t x_100; -lean_dec(x_88); -lean_free_object(x_10); -x_100 = !lean_is_exclusive(x_90); -if (x_100 == 0) -{ -return x_90; -} -else -{ -lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_101 = lean_ctor_get(x_90, 0); -x_102 = lean_ctor_get(x_90, 1); -lean_inc(x_102); -lean_inc(x_101); -lean_dec(x_90); -x_103 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_103, 0, x_101); -lean_ctor_set(x_103, 1, x_102); -return x_103; -} -} -} -else -{ -uint8_t x_104; -lean_dec(x_85); -lean_free_object(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -x_104 = !lean_is_exclusive(x_87); -if (x_104 == 0) -{ -return x_87; -} -else -{ -lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_105 = lean_ctor_get(x_87, 0); -x_106 = lean_ctor_get(x_87, 1); -lean_inc(x_106); -lean_inc(x_105); -lean_dec(x_87); -x_107 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_107, 0, x_105); -lean_ctor_set(x_107, 1, x_106); -return x_107; -} -} -} -else -{ -uint8_t x_108; -lean_dec(x_78); -lean_free_object(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -x_108 = !lean_is_exclusive(x_84); -if (x_108 == 0) -{ -return x_84; -} -else -{ -lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_109 = lean_ctor_get(x_84, 0); -x_110 = lean_ctor_get(x_84, 1); -lean_inc(x_110); -lean_inc(x_109); -lean_dec(x_84); -x_111 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_111, 0, x_109); -lean_ctor_set(x_111, 1, x_110); -return x_111; -} -} -} -else -{ -lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; lean_object* x_116; -x_112 = lean_ctor_get(x_61, 0); -lean_inc(x_112); -lean_dec(x_61); -lean_inc(x_78); -x_113 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_113, 0, x_78); -x_114 = lean_box(0); -x_115 = 1; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_116 = l_Lean_Elab_Term_elabTermEnsuringType(x_112, x_113, x_115, x_114, x_3, x_4, x_5, x_6, x_7, x_8, x_79); -if (lean_obj_tag(x_116) == 0) -{ -lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_117 = lean_ctor_get(x_116, 0); -lean_inc(x_117); -x_118 = lean_ctor_get(x_116, 1); -lean_inc(x_118); -lean_dec(x_116); -lean_inc(x_5); -lean_inc(x_2); -x_119 = l_Lean_Meta_mkForallFVars(x_2, x_78, x_5, x_6, x_7, x_8, x_118); -if (lean_obj_tag(x_119) == 0) -{ -lean_object* x_120; lean_object* x_121; lean_object* x_122; -x_120 = lean_ctor_get(x_119, 0); -lean_inc(x_120); -x_121 = lean_ctor_get(x_119, 1); -lean_inc(x_121); -lean_dec(x_119); -x_122 = l_Lean_Meta_mkLambdaFVars(x_2, x_117, x_5, x_6, x_7, x_8, x_121); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -if (lean_obj_tag(x_122) == 0) -{ -lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; -x_123 = lean_ctor_get(x_122, 0); -lean_inc(x_123); -x_124 = lean_ctor_get(x_122, 1); -lean_inc(x_124); -if (lean_is_exclusive(x_122)) { - lean_ctor_release(x_122, 0); - lean_ctor_release(x_122, 1); - x_125 = x_122; +x_64 = lean_ctor_get(x_42, 1); +lean_inc(x_64); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + x_65 = x_42; } else { - lean_dec_ref(x_122); - x_125 = lean_box(0); + lean_dec_ref(x_42); + x_65 = lean_box(0); } -lean_ctor_set(x_10, 0, x_120); -x_126 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_126, 0, x_123); -x_127 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_127, 0, x_10); -lean_ctor_set(x_127, 1, x_126); -if (lean_is_scalar(x_125)) { - x_128 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 2, 0); } else { - x_128 = x_125; + x_66 = x_65; } -lean_ctor_set(x_128, 0, x_127); -lean_ctor_set(x_128, 1, x_124); -return x_128; -} -else -{ -lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -lean_dec(x_120); -lean_free_object(x_10); -x_129 = lean_ctor_get(x_122, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_122, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_122)) { - lean_ctor_release(x_122, 0); - lean_ctor_release(x_122, 1); - x_131 = x_122; -} else { - lean_dec_ref(x_122); - x_131 = lean_box(0); -} -if (lean_is_scalar(x_131)) { - x_132 = lean_alloc_ctor(1, 2, 0); -} else { - x_132 = x_131; -} -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_130); -return x_132; -} -} -else -{ -lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; -lean_dec(x_117); -lean_free_object(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -x_133 = lean_ctor_get(x_119, 0); -lean_inc(x_133); -x_134 = lean_ctor_get(x_119, 1); -lean_inc(x_134); -if (lean_is_exclusive(x_119)) { - lean_ctor_release(x_119, 0); - lean_ctor_release(x_119, 1); - x_135 = x_119; -} else { - lean_dec_ref(x_119); - x_135 = lean_box(0); -} -if (lean_is_scalar(x_135)) { - x_136 = lean_alloc_ctor(1, 2, 0); -} else { - x_136 = x_135; -} -lean_ctor_set(x_136, 0, x_133); -lean_ctor_set(x_136, 1, x_134); -return x_136; -} -} -else -{ -lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; -lean_dec(x_78); -lean_free_object(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -x_137 = lean_ctor_get(x_116, 0); -lean_inc(x_137); -x_138 = lean_ctor_get(x_116, 1); -lean_inc(x_138); -if (lean_is_exclusive(x_116)) { - lean_ctor_release(x_116, 0); - lean_ctor_release(x_116, 1); - x_139 = x_116; -} else { - lean_dec_ref(x_116); - x_139 = lean_box(0); -} -if (lean_is_scalar(x_139)) { - x_140 = lean_alloc_ctor(1, 2, 0); -} else { - x_140 = x_139; -} -lean_ctor_set(x_140, 0, x_137); -lean_ctor_set(x_140, 1, x_138); -return x_140; +lean_ctor_set(x_66, 0, x_63); +lean_ctor_set(x_66, 1, x_64); +return x_66; } } } } else { -uint8_t x_141; -lean_free_object(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_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_11, 0); +lean_inc(x_67); +lean_dec(x_11); +x_68 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___rarg___lambda__1___boxed), 11, 3); +lean_closure_set(x_68, 0, x_2); +lean_closure_set(x_68, 1, x_1); +lean_closure_set(x_68, 2, x_3); +x_69 = l_Lean_Elab_Term_elabTypeWithAutoBoundImplicit___rarg(x_67, x_68, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_69; +} +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___rarg), 10, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_1); -x_141 = !lean_is_exclusive(x_60); -if (x_141 == 0) -{ -return x_60; -} -else -{ -lean_object* x_142; lean_object* x_143; lean_object* x_144; -x_142 = lean_ctor_get(x_60, 0); -x_143 = lean_ctor_get(x_60, 1); -lean_inc(x_143); -lean_inc(x_142); -lean_dec(x_60); -x_144 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_144, 0, x_142); -lean_ctor_set(x_144, 1, x_143); -return x_144; -} -} -} -else -{ -lean_object* x_145; lean_object* x_146; -x_145 = lean_ctor_get(x_10, 0); -lean_inc(x_145); -lean_dec(x_10); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_146 = l_Lean_Elab_Term_elabType(x_145, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_146) == 0) -{ -lean_object* x_147; -x_147 = lean_ctor_get(x_1, 6); -lean_inc(x_147); -lean_dec(x_1); -if (lean_obj_tag(x_147) == 0) -{ -lean_object* x_148; lean_object* x_149; lean_object* x_150; -lean_dec(x_4); -lean_dec(x_3); -x_148 = lean_ctor_get(x_146, 0); -lean_inc(x_148); -x_149 = lean_ctor_get(x_146, 1); -lean_inc(x_149); -lean_dec(x_146); -x_150 = l_Lean_Meta_mkForallFVars(x_2, x_148, x_5, x_6, x_7, x_8, x_149); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -if (lean_obj_tag(x_150) == 0) -{ -lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; -x_151 = lean_ctor_get(x_150, 0); -lean_inc(x_151); -x_152 = lean_ctor_get(x_150, 1); -lean_inc(x_152); -if (lean_is_exclusive(x_150)) { - lean_ctor_release(x_150, 0); - lean_ctor_release(x_150, 1); - x_153 = x_150; -} else { - lean_dec_ref(x_150); - x_153 = lean_box(0); -} -x_154 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_154, 0, x_151); -x_155 = lean_box(0); -x_156 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_156, 0, x_154); -lean_ctor_set(x_156, 1, x_155); -if (lean_is_scalar(x_153)) { - x_157 = lean_alloc_ctor(0, 2, 0); -} else { - x_157 = x_153; -} -lean_ctor_set(x_157, 0, x_156); -lean_ctor_set(x_157, 1, x_152); -return x_157; -} -else -{ -lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; -x_158 = lean_ctor_get(x_150, 0); -lean_inc(x_158); -x_159 = lean_ctor_get(x_150, 1); -lean_inc(x_159); -if (lean_is_exclusive(x_150)) { - lean_ctor_release(x_150, 0); - lean_ctor_release(x_150, 1); - x_160 = x_150; -} else { - lean_dec_ref(x_150); - x_160 = lean_box(0); -} -if (lean_is_scalar(x_160)) { - x_161 = lean_alloc_ctor(1, 2, 0); -} else { - x_161 = x_160; -} -lean_ctor_set(x_161, 0, x_158); -lean_ctor_set(x_161, 1, x_159); -return x_161; -} -} -else -{ -lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; uint8_t x_168; lean_object* x_169; -x_162 = lean_ctor_get(x_146, 0); -lean_inc(x_162); -x_163 = lean_ctor_get(x_146, 1); -lean_inc(x_163); -lean_dec(x_146); -x_164 = lean_ctor_get(x_147, 0); -lean_inc(x_164); -if (lean_is_exclusive(x_147)) { - lean_ctor_release(x_147, 0); - x_165 = x_147; -} else { - lean_dec_ref(x_147); - x_165 = lean_box(0); -} -lean_inc(x_162); -if (lean_is_scalar(x_165)) { - x_166 = lean_alloc_ctor(1, 1, 0); -} else { - x_166 = x_165; -} -lean_ctor_set(x_166, 0, x_162); -x_167 = lean_box(0); -x_168 = 1; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_169 = l_Lean_Elab_Term_elabTermEnsuringType(x_164, x_166, x_168, x_167, x_3, x_4, x_5, x_6, x_7, x_8, x_163); -if (lean_obj_tag(x_169) == 0) -{ -lean_object* x_170; lean_object* x_171; lean_object* x_172; -x_170 = lean_ctor_get(x_169, 0); -lean_inc(x_170); -x_171 = lean_ctor_get(x_169, 1); -lean_inc(x_171); -lean_dec(x_169); -lean_inc(x_5); -lean_inc(x_2); -x_172 = l_Lean_Meta_mkForallFVars(x_2, x_162, x_5, x_6, x_7, x_8, x_171); -if (lean_obj_tag(x_172) == 0) -{ -lean_object* x_173; lean_object* x_174; lean_object* x_175; -x_173 = lean_ctor_get(x_172, 0); -lean_inc(x_173); -x_174 = lean_ctor_get(x_172, 1); -lean_inc(x_174); -lean_dec(x_172); -x_175 = l_Lean_Meta_mkLambdaFVars(x_2, x_170, x_5, x_6, x_7, x_8, x_174); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -if (lean_obj_tag(x_175) == 0) -{ -lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; -x_176 = lean_ctor_get(x_175, 0); -lean_inc(x_176); -x_177 = lean_ctor_get(x_175, 1); -lean_inc(x_177); -if (lean_is_exclusive(x_175)) { - lean_ctor_release(x_175, 0); - lean_ctor_release(x_175, 1); - x_178 = x_175; -} else { - lean_dec_ref(x_175); - x_178 = lean_box(0); -} -x_179 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_179, 0, x_173); -x_180 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_180, 0, x_176); -x_181 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_181, 0, x_179); -lean_ctor_set(x_181, 1, x_180); -if (lean_is_scalar(x_178)) { - x_182 = lean_alloc_ctor(0, 2, 0); -} else { - x_182 = x_178; -} -lean_ctor_set(x_182, 0, x_181); -lean_ctor_set(x_182, 1, x_177); -return x_182; -} -else -{ -lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; -lean_dec(x_173); -x_183 = lean_ctor_get(x_175, 0); -lean_inc(x_183); -x_184 = lean_ctor_get(x_175, 1); -lean_inc(x_184); -if (lean_is_exclusive(x_175)) { - lean_ctor_release(x_175, 0); - lean_ctor_release(x_175, 1); - x_185 = x_175; -} else { - lean_dec_ref(x_175); - x_185 = lean_box(0); -} -if (lean_is_scalar(x_185)) { - x_186 = lean_alloc_ctor(1, 2, 0); -} else { - x_186 = x_185; -} -lean_ctor_set(x_186, 0, x_183); -lean_ctor_set(x_186, 1, x_184); -return x_186; -} -} -else -{ -lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; -lean_dec(x_170); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -x_187 = lean_ctor_get(x_172, 0); -lean_inc(x_187); -x_188 = lean_ctor_get(x_172, 1); -lean_inc(x_188); -if (lean_is_exclusive(x_172)) { - lean_ctor_release(x_172, 0); - lean_ctor_release(x_172, 1); - x_189 = x_172; -} else { - lean_dec_ref(x_172); - x_189 = lean_box(0); -} -if (lean_is_scalar(x_189)) { - x_190 = lean_alloc_ctor(1, 2, 0); -} else { - x_190 = x_189; -} -lean_ctor_set(x_190, 0, x_187); -lean_ctor_set(x_190, 1, x_188); -return x_190; -} -} -else -{ -lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; -lean_dec(x_162); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -x_191 = lean_ctor_get(x_169, 0); -lean_inc(x_191); -x_192 = lean_ctor_get(x_169, 1); -lean_inc(x_192); -if (lean_is_exclusive(x_169)) { - lean_ctor_release(x_169, 0); - lean_ctor_release(x_169, 1); - x_193 = x_169; -} else { - lean_dec_ref(x_169); - x_193 = lean_box(0); -} -if (lean_is_scalar(x_193)) { - x_194 = lean_alloc_ctor(1, 2, 0); -} else { - x_194 = x_193; -} -lean_ctor_set(x_194, 0, x_191); -lean_ctor_set(x_194, 1, x_192); -return x_194; -} -} -} -else -{ -lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; -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_195 = lean_ctor_get(x_146, 0); -lean_inc(x_195); -x_196 = lean_ctor_get(x_146, 1); -lean_inc(x_196); -if (lean_is_exclusive(x_146)) { - lean_ctor_release(x_146, 0); - lean_ctor_release(x_146, 1); - x_197 = x_146; -} else { - lean_dec_ref(x_146); - x_197 = lean_box(0); -} -if (lean_is_scalar(x_197)) { - x_198 = lean_alloc_ctor(1, 2, 0); -} else { - x_198 = x_197; -} -lean_ctor_set(x_198, 0, x_195); -lean_ctor_set(x_198, 1, x_196); -return x_198; -} -} -} +return x_12; } } lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { @@ -8775,28 +8521,7 @@ 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_withFields_match__2___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_3 = lean_ctor_get(x_1, 0); -lean_inc(x_3); -x_4 = lean_ctor_get(x_1, 1); -lean_inc(x_4); -lean_dec(x_1); -x_5 = lean_apply_2(x_2, x_3, x_4); -return x_5; -} -} -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__2(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__2___rarg), 2, 0); -return x_2; -} -} -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -8818,15 +8543,15 @@ return x_6; } } } -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__3(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__2(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__3___rarg), 3, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__2___rarg), 3, 0); return x_2; } } -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -8849,15 +8574,15 @@ return x_7; } } } -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__4(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__3(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__4___rarg), 3, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__3___rarg), 3, 0); return x_2; } } -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__5___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__4___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { switch (x_1) { @@ -8891,25 +8616,25 @@ return x_10; } } } -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__5(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__4(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__5___rarg___boxed), 4, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__4___rarg___boxed), 4, 0); return x_2; } } -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__5___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__4___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; lean_object* x_6; x_5 = lean_unbox(x_1); lean_dec(x_1); -x_6 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__5___rarg(x_5, x_2, x_3, x_4); +x_6 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__4___rarg(x_5, x_2, x_3, x_4); return x_6; } } -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__6___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__5___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -8932,11 +8657,11 @@ return x_7; } } } -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__6(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__5(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__6___rarg), 3, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__5___rarg), 3, 0); return x_2; } } @@ -9271,7 +8996,165 @@ x_23 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg(x_ return x_23; } } -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18) { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("invalid field, type expected"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3___closed__1; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3___closed__2; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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: +{ +if (lean_obj_tag(x_7) == 0) +{ +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_16; lean_object* x_17; +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_16 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3___closed__3; +x_17 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___spec__1___rarg(x_16, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_8, 0); +lean_inc(x_18); +lean_dec(x_8); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_18); +x_19 = l_Lean_Meta_inferType(x_18, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = lean_ctor_get_uint8(x_1, sizeof(void*)*7); +lean_inc(x_2); +x_23 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__1___boxed), 15, 7); +lean_closure_set(x_23, 0, x_1); +lean_closure_set(x_23, 1, x_18); +lean_closure_set(x_23, 2, x_2); +lean_closure_set(x_23, 3, x_3); +lean_closure_set(x_23, 4, x_4); +lean_closure_set(x_23, 5, x_5); +lean_closure_set(x_23, 6, x_6); +x_24 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda___spec__1___rarg(x_2, x_22, x_20, x_23, x_9, x_10, x_11, x_12, x_13, x_14, x_21); +return x_24; +} +else +{ +uint8_t x_25; +lean_dec(x_18); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_25 = !lean_is_exclusive(x_19); +if (x_25 == 0) +{ +return x_19; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_19, 0); +x_27 = lean_ctor_get(x_19, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_19); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +} +} +else +{ +lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; +x_29 = lean_ctor_get(x_7, 0); +lean_inc(x_29); +lean_dec(x_7); +x_30 = lean_ctor_get_uint8(x_1, sizeof(void*)*7); +lean_inc(x_2); +x_31 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__2___boxed), 15, 7); +lean_closure_set(x_31, 0, x_1); +lean_closure_set(x_31, 1, x_2); +lean_closure_set(x_31, 2, x_8); +lean_closure_set(x_31, 3, x_3); +lean_closure_set(x_31, 4, x_4); +lean_closure_set(x_31, 5, x_5); +lean_closure_set(x_31, 6, x_6); +x_32 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda___spec__1___rarg(x_2, x_30, x_29, x_31, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +return x_32; +} +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___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_inc(x_1); +x_15 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3), 15, 6); +lean_closure_set(x_15, 0, x_1); +lean_closure_set(x_15, 1, x_2); +lean_closure_set(x_15, 2, x_3); +lean_closure_set(x_15, 3, x_4); +lean_closure_set(x_15, 4, x_5); +lean_closure_set(x_15, 5, x_6); +x_16 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___rarg(x_1, x_7, x_15, 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_withFields___rarg___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18) { _start: { lean_object* x_19; @@ -9399,7 +9282,7 @@ static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_w _start: { lean_object* x_1; -x_1 = lean_mk_string("invalid field, type expected"); +x_1 = lean_mk_string("' has been declared in parent structure"); return x_1; } } @@ -9408,39 +9291,11 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("' has been declared in parent structure"); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__4; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__6() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__3() { _start: { lean_object* x_1; @@ -9448,16 +9303,16 @@ x_1 = lean_mk_string("omit field '"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__7() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__6; +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___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_withFields___rarg___closed__8() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__5() { _start: { lean_object* x_1; @@ -9465,16 +9320,16 @@ x_1 = lean_mk_string("' type to set default value"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__9() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__8; +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__5; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__10() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__7() { _start: { lean_object* x_1; @@ -9482,7 +9337,7 @@ x_1 = lean_mk_string("Lean.Elab.Structure"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__11() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__8() { _start: { lean_object* x_1; @@ -9490,13 +9345,13 @@ x_1 = lean_mk_string("_private.Lean.Elab.Structure.0.Lean.Elab.Command.withField return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__12() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__10; -x_2 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__11; -x_3 = lean_unsigned_to_nat(320u); +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__7; +x_2 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__8; +x_3 = lean_unsigned_to_nat(323u); x_4 = lean_unsigned_to_nat(37u); x_5 = l_Lean_Name_getString_x21___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -9538,826 +9393,496 @@ lean_dec(x_16); lean_ctor_set(x_9, 3, x_21); if (lean_obj_tag(x_18) == 0) { -lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; +lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; x_22 = lean_ctor_get(x_15, 4); lean_inc(x_22); x_23 = l_Lean_Syntax_getArgs(x_22); lean_dec(x_22); -lean_inc(x_15); -x_24 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue), 9, 1); +x_24 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__4), 14, 6); lean_closure_set(x_24, 0, x_15); -x_25 = 0; -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_26 = l_Lean_Elab_Term_elabBinders___rarg(x_23, x_24, x_25, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_26) == 0) +lean_closure_set(x_24, 1, x_17); +lean_closure_set(x_24, 2, x_3); +lean_closure_set(x_24, 3, x_2); +lean_closure_set(x_24, 4, x_1); +lean_closure_set(x_24, 5, x_4); +x_25 = 1; +x_26 = lean_box(x_25); +x_27 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg___boxed), 10, 3); +lean_closure_set(x_27, 0, x_23); +lean_closure_set(x_27, 1, x_24); +lean_closure_set(x_27, 2, x_26); +x_28 = l_Lean_Elab_Term_withAutoBoundImplicitLocal___rarg(x_27, x_25, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_28; +} +else { -lean_object* x_27; lean_object* x_28; -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -if (lean_obj_tag(x_28) == 0) -{ -lean_object* x_29; -x_29 = lean_ctor_get(x_27, 1); +lean_object* x_29; uint8_t x_30; +x_29 = lean_ctor_get(x_18, 0); lean_inc(x_29); -lean_dec(x_27); -if (lean_obj_tag(x_29) == 0) -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -lean_dec(x_17); -lean_dec(x_15); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_30 = lean_ctor_get(x_26, 1); -lean_inc(x_30); -lean_dec(x_26); -x_31 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__3; -x_32 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___spec__1___rarg(x_31, x_5, x_6, x_7, x_8, x_9, x_10, x_30); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -return x_32; -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_26, 1); -lean_inc(x_33); -lean_dec(x_26); -x_34 = lean_ctor_get(x_29, 0); -lean_inc(x_34); -lean_dec(x_29); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_34); -x_35 = l_Lean_Meta_inferType(x_34, x_7, x_8, x_9, x_10, x_33); -if (lean_obj_tag(x_35) == 0) -{ -lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; lean_object* x_40; -x_36 = lean_ctor_get(x_35, 0); -lean_inc(x_36); -x_37 = lean_ctor_get(x_35, 1); -lean_inc(x_37); -lean_dec(x_35); -x_38 = lean_ctor_get_uint8(x_15, sizeof(void*)*7); -lean_inc(x_17); -x_39 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__1___boxed), 15, 7); -lean_closure_set(x_39, 0, x_15); -lean_closure_set(x_39, 1, x_34); -lean_closure_set(x_39, 2, x_17); -lean_closure_set(x_39, 3, x_3); -lean_closure_set(x_39, 4, x_2); -lean_closure_set(x_39, 5, x_1); -lean_closure_set(x_39, 6, x_4); -x_40 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda___spec__1___rarg(x_17, x_38, x_36, x_39, x_5, x_6, x_7, x_8, x_9, x_10, x_37); -return x_40; -} -else -{ -uint8_t x_41; -lean_dec(x_34); -lean_dec(x_9); -lean_dec(x_17); -lean_dec(x_15); -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_41 = !lean_is_exclusive(x_35); -if (x_41 == 0) -{ -return x_35; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_35, 0); -x_43 = lean_ctor_get(x_35, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_35); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -return x_44; -} -} -} -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; -x_45 = lean_ctor_get(x_26, 1); -lean_inc(x_45); -lean_dec(x_26); -x_46 = lean_ctor_get(x_27, 1); -lean_inc(x_46); -lean_dec(x_27); -x_47 = lean_ctor_get(x_28, 0); -lean_inc(x_47); -lean_dec(x_28); -x_48 = lean_ctor_get_uint8(x_15, sizeof(void*)*7); -lean_inc(x_17); -x_49 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__2___boxed), 15, 7); -lean_closure_set(x_49, 0, x_15); -lean_closure_set(x_49, 1, x_17); -lean_closure_set(x_49, 2, x_46); -lean_closure_set(x_49, 3, x_3); -lean_closure_set(x_49, 4, x_2); -lean_closure_set(x_49, 5, x_1); -lean_closure_set(x_49, 6, x_4); -x_50 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda___spec__1___rarg(x_17, x_48, x_47, x_49, x_5, x_6, x_7, x_8, x_9, x_10, x_45); -return x_50; -} -} -else -{ -uint8_t x_51; -lean_dec(x_9); -lean_dec(x_17); -lean_dec(x_15); -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_51 = !lean_is_exclusive(x_26); -if (x_51 == 0) -{ -return x_26; -} -else -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_26, 0); -x_53 = lean_ctor_get(x_26, 1); -lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_26); -x_54 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_54, 0, x_52); -lean_ctor_set(x_54, 1, x_53); -return x_54; -} -} -} -else -{ -lean_object* x_55; uint8_t x_56; -x_55 = lean_ctor_get(x_18, 0); -lean_inc(x_55); lean_dec(x_18); -x_56 = lean_ctor_get_uint8(x_55, sizeof(void*)*4); -switch (x_56) { +x_30 = lean_ctor_get_uint8(x_29, sizeof(void*)*4); +switch (x_30) { case 0: { -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; -lean_dec(x_55); +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +lean_dec(x_29); lean_dec(x_15); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_57 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_57, 0, x_17); -x_58 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__2; -x_59 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_59, 0, x_58); -lean_ctor_set(x_59, 1, x_57); -x_60 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__3; -x_61 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_61, 0, x_59); -lean_ctor_set(x_61, 1, x_60); -x_62 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___spec__2___rarg(x_61, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_31 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_31, 0, x_17); +x_32 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__2; +x_33 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_31); +x_34 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__3; +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_Structure_0__Lean_Elab_Command_withFields___spec__2___rarg(x_35, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -return x_62; +return x_36; } case 1: { -lean_object* x_63; -x_63 = lean_ctor_get(x_15, 6); -lean_inc(x_63); -if (lean_obj_tag(x_63) == 0) +lean_object* x_37; +x_37 = lean_ctor_get(x_15, 6); +lean_inc(x_37); +if (lean_obj_tag(x_37) == 0) { -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; -lean_dec(x_55); +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_dec(x_29); lean_dec(x_15); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_64 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_64, 0, x_17); -x_65 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__2; -x_66 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_64); -x_67 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__5; -x_68 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_68, 0, x_66); -lean_ctor_set(x_68, 1, x_67); -x_69 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___spec__3___rarg(x_68, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_38 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_38, 0, x_17); +x_39 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___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_withFields___rarg___closed__2; +x_42 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +x_43 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___spec__3___rarg(x_42, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -return x_69; +return x_43; } else { -lean_object* x_70; -x_70 = lean_ctor_get(x_15, 5); -lean_inc(x_70); -if (lean_obj_tag(x_70) == 0) +lean_object* x_44; +x_44 = lean_ctor_get(x_15, 5); +lean_inc(x_44); +if (lean_obj_tag(x_44) == 0) { -lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; +lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; lean_dec(x_17); -x_71 = lean_ctor_get(x_55, 0); -lean_inc(x_71); -x_72 = lean_ctor_get(x_55, 1); -lean_inc(x_72); -x_73 = lean_ctor_get(x_55, 2); -lean_inc(x_73); -x_74 = lean_ctor_get_uint8(x_55, sizeof(void*)*4 + 1); -lean_dec(x_55); -x_75 = lean_ctor_get(x_63, 0); -lean_inc(x_75); -lean_dec(x_63); -x_76 = lean_ctor_get(x_15, 4); -lean_inc(x_76); +x_45 = lean_ctor_get(x_29, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_29, 1); +lean_inc(x_46); +x_47 = lean_ctor_get(x_29, 2); +lean_inc(x_47); +x_48 = lean_ctor_get_uint8(x_29, sizeof(void*)*4 + 1); +lean_dec(x_29); +x_49 = lean_ctor_get(x_37, 0); +lean_inc(x_49); +lean_dec(x_37); +x_50 = lean_ctor_get(x_15, 4); +lean_inc(x_50); lean_dec(x_15); -x_77 = l_Lean_Syntax_getArgs(x_76); -lean_dec(x_76); -x_78 = lean_array_get_size(x_77); -x_79 = lean_unsigned_to_nat(0u); -x_80 = lean_nat_dec_lt(x_79, x_78); -lean_dec(x_78); -if (x_80 == 0) +x_51 = l_Lean_Syntax_getArgs(x_50); +lean_dec(x_50); +x_52 = lean_array_get_size(x_51); +x_53 = lean_unsigned_to_nat(0u); +x_54 = lean_nat_dec_lt(x_53, x_52); +lean_dec(x_52); +if (x_54 == 0) { -lean_object* x_81; lean_object* x_82; -lean_dec(x_77); +lean_object* x_55; lean_object* x_56; +lean_dec(x_51); +x_55 = lean_box(0); +x_56 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__5(x_47, x_45, x_46, x_30, x_48, x_3, x_2, x_1, x_4, x_49, x_55, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_2); +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; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_57 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_quoteAutoTactic___spec__3___rarg(x_9, x_10, x_11); +x_58 = lean_ctor_get(x_57, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_57, 1); +lean_inc(x_59); +lean_dec(x_57); +x_60 = l_Lean_Elab_Term_getCurrMacroScope(x_5, x_6, x_7, x_8, x_9, x_10, x_59); +x_61 = lean_ctor_get(x_60, 1); +lean_inc(x_61); +lean_dec(x_60); +x_62 = l_Lean_Elab_Term_getMainModule___rarg(x_10, x_61); +x_63 = lean_ctor_get(x_62, 1); +lean_inc(x_63); +lean_dec(x_62); +x_64 = l_myMacro____x40_Init_Notation___hyg_12336____closed__9; +lean_inc(x_58); +x_65 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_65, 0, x_58); +lean_ctor_set(x_65, 1, x_64); +x_66 = l_Array_empty___closed__1; +x_67 = lean_array_push(x_66, x_65); +x_68 = l_Array_appendCore___rarg(x_66, x_51); +lean_dec(x_51); +x_69 = l_Lean_nullKind___closed__2; +x_70 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_68); +x_71 = lean_array_push(x_66, x_70); +x_72 = l_myMacro____x40_Init_Notation___hyg_12336____closed__13; +x_73 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_73, 0, x_58); +lean_ctor_set(x_73, 1, x_72); +x_74 = lean_array_push(x_71, x_73); +x_75 = lean_array_push(x_74, x_49); +x_76 = l_myMacro____x40_Init_Notation___hyg_12336____closed__12; +x_77 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_75); +x_78 = lean_array_push(x_67, x_77); +x_79 = l_myMacro____x40_Init_Notation___hyg_12336____closed__10; +x_80 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_80, 0, x_79); +lean_ctor_set(x_80, 1, x_78); x_81 = lean_box(0); -x_82 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3(x_73, x_71, x_72, x_56, x_74, x_3, x_2, x_1, x_4, x_75, x_81, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_82 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__5(x_47, x_45, x_46, x_30, x_48, x_3, x_2, x_1, x_4, x_80, x_81, x_5, x_6, x_7, x_8, x_9, x_10, x_63); lean_dec(x_2); return x_82; } -else -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_83 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_quoteAutoTactic___spec__3___rarg(x_9, x_10, x_11); -x_84 = lean_ctor_get(x_83, 0); -lean_inc(x_84); -x_85 = lean_ctor_get(x_83, 1); -lean_inc(x_85); -lean_dec(x_83); -x_86 = l_Lean_Elab_Term_getCurrMacroScope(x_5, x_6, x_7, x_8, x_9, x_10, x_85); -x_87 = lean_ctor_get(x_86, 1); -lean_inc(x_87); -lean_dec(x_86); -x_88 = l_Lean_Elab_Term_getMainModule___rarg(x_10, x_87); -x_89 = lean_ctor_get(x_88, 1); -lean_inc(x_89); -lean_dec(x_88); -x_90 = l_myMacro____x40_Init_Notation___hyg_12336____closed__9; -lean_inc(x_84); -x_91 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_91, 0, x_84); -lean_ctor_set(x_91, 1, x_90); -x_92 = l_Array_empty___closed__1; -x_93 = lean_array_push(x_92, x_91); -x_94 = l_Array_appendCore___rarg(x_92, x_77); -lean_dec(x_77); -x_95 = l_Lean_nullKind___closed__2; -x_96 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_96, 0, x_95); -lean_ctor_set(x_96, 1, x_94); -x_97 = lean_array_push(x_92, x_96); -x_98 = l_myMacro____x40_Init_Notation___hyg_12336____closed__13; -x_99 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_99, 0, x_84); -lean_ctor_set(x_99, 1, x_98); -x_100 = lean_array_push(x_97, x_99); -x_101 = lean_array_push(x_100, x_75); -x_102 = l_myMacro____x40_Init_Notation___hyg_12336____closed__12; -x_103 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_103, 0, x_102); -lean_ctor_set(x_103, 1, x_101); -x_104 = lean_array_push(x_93, x_103); -x_105 = l_myMacro____x40_Init_Notation___hyg_12336____closed__10; -x_106 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_106, 0, x_105); -lean_ctor_set(x_106, 1, x_104); -x_107 = lean_box(0); -x_108 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3(x_73, x_71, x_72, x_56, x_74, x_3, x_2, x_1, x_4, x_106, x_107, x_5, x_6, x_7, x_8, x_9, x_10, x_89); -lean_dec(x_2); -return x_108; -} } else { -lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -lean_dec(x_63); -lean_dec(x_55); +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +lean_dec(x_37); +lean_dec(x_29); lean_dec(x_15); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_109 = lean_ctor_get(x_70, 0); -lean_inc(x_109); -lean_dec(x_70); -x_110 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_110, 0, x_17); -x_111 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__7; -x_112 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_112, 0, x_111); -lean_ctor_set(x_112, 1, x_110); -x_113 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__9; -x_114 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_114, 0, x_112); -lean_ctor_set(x_114, 1, x_113); -x_115 = l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___spec__4___rarg(x_109, x_114, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_83 = lean_ctor_get(x_44, 0); +lean_inc(x_83); +lean_dec(x_44); +x_84 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_84, 0, x_17); +x_85 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__4; +x_86 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_84); +x_87 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__6; +x_88 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_88, 0, x_86); +lean_ctor_set(x_88, 1, x_87); +x_89 = l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___spec__4___rarg(x_83, x_88, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_109); -return x_115; +lean_dec(x_83); +return x_89; } } } default: { -lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; -lean_dec(x_55); +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +lean_dec(x_29); lean_dec(x_17); lean_dec(x_15); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_116 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -x_117 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__12; -x_118 = lean_panic_fn(x_116, x_117); -x_119 = lean_apply_7(x_118, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_119; +x_90 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; +x_91 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__9; +x_92 = lean_panic_fn(x_90, x_91); +x_93 = lean_apply_7(x_92, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_93; } } } } else { -lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; -x_120 = lean_ctor_get(x_9, 0); -x_121 = lean_ctor_get(x_9, 1); -x_122 = lean_ctor_get(x_9, 2); -x_123 = lean_ctor_get(x_9, 3); -x_124 = lean_ctor_get(x_9, 4); -x_125 = lean_ctor_get(x_9, 5); -x_126 = lean_ctor_get(x_9, 6); -x_127 = lean_ctor_get(x_9, 7); -lean_inc(x_127); -lean_inc(x_126); -lean_inc(x_125); -lean_inc(x_124); -lean_inc(x_123); -lean_inc(x_122); -lean_inc(x_121); -lean_inc(x_120); +lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_94 = lean_ctor_get(x_9, 0); +x_95 = lean_ctor_get(x_9, 1); +x_96 = lean_ctor_get(x_9, 2); +x_97 = lean_ctor_get(x_9, 3); +x_98 = lean_ctor_get(x_9, 4); +x_99 = lean_ctor_get(x_9, 5); +x_100 = lean_ctor_get(x_9, 6); +x_101 = lean_ctor_get(x_9, 7); +lean_inc(x_101); +lean_inc(x_100); +lean_inc(x_99); +lean_inc(x_98); +lean_inc(x_97); +lean_inc(x_96); +lean_inc(x_95); +lean_inc(x_94); lean_dec(x_9); -x_128 = l_Lean_replaceRef(x_16, x_123); -lean_dec(x_123); +x_102 = l_Lean_replaceRef(x_16, x_97); +lean_dec(x_97); lean_dec(x_16); -x_129 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_129, 0, x_120); -lean_ctor_set(x_129, 1, x_121); -lean_ctor_set(x_129, 2, x_122); -lean_ctor_set(x_129, 3, x_128); -lean_ctor_set(x_129, 4, x_124); -lean_ctor_set(x_129, 5, x_125); -lean_ctor_set(x_129, 6, x_126); -lean_ctor_set(x_129, 7, x_127); +x_103 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_103, 0, x_94); +lean_ctor_set(x_103, 1, x_95); +lean_ctor_set(x_103, 2, x_96); +lean_ctor_set(x_103, 3, x_102); +lean_ctor_set(x_103, 4, x_98); +lean_ctor_set(x_103, 5, x_99); +lean_ctor_set(x_103, 6, x_100); +lean_ctor_set(x_103, 7, x_101); if (lean_obj_tag(x_18) == 0) { -lean_object* x_130; lean_object* x_131; lean_object* x_132; uint8_t x_133; lean_object* x_134; -x_130 = lean_ctor_get(x_15, 4); -lean_inc(x_130); -x_131 = l_Lean_Syntax_getArgs(x_130); -lean_dec(x_130); -lean_inc(x_15); -x_132 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue), 9, 1); -lean_closure_set(x_132, 0, x_15); -x_133 = 0; -lean_inc(x_10); -lean_inc(x_129); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_134 = l_Lean_Elab_Term_elabBinders___rarg(x_131, x_132, x_133, x_5, x_6, x_7, x_8, x_129, x_10, x_11); -if (lean_obj_tag(x_134) == 0) -{ -lean_object* x_135; lean_object* x_136; -x_135 = lean_ctor_get(x_134, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_135, 0); -lean_inc(x_136); -if (lean_obj_tag(x_136) == 0) -{ -lean_object* x_137; -x_137 = lean_ctor_get(x_135, 1); -lean_inc(x_137); -lean_dec(x_135); -if (lean_obj_tag(x_137) == 0) -{ -lean_object* x_138; lean_object* x_139; lean_object* x_140; -lean_dec(x_17); -lean_dec(x_15); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_138 = lean_ctor_get(x_134, 1); -lean_inc(x_138); -lean_dec(x_134); -x_139 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__3; -x_140 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___spec__1___rarg(x_139, x_5, x_6, x_7, x_8, x_129, x_10, x_138); -lean_dec(x_10); -lean_dec(x_129); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -return x_140; +lean_object* x_104; lean_object* x_105; lean_object* x_106; uint8_t x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_104 = lean_ctor_get(x_15, 4); +lean_inc(x_104); +x_105 = l_Lean_Syntax_getArgs(x_104); +lean_dec(x_104); +x_106 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__4), 14, 6); +lean_closure_set(x_106, 0, x_15); +lean_closure_set(x_106, 1, x_17); +lean_closure_set(x_106, 2, x_3); +lean_closure_set(x_106, 3, x_2); +lean_closure_set(x_106, 4, x_1); +lean_closure_set(x_106, 5, x_4); +x_107 = 1; +x_108 = lean_box(x_107); +x_109 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg___boxed), 10, 3); +lean_closure_set(x_109, 0, x_105); +lean_closure_set(x_109, 1, x_106); +lean_closure_set(x_109, 2, x_108); +x_110 = l_Lean_Elab_Term_withAutoBoundImplicitLocal___rarg(x_109, x_107, x_5, x_6, x_7, x_8, x_103, x_10, x_11); +return x_110; } else { -lean_object* x_141; lean_object* x_142; lean_object* x_143; -x_141 = lean_ctor_get(x_134, 1); -lean_inc(x_141); -lean_dec(x_134); -x_142 = lean_ctor_get(x_137, 0); -lean_inc(x_142); -lean_dec(x_137); -lean_inc(x_10); -lean_inc(x_129); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_142); -x_143 = l_Lean_Meta_inferType(x_142, x_7, x_8, x_129, x_10, x_141); -if (lean_obj_tag(x_143) == 0) -{ -lean_object* x_144; lean_object* x_145; uint8_t x_146; lean_object* x_147; lean_object* x_148; -x_144 = lean_ctor_get(x_143, 0); -lean_inc(x_144); -x_145 = lean_ctor_get(x_143, 1); -lean_inc(x_145); -lean_dec(x_143); -x_146 = lean_ctor_get_uint8(x_15, sizeof(void*)*7); -lean_inc(x_17); -x_147 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__1___boxed), 15, 7); -lean_closure_set(x_147, 0, x_15); -lean_closure_set(x_147, 1, x_142); -lean_closure_set(x_147, 2, x_17); -lean_closure_set(x_147, 3, x_3); -lean_closure_set(x_147, 4, x_2); -lean_closure_set(x_147, 5, x_1); -lean_closure_set(x_147, 6, x_4); -x_148 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda___spec__1___rarg(x_17, x_146, x_144, x_147, x_5, x_6, x_7, x_8, x_129, x_10, x_145); -return x_148; -} -else -{ -lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; -lean_dec(x_142); -lean_dec(x_129); -lean_dec(x_17); -lean_dec(x_15); -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_149 = lean_ctor_get(x_143, 0); -lean_inc(x_149); -x_150 = lean_ctor_get(x_143, 1); -lean_inc(x_150); -if (lean_is_exclusive(x_143)) { - lean_ctor_release(x_143, 0); - lean_ctor_release(x_143, 1); - x_151 = x_143; -} else { - lean_dec_ref(x_143); - x_151 = lean_box(0); -} -if (lean_is_scalar(x_151)) { - x_152 = lean_alloc_ctor(1, 2, 0); -} else { - x_152 = x_151; -} -lean_ctor_set(x_152, 0, x_149); -lean_ctor_set(x_152, 1, x_150); -return x_152; -} -} -} -else -{ -lean_object* x_153; lean_object* x_154; lean_object* x_155; uint8_t x_156; lean_object* x_157; lean_object* x_158; -x_153 = lean_ctor_get(x_134, 1); -lean_inc(x_153); -lean_dec(x_134); -x_154 = lean_ctor_get(x_135, 1); -lean_inc(x_154); -lean_dec(x_135); -x_155 = lean_ctor_get(x_136, 0); -lean_inc(x_155); -lean_dec(x_136); -x_156 = lean_ctor_get_uint8(x_15, sizeof(void*)*7); -lean_inc(x_17); -x_157 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__2___boxed), 15, 7); -lean_closure_set(x_157, 0, x_15); -lean_closure_set(x_157, 1, x_17); -lean_closure_set(x_157, 2, x_154); -lean_closure_set(x_157, 3, x_3); -lean_closure_set(x_157, 4, x_2); -lean_closure_set(x_157, 5, x_1); -lean_closure_set(x_157, 6, x_4); -x_158 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda___spec__1___rarg(x_17, x_156, x_155, x_157, x_5, x_6, x_7, x_8, x_129, x_10, x_153); -return x_158; -} -} -else -{ -lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; -lean_dec(x_129); -lean_dec(x_17); -lean_dec(x_15); -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_159 = lean_ctor_get(x_134, 0); -lean_inc(x_159); -x_160 = lean_ctor_get(x_134, 1); -lean_inc(x_160); -if (lean_is_exclusive(x_134)) { - lean_ctor_release(x_134, 0); - lean_ctor_release(x_134, 1); - x_161 = x_134; -} else { - lean_dec_ref(x_134); - x_161 = lean_box(0); -} -if (lean_is_scalar(x_161)) { - x_162 = lean_alloc_ctor(1, 2, 0); -} else { - x_162 = x_161; -} -lean_ctor_set(x_162, 0, x_159); -lean_ctor_set(x_162, 1, x_160); -return x_162; -} -} -else -{ -lean_object* x_163; uint8_t x_164; -x_163 = lean_ctor_get(x_18, 0); -lean_inc(x_163); +lean_object* x_111; uint8_t x_112; +x_111 = lean_ctor_get(x_18, 0); +lean_inc(x_111); lean_dec(x_18); -x_164 = lean_ctor_get_uint8(x_163, sizeof(void*)*4); -switch (x_164) { +x_112 = lean_ctor_get_uint8(x_111, sizeof(void*)*4); +switch (x_112) { case 0: { -lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; -lean_dec(x_163); +lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +lean_dec(x_111); lean_dec(x_15); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_165 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_165, 0, x_17); -x_166 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__2; -x_167 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_167, 0, x_166); -lean_ctor_set(x_167, 1, x_165); -x_168 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__3; -x_169 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_169, 0, x_167); -lean_ctor_set(x_169, 1, x_168); -x_170 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___spec__2___rarg(x_169, x_5, x_6, x_7, x_8, x_129, x_10, x_11); +x_113 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_113, 0, x_17); +x_114 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__2; +x_115 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_115, 0, x_114); +lean_ctor_set(x_115, 1, x_113); +x_116 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__3; +x_117 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_117, 0, x_115); +lean_ctor_set(x_117, 1, x_116); +x_118 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___spec__2___rarg(x_117, x_5, x_6, x_7, x_8, x_103, x_10, x_11); lean_dec(x_10); -lean_dec(x_129); +lean_dec(x_103); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -return x_170; +return x_118; } case 1: { -lean_object* x_171; -x_171 = lean_ctor_get(x_15, 6); -lean_inc(x_171); -if (lean_obj_tag(x_171) == 0) +lean_object* x_119; +x_119 = lean_ctor_get(x_15, 6); +lean_inc(x_119); +if (lean_obj_tag(x_119) == 0) { -lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; -lean_dec(x_163); +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; +lean_dec(x_111); lean_dec(x_15); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_172 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_172, 0, x_17); -x_173 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__2; -x_174 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_174, 0, x_173); -lean_ctor_set(x_174, 1, x_172); -x_175 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__5; -x_176 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_176, 0, x_174); -lean_ctor_set(x_176, 1, x_175); -x_177 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___spec__3___rarg(x_176, x_5, x_6, x_7, x_8, x_129, x_10, x_11); +x_120 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_120, 0, x_17); +x_121 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__2; +x_122 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_122, 0, x_121); +lean_ctor_set(x_122, 1, x_120); +x_123 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__2; +x_124 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_124, 0, x_122); +lean_ctor_set(x_124, 1, x_123); +x_125 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___spec__3___rarg(x_124, x_5, x_6, x_7, x_8, x_103, x_10, x_11); lean_dec(x_10); -lean_dec(x_129); +lean_dec(x_103); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -return x_177; +return x_125; } else { -lean_object* x_178; -x_178 = lean_ctor_get(x_15, 5); -lean_inc(x_178); -if (lean_obj_tag(x_178) == 0) +lean_object* x_126; +x_126 = lean_ctor_get(x_15, 5); +lean_inc(x_126); +if (lean_obj_tag(x_126) == 0) { -lean_object* x_179; lean_object* x_180; lean_object* x_181; uint8_t x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; uint8_t x_188; +lean_object* x_127; lean_object* x_128; lean_object* x_129; uint8_t 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_dec(x_17); -x_179 = lean_ctor_get(x_163, 0); -lean_inc(x_179); -x_180 = lean_ctor_get(x_163, 1); -lean_inc(x_180); -x_181 = lean_ctor_get(x_163, 2); -lean_inc(x_181); -x_182 = lean_ctor_get_uint8(x_163, sizeof(void*)*4 + 1); -lean_dec(x_163); -x_183 = lean_ctor_get(x_171, 0); -lean_inc(x_183); -lean_dec(x_171); -x_184 = lean_ctor_get(x_15, 4); -lean_inc(x_184); +x_127 = lean_ctor_get(x_111, 0); +lean_inc(x_127); +x_128 = lean_ctor_get(x_111, 1); +lean_inc(x_128); +x_129 = lean_ctor_get(x_111, 2); +lean_inc(x_129); +x_130 = lean_ctor_get_uint8(x_111, sizeof(void*)*4 + 1); +lean_dec(x_111); +x_131 = lean_ctor_get(x_119, 0); +lean_inc(x_131); +lean_dec(x_119); +x_132 = lean_ctor_get(x_15, 4); +lean_inc(x_132); lean_dec(x_15); -x_185 = l_Lean_Syntax_getArgs(x_184); -lean_dec(x_184); -x_186 = lean_array_get_size(x_185); -x_187 = lean_unsigned_to_nat(0u); -x_188 = lean_nat_dec_lt(x_187, x_186); -lean_dec(x_186); -if (x_188 == 0) +x_133 = l_Lean_Syntax_getArgs(x_132); +lean_dec(x_132); +x_134 = lean_array_get_size(x_133); +x_135 = lean_unsigned_to_nat(0u); +x_136 = lean_nat_dec_lt(x_135, x_134); +lean_dec(x_134); +if (x_136 == 0) { -lean_object* x_189; lean_object* x_190; -lean_dec(x_185); -x_189 = lean_box(0); -x_190 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3(x_181, x_179, x_180, x_164, x_182, x_3, x_2, x_1, x_4, x_183, x_189, x_5, x_6, x_7, x_8, x_129, x_10, x_11); +lean_object* x_137; lean_object* x_138; +lean_dec(x_133); +x_137 = lean_box(0); +x_138 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__5(x_129, x_127, x_128, x_112, x_130, x_3, x_2, x_1, x_4, x_131, x_137, x_5, x_6, x_7, x_8, x_103, x_10, x_11); lean_dec(x_2); -return x_190; +return x_138; } else { -lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; -x_191 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_quoteAutoTactic___spec__3___rarg(x_129, x_10, x_11); -x_192 = lean_ctor_get(x_191, 0); -lean_inc(x_192); -x_193 = lean_ctor_get(x_191, 1); -lean_inc(x_193); -lean_dec(x_191); -x_194 = l_Lean_Elab_Term_getCurrMacroScope(x_5, x_6, x_7, x_8, x_129, x_10, x_193); -x_195 = lean_ctor_get(x_194, 1); -lean_inc(x_195); -lean_dec(x_194); -x_196 = l_Lean_Elab_Term_getMainModule___rarg(x_10, x_195); -x_197 = lean_ctor_get(x_196, 1); -lean_inc(x_197); -lean_dec(x_196); -x_198 = l_myMacro____x40_Init_Notation___hyg_12336____closed__9; -lean_inc(x_192); -x_199 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_199, 0, x_192); -lean_ctor_set(x_199, 1, x_198); -x_200 = l_Array_empty___closed__1; -x_201 = lean_array_push(x_200, x_199); -x_202 = l_Array_appendCore___rarg(x_200, x_185); -lean_dec(x_185); -x_203 = l_Lean_nullKind___closed__2; -x_204 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_204, 0, x_203); -lean_ctor_set(x_204, 1, x_202); -x_205 = lean_array_push(x_200, x_204); -x_206 = l_myMacro____x40_Init_Notation___hyg_12336____closed__13; -x_207 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_207, 0, x_192); -lean_ctor_set(x_207, 1, x_206); -x_208 = lean_array_push(x_205, x_207); -x_209 = lean_array_push(x_208, x_183); -x_210 = l_myMacro____x40_Init_Notation___hyg_12336____closed__12; -x_211 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_211, 0, x_210); -lean_ctor_set(x_211, 1, x_209); -x_212 = lean_array_push(x_201, x_211); -x_213 = l_myMacro____x40_Init_Notation___hyg_12336____closed__10; -x_214 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_214, 0, x_213); -lean_ctor_set(x_214, 1, x_212); -x_215 = lean_box(0); -x_216 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3(x_181, x_179, x_180, x_164, x_182, x_3, x_2, x_1, x_4, x_214, x_215, x_5, x_6, x_7, x_8, x_129, x_10, x_197); +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; +x_139 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_quoteAutoTactic___spec__3___rarg(x_103, x_10, x_11); +x_140 = lean_ctor_get(x_139, 0); +lean_inc(x_140); +x_141 = lean_ctor_get(x_139, 1); +lean_inc(x_141); +lean_dec(x_139); +x_142 = l_Lean_Elab_Term_getCurrMacroScope(x_5, x_6, x_7, x_8, x_103, x_10, x_141); +x_143 = lean_ctor_get(x_142, 1); +lean_inc(x_143); +lean_dec(x_142); +x_144 = l_Lean_Elab_Term_getMainModule___rarg(x_10, x_143); +x_145 = lean_ctor_get(x_144, 1); +lean_inc(x_145); +lean_dec(x_144); +x_146 = l_myMacro____x40_Init_Notation___hyg_12336____closed__9; +lean_inc(x_140); +x_147 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_147, 0, x_140); +lean_ctor_set(x_147, 1, x_146); +x_148 = l_Array_empty___closed__1; +x_149 = lean_array_push(x_148, x_147); +x_150 = l_Array_appendCore___rarg(x_148, x_133); +lean_dec(x_133); +x_151 = l_Lean_nullKind___closed__2; +x_152 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_152, 0, x_151); +lean_ctor_set(x_152, 1, x_150); +x_153 = lean_array_push(x_148, x_152); +x_154 = l_myMacro____x40_Init_Notation___hyg_12336____closed__13; +x_155 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_155, 0, x_140); +lean_ctor_set(x_155, 1, x_154); +x_156 = lean_array_push(x_153, x_155); +x_157 = lean_array_push(x_156, x_131); +x_158 = l_myMacro____x40_Init_Notation___hyg_12336____closed__12; +x_159 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_159, 0, x_158); +lean_ctor_set(x_159, 1, x_157); +x_160 = lean_array_push(x_149, x_159); +x_161 = l_myMacro____x40_Init_Notation___hyg_12336____closed__10; +x_162 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_162, 0, x_161); +lean_ctor_set(x_162, 1, x_160); +x_163 = lean_box(0); +x_164 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__5(x_129, x_127, x_128, x_112, x_130, x_3, x_2, x_1, x_4, x_162, x_163, x_5, x_6, x_7, x_8, x_103, x_10, x_145); lean_dec(x_2); -return x_216; +return x_164; } } else { -lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; -lean_dec(x_171); -lean_dec(x_163); +lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; +lean_dec(x_119); +lean_dec(x_111); lean_dec(x_15); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_217 = lean_ctor_get(x_178, 0); -lean_inc(x_217); -lean_dec(x_178); -x_218 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_218, 0, x_17); -x_219 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__7; -x_220 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_220, 0, x_219); -lean_ctor_set(x_220, 1, x_218); -x_221 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__9; -x_222 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_222, 0, x_220); -lean_ctor_set(x_222, 1, x_221); -x_223 = l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___spec__4___rarg(x_217, x_222, x_5, x_6, x_7, x_8, x_129, x_10, x_11); +x_165 = lean_ctor_get(x_126, 0); +lean_inc(x_165); +lean_dec(x_126); +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_withFields___rarg___closed__4; +x_168 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_168, 0, x_167); +lean_ctor_set(x_168, 1, x_166); +x_169 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__6; +x_170 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_170, 0, x_168); +lean_ctor_set(x_170, 1, x_169); +x_171 = l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___spec__4___rarg(x_165, x_170, x_5, x_6, x_7, x_8, x_103, x_10, x_11); lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_217); -return x_223; +lean_dec(x_165); +return x_171; } } } default: { -lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; -lean_dec(x_163); +lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; +lean_dec(x_111); lean_dec(x_17); lean_dec(x_15); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_224 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -x_225 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__12; -x_226 = lean_panic_fn(x_224, x_225); -x_227 = lean_apply_7(x_226, x_5, x_6, x_7, x_8, x_129, x_10, x_11); -return x_227; +x_172 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; +x_173 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__9; +x_174 = lean_panic_fn(x_172, x_173); +x_175 = lean_apply_7(x_174, x_5, x_6, x_7, x_8, x_103, x_10, x_11); +return x_175; } } } @@ -10458,7 +9983,7 @@ lean_dec(x_1); return x_16; } } -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3___boxed(lean_object** _args) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__5___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; lean_object* x_3 = _args[2]; @@ -10484,7 +10009,7 @@ x_19 = lean_unbox(x_4); lean_dec(x_4); x_20 = lean_unbox(x_5); lean_dec(x_5); -x_21 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3(x_1, x_2, x_3, x_19, x_20, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); +x_21 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__5(x_1, x_2, x_3, x_19, x_20, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); lean_dec(x_11); lean_dec(x_7); return x_21; @@ -19622,7 +19147,7 @@ lean_dec(x_8); return x_15; } } -lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_4478_(lean_object* x_1) { +lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_4477_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -19774,8 +19299,12 @@ l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rar lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__4); l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg___closed__1(); lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg___closed__1); -l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___closed__1); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3___closed__1); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3___closed__2 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3___closed__2); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3___closed__3 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3___closed__3); l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__1(); lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__1); l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__2 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__2(); @@ -19794,12 +19323,6 @@ l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed_ lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__8); l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__9 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__9(); lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__9); -l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__10 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__10(); -lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__10); -l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__11 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__11(); -lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__11); -l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__12 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__12(); -lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__12); l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse___closed__1(); lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse___closed__1); l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse___closed__2 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse___closed__2(); @@ -19862,7 +19385,7 @@ l_Lean_Elab_expandDeclId___at_Lean_Elab_Command_elabStructure___spec__4___closed lean_mark_persistent(l_Lean_Elab_expandDeclId___at_Lean_Elab_Command_elabStructure___spec__4___closed__1); l_Lean_Elab_Command_elabStructure___closed__1 = _init_l_Lean_Elab_Command_elabStructure___closed__1(); lean_mark_persistent(l_Lean_Elab_Command_elabStructure___closed__1); -res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_4478_(lean_io_mk_world()); +res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_4477_(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));