From 702a24913fd25057bec78f53f363e35fec370197 Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Tue, 10 Aug 2021 15:07:16 -0700 Subject: [PATCH] chore: update stage0 --- stage0/src/Init/Control/StateRef.lean | 7 +- stage0/src/Lean/Elab/Structure.lean | 105 +- stage0/src/Lean/Elab/Syntax.lean | 6 +- stage0/src/Lean/Elab/Term.lean | 56 + stage0/src/Lean/Meta/Reduce.lean | 7 +- stage0/src/Lean/Util/MonadCache.lean | 1 + stage0/stdlib/Init/Control/StateRef.c | 19 + stage0/stdlib/Lean/Elab/Structure.c | 2527 +++++++++++++------ stage0/stdlib/Lean/Elab/Syntax.c | 2497 +++++++++--------- stage0/stdlib/Lean/Elab/Term.c | 3362 ++++++++++++++++++++++--- stage0/stdlib/Lean/Meta/Reduce.c | 286 ++- stage0/stdlib/Lean/Util/MonadCache.c | 31 + 12 files changed, 6311 insertions(+), 2593 deletions(-) diff --git a/stage0/src/Init/Control/StateRef.lean b/stage0/src/Init/Control/StateRef.lean index e9c6da9620..7c4e92f3bc 100644 --- a/stage0/src/Init/Control/StateRef.lean +++ b/stage0/src/Init/Control/StateRef.lean @@ -32,6 +32,7 @@ variable {ω σ : Type} {m : Type → Type} {α : Type} instance [Monad m] : Monad (StateRefT' ω σ m) := inferInstanceAs (Monad (ReaderT _ _)) instance : MonadLift m (StateRefT' ω σ m) := ⟨StateRefT'.lift⟩ instance (σ m) [Monad m] : MonadFunctor m (StateRefT' ω σ m) := inferInstanceAs (MonadFunctor m (ReaderT _ _)) +instance [Alternative m] [Monad m] : Alternative (StateRefT' ω σ m) := inferInstanceAs (Alternative (ReaderT _ _)) @[inline] protected def get [Monad m] [MonadLiftT (ST ω) m] : StateRefT' ω σ m σ := fun ref => ref.get @@ -42,16 +43,14 @@ instance (σ m) [Monad m] : MonadFunctor m (StateRefT' ω σ m) := inferInstance @[inline] protected def modifyGet [Monad m] [MonadLiftT (ST ω) m] (f : σ → α × σ) : StateRefT' ω σ m α := fun ref => ref.modifyGet f -instance [MonadLiftT (ST ω) m] [Monad m] : MonadStateOf σ (StateRefT' ω σ m) := { +instance [MonadLiftT (ST ω) m] [Monad m] : MonadStateOf σ (StateRefT' ω σ m) where get := StateRefT'.get set := StateRefT'.set modifyGet := StateRefT'.modifyGet -} -instance (ε) [MonadExceptOf ε m] : MonadExceptOf ε (StateRefT' ω σ m) := { +instance (ε) [MonadExceptOf ε m] : MonadExceptOf ε (StateRefT' ω σ m) where throw := StateRefT'.lift ∘ throwThe ε tryCatch := fun x c s => tryCatchThe ε (x s) (fun e => c e s) -} end StateRefT' diff --git a/stage0/src/Lean/Elab/Structure.lean b/stage0/src/Lean/Elab/Structure.lean index 341b3d3738..050b3ce2f6 100644 --- a/stage0/src/Lean/Elab/Structure.lean +++ b/stage0/src/Lean/Elab/Structure.lean @@ -238,7 +238,7 @@ private def containsFieldName (infos : Array StructFieldInfo) (fieldName : Name) (findFieldInfo? infos fieldName).isSome register_builtin_option structureDiamondWarning : Bool := { - defValue := true -- TODO: set as false after finishing support for diamonds + defValue := false descr := "enable/disable warning messages for structure diamonds" } @@ -318,36 +318,47 @@ private def getFieldType (infos : Array StructFieldInfo) (parentStructName : Nam return TransformStep.visit e Meta.transform projType (pre := visit) -private partial def copyNewFieldsFrom (structDeclName : Name) (infos : Array StructFieldInfo) (parentType : Expr) (parentStructName : Name) (k : Array StructFieldInfo → TermElabM α) : TermElabM α := do - let fieldNames := getStructureFieldsFlattened (← getEnv) parentStructName (includeSubobjectFields := false) - -- trace[Meta.debug] "field names: {fieldNames}" - let rec go (i : Nat) (infos : Array StructFieldInfo) : TermElabM α := do - if h : i < fieldNames.size then - let fieldName := fieldNames.get ⟨i, h⟩ - let fieldType ← getFieldType infos parentStructName parentType fieldName - match (← findFieldInfo? infos fieldName) with - | some existingFieldInfo => - let existingFieldType ← inferType existingFieldInfo.fvar - unless (← isDefEq fieldType existingFieldType) do - throwError "parent field type mismatch, field '{fieldName}' from parent '{parentStructName}' {← mkHasTypeButIsExpectedMsg fieldType existingFieldType}" - -- TODO: if new field has a default value, it should probably override the default at `infos` (if it has one) - go (i+1) infos - | none => - /- TODO: we are ignoring the following information from the `fieldName` declaraion at `parentStructName`. - - Binder annotation - - Visibility annotation (private/protected) - - `inferMod` - - Default value. - -/ - withLocalDeclD fieldName fieldType fun fieldFVar => do - -- trace[Meta.debug] "copying field {fieldName} : {← inferType fieldFVar}" - let fieldDeclName := structDeclName ++ fieldName - let infos := infos.push { name := fieldName, declName := fieldDeclName, fvar := fieldFVar, value? := none, - kind := StructFieldKind.newField, inferMod := false } - go (i+1) infos - else - k infos - go 0 infos +private partial def copyNewFieldsFrom (structDeclName : Name) (infos : Array StructFieldInfo) (parentType : Expr) (k : Array StructFieldInfo → TermElabM α) : TermElabM α := do + copyFields infos parentType k +where + copyFields (infos : Array StructFieldInfo) (parentType : Expr) (k : Array StructFieldInfo → TermElabM α) : TermElabM α := do + let parentStructName ← getStructureName parentType + let fieldNames := getStructureFields (← getEnv) parentStructName + let rec copy (i : Nat) (infos : Array StructFieldInfo) : TermElabM α := do + if h : i < fieldNames.size then + let fieldName := fieldNames.get ⟨i, h⟩ + let fieldType ← getFieldType infos parentStructName parentType fieldName + match (← findFieldInfo? infos fieldName) with + | some existingFieldInfo => + let existingFieldType ← inferType existingFieldInfo.fvar + unless (← isDefEq fieldType existingFieldType) do + throwError "parent field type mismatch, field '{fieldName}' from parent '{parentStructName}' {← mkHasTypeButIsExpectedMsg fieldType existingFieldType}" + -- TODO: if new field has a default value, it should probably override the default at `infos` (if it has one) + copy (i+1) infos + | none => + let some fieldInfo ← getFieldInfo? (← getEnv) parentStructName fieldName | unreachable! + let addNewField : TermElabM α := do + /- TODO: we are ignoring the following information from the `fieldName` declaraion at `parentStructName`. + - Visibility annotation (private/protected) + - Default value. + -/ + withLocalDecl fieldName fieldInfo.binderInfo fieldType fun fieldFVar => do + -- trace[Meta.debug] "copying field {fieldName} : {← inferType fieldFVar}" + let fieldDeclName := structDeclName ++ fieldName + let infos := infos.push { name := fieldName, declName := fieldDeclName, fvar := fieldFVar, value? := none, + kind := StructFieldKind.newField, inferMod := fieldInfo.inferMod } + copy (i+1) infos + if fieldInfo.subobject?.isSome then + let fieldParentStructName ← getStructureName fieldType + if (← findExistingField? infos fieldParentStructName).isSome then + copyFields infos fieldType (fun infos => copy (i+1) infos) + else + addNewField + else + addNewField + else + k infos + copy 0 infos private def mkToParentName (parentStructName : Name) : Name := Name.mkSimple $ "to" ++ parentStructName.eraseMacroScopes.getString! -- erase macro scopes? @@ -359,12 +370,12 @@ where if h : i < view.parents.size then let parentStx := view.parents.get ⟨i, h⟩ withRef parentStx do - let parent ← Term.elabType parentStx - let parentStructName ← getStructureName parent + let parentType ← Term.elabType parentStx + let parentStructName ← getStructureName parentType if let some existingFieldName ← findExistingField? infos parentStructName then if structureDiamondWarning.get (← getOptions) then logWarning s!"field '{existingFieldName}' from '{parentStructName}' has already been declared" - copyNewFieldsFrom view.declName infos parent parentStructName fun infos => go (i+1) infos (copiedParents.push parent) + copyNewFieldsFrom view.declName infos parentType fun infos => go (i+1) infos (copiedParents.push parentType) -- TODO: if `class`, then we need to create a let-decl that stores the local instance for the `parentStructure` else let toParentName := mkToParentName parentStructName @@ -372,14 +383,13 @@ where throwErrorAt parentStx "field '{toParentName}' has already been declared" let env ← getEnv let binfo := if view.isClass && isClass env parentStructName then BinderInfo.instImplicit else BinderInfo.default - withLocalDecl toParentName binfo parent fun parentFVar => + withLocalDecl toParentName binfo parentType fun parentFVar => let infos := infos.push { name := toParentName, declName := view.declName ++ toParentName, fvar := parentFVar, kind := StructFieldKind.subobject } let subfieldNames := getStructureFieldsFlattened env parentStructName processSubfields view.declName parentFVar parentStructName subfieldNames infos fun infos => go (i+1) infos copiedParents else k infos copiedParents - private def elabFieldTypeValue (view : StructFieldView) : TermElabM (Option Expr × Option Expr) := do Term.withAutoBoundImplicit <| Term.elabBinders view.binders.getArgs fun params => do match view.type? with @@ -611,15 +621,16 @@ private def addDefaults (lctx : LocalContext) (defaultAuxDecls : Array (Name × setReducibleAttribute declName private partial def mkCoercionToCopiedParent (levelParams : List Name) (params : Array Expr) (view : StructView) (parentType : Expr) : MetaM Unit := do + let env ← getEnv let structName := view.declName - let sourceFieldNames := getStructureFieldsFlattened (← getEnv) structName + let sourceFieldNames := getStructureFieldsFlattened env structName let structType ← mkAppN (Lean.mkConst structName (levelParams.map mkLevelParam)) params - -- TODO: binder annotation for instances - withLocalDeclD `source structType fun source => do - let declType ← mkForallFVars params (← mkArrow structType parentType) + let Expr.const parentStructName us _ ← pure parentType.getAppFn | unreachable! + let binfo := if view.isClass && isClass env parentStructName then BinderInfo.instImplicit else BinderInfo.default + withLocalDecl `self binfo structType fun source => do + let declType ← instantiateMVars (← mkForallFVars params (← mkForallFVars #[source] parentType)) let declType := declType.inferImplicit params.size true let rec copyFields (parentType : Expr) : MetaM Expr := do - let env ← getEnv let Expr.const parentStructName us _ ← pure parentType.getAppFn | unreachable! let parentCtor := getStructureCtor env parentStructName let mut result := mkAppN (mkConst parentCtor.name us) parentType.getAppArgs @@ -636,9 +647,10 @@ private partial def mkCoercionToCopiedParent (levelParams : List Name) (params : let fieldVal ← copyFields resultType.bindingDomain! result := mkApp result fieldVal return result - let declVal ← mkLambdaFVars params (← mkLambdaFVars #[source] (← copyFields parentType)) + let declVal ← instantiateMVars (← mkLambdaFVars params (← mkLambdaFVars #[source] (← copyFields parentType))) let declName := structName ++ mkToParentName (← getStructureName parentType) - -- TODO: nice error message if `declName` already exists + if env.contains declName then + throwError "failed to create coercion '{declName}' to parent structure '{parentStructName}', environment already contains a declaration with the same name" addAndCompile <| Declaration.defnDecl { name := declName levelParams := levelParams @@ -647,7 +659,10 @@ private partial def mkCoercionToCopiedParent (levelParams : List Name) (params : hints := ReducibilityHints.abbrev safety := if view.modifiers.isUnsafe then DefinitionSafety.unsafe else DefinitionSafety.safe } - -- TODO: attributes + if binfo.isInstImplicit then + addInstance declName AttributeKind.global (eval_prio default) + else + setReducibleAttribute declName private def elabStructureView (view : StructView) : TermElabM Unit := do view.fields.forM fun field => do @@ -658,7 +673,7 @@ private def elabStructureView (view : StructView) : TermElabM Unit := do let type ← Term.elabType view.type unless validStructType type do throwErrorAt view.type "expected Type" withRef view.ref do - withParents view fun fieldInfos copiedParents => + withParents view fun fieldInfos copiedParents => do withFields view.fields 0 fieldInfos fun fieldInfos => do Term.synthesizeSyntheticMVarsNoPostponing let u ← getResultUniverse type diff --git a/stage0/src/Lean/Elab/Syntax.lean b/stage0/src/Lean/Elab/Syntax.lean index b9f1c54ce2..953ddc79ef 100644 --- a/stage0/src/Lean/Elab/Syntax.lean +++ b/stage0/src/Lean/Elab/Syntax.lean @@ -315,10 +315,10 @@ def resolveSyntaxKind (k : Name) : CommandElabM Name := do let declName := mkIdentFrom stx name let d ← if let some lhsPrec := lhsPrec? then - `($[$doc?:docComment]? @[$attrKind:attrKind $catParserId:ident $(quote prio):numLit] def $declName : Lean.TrailingParserDescr := + `($[$doc?:docComment]? @[$attrKind:attrKind $catParserId:ident $(quote prio):numLit] def $declName:ident : Lean.TrailingParserDescr := ParserDescr.trailingNode $(quote stxNodeKind) $(quote prec) $(quote lhsPrec) $val) else - `($[$doc?:docComment]? @[$attrKind:attrKind $catParserId:ident $(quote prio):numLit] def $declName : Lean.ParserDescr := + `($[$doc?:docComment]? @[$attrKind:attrKind $catParserId:ident $(quote prio):numLit] def $declName:ident : Lean.ParserDescr := ParserDescr.node $(quote stxNodeKind) $(quote prec) $val) trace `Elab fun _ => d withMacroExpansion stx d <| elabCommand d @@ -331,7 +331,7 @@ def syntaxAbbrev := leading_parser "syntax " >> ident >> " := " >> many1 syntax -- TODO: nonatomic names let (val, _) ← runTermElabM none $ fun _ => Term.toParserDescr stx[3] Name.anonymous let stxNodeKind := (← getCurrNamespace) ++ declName.getId - let stx' ← `(def $declName : Lean.ParserDescr := ParserDescr.nodeWithAntiquot $(quote (toString declName.getId)) $(quote stxNodeKind) $val) + let stx' ← `(def $declName:ident : Lean.ParserDescr := ParserDescr.nodeWithAntiquot $(quote (toString declName.getId)) $(quote stxNodeKind) $val) withMacroExpansion stx stx' $ elabCommand stx' def checkRuleKind (given expected : SyntaxNodeKind) : Bool := diff --git a/stage0/src/Lean/Elab/Term.lean b/stage0/src/Lean/Elab/Term.lean index d7466b63c1..db67a44a9c 100644 --- a/stage0/src/Lean/Elab/Term.lean +++ b/stage0/src/Lean/Elab/Term.lean @@ -590,6 +590,42 @@ def throwTypeMismatchError (header? : Option String) (expectedType : Expr) (eTyp def withoutMacroStackAtErr (x : TermElabM α) : TermElabM α := withTheReader Core.Context (fun (ctx : Core.Context) => { ctx with options := pp.macroStack.set ctx.options false }) x +namespace ContainsPendingMVar + +abbrev M := MonadCacheT Expr Unit (OptionT TermElabM) + +/-- See `containsPostponedTerm` -/ +partial def visit (e : Expr) : M Unit := do + checkCache e fun _ => do + match e with + | Expr.forallE _ d b _ => visit d; visit b + | Expr.lam _ d b _ => visit d; visit b + | Expr.letE _ t v b _ => visit t; visit v; visit b + | Expr.app f a _ => visit f; visit a + | Expr.mdata _ b _ => visit b + | Expr.proj _ _ b _ => visit b + | Expr.fvar fvarId .. => + match (← getLocalDecl fvarId) with + | LocalDecl.cdecl .. => return () + | LocalDecl.ldecl (value := v) .. => visit v + | Expr.mvar mvarId .. => + let e' ← instantiateMVars e + if e' != e then + visit e' + else + match (← getDelayedAssignment? mvarId) with + | some d => visit d.val + | none => failure + | _ => return () + +end ContainsPendingMVar + +/-- Return `true` if `e` contains a pending metavariable. Remark: it also visits let-declarations. -/ +def containsPendingMVar (e : Expr) : TermElabM Bool := do + match (← ContainsPendingMVar.visit e |>.run.run) with + | some _ => return false + | none => return true + /- Try to synthesize metavariable using type class resolution. This method assumes the local context and local instances of `instMVar` coincide with the current local context and local instances. @@ -606,6 +642,26 @@ def synthesizeInstMVarCore (instMVar : MVarId) (maxResultSize? : Option Nat := n if (← isExprMVarAssigned instMVar) then let oldVal ← instantiateMVars (mkMVar instMVar) unless (← isDefEq oldVal val) do + if (← containsPendingMVar oldVal <||> containsPendingMVar val) then + /- If `val` or `oldVal` contains metavariables directly or indirectly (e.g., in a let-declaration), + we return `false` to indicate we should try again later. This is very course grain since + the metavariable may not be responsible for the failure. We should refine the test in the future if needed. + This check has been added to address dependencies between postponed metavariables. The following + example demonstrates the issue fixed by this test. + ``` + structure Point where + x : Nat + y : Nat + + def Point.compute (p : Point) : Point := + let p := { p with x := 1 } + let p := { p with y := 0 } + if (p.x - p.y) > p.x then p else p + ``` + The `isDefEq` test above fails for `Decidable (p.x - p.y ≤ p.x)` when the structure instance assigned to + `p` has not been elaborated yet. + -/ + return false -- we will try again later let oldValType ← inferType oldVal let valType ← inferType val unless (← isDefEq oldValType valType) do diff --git a/stage0/src/Lean/Meta/Reduce.lean b/stage0/src/Lean/Meta/Reduce.lean index fbb390dfdf..52fdd8ac2b 100644 --- a/stage0/src/Lean/Meta/Reduce.lean +++ b/stage0/src/Lean/Meta/Reduce.lean @@ -32,9 +32,10 @@ partial def reduce (e : Expr) (explicitOnly skipTypes skipProofs := true) : Meta else args ← args.modifyM i visit pure (mkAppN f args) - | Expr.lam .. => lambdaTelescope e fun xs b => do mkLambdaFVars xs (← visit b) - | Expr.forallE .. => forallTelescope e fun xs b => do mkForallFVars xs (← visit b) - | _ => return e + | Expr.lam .. => lambdaTelescope e fun xs b => do mkLambdaFVars xs (← visit b) + | Expr.forallE .. => forallTelescope e fun xs b => do mkForallFVars xs (← visit b) + | Expr.proj n i s .. => return mkProj n i (← visit s) + | _ => return e visit e |>.run end Lean.Meta diff --git a/stage0/src/Lean/Util/MonadCache.lean b/stage0/src/Lean/Util/MonadCache.lean index 8b507d0837..743bb1f32c 100644 --- a/stage0/src/Lean/Util/MonadCache.lean +++ b/stage0/src/Lean/Util/MonadCache.lean @@ -71,6 +71,7 @@ instance (ε) [MonadExceptOf ε m] : MonadExceptOf ε (MonadCacheT α β m) := i instance : MonadControl m (MonadCacheT α β m) := inferInstanceAs (MonadControl m (StateRefT' _ _ _)) instance [MonadFinally m] : MonadFinally (MonadCacheT α β m) := inferInstanceAs (MonadFinally (StateRefT' _ _ _)) instance [MonadRef m] : MonadRef (MonadCacheT α β m) := inferInstanceAs (MonadRef (StateRefT' _ _ _)) +instance [Alternative m] : Alternative (MonadCacheT α β m) := inferInstanceAs (Alternative (StateRefT' _ _ _)) end MonadCacheT diff --git a/stage0/stdlib/Init/Control/StateRef.c b/stage0/stdlib/Init/Control/StateRef.c index c7d43fcef8..3b4d3edd84 100644 --- a/stage0/stdlib/Init/Control/StateRef.c +++ b/stage0/stdlib/Init/Control/StateRef.c @@ -50,6 +50,7 @@ lean_object* l_StateRefT_x27_instMonadExceptOfStateRefT_x27___rarg___lambda__2(l lean_object* l_StateRefT_x27_instMonadStateOfStateRefT_x27___rarg(lean_object*, lean_object*); lean_object* l_StateRefT_x27_get(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_instMonadFinallyStateRefT_x27___rarg(lean_object*, lean_object*); +lean_object* l_StateRefT_x27_instAlternativeStateRefT_x27(lean_object*, lean_object*, lean_object*); lean_object* l_StateRefT_x27_run_x27___rarg___lambda__1(lean_object*, lean_object*); lean_object* l_StateRefT_x27_run___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_StateRefT_x27_set___rarg(lean_object*, lean_object*, lean_object*); @@ -65,6 +66,8 @@ lean_object* l_ST_Prim_Ref_modifyGetUnsafe___rarg___boxed(lean_object*, lean_obj lean_object* l_instMonadControlReaderT___lambda__2(lean_object*, lean_object*, lean_object*); static lean_object* l_instMonadControlStateRefT_x27___closed__3; lean_object* l_ReaderT_instMonadReaderT___rarg(lean_object*); +lean_object* l_StateRefT_x27_instAlternativeStateRefT_x27___rarg(lean_object*, lean_object*); +lean_object* l_ReaderT_instAlternativeReaderT___rarg(lean_object*, lean_object*); lean_object* l_StateRefT_x27_instMonadStateRefT_x27___rarg(lean_object*); lean_object* l_StateRefT_x27_run___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: @@ -297,6 +300,22 @@ x_4 = lean_alloc_closure((void*)(l_StateRefT_x27_instMonadFunctorStateRefT_x27__ return x_4; } } +lean_object* l_StateRefT_x27_instAlternativeStateRefT_x27___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_ReaderT_instAlternativeReaderT___rarg(x_1, x_2); +return x_3; +} +} +lean_object* l_StateRefT_x27_instAlternativeStateRefT_x27(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_alloc_closure((void*)(l_StateRefT_x27_instAlternativeStateRefT_x27___rarg), 2, 0); +return x_4; +} +} lean_object* l_StateRefT_x27_get___rarg(lean_object* x_1, lean_object* x_2) { _start: { diff --git a/stage0/stdlib/Lean/Elab/Structure.c b/stage0/stdlib/Lean/Elab/Structure.c index fc24fb039f..95e2989d3c 100644 --- a/stage0/stdlib/Lean/Elab/Structure.c +++ b/stage0/stdlib/Lean/Elab/Structure.c @@ -36,12 +36,12 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUnive lean_object* l_Lean_Elab_expandOptDeclSig(lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* lean_erase_macro_scopes(lean_object*); -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___closed__3; lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___spec__3(lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1___closed__1; lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields_match__1(lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_isProjFnApp_x3f_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); @@ -64,7 +64,6 @@ static lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure lean_object* l_Lean_mkCasesOn___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_instantiateLevelMVars___at_Lean_Meta_instantiateLevelMVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___closed__1; -static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__6; lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getOptional_x3f(lean_object*); lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -84,7 +83,7 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToPar lean_object* l_Lean_Elab_Command_mkResultUniverse(lean_object*, lean_object*); uint8_t l_Lean_Elab_Modifiers_isProtected(lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__3___closed__6; -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__2(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -94,11 +93,13 @@ static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamFVars___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___closed__10; lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_quoteAutoTactic___spec__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___lambda__1___boxed(lean_object**); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__11; static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkAuxConstructions___closed__4; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_isProjectionOf_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__2___closed__1; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___closed__4; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__5___rarg(lean_object*, lean_object*, lean_object*); @@ -145,7 +146,6 @@ static lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__1___cl lean_object* lean_private_to_user_name(lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__1___closed__1; -static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__4; static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__9; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_declRangeExt; @@ -170,6 +170,7 @@ lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_isProjectionOf_x3f_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_structureDiamondWarning; static lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_elabStructure___spec__5___lambda__1___closed__1; lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_elabStructure___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -177,6 +178,7 @@ lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_C static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_1871____closed__2; 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*); +static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___closed__5; 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* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2___closed__4; @@ -199,7 +201,7 @@ static lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure lean_object* l_Lean_Elab_Command_shouldInferResultUniverse(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___closed__1; lean_object* l_Lean_Expr_appArg_x21(lean_object*); -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_elabStructure___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_accLevelAtCtor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__4(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -216,6 +218,7 @@ static lean_object* l_Lean_Elab_Command_elabStructure___closed__10; static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__3___closed__14; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getMainModule___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_USize_decLt(size_t, size_t); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___closed__2; static lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_elabStructure___spec__5___closed__2; @@ -225,6 +228,7 @@ lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean 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*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__16; +static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__8; static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__2; static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__3___closed__9; extern lean_object* l_Lean_levelZero; @@ -263,7 +267,6 @@ lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_C uint8_t l_Lean_Elab_Command_StructFieldInfo_inferMod___default; lean_object* l_Lean_mkAppN(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__15___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_setBinderInfo(lean_object*, lean_object*, uint8_t); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__8; @@ -286,6 +289,7 @@ lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_runTermElabM___spec lean_object* l_Lean_Meta_mkSizeOfInstances(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_setReducibilityStatus___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getFieldInfo_x3f(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTermEnsuringType(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -298,6 +302,7 @@ static uint64_t l_Lean_Elab_Command_instInhabitedStructFieldInfo___closed__1; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamFVars___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_elabStructure___spec__5___closed__1; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addDecl___at_Lean_Meta_mkAuxLemma___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda_loop___spec__1___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Elab_Structure_0__Lean_Elab_Command_validStructType(lean_object*); @@ -324,6 +329,7 @@ lean_object* l_Lean_Elab_addDeclarationRanges___at_Lean_Elab_Command_elabStructu lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___boxed__const__1; static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__2___closed__3; +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkProjections___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_removeUnused_match__1(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -344,7 +350,7 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureV static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__3___closed__10; static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__5___closed__2; static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getFieldType___lambda__1___closed__2; -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__13; lean_object* l_Lean_compileDecl___at_Lean_Meta_mkAuxDefinition___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -355,15 +361,18 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___r lean_object* l_List_forM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__6___closed__4; lean_object* l_Lean_Name_toString(lean_object*, uint8_t); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields(lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go(lean_object*); uint8_t l_Lean_Expr_hasExprMVar(lean_object*); lean_object* l_Lean_Elab_Term_getFVarLocalDecl_x21(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy(lean_object*); lean_object* l_Array_sequenceMap___at_Lean_Elab_elabDeriving___spec__2(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withUsed(lean_object*); static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__17___closed__4; lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__1; lean_object* l_Lean_Expr_fvarId_x21(lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__3(lean_object*); lean_object* l_Lean_getProjectionFnInfo_x3f___at___private_Lean_Meta_WHNF_0__Lean_Meta_unfoldProjInst___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -378,7 +387,7 @@ static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabStructure___closed__4; lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabCommand___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__2; static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_1871____closed__1; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -395,11 +404,13 @@ static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__1; lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabStructure___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_StructFieldInfo_value_x3f___default; uint8_t l_Lean_Option_get___at_Lean_ppExpr___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___lambda__3___closed__7; lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_elabDeriving___spec__4(size_t, size_t, lean_object*); uint8_t l_Array_isEqvAux___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_isProjectionOf_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__2; uint8_t l_Lean_LocalDecl_binderInfo(lean_object*); static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__17___lambda__1___closed__2; lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -407,15 +418,13 @@ lean_object* lean_st_mk_ref(lean_object*, lean_object*); lean_object* l_List_forM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___closed__1; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addCtorFields_match__1(lean_object*); -static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__5; static lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___at_Lean_Elab_Command_elabStructure___spec__1___lambda__1___closed__4; static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__2___closed__2; lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__3; lean_object* l_Lean_Syntax_getId(lean_object*); lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f___closed__2; static uint8_t l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___closed__2; lean_object* l_Lean_mkRecOn___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -429,6 +438,7 @@ lean_object* l_Lean_Meta_addInstance(lean_object*, uint8_t, lean_object*, lean_o lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findExistingField_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_isProjectionOf_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___closed__2; +static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__9; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___boxed(lean_object**); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__11___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabStructure___lambda__2___boxed(lean_object**); @@ -445,7 +455,8 @@ lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Ela extern lean_object* l_Lean_protectedExt; lean_object* l_Lean_Elab_Command_elabStructure___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__4; +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findExistingField_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -488,6 +499,7 @@ lean_object* l_Lean_Meta_getLocalInstances(lean_object*, lean_object*, lean_obje lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabStructure___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__5; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getFieldType_match__1(lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy_match__1(lean_object*); lean_object* l_Lean_Elab_expandDeclId___at_Lean_Elab_Command_elabStructure___spec__4___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabStructure___closed__3; lean_object* l_Lean_Elab_sortDeclLevelParams(lean_object*, lean_object*, lean_object*); @@ -498,6 +510,7 @@ lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, le lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields_match__1___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___closed__7; static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkAuxConstructions___closed__5; +lean_object* l_Lean_setReducibilityStatus___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___spec__2___boxed(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_findExistingField_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2___closed__5; lean_object* l_Lean_Elab_Term_collectUsedFVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -515,6 +528,7 @@ extern lean_object* l_Lean_NameSet_empty; lean_object* l_Lean_Elab_expandDeclIdCore(lean_object*); lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_getDeclarationRange___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__21___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___closed__5; @@ -535,7 +549,9 @@ static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addCtorFields_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields(lean_object*); lean_object* l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__5; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabStructure___spec__9(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___closed__1; lean_object* l_Lean_Elab_DerivingClassView_applyHandlers(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkProjection(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__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*); @@ -544,6 +560,7 @@ lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab lean_object* l_Lean_mkAtomFrom(lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___closed__2; static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__17___closed__1; +static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__3; static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__11___closed__2; uint8_t l_Lean_Syntax_isNodeOf(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_isProjectionOf_x3f_visit_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -592,7 +609,7 @@ static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure lean_object* lean_environment_main_module(lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findExistingField_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_transform___at_Lean_Meta_expandCoe___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1(lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___boxed__const__1; @@ -611,7 +628,6 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_isProjFnApp_x3 lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__5(lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); -static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__17; lean_object* l_Lean_Name_append(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabStructure___spec__3(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabStructure___closed__2; @@ -633,6 +649,7 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_mat lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f___lambda__1___boxed(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__10(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_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*); +static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__6; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkAuxConstructions___lambda__1(uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabStructure___closed__1; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3___boxed(lean_object**); @@ -670,7 +687,6 @@ lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lea lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_isProjectionOf_x3f_visit___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_expandDeclSig(lean_object*); static lean_object* l_Lean_Elab_Command_checkValidFieldModifier___closed__2; -static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__1; lean_object* l_Lean_Elab_Command_StructFieldInfo_isSubobject_match__1___rarg(uint8_t, lean_object*, lean_object*); lean_object* l_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*); @@ -679,7 +695,6 @@ lean_object* l_Lean_mkForall(lean_object*, uint8_t, lean_object*, lean_object*); static lean_object* l_Lean_Elab_getOptDerivingClasses___at_Lean_Elab_Command_elabStructure___spec__2___lambda__2___closed__1; lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___at_Lean_Elab_Command_elabStructure___spec__1___lambda__2___closed__1; -lean_object* l_Lean_Meta_mkArrow(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_getOptDerivingClasses___at_Lean_Elab_Command_elabStructure___spec__2___lambda__2(lean_object*); static lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_elabStructure___spec__7___closed__1; 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*); @@ -702,6 +717,7 @@ lean_object* l_Lean_Elab_Modifiers_addAttribute(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_set_reducibility_status(lean_object*, lean_object*, uint8_t); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_isProjFnApp_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___closed__2; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1___lambda__2___closed__2; lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___at_Lean_Elab_Command_elabStructure___spec__1___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f___lambda__1(lean_object*, lean_object*); @@ -715,10 +731,9 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfiel lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabStructure___spec__11(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__17___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__6___closed__6; -lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_7355_(lean_object*); +lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_7679_(lean_object*); lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_1871_(lean_object*); lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); uint8_t l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_312_(uint8_t, uint8_t); static lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___at_Lean_Elab_Command_elabStructure___spec__1___lambda__2___closed__2; @@ -742,14 +757,13 @@ lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object*, lean_object*, lea lean_object* l_Lean_Expr_inferImplicit(lean_object*, lean_object*, uint8_t); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections_match__1(lean_object*); -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields(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_mkCoercionToCopiedParent_copyFields(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_validStructType_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCtor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getStructureName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__15___closed__1; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1___closed__4; lean_object* l_Lean_addDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__22___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go(lean_object*); lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_withIncRecDepth___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentD(lean_object*); @@ -773,7 +787,6 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_ lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__2; static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___closed__2; static lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__2___closed__2; lean_object* l_Lean_Elab_Command_elabStructure_match__1___rarg(lean_object*, lean_object*); @@ -784,7 +797,8 @@ static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getFiel lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamFVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__1; -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___closed__6; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__6(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); @@ -806,7 +820,6 @@ lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabLetDeclCore___spec__ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getFieldType(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(lean_object*); lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___at_Lean_Elab_Command_elabStructure___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields_match__1___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__2___closed__2; static lean_object* l_Lean_Elab_Command_elabStructure___closed__7; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -852,6 +865,7 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsF lean_object* l_Array_isEqvAux___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_isProjectionOf_x3f___spec__1___boxed(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_collectLevelParamsInFVars___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withAutoBoundImplicit___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__6(lean_object*, size_t, size_t, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); @@ -863,13 +877,16 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getFieldType__ static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__3___closed__3; lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabStructure___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___closed__3; lean_object* l_Lean_Elab_Command_elabStructure___lambda__4(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___closed__2; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_isProjFnApp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__7; static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___closed__3; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Syntax_SepArray_getElems___spec__1(lean_object*, size_t, size_t, lean_object*); +static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___closed__4; uint8_t lean_is_class(lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___spec__5(lean_object*); @@ -8827,7 +8844,7 @@ static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure_ _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = 1; +x_1 = 0; x_2 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___closed__3; x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_1871____closed__3; x_4 = lean_box(x_1); @@ -11302,31 +11319,144 @@ lean_dec(x_2); return x_7; } } -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_17; lean_object* x_18; uint8_t x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -lean_inc(x_2); -x_17 = l_Lean_Name_append(x_1, x_2); -x_18 = lean_box(0); -x_19 = 0; -x_20 = 0; -x_21 = lean_alloc_ctor(0, 4, 2); -lean_ctor_set(x_21, 0, x_2); -lean_ctor_set(x_21, 1, x_17); -lean_ctor_set(x_21, 2, x_9); -lean_ctor_set(x_21, 3, x_18); -lean_ctor_set_uint8(x_21, sizeof(void*)*4, x_19); -lean_ctor_set_uint8(x_21, sizeof(void*)*4 + 1, x_20); -x_22 = lean_array_push(x_3, x_21); -x_23 = lean_unsigned_to_nat(1u); -x_24 = lean_nat_add(x_4, x_23); +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_apply_1(x_3, x_1); +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_3); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_1(x_2, x_5); +return x_6; +} +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +lean_inc(x_3); +x_12 = l_Lean_Meta_getStructureName(x_3, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = lean_st_ref_get(x_10, x_14); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +lean_dec(x_16); +lean_inc(x_13); +x_19 = l_Lean_getStructureFields(x_18, x_13); +x_20 = lean_unsigned_to_nat(0u); +x_21 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg(x_1, x_3, x_4, x_13, x_19, x_20, x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_17); +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_4); -x_25 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg(x_1, x_5, x_6, x_7, x_8, x_24, x_22, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_22 = !lean_is_exclusive(x_12); +if (x_22 == 0) +{ +return x_12; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_12, 0); +x_24 = lean_ctor_get(x_12, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_12); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); return x_25; } } -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields___rarg), 11, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17) { +_start: +{ +lean_object* x_18; uint8_t x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +lean_inc(x_2); +x_18 = l_Lean_Name_append(x_1, x_2); +x_19 = lean_ctor_get_uint8(x_3, sizeof(void*)*3 + 1); +lean_dec(x_3); +x_20 = lean_box(0); +x_21 = 0; +x_22 = lean_alloc_ctor(0, 4, 2); +lean_ctor_set(x_22, 0, x_2); +lean_ctor_set(x_22, 1, x_18); +lean_ctor_set(x_22, 2, x_10); +lean_ctor_set(x_22, 3, x_20); +lean_ctor_set_uint8(x_22, sizeof(void*)*4, x_21); +lean_ctor_set_uint8(x_22, sizeof(void*)*4 + 1, x_19); +x_23 = lean_array_push(x_4, x_22); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_add(x_5, x_24); +lean_dec(x_5); +x_26 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg(x_1, x_6, x_7, x_8, x_9, x_25, x_23, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +return x_26; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_1, x_15); +lean_dec(x_1); +x_17 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg(x_2, x_3, x_4, x_5, x_6, x_16, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +return x_17; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { lean_object* x_16; lean_object* x_17; lean_object* x_18; @@ -11334,11 +11464,40 @@ lean_dec(x_8); x_16 = lean_unsigned_to_nat(1u); x_17 = lean_nat_add(x_1, x_16); lean_dec(x_1); -x_18 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg(x_2, x_3, x_4, x_5, x_6, x_17, x_7, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +x_18 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg(x_2, x_3, x_4, x_5, x_6, x_17, x_7, x_9, x_10, x_11, x_12, x_13, x_14, x_15); return x_18; } } -static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__1() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Elab_Term_instInhabitedTermElabM(lean_box(0)); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("_private.Lean.Elab.Structure.0.Lean.Elab.Command.copyNewFieldsFrom.copyFields.copy"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__3() { +_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_isProjFnApp_x3f___closed__2; +x_2 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__2; +x_3 = lean_unsigned_to_nat(339u); +x_4 = lean_unsigned_to_nat(85u); +x_5 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_isProjFnApp_x3f___closed__4; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__4() { _start: { lean_object* x_1; @@ -11346,16 +11505,16 @@ x_1 = lean_mk_string("parent field type mismatch, field '"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__2() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__1; +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___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_copyNewFieldsFrom_go___rarg___closed__3() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__6() { _start: { lean_object* x_1; @@ -11363,16 +11522,16 @@ x_1 = lean_mk_string("' from parent '"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__4() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__7() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__3; +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__6; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__5() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__8() { _start: { lean_object* x_1; @@ -11380,16 +11539,16 @@ x_1 = lean_mk_string("' "); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__6() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__9() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__5; +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__8; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { lean_object* x_15; uint8_t x_16; @@ -11401,10 +11560,10 @@ if (x_16 == 0) lean_object* x_17; lean_dec(x_6); lean_dec(x_5); -lean_dec(x_3); +lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_17 = lean_apply_8(x_4, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +x_17 = lean_apply_8(x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); return x_17; } else @@ -11417,9 +11576,9 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_18); lean_inc(x_2); -lean_inc(x_3); +lean_inc(x_4); lean_inc(x_7); -x_19 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getFieldType(x_7, x_3, x_2, x_18, x_10, x_11, x_12, x_13, x_14); +x_19 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getFieldType(x_7, x_4, x_2, x_18, x_10, x_11, x_12, x_13, x_14); if (lean_obj_tag(x_19) == 0) { lean_object* x_20; lean_object* x_21; lean_object* x_22; @@ -11431,156 +11590,24 @@ lean_dec(x_19); x_22 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f(x_7, x_18); if (lean_obj_tag(x_22) == 0) { -lean_object* x_23; uint8_t x_24; lean_object* x_25; -lean_inc(x_18); -x_23 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___lambda__1), 16, 8); -lean_closure_set(x_23, 0, x_1); -lean_closure_set(x_23, 1, x_18); -lean_closure_set(x_23, 2, x_7); -lean_closure_set(x_23, 3, x_6); -lean_closure_set(x_23, 4, x_2); -lean_closure_set(x_23, 5, x_3); -lean_closure_set(x_23, 6, x_4); -lean_closure_set(x_23, 7, x_5); -x_24 = 0; -x_25 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda_loop___spec__1___rarg(x_18, x_24, x_20, x_23, x_8, x_9, x_10, x_11, x_12, x_13, x_21); -return x_25; -} -else -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_22, 0); +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_23 = lean_st_ref_get(x_13, x_21); +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = lean_ctor_get(x_24, 0); lean_inc(x_26); -lean_dec(x_22); -x_27 = lean_ctor_get(x_26, 2); -lean_inc(x_27); -lean_dec(x_26); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -x_28 = lean_infer_type(x_27, x_10, x_11, x_12, x_13, x_21); -if (lean_obj_tag(x_28) == 0) +lean_dec(x_24); +lean_inc(x_18); +lean_inc(x_4); +x_27 = l_Lean_getFieldInfo_x3f(x_26, x_4, x_18); +if (lean_obj_tag(x_27) == 0) { -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(x_28); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_29); -lean_inc(x_20); -x_31 = l_Lean_Meta_isExprDefEq(x_20, x_29, x_10, x_11, x_12, x_13, x_30); -if (lean_obj_tag(x_31) == 0) -{ -lean_object* x_32; uint8_t x_33; -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -x_33 = lean_unbox(x_32); -lean_dec(x_32); -if (x_33 == 0) -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_34 = lean_ctor_get(x_31, 1); -lean_inc(x_34); -lean_dec(x_31); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -x_35 = l_Lean_Meta_mkHasTypeButIsExpectedMsg(x_20, x_29, x_10, x_11, x_12, x_13, x_34); -x_36 = lean_ctor_get(x_35, 0); -lean_inc(x_36); -x_37 = lean_ctor_get(x_35, 1); -lean_inc(x_37); -lean_dec(x_35); -x_38 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_38, 0, x_18); -x_39 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__2; -x_40 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -x_41 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__4; -x_42 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -x_43 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_43, 0, x_3); -x_44 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -x_45 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__6; -x_46 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_45); -x_47 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_36); -x_48 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___closed__4; -x_49 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -x_50 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1(x_49, x_8, x_9, x_10, x_11, x_12, x_13, x_37); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_51 = !lean_is_exclusive(x_50); -if (x_51 == 0) -{ -return x_50; -} -else -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_50, 0); -x_53 = lean_ctor_get(x_50, 1); -lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_50); -x_54 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_54, 0, x_52); -lean_ctor_set(x_54, 1, x_53); -return x_54; -} -} -else -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; -lean_dec(x_29); +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_dec(x_20); lean_dec(x_18); -x_55 = lean_ctor_get(x_31, 1); -lean_inc(x_55); -lean_dec(x_31); -x_56 = lean_box(0); -x_57 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___lambda__2(x_6, x_1, x_2, x_3, x_4, x_5, x_7, x_56, x_8, x_9, x_10, x_11, x_12, x_13, x_55); -return x_57; -} -} -else -{ -uint8_t x_58; -lean_dec(x_29); -lean_dec(x_20); -lean_dec(x_18); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -11588,29 +11615,110 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_58 = !lean_is_exclusive(x_31); -if (x_58 == 0) -{ +x_28 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__1; +x_29 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__3; +x_30 = lean_panic_fn(x_28, x_29); +x_31 = lean_apply_7(x_30, x_8, x_9, x_10, x_11, x_12, x_13, x_25); return x_31; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_31, 0); -x_60 = lean_ctor_get(x_31, 1); -lean_inc(x_60); -lean_inc(x_59); -lean_dec(x_31); -x_61 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_61, 0, x_59); -lean_ctor_set(x_61, 1, x_60); -return x_61; +lean_object* x_32; lean_object* x_33; uint8_t x_34; lean_object* x_35; +x_32 = lean_ctor_get(x_27, 0); +lean_inc(x_32); +lean_dec(x_27); +x_33 = lean_ctor_get(x_32, 2); +lean_inc(x_33); +x_34 = lean_ctor_get_uint8(x_32, sizeof(void*)*3); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_6); +lean_inc(x_7); +lean_inc(x_18); +lean_inc(x_1); +x_35 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___lambda__1___boxed), 17, 9); +lean_closure_set(x_35, 0, x_1); +lean_closure_set(x_35, 1, x_18); +lean_closure_set(x_35, 2, x_32); +lean_closure_set(x_35, 3, x_7); +lean_closure_set(x_35, 4, x_6); +lean_closure_set(x_35, 5, x_2); +lean_closure_set(x_35, 6, x_3); +lean_closure_set(x_35, 7, x_4); +lean_closure_set(x_35, 8, x_5); +if (lean_obj_tag(x_33) == 0) +{ +lean_object* x_36; +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_36 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda_loop___spec__1___rarg(x_18, x_34, x_20, x_35, x_8, x_9, x_10, x_11, x_12, x_13, x_25); +return x_36; } +else +{ +lean_object* x_37; +lean_dec(x_33); +lean_inc(x_20); +x_37 = l_Lean_Meta_getStructureName(x_20, x_10, x_11, x_12, x_13, x_25); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +x_40 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findExistingField_x3f(x_7, x_38, x_12, x_13, x_39); +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +if (lean_obj_tag(x_41) == 0) +{ +lean_object* x_42; lean_object* x_43; +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_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +lean_dec(x_40); +x_43 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda_loop___spec__1___rarg(x_18, x_34, x_20, x_35, x_8, x_9, x_10, x_11, x_12, x_13, x_42); +return x_43; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +lean_dec(x_41); +lean_dec(x_35); +lean_dec(x_18); +x_44 = lean_ctor_get(x_40, 1); +lean_inc(x_44); +lean_dec(x_40); +lean_inc(x_1); +x_45 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___lambda__2), 14, 6); +lean_closure_set(x_45, 0, x_6); +lean_closure_set(x_45, 1, x_1); +lean_closure_set(x_45, 2, x_2); +lean_closure_set(x_45, 3, x_3); +lean_closure_set(x_45, 4, x_4); +lean_closure_set(x_45, 5, x_5); +x_46 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields___rarg(x_1, x_7, x_20, x_45, x_8, x_9, x_10, x_11, x_12, x_13, x_44); +return x_46; } } else { -uint8_t x_62; +uint8_t x_47; +lean_dec(x_35); lean_dec(x_20); lean_dec(x_18); lean_dec(x_13); @@ -11626,30 +11734,156 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_62 = !lean_is_exclusive(x_28); -if (x_62 == 0) +x_47 = !lean_is_exclusive(x_37); +if (x_47 == 0) { -return x_28; +return x_37; } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_63 = lean_ctor_get(x_28, 0); -x_64 = lean_ctor_get(x_28, 1); -lean_inc(x_64); -lean_inc(x_63); -lean_dec(x_28); -x_65 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_65, 0, x_63); -lean_ctor_set(x_65, 1, x_64); -return x_65; +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_37, 0); +x_49 = lean_ctor_get(x_37, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_37); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +return x_50; +} } } } } else { -uint8_t x_66; +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_22, 0); +lean_inc(x_51); +lean_dec(x_22); +x_52 = lean_ctor_get(x_51, 2); +lean_inc(x_52); +lean_dec(x_51); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_53 = lean_infer_type(x_52, x_10, x_11, x_12, x_13, x_21); +if (lean_obj_tag(x_53) == 0) +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_53, 1); +lean_inc(x_55); +lean_dec(x_53); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_54); +lean_inc(x_20); +x_56 = l_Lean_Meta_isExprDefEq(x_20, x_54, x_10, x_11, x_12, x_13, x_55); +if (lean_obj_tag(x_56) == 0) +{ +lean_object* x_57; uint8_t x_58; +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +x_58 = lean_unbox(x_57); +lean_dec(x_57); +if (x_58 == 0) +{ +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; uint8_t x_76; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_59 = lean_ctor_get(x_56, 1); +lean_inc(x_59); +lean_dec(x_56); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_60 = l_Lean_Meta_mkHasTypeButIsExpectedMsg(x_20, x_54, x_10, x_11, x_12, x_13, x_59); +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +lean_dec(x_60); +x_63 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_63, 0, x_18); +x_64 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__5; +x_65 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_63); +x_66 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__7; +x_67 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_66); +x_68 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_68, 0, x_4); +x_69 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_69, 0, x_67); +lean_ctor_set(x_69, 1, x_68); +x_70 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__9; +x_71 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_70); +x_72 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_61); +x_73 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___closed__4; +x_74 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_74, 0, x_72); +lean_ctor_set(x_74, 1, x_73); +x_75 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1(x_74, x_8, x_9, x_10, x_11, x_12, x_13, x_62); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_76 = !lean_is_exclusive(x_75); +if (x_76 == 0) +{ +return x_75; +} +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_75, 0); +x_78 = lean_ctor_get(x_75, 1); +lean_inc(x_78); +lean_inc(x_77); +lean_dec(x_75); +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +return x_79; +} +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; +lean_dec(x_54); +lean_dec(x_20); +lean_dec(x_18); +x_80 = lean_ctor_get(x_56, 1); +lean_inc(x_80); +lean_dec(x_56); +x_81 = lean_box(0); +x_82 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___lambda__3(x_6, x_1, x_2, x_3, x_4, x_5, x_7, x_81, x_8, x_9, x_10, x_11, x_12, x_13, x_80); +return x_82; +} +} +else +{ +uint8_t x_83; +lean_dec(x_54); +lean_dec(x_20); lean_dec(x_18); lean_dec(x_13); lean_dec(x_12); @@ -11664,62 +11898,150 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_66 = !lean_is_exclusive(x_19); -if (x_66 == 0) +x_83 = !lean_is_exclusive(x_56); +if (x_83 == 0) +{ +return x_56; +} +else +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_ctor_get(x_56, 0); +x_85 = lean_ctor_get(x_56, 1); +lean_inc(x_85); +lean_inc(x_84); +lean_dec(x_56); +x_86 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_86, 0, x_84); +lean_ctor_set(x_86, 1, x_85); +return x_86; +} +} +} +else +{ +uint8_t x_87; +lean_dec(x_20); +lean_dec(x_18); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_87 = !lean_is_exclusive(x_53); +if (x_87 == 0) +{ +return x_53; +} +else +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_53, 0); +x_89 = lean_ctor_get(x_53, 1); +lean_inc(x_89); +lean_inc(x_88); +lean_dec(x_53); +x_90 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_90, 0, x_88); +lean_ctor_set(x_90, 1, x_89); +return x_90; +} +} +} +} +else +{ +uint8_t x_91; +lean_dec(x_18); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_91 = !lean_is_exclusive(x_19); +if (x_91 == 0) { return x_19; } else { -lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_67 = lean_ctor_get(x_19, 0); -x_68 = lean_ctor_get(x_19, 1); -lean_inc(x_68); -lean_inc(x_67); +lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_92 = lean_ctor_get(x_19, 0); +x_93 = lean_ctor_get(x_19, 1); +lean_inc(x_93); +lean_inc(x_92); lean_dec(x_19); -x_69 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_69, 0, x_67); -lean_ctor_set(x_69, 1, x_68); -return x_69; +x_94 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_94, 0, x_92); +lean_ctor_set(x_94, 1, x_93); +return x_94; } } } } } -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg), 14, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg), 14, 0); return x_2; } } -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___lambda__1___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; _start: { -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_13 = lean_st_ref_get(x_11, x_12); -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_13, 1); -lean_inc(x_15); -lean_dec(x_13); -x_16 = lean_ctor_get(x_14, 0); -lean_inc(x_16); -lean_dec(x_14); -x_17 = 0; -lean_inc(x_4); -x_18 = l_Lean_getStructureFieldsFlattened(x_16, x_4, x_17); -x_19 = lean_unsigned_to_nat(0u); -x_20 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg(x_1, x_3, x_4, x_5, x_18, x_19, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_15); -return x_20; +lean_object* x_18; +x_18 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +return x_18; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_12; } } lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom___rarg), 12, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom___rarg), 11, 0); return x_2; } } @@ -11858,21 +12180,21 @@ x_17 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rar return x_17; } } -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_1, 4); -lean_inc(x_16); +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_1, 4); +lean_inc(x_15); lean_inc(x_4); -x_17 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__4), 13, 5); -lean_closure_set(x_17, 0, x_2); -lean_closure_set(x_17, 1, x_3); -lean_closure_set(x_17, 2, x_4); -lean_closure_set(x_17, 3, x_1); -lean_closure_set(x_17, 4, x_5); -x_18 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom___rarg(x_16, x_6, x_4, x_7, x_17, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -return x_18; +x_16 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__4), 13, 5); +lean_closure_set(x_16, 0, x_2); +lean_closure_set(x_16, 1, x_3); +lean_closure_set(x_16, 2, x_4); +lean_closure_set(x_16, 3, x_1); +lean_closure_set(x_16, 4, x_5); +x_17 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields___rarg(x_15, x_6, x_4, x_16, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +return x_17; } } lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { @@ -12019,8 +12341,9 @@ if (x_48 == 0) { lean_object* x_49; lean_object* x_50; lean_dec(x_46); +lean_dec(x_26); x_49 = lean_box(0); -x_50 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__5(x_1, x_3, x_5, x_23, x_2, x_4, x_26, x_49, x_6, x_7, x_8, x_9, x_10, x_11, x_45); +x_50 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__5(x_1, x_3, x_5, x_23, x_2, x_4, x_49, x_6, x_7, x_8, x_9, x_10, x_11, x_45); return x_50; } else @@ -12033,7 +12356,6 @@ x_54 = lean_string_append(x_53, x_52); lean_dec(x_52); x_55 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__3; x_56 = lean_string_append(x_54, x_55); -lean_inc(x_26); x_57 = l_Lean_Name_toString(x_26, x_51); x_58 = lean_string_append(x_56, x_57); lean_dec(x_57); @@ -12056,7 +12378,7 @@ lean_inc(x_65); x_66 = lean_ctor_get(x_64, 1); lean_inc(x_66); lean_dec(x_64); -x_67 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__5(x_1, x_3, x_5, x_23, x_2, x_4, x_26, x_65, x_6, x_7, x_8, x_9, x_10, x_11, x_66); +x_67 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__5(x_1, x_3, x_5, x_23, x_2, x_4, x_65, x_6, x_7, x_8, x_9, x_10, x_11, x_66); lean_dec(x_65); return x_67; } @@ -12280,8 +12602,9 @@ if (x_112 == 0) { lean_object* x_113; lean_object* x_114; lean_dec(x_110); +lean_dec(x_90); x_113 = lean_box(0); -x_114 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__5(x_1, x_3, x_5, x_87, x_2, x_4, x_90, x_113, x_6, x_7, x_8, x_9, x_85, x_11, x_109); +x_114 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__5(x_1, x_3, x_5, x_87, x_2, x_4, x_113, x_6, x_7, x_8, x_9, x_85, x_11, x_109); return x_114; } else @@ -12294,7 +12617,6 @@ x_118 = lean_string_append(x_117, x_116); lean_dec(x_116); x_119 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__3; x_120 = lean_string_append(x_118, x_119); -lean_inc(x_90); x_121 = l_Lean_Name_toString(x_90, x_115); x_122 = lean_string_append(x_120, x_121); lean_dec(x_121); @@ -12317,7 +12639,7 @@ lean_inc(x_129); x_130 = lean_ctor_get(x_128, 1); lean_inc(x_130); lean_dec(x_128); -x_131 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__5(x_1, x_3, x_5, x_87, x_2, x_4, x_90, x_129, x_6, x_7, x_8, x_9, x_85, x_11, x_130); +x_131 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__5(x_1, x_3, x_5, x_87, x_2, x_4, x_129, x_6, x_7, x_8, x_9, x_85, x_11, x_130); lean_dec(x_129); return x_131; } @@ -12420,13 +12742,13 @@ lean_dec(x_9); return x_17; } } -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { -lean_object* x_16; -x_16 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -lean_dec(x_8); -return x_16; +lean_object* x_15; +x_15 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_7); +return x_15; } } lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { @@ -14769,25 +15091,17 @@ static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_w _start: { lean_object* x_1; -x_1 = l_Lean_Elab_Term_instInhabitedTermElabM(lean_box(0)); +x_1 = lean_mk_string("_private.Lean.Elab.Structure.0.Lean.Elab.Command.withFields"); return x_1; } } static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__16() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("_private.Lean.Elab.Structure.0.Lean.Elab.Command.withFields"); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__17() { -_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_isProjFnApp_x3f___closed__2; -x_2 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__16; -x_3 = lean_unsigned_to_nat(448u); +x_2 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__15; +x_3 = lean_unsigned_to_nat(458u); x_4 = lean_unsigned_to_nat(37u); x_5 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_isProjFnApp_x3f___closed__4; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -15201,8 +15515,8 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_114 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__15; -x_115 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__17; +x_114 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__1; +x_115 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__16; x_116 = lean_panic_fn(x_114, x_115); x_117 = lean_apply_7(x_116, x_5, x_6, x_7, x_8, x_9, x_10, x_11); return x_117; @@ -15620,8 +15934,8 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_220 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__15; -x_221 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__17; +x_220 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__1; +x_221 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__16; x_222 = lean_panic_fn(x_220, x_221); x_223 = lean_apply_7(x_222, x_5, x_6, x_7, x_8, x_127, x_10, x_11); return x_223; @@ -19051,7 +19365,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_isProjFnApp_x3f___closed__2; x_2 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2___closed__1; -x_3 = lean_unsigned_to_nat(586u); +x_3 = lean_unsigned_to_nat(596u); x_4 = lean_unsigned_to_nat(21u); x_5 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -19072,7 +19386,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_isProjFnApp_x3f___closed__2; x_2 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2___closed__1; -x_3 = lean_unsigned_to_nat(585u); +x_3 = lean_unsigned_to_nat(595u); x_4 = lean_unsigned_to_nat(23u); x_5 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2___closed__4; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -20654,94 +20968,64 @@ lean_dec(x_1); return x_8; } } -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -if (lean_obj_tag(x_1) == 0) +lean_object* x_12; lean_object* x_13; +x_12 = l_Lean_Expr_bindingDomain_x21(x_1); +x_13 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields(x_2, x_3, x_4, x_12, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_4; -lean_dec(x_2); -x_4 = lean_apply_1(x_3, x_1); -return x_4; +uint8_t x_14; +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_13, 0); +x_16 = l_Lean_mkApp(x_5, x_15); +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_13, 0, x_17); +return x_13; } else { -lean_object* x_5; lean_object* x_6; -lean_dec(x_3); -x_5 = lean_ctor_get(x_1, 0); -lean_inc(x_5); -lean_dec(x_1); -x_6 = lean_apply_1(x_2, x_5); -return x_6; -} -} -} -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields_match__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields_match__1___rarg), 3, 0); -return x_2; -} -} -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; lean_object* x_12; -x_11 = l_Lean_Expr_bindingDomain_x21(x_1); -x_12 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields(x_2, x_3, x_11, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_12) == 0) -{ -uint8_t x_13; -x_13 = !lean_is_exclusive(x_12); -if (x_13 == 0) -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_12, 0); -x_15 = l_Lean_mkApp(x_4, x_14); -x_16 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_12, 0, x_16); -return x_12; -} -else -{ -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_12, 0); -x_18 = lean_ctor_get(x_12, 1); +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_18 = lean_ctor_get(x_13, 0); +x_19 = lean_ctor_get(x_13, 1); +lean_inc(x_19); lean_inc(x_18); -lean_inc(x_17); -lean_dec(x_12); -x_19 = l_Lean_mkApp(x_4, x_17); -x_20 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_20, 0, x_19); -x_21 = lean_alloc_ctor(0, 2, 0); +lean_dec(x_13); +x_20 = l_Lean_mkApp(x_5, x_18); +x_21 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_18); -return x_21; +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_19); +return x_22; } } else { -uint8_t x_22; -lean_dec(x_4); -x_22 = !lean_is_exclusive(x_12); -if (x_22 == 0) +uint8_t x_23; +lean_dec(x_5); +x_23 = !lean_is_exclusive(x_13); +if (x_23 == 0) { -return x_12; +return x_13; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_12, 0); -x_24 = lean_ctor_get(x_12, 1); +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_13, 0); +x_25 = lean_ctor_get(x_13, 1); +lean_inc(x_25); lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_12); -x_25 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_25, 0, x_23); -lean_ctor_set(x_25, 1, x_24); -return x_25; +lean_dec(x_13); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; } } } @@ -20763,144 +21047,147 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_10; -lean_dec(x_4); +lean_object* x_11; +lean_dec(x_5); +lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_3); -x_10 = lean_infer_type(x_3, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_10) == 0) +lean_inc(x_4); +x_11 = lean_infer_type(x_4, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_11) == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_10, 1); +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); -lean_dec(x_10); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -lean_inc(x_5); -x_13 = l_Lean_Meta_whnfD(x_11, x_5, x_6, x_7, x_8, x_12); -if (lean_obj_tag(x_13) == 0) +x_14 = l_Lean_Meta_whnfD(x_12, x_6, x_7, x_8, x_9, x_13); +if (lean_obj_tag(x_14) == 0) { -lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_13, 1); +lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); -lean_dec(x_13); -x_16 = l_Lean_Expr_isForall(x_14); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_17 = l_Lean_indentExpr(x_14); -x_18 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1___lambda__2___closed__2; -x_19 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_17); -x_20 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___closed__4; -x_21 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_20); -x_22 = l_Lean_throwError___at_Lean_Meta_withIncRecDepth___spec__1(x_21, x_5, x_6, x_7, x_8, x_15); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_23 = !lean_is_exclusive(x_22); -if (x_23 == 0) -{ -return x_22; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_22, 0); -x_25 = lean_ctor_get(x_22, 1); -lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_22); -x_26 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_26, 0, x_24); -lean_ctor_set(x_26, 1, x_25); -return x_26; -} -} -else -{ -lean_object* x_27; lean_object* x_28; -x_27 = lean_box(0); -x_28 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1___lambda__1(x_14, x_1, x_2, x_3, x_27, x_5, x_6, x_7, x_8, x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); lean_dec(x_14); -return x_28; -} -} -else +x_17 = l_Lean_Expr_isForall(x_15); +if (x_17 == 0) { -uint8_t x_29; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; +lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_29 = !lean_is_exclusive(x_13); -if (x_29 == 0) +x_18 = l_Lean_indentExpr(x_15); +x_19 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1___lambda__2___closed__2; +x_20 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +x_21 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___closed__4; +x_22 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +x_23 = l_Lean_throwError___at_Lean_Meta_withIncRecDepth___spec__1(x_22, x_6, x_7, x_8, x_9, x_16); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) { -return x_13; +return x_23; } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_13, 0); -x_31 = lean_ctor_get(x_13, 1); +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_23, 0); +x_26 = lean_ctor_get(x_23, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_23); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +return x_27; +} +} +else +{ +lean_object* x_28; lean_object* x_29; +x_28 = lean_box(0); +x_29 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1___lambda__1(x_15, x_1, x_2, x_3, x_4, x_28, x_6, x_7, x_8, x_9, x_16); +lean_dec(x_15); +return x_29; +} +} +else +{ +uint8_t x_30; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_30 = !lean_is_exclusive(x_14); +if (x_30 == 0) +{ +return x_14; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_14, 0); +x_32 = lean_ctor_get(x_14, 1); +lean_inc(x_32); lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_13); -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_30); -lean_ctor_set(x_32, 1, x_31); -return x_32; +lean_dec(x_14); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_32); +return x_33; } } } else { -uint8_t x_33; +uint8_t x_34; +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_5); +lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_33 = !lean_is_exclusive(x_10); -if (x_33 == 0) +x_34 = !lean_is_exclusive(x_11); +if (x_34 == 0) { -return x_10; +return x_11; } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_10, 0); -x_35 = lean_ctor_get(x_10, 1); +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_11, 0); +x_36 = lean_ctor_get(x_11, 1); +lean_inc(x_36); lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_10); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_34); -lean_ctor_set(x_36, 1, x_35); -return x_36; +lean_dec(x_11); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; } } } @@ -20919,7 +21206,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_isProjFnApp_x3f___closed__2; x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1___closed__1; -x_3 = lean_unsigned_to_nat(632u); +x_3 = lean_unsigned_to_nat(643u); x_4 = lean_unsigned_to_nat(78u); x_5 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_isProjFnApp_x3f___closed__4; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -20968,13 +21255,13 @@ else { lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_26; x_16 = lean_array_uget(x_5, x_7); -x_26 = l_Array_contains___at_Lean_findField_x3f___spec__1(x_1, x_16); +x_26 = l_Array_contains___at_Lean_findField_x3f___spec__1(x_2, x_16); if (x_26 == 0) { lean_object* x_27; lean_inc(x_4); -lean_inc(x_3); -x_27 = l_Lean_getFieldInfo_x3f(x_3, x_4, x_16); +lean_inc(x_1); +x_27 = l_Lean_getFieldInfo_x3f(x_1, x_4, x_16); if (lean_obj_tag(x_27) == 0) { lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; @@ -21081,9 +21368,10 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); +lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_47 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1___lambda__2(x_1, x_2, x_8, x_46, x_9, x_10, x_11, x_12, x_13); +x_47 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1___lambda__2(x_1, x_2, x_3, x_8, x_46, x_9, x_10, x_11, x_12, x_13); if (lean_obj_tag(x_47) == 0) { lean_object* x_48; lean_object* x_49; @@ -21136,8 +21424,8 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -lean_inc(x_2); -x_54 = l_Lean_Meta_mkProjection(x_2, x_16, x_9, x_10, x_11, x_12, x_13); +lean_inc(x_3); +x_54 = l_Lean_Meta_mkProjection(x_3, x_16, x_9, x_10, x_11, x_12, x_13); if (lean_obj_tag(x_54) == 0) { lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; @@ -21229,7 +21517,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_isProjFnApp_x3f___closed__2; x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1___closed__1; -x_3 = lean_unsigned_to_nat(623u); +x_3 = lean_unsigned_to_nat(634u); x_4 = lean_unsigned_to_nat(72u); x_5 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_isProjFnApp_x3f___closed__4; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -21245,126 +21533,117 @@ x_2 = l_Lean_mkSort(x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_9 = lean_st_ref_get(x_7, x_8); -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); +lean_object* x_10; +x_10 = l_Lean_Expr_getAppFn(x_4); +if (lean_obj_tag(x_10) == 4) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; size_t x_27; size_t x_28; lean_object* x_29; +x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); -lean_dec(x_9); -x_12 = lean_ctor_get(x_10, 0); +x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); lean_dec(x_10); -x_13 = l_Lean_Expr_getAppFn(x_3); -if (lean_obj_tag(x_13) == 4) -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; size_t x_30; size_t x_31; lean_object* x_32; +lean_inc(x_11); +lean_inc(x_1); +x_13 = l_Lean_getStructureCtor(x_1, x_11); x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); -x_15 = lean_ctor_get(x_13, 1); +lean_dec(x_13); +x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); -lean_dec(x_13); -lean_inc(x_14); -lean_inc(x_12); -x_16 = l_Lean_getStructureCtor(x_12, x_14); -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -lean_dec(x_16); -x_18 = lean_ctor_get(x_17, 0); +lean_dec(x_14); +x_16 = l_Lean_mkConst(x_15, x_12); +x_17 = lean_unsigned_to_nat(0u); +x_18 = l_Lean_Expr_getAppNumArgsAux(x_4, x_17); +x_19 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___closed__2; lean_inc(x_18); -lean_dec(x_17); -x_19 = l_Lean_mkConst(x_18, x_15); -x_20 = lean_unsigned_to_nat(0u); -x_21 = l_Lean_Expr_getAppNumArgsAux(x_3, x_20); -x_22 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___closed__2; -lean_inc(x_21); -x_23 = lean_mk_array(x_21, x_22); -x_24 = lean_unsigned_to_nat(1u); -x_25 = lean_nat_sub(x_21, x_24); -lean_dec(x_21); -x_26 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_3, x_23, x_25); -x_27 = l_Lean_mkAppN(x_19, x_26); -lean_inc(x_14); -lean_inc(x_12); -x_28 = l_Lean_getStructureFields(x_12, x_14); -x_29 = lean_array_get_size(x_28); -x_30 = lean_usize_of_nat(x_29); +x_20 = lean_mk_array(x_18, x_19); +x_21 = lean_unsigned_to_nat(1u); +x_22 = lean_nat_sub(x_18, x_21); +lean_dec(x_18); +x_23 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_4, x_20, x_22); +x_24 = l_Lean_mkAppN(x_16, x_23); +lean_inc(x_11); +lean_inc(x_1); +x_25 = l_Lean_getStructureFields(x_1, x_11); +x_26 = lean_array_get_size(x_25); +x_27 = lean_usize_of_nat(x_26); +lean_dec(x_26); +x_28 = 0; +x_29 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1(x_1, x_2, x_3, x_11, x_25, x_27, x_28, x_24, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_25); +if (lean_obj_tag(x_29) == 0) +{ +uint8_t x_30; +x_30 = !lean_is_exclusive(x_29); +if (x_30 == 0) +{ +return x_29; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_29, 0); +x_32 = lean_ctor_get(x_29, 1); +lean_inc(x_32); +lean_inc(x_31); lean_dec(x_29); -x_31 = 0; -x_32 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1(x_1, x_2, x_12, x_14, x_28, x_30, x_31, x_27, x_4, x_5, x_6, x_7, x_11); -lean_dec(x_28); -if (lean_obj_tag(x_32) == 0) -{ -uint8_t x_33; -x_33 = !lean_is_exclusive(x_32); -if (x_33 == 0) -{ -return x_32; +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_32); +return x_33; +} } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_32, 0); -x_35 = lean_ctor_get(x_32, 1); +uint8_t x_34; +x_34 = !lean_is_exclusive(x_29); +if (x_34 == 0) +{ +return x_29; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_29, 0); +x_36 = lean_ctor_get(x_29, 1); +lean_inc(x_36); lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_32); -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_34); -lean_ctor_set(x_36, 1, x_35); -return x_36; -} -} -else -{ -uint8_t x_37; -x_37 = !lean_is_exclusive(x_32); -if (x_37 == 0) -{ -return x_32; -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_32, 0); -x_39 = lean_ctor_get(x_32, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_32); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -return x_40; +lean_dec(x_29); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; } } } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -lean_dec(x_13); -lean_dec(x_12); +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +lean_dec(x_10); +lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_41 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_isProjFnApp_x3f___closed__1; -x_42 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___closed__1; -x_43 = lean_panic_fn(x_41, x_42); -x_44 = lean_apply_5(x_43, x_4, x_5, x_6, x_7, x_11); -return x_44; +x_38 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_isProjFnApp_x3f___closed__1; +x_39 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___closed__1; +x_40 = lean_panic_fn(x_38, x_39); +x_41 = lean_apply_5(x_40, x_5, x_6, x_7, x_8, x_9); +return x_41; } } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -lean_object* x_11; -x_11 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_5); +lean_object* x_12; +x_12 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_6); lean_dec(x_1); -return x_11; +return x_12; } } lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { @@ -21425,206 +21704,462 @@ return x_13; } } } -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l_Lean_setReducibilityStatus___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___spec__2(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; uint8_t x_18; lean_object* x_19; -lean_inc(x_2); -x_14 = l_Lean_Meta_mkArrow(x_1, x_2, x_9, x_10, x_11, x_12, x_13); -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); -lean_inc(x_16); -lean_dec(x_14); -x_17 = 0; -x_18 = 1; +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = lean_st_ref_take(x_6, x_7); +x_9 = lean_ctor_get(x_8, 0); lean_inc(x_9); -lean_inc(x_3); -x_19 = l_Lean_Meta_mkForallFVars(x_3, x_15, x_17, x_18, x_9, x_10, x_11, x_12, x_16); -if (lean_obj_tag(x_19) == 0) +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +lean_dec(x_8); +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_19, 1); +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_12 = lean_ctor_get(x_9, 0); +x_13 = lean_set_reducibility_status(x_12, x_1, x_2); +lean_ctor_set(x_9, 0, x_13); +x_14 = lean_st_ref_set(x_6, x_9, x_10); +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_14, 0); +lean_dec(x_16); +x_17 = lean_box(0); +lean_ctor_set(x_14, 0, x_17); +return x_14; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_14, 1); +lean_inc(x_18); +lean_dec(x_14); +x_19 = lean_box(0); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +return x_20; +} +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_21 = lean_ctor_get(x_9, 0); +x_22 = lean_ctor_get(x_9, 1); +x_23 = lean_ctor_get(x_9, 2); +x_24 = lean_ctor_get(x_9, 3); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); lean_inc(x_21); -lean_dec(x_19); -x_22 = lean_array_get_size(x_3); -x_23 = l_Lean_Expr_inferImplicit(x_20, x_22, x_18); -lean_dec(x_22); -lean_inc(x_12); +lean_dec(x_9); +x_25 = lean_set_reducibility_status(x_21, x_1, x_2); +x_26 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_22); +lean_ctor_set(x_26, 2, x_23); +lean_ctor_set(x_26, 3, x_24); +x_27 = lean_st_ref_set(x_6, x_26, x_10); +x_28 = lean_ctor_get(x_27, 1); +lean_inc(x_28); +if (lean_is_exclusive(x_27)) { + lean_ctor_release(x_27, 0); + lean_ctor_release(x_27, 1); + x_29 = x_27; +} else { + lean_dec_ref(x_27); + x_29 = lean_box(0); +} +x_30 = lean_box(0); +if (lean_is_scalar(x_29)) { + x_31 = lean_alloc_ctor(0, 2, 0); +} else { + x_31 = x_29; +} +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_28); +return x_31; +} +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; lean_object* x_14; uint8_t x_15; +lean_dec(x_7); +lean_inc(x_1); +x_13 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_13, 0, x_1); +lean_ctor_set(x_13, 1, x_2); +lean_ctor_set(x_13, 2, x_3); +x_14 = lean_ctor_get(x_4, 1); +lean_inc(x_14); +lean_dec(x_4); +x_15 = lean_ctor_get_uint8(x_14, sizeof(void*)*2 + 3); +lean_dec(x_14); +if (x_15 == 0) +{ +lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_16 = lean_box(1); +x_17 = 1; +x_18 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_18, 0, x_13); +lean_ctor_set(x_18, 1, x_5); +lean_ctor_set(x_18, 2, x_16); +lean_ctor_set_uint8(x_18, sizeof(void*)*3, x_17); +x_19 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_19, 0, x_18); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -lean_inc(x_2); lean_inc(x_8); -x_24 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields(x_4, x_8, x_2, x_9, x_10, x_11, x_12, x_21); -if (lean_obj_tag(x_24) == 0) +x_20 = l_Lean_addAndCompile___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___spec__1(x_19, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_20) == 0) { -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); -x_27 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___closed__4; -x_28 = lean_array_push(x_27, x_8); -lean_inc(x_9); -x_29 = l_Lean_Meta_mkLambdaFVars(x_28, x_25, x_17, x_18, x_9, x_10, x_11, x_12, x_26); -if (lean_obj_tag(x_29) == 0) +lean_object* x_21; uint8_t x_22; +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = l_Lean_BinderInfo_isInstImplicit(x_6); +if (x_22 == 0) { -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_29, 0); +uint8_t x_23; lean_object* x_24; +x_23 = 0; +x_24 = l_Lean_setReducibilityStatus___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___spec__2(x_1, x_23, x_8, x_9, x_10, x_11, x_21); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +return x_24; +} +else +{ +uint8_t x_25; lean_object* x_26; lean_object* x_27; +x_25 = 0; +x_26 = lean_unsigned_to_nat(1000u); +x_27 = l_Lean_Meta_addInstance(x_1, x_25, x_26, x_8, x_9, x_10, x_11, x_21); +return x_27; +} +} +else +{ +uint8_t x_28; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_28 = !lean_is_exclusive(x_20); +if (x_28 == 0) +{ +return x_20; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_20, 0); +x_30 = lean_ctor_get(x_20, 1); lean_inc(x_30); -x_31 = lean_ctor_get(x_29, 1); -lean_inc(x_31); -lean_dec(x_29); +lean_inc(x_29); +lean_dec(x_20); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +} +else +{ +lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_32 = lean_box(1); +x_33 = 0; +x_34 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_34, 0, x_13); +lean_ctor_set(x_34, 1, x_5); +lean_ctor_set(x_34, 2, x_32); +lean_ctor_set_uint8(x_34, sizeof(void*)*3, x_33); +x_35 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_35, 0, x_34); +lean_inc(x_11); +lean_inc(x_10); lean_inc(x_9); -x_32 = l_Lean_Meta_mkLambdaFVars(x_3, x_30, x_17, x_18, x_9, x_10, x_11, x_12, x_31); -if (lean_obj_tag(x_32) == 0) +lean_inc(x_8); +x_36 = l_Lean_addAndCompile___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___spec__1(x_35, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_36) == 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); -x_35 = l_Lean_Meta_getStructureName(x_2, x_9, x_10, x_11, x_12, x_34); -if (lean_obj_tag(x_35) == 0) -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; -x_36 = lean_ctor_get(x_35, 0); -lean_inc(x_36); -x_37 = lean_ctor_get(x_35, 1); +lean_object* x_37; uint8_t x_38; +x_37 = lean_ctor_get(x_36, 1); lean_inc(x_37); -lean_dec(x_35); -x_38 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkToParentName(x_36); -x_39 = l_Lean_Name_append(x_5, x_38); -lean_dec(x_5); -x_40 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_6); -lean_ctor_set(x_40, 2, x_23); -x_41 = lean_ctor_get(x_7, 1); -x_42 = lean_ctor_get_uint8(x_41, sizeof(void*)*2 + 3); -if (x_42 == 0) +lean_dec(x_36); +x_38 = l_Lean_BinderInfo_isInstImplicit(x_6); +if (x_38 == 0) { -lean_object* x_43; uint8_t x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_43 = lean_box(1); -x_44 = 1; -x_45 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_45, 0, x_40); -lean_ctor_set(x_45, 1, x_33); -lean_ctor_set(x_45, 2, x_43); -lean_ctor_set_uint8(x_45, sizeof(void*)*3, x_44); -x_46 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_46, 0, x_45); -x_47 = l_Lean_addAndCompile___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___spec__1(x_46, x_9, x_10, x_11, x_12, x_37); +uint8_t x_39; lean_object* x_40; +x_39 = 0; +x_40 = l_Lean_setReducibilityStatus___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___spec__2(x_1, x_39, x_8, x_9, x_10, x_11, x_37); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +return x_40; +} +else +{ +uint8_t x_41; lean_object* x_42; lean_object* x_43; +x_41 = 0; +x_42 = lean_unsigned_to_nat(1000u); +x_43 = l_Lean_Meta_addInstance(x_1, x_41, x_42, x_8, x_9, x_10, x_11, x_37); +return x_43; +} +} +else +{ +uint8_t x_44; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_44 = !lean_is_exclusive(x_36); +if (x_44 == 0) +{ +return x_36; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_36, 0); +x_46 = lean_ctor_get(x_36, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_36); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); return x_47; } -else -{ -lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_48 = lean_box(1); -x_49 = 0; -x_50 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_50, 0, x_40); -lean_ctor_set(x_50, 1, x_33); -lean_ctor_set(x_50, 2, x_48); -lean_ctor_set_uint8(x_50, sizeof(void*)*3, x_49); -x_51 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = l_Lean_addAndCompile___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___spec__1(x_51, x_9, x_10, x_11, x_12, x_37); -return x_52; } } -else +} +} +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___closed__1() { +_start: { -uint8_t x_53; -lean_dec(x_33); +lean_object* x_1; +x_1 = lean_mk_string("failed to create coercion '"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("' to parent structure '"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___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_mkCoercionToCopiedParent___lambda__2___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("', environment already contains a declaration with the same name"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, uint8_t x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +lean_object* x_16; lean_object* x_17; uint8_t x_18; uint8_t x_19; lean_object* x_20; +x_16 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___closed__4; +lean_inc(x_10); +x_17 = lean_array_push(x_16, x_10); +x_18 = 0; +x_19 = 1; +lean_inc(x_11); +lean_inc(x_1); +lean_inc(x_17); +x_20 = l_Lean_Meta_mkForallFVars(x_17, x_1, x_18, x_19, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +lean_inc(x_11); +lean_inc(x_2); +x_23 = l_Lean_Meta_mkForallFVars(x_2, x_21, x_18, x_19, x_11, x_12, x_13, x_14, x_22); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); lean_dec(x_23); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +x_26 = l_Lean_Meta_instantiateMVars(x_24, x_11, x_12, x_13, x_14, x_25); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); +x_29 = lean_array_get_size(x_2); +x_30 = l_Lean_Expr_inferImplicit(x_27, x_29, x_19); +lean_dec(x_29); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_1); +lean_inc(x_3); +x_31 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields(x_3, x_4, x_10, x_1, x_11, x_12, x_13, x_14, x_28); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec(x_31); +lean_inc(x_11); +x_34 = l_Lean_Meta_mkLambdaFVars(x_17, x_32, x_18, x_19, x_11, x_12, x_13, x_14, x_33); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec(x_34); +lean_inc(x_11); +x_37 = l_Lean_Meta_mkLambdaFVars(x_2, x_35, x_18, x_19, x_11, x_12, x_13, x_14, x_36); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +x_40 = l_Lean_Meta_instantiateMVars(x_38, x_11, x_12, x_13, x_14, x_39); +if (lean_obj_tag(x_40) == 0) +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +lean_dec(x_40); +x_43 = l_Lean_Meta_getStructureName(x_1, x_11, x_12, x_13, x_14, x_42); +if (lean_obj_tag(x_43) == 0) +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +lean_dec(x_43); +x_46 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkToParentName(x_44); +x_47 = l_Lean_Name_append(x_5, x_46); +lean_dec(x_5); +lean_inc(x_47); +x_48 = l_Lean_Environment_contains(x_3, x_47); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; +lean_dec(x_9); +x_49 = lean_box(0); +x_50 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__1(x_47, x_6, x_30, x_7, x_41, x_8, x_49, x_11, x_12, x_13, x_14, x_45); +return x_50; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; +lean_dec(x_41); +lean_dec(x_30); +lean_dec(x_7); +lean_dec(x_6); +x_51 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_51, 0, x_47); +x_52 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___closed__2; +x_53 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_51); +x_54 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___closed__4; +x_55 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_55, 1, x_54); +x_56 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_56, 0, x_9); +x_57 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +x_58 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___closed__6; +x_59 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_59, 0, x_57); +lean_ctor_set(x_59, 1, x_58); +x_60 = l_Lean_throwError___at_Lean_Meta_withIncRecDepth___spec__1(x_59, x_11, x_12, x_13, x_14, x_45); +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); -x_53 = !lean_is_exclusive(x_35); -if (x_53 == 0) -{ -return x_35; -} -else -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_54 = lean_ctor_get(x_35, 0); -x_55 = lean_ctor_get(x_35, 1); -lean_inc(x_55); -lean_inc(x_54); -lean_dec(x_35); -x_56 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_56, 0, x_54); -lean_ctor_set(x_56, 1, x_55); -return x_56; -} -} -} -else -{ -uint8_t x_57; -lean_dec(x_23); -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_2); -x_57 = !lean_is_exclusive(x_32); -if (x_57 == 0) -{ -return x_32; -} -else -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_32, 0); -x_59 = lean_ctor_get(x_32, 1); -lean_inc(x_59); -lean_inc(x_58); -lean_dec(x_32); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_59); -return x_60; -} -} -} -else -{ -uint8_t x_61; -lean_dec(x_23); -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_3); -lean_dec(x_2); -x_61 = !lean_is_exclusive(x_29); +x_61 = !lean_is_exclusive(x_60); if (x_61 == 0) { -return x_29; +return x_60; } else { lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_29, 0); -x_63 = lean_ctor_get(x_29, 1); +x_62 = lean_ctor_get(x_60, 0); +x_63 = lean_ctor_get(x_60, 1); lean_inc(x_63); lean_inc(x_62); -lean_dec(x_29); +lean_dec(x_60); x_64 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_64, 0, x_62); lean_ctor_set(x_64, 1, x_63); @@ -21635,29 +22170,30 @@ return x_64; else { uint8_t x_65; -lean_dec(x_23); +lean_dec(x_41); +lean_dec(x_30); +lean_dec(x_14); +lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); -lean_dec(x_10); lean_dec(x_9); -lean_dec(x_8); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -lean_dec(x_2); -x_65 = !lean_is_exclusive(x_24); +x_65 = !lean_is_exclusive(x_43); if (x_65 == 0) { -return x_24; +return x_43; } else { lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = lean_ctor_get(x_24, 0); -x_67 = lean_ctor_get(x_24, 1); +x_66 = lean_ctor_get(x_43, 0); +x_67 = lean_ctor_get(x_43, 1); lean_inc(x_67); lean_inc(x_66); -lean_dec(x_24); +lean_dec(x_43); x_68 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_68, 0, x_66); lean_ctor_set(x_68, 1, x_67); @@ -21668,33 +22204,250 @@ return x_68; else { uint8_t x_69; +lean_dec(x_30); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_69 = !lean_is_exclusive(x_40); +if (x_69 == 0) +{ +return x_40; +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_40, 0); +x_71 = lean_ctor_get(x_40, 1); +lean_inc(x_71); +lean_inc(x_70); +lean_dec(x_40); +x_72 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_72, 0, x_70); +lean_ctor_set(x_72, 1, x_71); +return x_72; +} +} +} +else +{ +uint8_t x_73; +lean_dec(x_30); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_73 = !lean_is_exclusive(x_37); +if (x_73 == 0) +{ +return x_37; +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_37, 0); +x_75 = lean_ctor_get(x_37, 1); +lean_inc(x_75); +lean_inc(x_74); +lean_dec(x_37); +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +return x_76; +} +} +} +else +{ +uint8_t x_77; +lean_dec(x_30); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_77 = !lean_is_exclusive(x_34); +if (x_77 == 0) +{ +return x_34; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_34, 0); +x_79 = lean_ctor_get(x_34, 1); +lean_inc(x_79); +lean_inc(x_78); +lean_dec(x_34); +x_80 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_80, 0, x_78); +lean_ctor_set(x_80, 1, x_79); +return x_80; +} +} +} +else +{ +uint8_t x_81; +lean_dec(x_30); +lean_dec(x_17); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_81 = !lean_is_exclusive(x_31); +if (x_81 == 0) +{ +return x_31; +} +else +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_82 = lean_ctor_get(x_31, 0); +x_83 = lean_ctor_get(x_31, 1); +lean_inc(x_83); +lean_inc(x_82); +lean_dec(x_31); +x_84 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_84, 0, x_82); +lean_ctor_set(x_84, 1, x_83); +return x_84; +} +} +} +else +{ +uint8_t x_85; +lean_dec(x_17); +lean_dec(x_14); +lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_8); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_69 = !lean_is_exclusive(x_19); -if (x_69 == 0) +lean_dec(x_1); +x_85 = !lean_is_exclusive(x_26); +if (x_85 == 0) { -return x_19; +return x_26; } else { -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_19, 0); -x_71 = lean_ctor_get(x_19, 1); -lean_inc(x_71); -lean_inc(x_70); -lean_dec(x_19); -x_72 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_72, 0, x_70); -lean_ctor_set(x_72, 1, x_71); -return x_72; +lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_86 = lean_ctor_get(x_26, 0); +x_87 = lean_ctor_get(x_26, 1); +lean_inc(x_87); +lean_inc(x_86); +lean_dec(x_26); +x_88 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_88, 0, x_86); +lean_ctor_set(x_88, 1, x_87); +return x_88; +} +} +} +else +{ +uint8_t x_89; +lean_dec(x_17); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_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_89 = !lean_is_exclusive(x_23); +if (x_89 == 0) +{ +return x_23; +} +else +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_90 = lean_ctor_get(x_23, 0); +x_91 = lean_ctor_get(x_23, 1); +lean_inc(x_91); +lean_inc(x_90); +lean_dec(x_23); +x_92 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_92, 0, x_90); +lean_ctor_set(x_92, 1, x_91); +return x_92; +} +} +} +else +{ +uint8_t x_93; +lean_dec(x_17); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_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_93 = !lean_is_exclusive(x_20); +if (x_93 == 0) +{ +return x_20; +} +else +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_94 = lean_ctor_get(x_20, 0); +x_95 = lean_ctor_get(x_20, 1); +lean_inc(x_95); +lean_inc(x_94); +lean_dec(x_20); +x_96 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_96, 0, x_94); +lean_ctor_set(x_96, 1, x_95); +return x_96; } } } @@ -21703,16 +22456,37 @@ static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_m _start: { lean_object* x_1; -x_1 = lean_mk_string("source"); +x_1 = lean_mk_string("_private.Lean.Elab.Structure.0.Lean.Elab.Command.mkCoercionToCopiedParent"); return x_1; } } static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___closed__2() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_isProjFnApp_x3f___closed__2; +x_2 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___closed__1; +x_3 = lean_unsigned_to_nat(628u); +x_4 = lean_unsigned_to_nat(68u); +x_5 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_isProjFnApp_x3f___closed__4; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("self"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___closed__4() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___closed__1; +x_2 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -21720,51 +22494,158 @@ return x_3; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; -x_10 = lean_ctor_get(x_3, 4); -lean_inc(x_10); -x_11 = lean_st_ref_get(x_8, x_9); -x_12 = lean_ctor_get(x_11, 0); +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_10 = lean_st_ref_get(x_8, x_9); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 1); +lean_dec(x_10); +x_13 = lean_ctor_get(x_11, 0); lean_inc(x_13); lean_dec(x_11); -x_14 = lean_ctor_get(x_12, 0); +x_14 = lean_ctor_get(x_3, 4); lean_inc(x_14); -lean_dec(x_12); x_15 = 1; -lean_inc(x_10); -x_16 = l_Lean_getStructureFieldsFlattened(x_14, x_10, x_15); +lean_inc(x_14); +lean_inc(x_13); +x_16 = l_Lean_getStructureFieldsFlattened(x_13, x_14, x_15); lean_inc(x_1); x_17 = l_List_map___at_Lean_mkConstWithLevelParams___spec__1(x_1); -lean_inc(x_10); -x_18 = l_Lean_mkConst(x_10, x_17); +lean_inc(x_14); +x_18 = l_Lean_mkConst(x_14, x_17); lean_inc(x_2); x_19 = l_Lean_mkAppN(x_18, x_2); -lean_inc(x_19); -x_20 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__1___boxed), 13, 7); -lean_closure_set(x_20, 0, x_19); -lean_closure_set(x_20, 1, x_4); -lean_closure_set(x_20, 2, x_2); -lean_closure_set(x_20, 3, x_16); -lean_closure_set(x_20, 4, x_10); -lean_closure_set(x_20, 5, x_1); -lean_closure_set(x_20, 6, x_3); -x_21 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___closed__2; -x_22 = 0; -x_23 = l_Lean_Meta_withLocalDecl___at_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___spec__1___rarg(x_21, x_22, x_19, x_20, x_5, x_6, x_7, x_8, x_13); -return x_23; +x_20 = l_Lean_Expr_getAppFn(x_4); +if (lean_obj_tag(x_20) == 4) +{ +uint8_t x_21; +x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +if (x_21 == 0) +{ +lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_22 = lean_ctor_get(x_20, 0); +lean_inc(x_22); +lean_dec(x_20); +x_23 = 0; +x_24 = lean_box(x_23); +x_25 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___boxed), 15, 9); +lean_closure_set(x_25, 0, x_4); +lean_closure_set(x_25, 1, x_2); +lean_closure_set(x_25, 2, x_13); +lean_closure_set(x_25, 3, x_16); +lean_closure_set(x_25, 4, x_14); +lean_closure_set(x_25, 5, x_1); +lean_closure_set(x_25, 6, x_3); +lean_closure_set(x_25, 7, x_24); +lean_closure_set(x_25, 8, x_22); +x_26 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___closed__4; +x_27 = l_Lean_Meta_withLocalDecl___at_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___spec__1___rarg(x_26, x_23, x_19, x_25, x_5, x_6, x_7, x_8, x_12); +return x_27; +} +else +{ +lean_object* x_28; uint8_t x_29; +x_28 = lean_ctor_get(x_20, 0); +lean_inc(x_28); +lean_dec(x_20); +lean_inc(x_28); +lean_inc(x_13); +x_29 = lean_is_class(x_13, x_28); +if (x_29 == 0) +{ +uint8_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_30 = 0; +x_31 = lean_box(x_30); +x_32 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___boxed), 15, 9); +lean_closure_set(x_32, 0, x_4); +lean_closure_set(x_32, 1, x_2); +lean_closure_set(x_32, 2, x_13); +lean_closure_set(x_32, 3, x_16); +lean_closure_set(x_32, 4, x_14); +lean_closure_set(x_32, 5, x_1); +lean_closure_set(x_32, 6, x_3); +lean_closure_set(x_32, 7, x_31); +lean_closure_set(x_32, 8, x_28); +x_33 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___closed__4; +x_34 = l_Lean_Meta_withLocalDecl___at_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___spec__1___rarg(x_33, x_30, x_19, x_32, x_5, x_6, x_7, x_8, x_12); +return x_34; +} +else +{ +uint8_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_35 = 3; +x_36 = lean_box(x_35); +x_37 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___boxed), 15, 9); +lean_closure_set(x_37, 0, x_4); +lean_closure_set(x_37, 1, x_2); +lean_closure_set(x_37, 2, x_13); +lean_closure_set(x_37, 3, x_16); +lean_closure_set(x_37, 4, x_14); +lean_closure_set(x_37, 5, x_1); +lean_closure_set(x_37, 6, x_3); +lean_closure_set(x_37, 7, x_36); +lean_closure_set(x_37, 8, x_28); +x_38 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___closed__4; +x_39 = l_Lean_Meta_withLocalDecl___at_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___spec__1___rarg(x_38, x_35, x_19, x_37, x_5, x_6, x_7, x_8, x_12); +return x_39; } } -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_16); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_40 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_isProjFnApp_x3f___closed__1; +x_41 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___closed__2; +x_42 = lean_panic_fn(x_40, x_41); +x_43 = lean_apply_5(x_42, x_5, x_6, x_7, x_8, x_12); +return x_43; +} +} +} +lean_object* l_Lean_setReducibilityStatus___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_14; -x_14 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -lean_dec(x_7); +uint8_t x_8; lean_object* x_9; +x_8 = lean_unbox(x_2); +lean_dec(x_2); +x_9 = l_Lean_setReducibilityStatus___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___spec__2(x_1, x_8, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_9; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +uint8_t x_13; lean_object* x_14; +x_13 = lean_unbox(x_6); +lean_dec(x_6); +x_14 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__1(x_1, x_2, x_3, x_4, x_5, x_13, x_7, x_8, x_9, x_10, x_11, x_12); return x_14; } } +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +uint8_t x_16; lean_object* x_17; +x_16 = lean_unbox(x_8); +lean_dec(x_8); +x_17 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_16, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +return x_17; +} +} lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -28019,7 +28900,7 @@ x_15 = l_Lean_Elab_Command_elabStructure___lambda__6(x_1, x_2, x_3, x_13, x_5, x return x_15; } } -lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_7355_(lean_object* x_1) { +lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_7679_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -28362,18 +29243,24 @@ l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getFieldType___lambda__1___ lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getFieldType___lambda__1___closed__2); l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getFieldType___lambda__3___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getFieldType___lambda__3___closed__1(); lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getFieldType___lambda__3___closed__1); -l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__1); -l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__2 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__2); -l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__3 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__3); -l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__4 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__4); -l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__5 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__5); -l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__6 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_go___rarg___closed__6); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__1); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__2 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__2); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__3 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__3); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__4 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__4); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__5 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__5); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__6 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__6); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__7 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__7(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__7); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__8 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__8(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__8); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__9 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__9(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__9); l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkToParentName___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkToParentName___closed__1(); lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkToParentName___closed__1); l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___lambda__1___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___lambda__1___closed__1(); @@ -28410,8 +29297,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__15); l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__16 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__16(); lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__16); -l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__17 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__17(); -lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__17); 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(); @@ -28474,10 +29359,26 @@ l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_co lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___closed__1); l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___closed__2 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___closed__2(); lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___closed__2); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___closed__1); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___closed__2 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___closed__2); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___closed__3 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___closed__3); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___closed__4 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___closed__4); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___closed__5 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___closed__5); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___closed__6 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___closed__6); l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___closed__1(); lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___closed__1); l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___closed__2 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___closed__2(); lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___closed__2); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___closed__3 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___closed__3); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___closed__4 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___closed__4); l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__1 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__1(); lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__1); l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__2 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__2(); @@ -28574,7 +29475,7 @@ l_Lean_Elab_Command_elabStructure___closed__10 = _init_l_Lean_Elab_Command_elabS lean_mark_persistent(l_Lean_Elab_Command_elabStructure___closed__10); l_Lean_Elab_Command_elabStructure___closed__11 = _init_l_Lean_Elab_Command_elabStructure___closed__11(); lean_mark_persistent(l_Lean_Elab_Command_elabStructure___closed__11); -res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_7355_(lean_io_mk_world()); +res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_7679_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Elab/Syntax.c b/stage0/stdlib/Lean/Elab/Syntax.c index cf2f2faeba..87d4abf4bf 100644 --- a/stage0/stdlib/Lean/Elab/Syntax.c +++ b/stage0/stdlib/Lean/Elab/Syntax.c @@ -300,7 +300,7 @@ lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__2; lean_object* l_String_capitalize(lean_object*); -lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_5555_(lean_object*); +lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_5585_(lean_object*); lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Term_toParserDescr_resolveParserName___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___at_Lean_Elab_Term_toParserDescr_processNullaryOrCat___spec__3(lean_object*); static lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___closed__16; @@ -315,8 +315,8 @@ static lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___closed__15; lean_object* l_Lean_Elab_Command_strLitToPattern___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabCommand___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__8; +static lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___closed__18; static lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___closed__5; -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_5555____closed__1; static lean_object* l_Lean_addTrace___at_Lean_Elab_Term_checkLeftRec___spec__3___closed__5; static lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___closed__14; static lean_object* l_Lean_Elab_Term_toParserDescr_ensureNoPrec___closed__1; @@ -532,6 +532,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat___clos lean_object* l_Lean_Elab_Command_elabSyntax___lambda__1(lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(lean_object*); lean_object* l_Array_mapIdxM_map___at_Lean_Elab_Term_toParserDescr_processSeq___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabSyntax___lambda__4___closed__14; lean_object* l_List_forIn_loop___at_Lean_Elab_Term_toParserDescr_resolveParserName___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabSyntax___closed__2; static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__26; @@ -543,6 +544,7 @@ lean_object* l_Lean_Parser_isParserAlias(lean_object*, lean_object*); lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_checkLeftRec___spec__1___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_toParserDescr_resolveParserName___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Term_toParserDescr_resolveParserName___spec__11___closed__2; +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_5585____closed__1; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__5___rarg(lean_object*); static lean_object* l_Lean_Elab_Term_toParserDescr_processSepBy___lambda__1___closed__6; lean_object* l_Lean_Elab_Term_toParserDescr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -15955,6 +15957,14 @@ return x_20; static lean_object* _init_l_Lean_Elab_Command_elabSyntax___lambda__4___closed__1() { _start: { +lean_object* x_1; +x_1 = lean_mk_string("declId"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabSyntax___lambda__4___closed__2() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__29; x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__13; @@ -15962,7 +15972,7 @@ x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_elabSyntax___lambda__4___closed__2() { +static lean_object* _init_l_Lean_Elab_Command_elabSyntax___lambda__4___closed__3() { _start: { lean_object* x_1; @@ -15970,22 +15980,22 @@ x_1 = lean_mk_string("ParserDescr.node"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_elabSyntax___lambda__4___closed__3() { +static lean_object* _init_l_Lean_Elab_Command_elabSyntax___lambda__4___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__2; +x_1 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__3; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Command_elabSyntax___lambda__4___closed__4() { +static lean_object* _init_l_Lean_Elab_Command_elabSyntax___lambda__4___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__2; +x_1 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__3; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__3; +x_3 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__4; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -15993,7 +16003,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Command_elabSyntax___lambda__4___closed__5() { +static lean_object* _init_l_Lean_Elab_Command_elabSyntax___lambda__4___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -16003,7 +16013,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_elabSyntax___lambda__4___closed__6() { +static lean_object* _init_l_Lean_Elab_Command_elabSyntax___lambda__4___closed__7() { _start: { lean_object* x_1; @@ -16011,22 +16021,22 @@ x_1 = lean_mk_string("Lean.TrailingParserDescr"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_elabSyntax___lambda__4___closed__7() { +static lean_object* _init_l_Lean_Elab_Command_elabSyntax___lambda__4___closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__6; +x_1 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__7; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Command_elabSyntax___lambda__4___closed__8() { +static lean_object* _init_l_Lean_Elab_Command_elabSyntax___lambda__4___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__6; +x_1 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__7; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__7; +x_3 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__8; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -16034,7 +16044,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Command_elabSyntax___lambda__4___closed__9() { +static lean_object* _init_l_Lean_Elab_Command_elabSyntax___lambda__4___closed__10() { _start: { lean_object* x_1; @@ -16042,22 +16052,22 @@ x_1 = lean_mk_string("ParserDescr.trailingNode"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_elabSyntax___lambda__4___closed__10() { +static lean_object* _init_l_Lean_Elab_Command_elabSyntax___lambda__4___closed__11() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__9; +x_1 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__10; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Command_elabSyntax___lambda__4___closed__11() { +static lean_object* _init_l_Lean_Elab_Command_elabSyntax___lambda__4___closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__9; +x_1 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__10; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__10; +x_3 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__11; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -16065,7 +16075,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Command_elabSyntax___lambda__4___closed__12() { +static lean_object* _init_l_Lean_Elab_Command_elabSyntax___lambda__4___closed__13() { _start: { lean_object* x_1; @@ -16073,12 +16083,12 @@ x_1 = lean_mk_string("trailingNode"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_elabSyntax___lambda__4___closed__13() { +static lean_object* _init_l_Lean_Elab_Command_elabSyntax___lambda__4___closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__13; -x_2 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__12; +x_2 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__13; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -16155,7 +16165,7 @@ lean_inc(x_3); x_42 = l_Lean_mkIdentFrom(x_3, x_12); if (lean_obj_tag(x_41) == 0) { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; x_43 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_13, x_14, x_38); x_44 = lean_ctor_get(x_43, 0); lean_inc(x_44); @@ -16243,1092 +16253,1124 @@ lean_inc(x_44); x_94 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_94, 0, x_44); lean_ctor_set(x_94, 1, x_92); -x_95 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__37; +x_95 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__1; lean_inc(x_5); x_96 = lean_name_mk_string(x_5, x_95); -x_97 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__39; -lean_inc(x_6); -x_98 = lean_name_mk_string(x_6, x_97); -x_99 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__41; -lean_inc(x_44); -x_100 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_100, 0, x_44); +x_97 = lean_array_push(x_74, x_42); +x_98 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__13; +x_99 = lean_array_push(x_97, x_98); +x_100 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_100, 0, x_96); lean_ctor_set(x_100, 1, x_99); -x_101 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__12; -x_102 = lean_name_mk_string(x_9, x_101); +x_101 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__37; +lean_inc(x_5); +x_102 = lean_name_mk_string(x_5, x_101); +x_103 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__39; +lean_inc(x_6); +x_104 = lean_name_mk_string(x_6, x_103); +x_105 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__41; +lean_inc(x_44); +x_106 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_106, 0, x_44); +lean_ctor_set(x_106, 1, x_105); +x_107 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__12; +x_108 = lean_name_mk_string(x_9, x_107); lean_inc(x_47); -lean_inc(x_102); +lean_inc(x_108); lean_inc(x_50); -x_103 = l_Lean_addMacroScope(x_50, x_102, x_47); -x_104 = lean_box(0); -lean_inc(x_102); -lean_ctor_set(x_37, 1, x_104); -lean_ctor_set(x_37, 0, x_102); -x_105 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_105, 0, x_37); -lean_ctor_set(x_105, 1, x_104); -x_106 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__44; +x_109 = l_Lean_addMacroScope(x_50, x_108, x_47); +x_110 = lean_box(0); +lean_inc(x_108); +lean_ctor_set(x_37, 1, x_110); +lean_ctor_set(x_37, 0, x_108); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_37); +lean_ctor_set(x_111, 1, x_110); +x_112 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__44; lean_inc(x_44); -x_107 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_107, 0, x_44); -lean_ctor_set(x_107, 1, x_106); -lean_ctor_set(x_107, 2, x_103); -lean_ctor_set(x_107, 3, x_105); -x_108 = lean_array_push(x_74, x_100); -x_109 = lean_array_push(x_108, x_107); -x_110 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_110, 0, x_98); -lean_ctor_set(x_110, 1, x_109); -x_111 = lean_array_push(x_70, x_110); -x_112 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_112, 0, x_72); -lean_ctor_set(x_112, 1, x_111); -x_113 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__1; -x_114 = lean_array_push(x_113, x_112); -x_115 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_115, 0, x_96); -lean_ctor_set(x_115, 1, x_114); -x_116 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__48; -x_117 = lean_name_mk_string(x_5, x_116); -x_118 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__50; +x_113 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_113, 0, x_44); +lean_ctor_set(x_113, 1, x_112); +lean_ctor_set(x_113, 2, x_109); +lean_ctor_set(x_113, 3, x_111); +x_114 = lean_array_push(x_74, x_106); +x_115 = lean_array_push(x_114, x_113); +x_116 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_116, 0, x_104); +lean_ctor_set(x_116, 1, x_115); +x_117 = lean_array_push(x_70, x_116); +x_118 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_118, 0, x_72); +lean_ctor_set(x_118, 1, x_117); +x_119 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__2; +x_120 = lean_array_push(x_119, x_118); +x_121 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_121, 0, x_102); +lean_ctor_set(x_121, 1, x_120); +x_122 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__48; +x_123 = lean_name_mk_string(x_5, x_122); +x_124 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__50; lean_inc(x_44); -x_119 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_119, 0, x_44); -lean_ctor_set(x_119, 1, x_118); -x_120 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_125 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_125, 0, x_44); +lean_ctor_set(x_125, 1, x_124); +x_126 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; lean_inc(x_6); -x_121 = lean_name_mk_string(x_6, x_120); -x_122 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__5; -x_123 = l_Lean_addMacroScope(x_50, x_122, x_47); -x_124 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__54; -x_125 = lean_name_mk_string(x_102, x_124); -x_126 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_104); -x_127 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_127, 0, x_126); -lean_ctor_set(x_127, 1, x_104); -x_128 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__4; -x_129 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_129, 0, x_44); -lean_ctor_set(x_129, 1, x_128); -lean_ctor_set(x_129, 2, x_123); -lean_ctor_set(x_129, 3, x_127); +x_127 = lean_name_mk_string(x_6, x_126); +x_128 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__6; +x_129 = l_Lean_addMacroScope(x_50, x_128, x_47); +x_130 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__54; +x_131 = lean_name_mk_string(x_108, x_130); +x_132 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_132, 0, x_131); +lean_ctor_set(x_132, 1, x_110); +x_133 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_133, 0, x_132); +lean_ctor_set(x_133, 1, x_110); +x_134 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__5; +x_135 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_135, 0, x_44); +lean_ctor_set(x_135, 1, x_134); +lean_ctor_set(x_135, 2, x_129); +lean_ctor_set(x_135, 3, x_133); lean_inc(x_24); -x_130 = l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(x_104, x_24); -x_131 = l_Nat_repr(x_10); -x_132 = l_Lean_Syntax_mkLit(x_67, x_131, x_68); -x_133 = lean_array_push(x_74, x_129); -x_134 = lean_array_push(x_85, x_119); -x_135 = l_Lean_Elab_Term_toParserDescr_processSepBy1___lambda__1___closed__8; -x_136 = lean_array_push(x_135, x_94); -x_137 = lean_array_push(x_136, x_42); -x_138 = lean_array_push(x_137, x_115); +x_136 = l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(x_110, x_24); +x_137 = l_Nat_repr(x_10); +x_138 = l_Lean_Syntax_mkLit(x_67, x_137, x_68); +x_139 = lean_array_push(x_74, x_135); +x_140 = lean_array_push(x_85, x_125); +x_141 = l_Lean_Elab_Term_toParserDescr_processSepBy1___lambda__1___closed__8; +x_142 = lean_array_push(x_141, x_94); +x_143 = lean_array_push(x_142, x_100); +x_144 = lean_array_push(x_143, x_121); if (lean_obj_tag(x_11) == 0) { -lean_object* x_194; -x_194 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; -x_139 = x_194; -goto block_193; +lean_object* x_199; +x_199 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; +x_145 = x_199; +goto block_198; } else { -lean_object* x_195; lean_object* x_196; -x_195 = lean_ctor_get(x_11, 0); -lean_inc(x_195); -lean_dec(x_11); -x_196 = lean_array_push(x_70, x_195); -x_139 = x_196; -goto block_193; -} -block_193: -{ -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; -x_140 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; -x_141 = l_Array_append___rarg(x_140, x_139); -x_142 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_142, 0, x_72); -lean_ctor_set(x_142, 1, x_141); -x_143 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__33; -x_144 = lean_array_push(x_143, x_142); -x_145 = lean_array_push(x_144, x_91); -x_146 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__13; -x_147 = lean_array_push(x_145, x_146); -x_148 = lean_array_push(x_147, x_146); -x_149 = lean_array_push(x_148, x_146); -x_150 = lean_array_push(x_149, x_146); -x_151 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_151, 0, x_55); -lean_ctor_set(x_151, 1, x_150); -x_152 = lean_array_push(x_74, x_151); -if (lean_obj_tag(x_130) == 0) -{ -lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; -lean_dec(x_6); -x_153 = l___private_Init_Meta_0__Lean_quoteNameMk(x_24); -x_154 = lean_array_push(x_85, x_153); -x_155 = lean_array_push(x_154, x_132); -x_156 = lean_array_push(x_155, x_40); -x_157 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_157, 0, x_72); -lean_ctor_set(x_157, 1, x_156); -x_158 = lean_array_push(x_133, x_157); -x_159 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_159, 0, x_121); -lean_ctor_set(x_159, 1, x_158); -x_160 = lean_array_push(x_134, x_159); -x_161 = lean_array_push(x_160, x_146); -x_162 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_162, 0, x_117); -lean_ctor_set(x_162, 1, x_161); -x_163 = lean_array_push(x_138, x_162); -x_164 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_164, 0, x_93); -lean_ctor_set(x_164, 1, x_163); -x_165 = lean_array_push(x_152, x_164); -x_166 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_166, 0, x_53); -lean_ctor_set(x_166, 1, x_165); -x_167 = l_Lean_Elab_Command_elabSyntax___lambda__3(x_3, x_166, x_13, x_14, x_51); -return x_167; -} -else -{ -lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; -lean_dec(x_24); -x_168 = lean_ctor_get(x_130, 0); -lean_inc(x_168); -lean_dec(x_130); -x_169 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__22; -x_170 = lean_name_mk_string(x_6, x_169); -x_171 = l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__8; -x_172 = l_String_intercalate(x_171, x_168); -x_173 = l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__9; -x_174 = lean_string_append(x_173, x_172); -lean_dec(x_172); -x_175 = l_Lean_nameLitKind; -x_176 = l_Lean_Syntax_mkLit(x_175, x_174, x_68); -x_177 = lean_array_push(x_70, x_176); -x_178 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_178, 0, x_170); -lean_ctor_set(x_178, 1, x_177); -x_179 = lean_array_push(x_85, x_178); -x_180 = lean_array_push(x_179, x_132); -x_181 = lean_array_push(x_180, x_40); -x_182 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_182, 0, x_72); -lean_ctor_set(x_182, 1, x_181); -x_183 = lean_array_push(x_133, x_182); -x_184 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_184, 0, x_121); -lean_ctor_set(x_184, 1, x_183); -x_185 = lean_array_push(x_134, x_184); -x_186 = lean_array_push(x_185, x_146); -x_187 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_187, 0, x_117); -lean_ctor_set(x_187, 1, x_186); -x_188 = lean_array_push(x_138, x_187); -x_189 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_189, 0, x_93); -lean_ctor_set(x_189, 1, x_188); -x_190 = lean_array_push(x_152, x_189); -x_191 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_191, 0, x_53); -lean_ctor_set(x_191, 1, x_190); -x_192 = l_Lean_Elab_Command_elabSyntax___lambda__3(x_3, x_191, x_13, x_14, x_51); -return x_192; -} -} -} -else -{ -lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; -x_197 = lean_ctor_get(x_41, 0); -lean_inc(x_197); -lean_dec(x_41); -x_198 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_13, x_14, x_38); -x_199 = lean_ctor_get(x_198, 0); -lean_inc(x_199); -x_200 = lean_ctor_get(x_198, 1); +lean_object* x_200; lean_object* x_201; +x_200 = lean_ctor_get(x_11, 0); lean_inc(x_200); -lean_dec(x_198); -x_201 = l_Lean_Elab_Command_getCurrMacroScope(x_13, x_14, x_200); -x_202 = lean_ctor_get(x_201, 0); +lean_dec(x_11); +x_201 = lean_array_push(x_70, x_200); +x_145 = x_201; +goto block_198; +} +block_198: +{ +lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; +x_146 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; +x_147 = l_Array_append___rarg(x_146, x_145); +x_148 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_148, 0, x_72); +lean_ctor_set(x_148, 1, x_147); +x_149 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__33; +x_150 = lean_array_push(x_149, x_148); +x_151 = lean_array_push(x_150, x_91); +x_152 = lean_array_push(x_151, x_98); +x_153 = lean_array_push(x_152, x_98); +x_154 = lean_array_push(x_153, x_98); +x_155 = lean_array_push(x_154, x_98); +x_156 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_156, 0, x_55); +lean_ctor_set(x_156, 1, x_155); +x_157 = lean_array_push(x_74, x_156); +if (lean_obj_tag(x_136) == 0) +{ +lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; +lean_dec(x_6); +x_158 = l___private_Init_Meta_0__Lean_quoteNameMk(x_24); +x_159 = lean_array_push(x_85, x_158); +x_160 = lean_array_push(x_159, x_138); +x_161 = lean_array_push(x_160, x_40); +x_162 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_162, 0, x_72); +lean_ctor_set(x_162, 1, x_161); +x_163 = lean_array_push(x_139, x_162); +x_164 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_164, 0, x_127); +lean_ctor_set(x_164, 1, x_163); +x_165 = lean_array_push(x_140, x_164); +x_166 = lean_array_push(x_165, x_98); +x_167 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_167, 0, x_123); +lean_ctor_set(x_167, 1, x_166); +x_168 = lean_array_push(x_144, x_167); +x_169 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_169, 0, x_93); +lean_ctor_set(x_169, 1, x_168); +x_170 = lean_array_push(x_157, x_169); +x_171 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_171, 0, x_53); +lean_ctor_set(x_171, 1, x_170); +x_172 = l_Lean_Elab_Command_elabSyntax___lambda__3(x_3, x_171, x_13, x_14, x_51); +return x_172; +} +else +{ +lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; +lean_dec(x_24); +x_173 = lean_ctor_get(x_136, 0); +lean_inc(x_173); +lean_dec(x_136); +x_174 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__22; +x_175 = lean_name_mk_string(x_6, x_174); +x_176 = l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__8; +x_177 = l_String_intercalate(x_176, x_173); +x_178 = l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__9; +x_179 = lean_string_append(x_178, x_177); +lean_dec(x_177); +x_180 = l_Lean_nameLitKind; +x_181 = l_Lean_Syntax_mkLit(x_180, x_179, x_68); +x_182 = lean_array_push(x_70, x_181); +x_183 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_183, 0, x_175); +lean_ctor_set(x_183, 1, x_182); +x_184 = lean_array_push(x_85, x_183); +x_185 = lean_array_push(x_184, x_138); +x_186 = lean_array_push(x_185, x_40); +x_187 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_187, 0, x_72); +lean_ctor_set(x_187, 1, x_186); +x_188 = lean_array_push(x_139, x_187); +x_189 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_189, 0, x_127); +lean_ctor_set(x_189, 1, x_188); +x_190 = lean_array_push(x_140, x_189); +x_191 = lean_array_push(x_190, x_98); +x_192 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_192, 0, x_123); +lean_ctor_set(x_192, 1, x_191); +x_193 = lean_array_push(x_144, x_192); +x_194 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_194, 0, x_93); +lean_ctor_set(x_194, 1, x_193); +x_195 = lean_array_push(x_157, x_194); +x_196 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_196, 0, x_53); +lean_ctor_set(x_196, 1, x_195); +x_197 = l_Lean_Elab_Command_elabSyntax___lambda__3(x_3, x_196, x_13, x_14, x_51); +return x_197; +} +} +} +else +{ +lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; +x_202 = lean_ctor_get(x_41, 0); lean_inc(x_202); -x_203 = lean_ctor_get(x_201, 1); -lean_inc(x_203); -lean_dec(x_201); -x_204 = l_Lean_Elab_Command_getMainModule___rarg(x_14, x_203); -x_205 = lean_ctor_get(x_204, 0); +lean_dec(x_41); +x_203 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_13, x_14, x_38); +x_204 = lean_ctor_get(x_203, 0); +lean_inc(x_204); +x_205 = lean_ctor_get(x_203, 1); lean_inc(x_205); -x_206 = lean_ctor_get(x_204, 1); -lean_inc(x_206); -lean_dec(x_204); -x_207 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__8; +lean_dec(x_203); +x_206 = l_Lean_Elab_Command_getCurrMacroScope(x_13, x_14, x_205); +x_207 = lean_ctor_get(x_206, 0); +lean_inc(x_207); +x_208 = lean_ctor_get(x_206, 1); +lean_inc(x_208); +lean_dec(x_206); +x_209 = l_Lean_Elab_Command_getMainModule___rarg(x_14, x_208); +x_210 = lean_ctor_get(x_209, 0); +lean_inc(x_210); +x_211 = lean_ctor_get(x_209, 1); +lean_inc(x_211); +lean_dec(x_209); +x_212 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__8; lean_inc(x_5); -x_208 = lean_name_mk_string(x_5, x_207); -x_209 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__10; +x_213 = lean_name_mk_string(x_5, x_212); +x_214 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__10; lean_inc(x_5); -x_210 = lean_name_mk_string(x_5, x_209); -x_211 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__14; +x_215 = lean_name_mk_string(x_5, x_214); +x_216 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__14; lean_inc(x_6); -x_212 = lean_name_mk_string(x_6, x_211); -x_213 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__16; -lean_inc(x_199); -x_214 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_214, 0, x_199); -lean_ctor_set(x_214, 1, x_213); -x_215 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__17; +x_217 = lean_name_mk_string(x_6, x_216); +x_218 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__16; +lean_inc(x_204); +x_219 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_219, 0, x_204); +lean_ctor_set(x_219, 1, x_218); +x_220 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__17; lean_inc(x_6); -x_216 = lean_name_mk_string(x_6, x_215); -x_217 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__23; -x_218 = lean_name_mk_string(x_7, x_217); -x_219 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__25; -x_220 = lean_name_mk_string(x_218, x_219); -x_221 = l_Nat_repr(x_18); -x_222 = l_Lean_numLitKind; -x_223 = lean_box(2); -x_224 = l_Lean_Syntax_mkLit(x_222, x_221, x_223); -x_225 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__27; -x_226 = lean_array_push(x_225, x_224); -x_227 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__21; -x_228 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_228, 0, x_227); -lean_ctor_set(x_228, 1, x_226); -x_229 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__29; -x_230 = lean_array_push(x_229, x_27); -x_231 = lean_array_push(x_230, x_228); -x_232 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_232, 0, x_220); -lean_ctor_set(x_232, 1, x_231); -x_233 = lean_array_push(x_229, x_8); -x_234 = lean_array_push(x_233, x_232); -x_235 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_235, 0, x_216); -lean_ctor_set(x_235, 1, x_234); -x_236 = lean_array_push(x_225, x_235); +x_221 = lean_name_mk_string(x_6, x_220); +x_222 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__23; +x_223 = lean_name_mk_string(x_7, x_222); +x_224 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__25; +x_225 = lean_name_mk_string(x_223, x_224); +x_226 = l_Nat_repr(x_18); +x_227 = l_Lean_numLitKind; +x_228 = lean_box(2); +x_229 = l_Lean_Syntax_mkLit(x_227, x_226, x_228); +x_230 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__27; +x_231 = lean_array_push(x_230, x_229); +x_232 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__21; +x_233 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_233, 0, x_232); +lean_ctor_set(x_233, 1, x_231); +x_234 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__29; +x_235 = lean_array_push(x_234, x_27); +x_236 = lean_array_push(x_235, x_233); x_237 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_237, 0, x_227); +lean_ctor_set(x_237, 0, x_225); lean_ctor_set(x_237, 1, x_236); -x_238 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__32; -lean_inc(x_199); -x_239 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_239, 0, x_199); -lean_ctor_set(x_239, 1, x_238); -x_240 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__28; -x_241 = lean_array_push(x_240, x_214); -x_242 = lean_array_push(x_241, x_237); -x_243 = lean_array_push(x_242, x_239); -x_244 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_244, 0, x_212); +x_238 = lean_array_push(x_234, x_8); +x_239 = lean_array_push(x_238, x_237); +x_240 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_240, 0, x_221); +lean_ctor_set(x_240, 1, x_239); +x_241 = lean_array_push(x_230, x_240); +x_242 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_242, 0, x_232); +lean_ctor_set(x_242, 1, x_241); +x_243 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__32; +lean_inc(x_204); +x_244 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_244, 0, x_204); lean_ctor_set(x_244, 1, x_243); -x_245 = lean_array_push(x_225, x_244); -x_246 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_246, 0, x_227); -lean_ctor_set(x_246, 1, x_245); -x_247 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__35; +x_245 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__28; +x_246 = lean_array_push(x_245, x_219); +x_247 = lean_array_push(x_246, x_242); +x_248 = lean_array_push(x_247, x_244); +x_249 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_249, 0, x_217); +lean_ctor_set(x_249, 1, x_248); +x_250 = lean_array_push(x_230, x_249); +x_251 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_251, 0, x_232); +lean_ctor_set(x_251, 1, x_250); +x_252 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__35; lean_inc(x_5); -x_248 = lean_name_mk_string(x_5, x_247); -lean_inc(x_199); -x_249 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_249, 0, x_199); -lean_ctor_set(x_249, 1, x_247); -x_250 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__37; +x_253 = lean_name_mk_string(x_5, x_252); +lean_inc(x_204); +x_254 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_254, 0, x_204); +lean_ctor_set(x_254, 1, x_252); +x_255 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__1; lean_inc(x_5); -x_251 = lean_name_mk_string(x_5, x_250); -x_252 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__39; -lean_inc(x_6); -x_253 = lean_name_mk_string(x_6, x_252); -x_254 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__41; -lean_inc(x_199); -x_255 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_255, 0, x_199); -lean_ctor_set(x_255, 1, x_254); -x_256 = l_Lean_Elab_Term_toParserDescr_resolveParserName_match__1___rarg___closed__1; -lean_inc(x_9); -x_257 = lean_name_mk_string(x_9, x_256); -lean_inc(x_202); -lean_inc(x_257); -lean_inc(x_205); -x_258 = l_Lean_addMacroScope(x_205, x_257, x_202); -x_259 = lean_box(0); -lean_ctor_set(x_37, 1, x_259); -lean_ctor_set(x_37, 0, x_257); +x_256 = lean_name_mk_string(x_5, x_255); +x_257 = lean_array_push(x_234, x_42); +x_258 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__13; +x_259 = lean_array_push(x_257, x_258); x_260 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_260, 0, x_37); +lean_ctor_set(x_260, 0, x_256); lean_ctor_set(x_260, 1, x_259); -x_261 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__8; -lean_inc(x_199); -x_262 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_262, 0, x_199); -lean_ctor_set(x_262, 1, x_261); -lean_ctor_set(x_262, 2, x_258); -lean_ctor_set(x_262, 3, x_260); -x_263 = lean_array_push(x_229, x_255); -x_264 = lean_array_push(x_263, x_262); -x_265 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_265, 0, x_253); -lean_ctor_set(x_265, 1, x_264); -x_266 = lean_array_push(x_225, x_265); -x_267 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_267, 0, x_227); -lean_ctor_set(x_267, 1, x_266); -x_268 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__1; -x_269 = lean_array_push(x_268, x_267); -x_270 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_270, 0, x_251); -lean_ctor_set(x_270, 1, x_269); -x_271 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__48; -x_272 = lean_name_mk_string(x_5, x_271); -x_273 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__50; -lean_inc(x_199); -x_274 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_274, 0, x_199); -lean_ctor_set(x_274, 1, x_273); -x_275 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_261 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__37; +lean_inc(x_5); +x_262 = lean_name_mk_string(x_5, x_261); +x_263 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__39; lean_inc(x_6); -x_276 = lean_name_mk_string(x_6, x_275); -x_277 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__13; -x_278 = l_Lean_addMacroScope(x_205, x_277, x_202); -x_279 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__12; -x_280 = lean_name_mk_string(x_9, x_279); -x_281 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__12; -x_282 = lean_name_mk_string(x_280, x_281); -x_283 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_283, 0, x_282); -lean_ctor_set(x_283, 1, x_259); -x_284 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_284, 0, x_283); -lean_ctor_set(x_284, 1, x_259); -x_285 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__11; -x_286 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_286, 0, x_199); -lean_ctor_set(x_286, 1, x_285); -lean_ctor_set(x_286, 2, x_278); -lean_ctor_set(x_286, 3, x_284); +x_264 = lean_name_mk_string(x_6, x_263); +x_265 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__41; +lean_inc(x_204); +x_266 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_266, 0, x_204); +lean_ctor_set(x_266, 1, x_265); +x_267 = l_Lean_Elab_Term_toParserDescr_resolveParserName_match__1___rarg___closed__1; +lean_inc(x_9); +x_268 = lean_name_mk_string(x_9, x_267); +lean_inc(x_207); +lean_inc(x_268); +lean_inc(x_210); +x_269 = l_Lean_addMacroScope(x_210, x_268, x_207); +x_270 = lean_box(0); +lean_ctor_set(x_37, 1, x_270); +lean_ctor_set(x_37, 0, x_268); +x_271 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_271, 0, x_37); +lean_ctor_set(x_271, 1, x_270); +x_272 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__9; +lean_inc(x_204); +x_273 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_273, 0, x_204); +lean_ctor_set(x_273, 1, x_272); +lean_ctor_set(x_273, 2, x_269); +lean_ctor_set(x_273, 3, x_271); +x_274 = lean_array_push(x_234, x_266); +x_275 = lean_array_push(x_274, x_273); +x_276 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_276, 0, x_264); +lean_ctor_set(x_276, 1, x_275); +x_277 = lean_array_push(x_230, x_276); +x_278 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_278, 0, x_232); +lean_ctor_set(x_278, 1, x_277); +x_279 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__2; +x_280 = lean_array_push(x_279, x_278); +x_281 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_281, 0, x_262); +lean_ctor_set(x_281, 1, x_280); +x_282 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__48; +x_283 = lean_name_mk_string(x_5, x_282); +x_284 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__50; +lean_inc(x_204); +x_285 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_285, 0, x_204); +lean_ctor_set(x_285, 1, x_284); +x_286 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +lean_inc(x_6); +x_287 = lean_name_mk_string(x_6, x_286); +x_288 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__14; +x_289 = l_Lean_addMacroScope(x_210, x_288, x_207); +x_290 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__12; +x_291 = lean_name_mk_string(x_9, x_290); +x_292 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__13; +x_293 = lean_name_mk_string(x_291, x_292); +x_294 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_294, 0, x_293); +lean_ctor_set(x_294, 1, x_270); +x_295 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_295, 0, x_294); +lean_ctor_set(x_295, 1, x_270); +x_296 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__12; +x_297 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_297, 0, x_204); +lean_ctor_set(x_297, 1, x_296); +lean_ctor_set(x_297, 2, x_289); +lean_ctor_set(x_297, 3, x_295); lean_inc(x_24); -x_287 = l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(x_259, x_24); -x_288 = l_Nat_repr(x_10); -x_289 = l_Lean_Syntax_mkLit(x_222, x_288, x_223); -x_290 = l_Nat_repr(x_197); -x_291 = l_Lean_Syntax_mkLit(x_222, x_290, x_223); -x_292 = lean_array_push(x_229, x_286); -x_293 = lean_array_push(x_240, x_274); -x_294 = l_Lean_Elab_Term_toParserDescr_processSepBy1___lambda__1___closed__8; -x_295 = lean_array_push(x_294, x_249); -x_296 = lean_array_push(x_295, x_42); -x_297 = lean_array_push(x_296, x_270); +x_298 = l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(x_270, x_24); +x_299 = l_Nat_repr(x_10); +x_300 = l_Lean_Syntax_mkLit(x_227, x_299, x_228); +x_301 = l_Nat_repr(x_202); +x_302 = l_Lean_Syntax_mkLit(x_227, x_301, x_228); +x_303 = lean_array_push(x_234, x_297); +x_304 = lean_array_push(x_245, x_285); +x_305 = l_Lean_Elab_Term_toParserDescr_processSepBy1___lambda__1___closed__8; +x_306 = lean_array_push(x_305, x_254); +x_307 = lean_array_push(x_306, x_260); +x_308 = lean_array_push(x_307, x_281); if (lean_obj_tag(x_11) == 0) { -lean_object* x_355; -x_355 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; -x_298 = x_355; -goto block_354; +lean_object* x_365; +x_365 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; +x_309 = x_365; +goto block_364; } else { -lean_object* x_356; lean_object* x_357; -x_356 = lean_ctor_get(x_11, 0); -lean_inc(x_356); +lean_object* x_366; lean_object* x_367; +x_366 = lean_ctor_get(x_11, 0); +lean_inc(x_366); lean_dec(x_11); -x_357 = lean_array_push(x_225, x_356); -x_298 = x_357; -goto block_354; +x_367 = lean_array_push(x_230, x_366); +x_309 = x_367; +goto block_364; } -block_354: +block_364: { -lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; -x_299 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; -x_300 = l_Array_append___rarg(x_299, x_298); -x_301 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_301, 0, x_227); -lean_ctor_set(x_301, 1, x_300); -x_302 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__33; -x_303 = lean_array_push(x_302, x_301); -x_304 = lean_array_push(x_303, x_246); -x_305 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__13; -x_306 = lean_array_push(x_304, x_305); -x_307 = lean_array_push(x_306, x_305); -x_308 = lean_array_push(x_307, x_305); -x_309 = lean_array_push(x_308, x_305); -x_310 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_310, 0, x_210); -lean_ctor_set(x_310, 1, x_309); -x_311 = lean_array_push(x_229, x_310); -if (lean_obj_tag(x_287) == 0) +lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; +x_310 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; +x_311 = l_Array_append___rarg(x_310, x_309); +x_312 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_312, 0, x_232); +lean_ctor_set(x_312, 1, x_311); +x_313 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__33; +x_314 = lean_array_push(x_313, x_312); +x_315 = lean_array_push(x_314, x_251); +x_316 = lean_array_push(x_315, x_258); +x_317 = lean_array_push(x_316, x_258); +x_318 = lean_array_push(x_317, x_258); +x_319 = lean_array_push(x_318, x_258); +x_320 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_320, 0, x_215); +lean_ctor_set(x_320, 1, x_319); +x_321 = lean_array_push(x_234, x_320); +if (lean_obj_tag(x_298) == 0) { -lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; +lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_dec(x_6); -x_312 = l___private_Init_Meta_0__Lean_quoteNameMk(x_24); -x_313 = lean_array_push(x_294, x_312); -x_314 = lean_array_push(x_313, x_289); -x_315 = lean_array_push(x_314, x_291); -x_316 = lean_array_push(x_315, x_40); -x_317 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_317, 0, x_227); -lean_ctor_set(x_317, 1, x_316); -x_318 = lean_array_push(x_292, x_317); -x_319 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_319, 0, x_276); -lean_ctor_set(x_319, 1, x_318); -x_320 = lean_array_push(x_293, x_319); -x_321 = lean_array_push(x_320, x_305); -x_322 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_322, 0, x_272); -lean_ctor_set(x_322, 1, x_321); -x_323 = lean_array_push(x_297, x_322); -x_324 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_324, 0, x_248); -lean_ctor_set(x_324, 1, x_323); -x_325 = lean_array_push(x_311, x_324); -x_326 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_326, 0, x_208); -lean_ctor_set(x_326, 1, x_325); -x_327 = l_Lean_Elab_Command_elabSyntax___lambda__3(x_3, x_326, x_13, x_14, x_206); -return x_327; +x_322 = l___private_Init_Meta_0__Lean_quoteNameMk(x_24); +x_323 = lean_array_push(x_305, x_322); +x_324 = lean_array_push(x_323, x_300); +x_325 = lean_array_push(x_324, x_302); +x_326 = lean_array_push(x_325, x_40); +x_327 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_327, 0, x_232); +lean_ctor_set(x_327, 1, x_326); +x_328 = lean_array_push(x_303, x_327); +x_329 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_329, 0, x_287); +lean_ctor_set(x_329, 1, x_328); +x_330 = lean_array_push(x_304, x_329); +x_331 = lean_array_push(x_330, x_258); +x_332 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_332, 0, x_283); +lean_ctor_set(x_332, 1, x_331); +x_333 = lean_array_push(x_308, x_332); +x_334 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_334, 0, x_253); +lean_ctor_set(x_334, 1, x_333); +x_335 = lean_array_push(x_321, x_334); +x_336 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_336, 0, x_213); +lean_ctor_set(x_336, 1, x_335); +x_337 = l_Lean_Elab_Command_elabSyntax___lambda__3(x_3, x_336, x_13, x_14, x_211); +return x_337; } else { -lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; +lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_dec(x_24); -x_328 = lean_ctor_get(x_287, 0); -lean_inc(x_328); -lean_dec(x_287); -x_329 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__22; -x_330 = lean_name_mk_string(x_6, x_329); -x_331 = l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__8; -x_332 = l_String_intercalate(x_331, x_328); -x_333 = l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__9; -x_334 = lean_string_append(x_333, x_332); -lean_dec(x_332); -x_335 = l_Lean_nameLitKind; -x_336 = l_Lean_Syntax_mkLit(x_335, x_334, x_223); -x_337 = lean_array_push(x_225, x_336); -x_338 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_338, 0, x_330); -lean_ctor_set(x_338, 1, x_337); -x_339 = lean_array_push(x_294, x_338); -x_340 = lean_array_push(x_339, x_289); -x_341 = lean_array_push(x_340, x_291); -x_342 = lean_array_push(x_341, x_40); -x_343 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_343, 0, x_227); -lean_ctor_set(x_343, 1, x_342); -x_344 = lean_array_push(x_292, x_343); -x_345 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_345, 0, x_276); -lean_ctor_set(x_345, 1, x_344); -x_346 = lean_array_push(x_293, x_345); -x_347 = lean_array_push(x_346, x_305); +x_338 = lean_ctor_get(x_298, 0); +lean_inc(x_338); +lean_dec(x_298); +x_339 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__22; +x_340 = lean_name_mk_string(x_6, x_339); +x_341 = l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__8; +x_342 = l_String_intercalate(x_341, x_338); +x_343 = l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__9; +x_344 = lean_string_append(x_343, x_342); +lean_dec(x_342); +x_345 = l_Lean_nameLitKind; +x_346 = l_Lean_Syntax_mkLit(x_345, x_344, x_228); +x_347 = lean_array_push(x_230, x_346); x_348 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_348, 0, x_272); +lean_ctor_set(x_348, 0, x_340); lean_ctor_set(x_348, 1, x_347); -x_349 = lean_array_push(x_297, x_348); -x_350 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_350, 0, x_248); -lean_ctor_set(x_350, 1, x_349); -x_351 = lean_array_push(x_311, x_350); -x_352 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_352, 0, x_208); -lean_ctor_set(x_352, 1, x_351); -x_353 = l_Lean_Elab_Command_elabSyntax___lambda__3(x_3, x_352, x_13, x_14, x_206); -return x_353; +x_349 = lean_array_push(x_305, x_348); +x_350 = lean_array_push(x_349, x_300); +x_351 = lean_array_push(x_350, x_302); +x_352 = lean_array_push(x_351, x_40); +x_353 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_353, 0, x_232); +lean_ctor_set(x_353, 1, x_352); +x_354 = lean_array_push(x_303, x_353); +x_355 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_355, 0, x_287); +lean_ctor_set(x_355, 1, x_354); +x_356 = lean_array_push(x_304, x_355); +x_357 = lean_array_push(x_356, x_258); +x_358 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_358, 0, x_283); +lean_ctor_set(x_358, 1, x_357); +x_359 = lean_array_push(x_308, x_358); +x_360 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_360, 0, x_253); +lean_ctor_set(x_360, 1, x_359); +x_361 = lean_array_push(x_321, x_360); +x_362 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_362, 0, x_213); +lean_ctor_set(x_362, 1, x_361); +x_363 = l_Lean_Elab_Command_elabSyntax___lambda__3(x_3, x_362, x_13, x_14, x_211); +return x_363; } } } } else { -lean_object* x_358; lean_object* x_359; lean_object* x_360; -x_358 = lean_ctor_get(x_37, 0); -x_359 = lean_ctor_get(x_37, 1); -lean_inc(x_359); -lean_inc(x_358); +lean_object* x_368; lean_object* x_369; lean_object* x_370; +x_368 = lean_ctor_get(x_37, 0); +x_369 = lean_ctor_get(x_37, 1); +lean_inc(x_369); +lean_inc(x_368); lean_dec(x_37); lean_inc(x_3); -x_360 = l_Lean_mkIdentFrom(x_3, x_12); -if (lean_obj_tag(x_359) == 0) +x_370 = l_Lean_mkIdentFrom(x_3, x_12); +if (lean_obj_tag(x_369) == 0) { -lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; -x_361 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_13, x_14, x_38); -x_362 = lean_ctor_get(x_361, 0); -lean_inc(x_362); -x_363 = lean_ctor_get(x_361, 1); -lean_inc(x_363); -lean_dec(x_361); -x_364 = l_Lean_Elab_Command_getCurrMacroScope(x_13, x_14, x_363); -x_365 = lean_ctor_get(x_364, 0); -lean_inc(x_365); -x_366 = lean_ctor_get(x_364, 1); -lean_inc(x_366); -lean_dec(x_364); -x_367 = l_Lean_Elab_Command_getMainModule___rarg(x_14, x_366); -x_368 = lean_ctor_get(x_367, 0); -lean_inc(x_368); -x_369 = lean_ctor_get(x_367, 1); -lean_inc(x_369); -lean_dec(x_367); -x_370 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__8; +lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; +x_371 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_13, x_14, x_38); +x_372 = lean_ctor_get(x_371, 0); +lean_inc(x_372); +x_373 = lean_ctor_get(x_371, 1); +lean_inc(x_373); +lean_dec(x_371); +x_374 = l_Lean_Elab_Command_getCurrMacroScope(x_13, x_14, x_373); +x_375 = lean_ctor_get(x_374, 0); +lean_inc(x_375); +x_376 = lean_ctor_get(x_374, 1); +lean_inc(x_376); +lean_dec(x_374); +x_377 = l_Lean_Elab_Command_getMainModule___rarg(x_14, x_376); +x_378 = lean_ctor_get(x_377, 0); +lean_inc(x_378); +x_379 = lean_ctor_get(x_377, 1); +lean_inc(x_379); +lean_dec(x_377); +x_380 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__8; lean_inc(x_5); -x_371 = lean_name_mk_string(x_5, x_370); -x_372 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__10; +x_381 = lean_name_mk_string(x_5, x_380); +x_382 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__10; lean_inc(x_5); -x_373 = lean_name_mk_string(x_5, x_372); -x_374 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__14; +x_383 = lean_name_mk_string(x_5, x_382); +x_384 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__14; lean_inc(x_6); -x_375 = lean_name_mk_string(x_6, x_374); -x_376 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__16; -lean_inc(x_362); -x_377 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_377, 0, x_362); -lean_ctor_set(x_377, 1, x_376); -x_378 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__17; +x_385 = lean_name_mk_string(x_6, x_384); +x_386 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__16; +lean_inc(x_372); +x_387 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_387, 0, x_372); +lean_ctor_set(x_387, 1, x_386); +x_388 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__17; lean_inc(x_6); -x_379 = lean_name_mk_string(x_6, x_378); -x_380 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__23; -x_381 = lean_name_mk_string(x_7, x_380); -x_382 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__25; -x_383 = lean_name_mk_string(x_381, x_382); -x_384 = l_Nat_repr(x_18); -x_385 = l_Lean_numLitKind; -x_386 = lean_box(2); -x_387 = l_Lean_Syntax_mkLit(x_385, x_384, x_386); -x_388 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__27; -x_389 = lean_array_push(x_388, x_387); -x_390 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__21; -x_391 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_391, 0, x_390); -lean_ctor_set(x_391, 1, x_389); -x_392 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__29; -x_393 = lean_array_push(x_392, x_27); -x_394 = lean_array_push(x_393, x_391); -x_395 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_395, 0, x_383); -lean_ctor_set(x_395, 1, x_394); -x_396 = lean_array_push(x_392, x_8); -x_397 = lean_array_push(x_396, x_395); -x_398 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_398, 0, x_379); -lean_ctor_set(x_398, 1, x_397); -x_399 = lean_array_push(x_388, x_398); -x_400 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_400, 0, x_390); -lean_ctor_set(x_400, 1, x_399); -x_401 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__32; -lean_inc(x_362); -x_402 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_402, 0, x_362); -lean_ctor_set(x_402, 1, x_401); -x_403 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__28; -x_404 = lean_array_push(x_403, x_377); -x_405 = lean_array_push(x_404, x_400); -x_406 = lean_array_push(x_405, x_402); -x_407 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_407, 0, x_375); -lean_ctor_set(x_407, 1, x_406); -x_408 = lean_array_push(x_388, x_407); -x_409 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_409, 0, x_390); -lean_ctor_set(x_409, 1, x_408); -x_410 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__35; -lean_inc(x_5); -x_411 = lean_name_mk_string(x_5, x_410); -lean_inc(x_362); +x_389 = lean_name_mk_string(x_6, x_388); +x_390 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__23; +x_391 = lean_name_mk_string(x_7, x_390); +x_392 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__25; +x_393 = lean_name_mk_string(x_391, x_392); +x_394 = l_Nat_repr(x_18); +x_395 = l_Lean_numLitKind; +x_396 = lean_box(2); +x_397 = l_Lean_Syntax_mkLit(x_395, x_394, x_396); +x_398 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__27; +x_399 = lean_array_push(x_398, x_397); +x_400 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__21; +x_401 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_401, 0, x_400); +lean_ctor_set(x_401, 1, x_399); +x_402 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__29; +x_403 = lean_array_push(x_402, x_27); +x_404 = lean_array_push(x_403, x_401); +x_405 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_405, 0, x_393); +lean_ctor_set(x_405, 1, x_404); +x_406 = lean_array_push(x_402, x_8); +x_407 = lean_array_push(x_406, x_405); +x_408 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_408, 0, x_389); +lean_ctor_set(x_408, 1, x_407); +x_409 = lean_array_push(x_398, x_408); +x_410 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_410, 0, x_400); +lean_ctor_set(x_410, 1, x_409); +x_411 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__32; +lean_inc(x_372); x_412 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_412, 0, x_362); -lean_ctor_set(x_412, 1, x_410); -x_413 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__37; +lean_ctor_set(x_412, 0, x_372); +lean_ctor_set(x_412, 1, x_411); +x_413 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__28; +x_414 = lean_array_push(x_413, x_387); +x_415 = lean_array_push(x_414, x_410); +x_416 = lean_array_push(x_415, x_412); +x_417 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_417, 0, x_385); +lean_ctor_set(x_417, 1, x_416); +x_418 = lean_array_push(x_398, x_417); +x_419 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_419, 0, x_400); +lean_ctor_set(x_419, 1, x_418); +x_420 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__35; lean_inc(x_5); -x_414 = lean_name_mk_string(x_5, x_413); -x_415 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__39; +x_421 = lean_name_mk_string(x_5, x_420); +lean_inc(x_372); +x_422 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_422, 0, x_372); +lean_ctor_set(x_422, 1, x_420); +x_423 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__1; +lean_inc(x_5); +x_424 = lean_name_mk_string(x_5, x_423); +x_425 = lean_array_push(x_402, x_370); +x_426 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__13; +x_427 = lean_array_push(x_425, x_426); +x_428 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_428, 0, x_424); +lean_ctor_set(x_428, 1, x_427); +x_429 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__37; +lean_inc(x_5); +x_430 = lean_name_mk_string(x_5, x_429); +x_431 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__39; lean_inc(x_6); -x_416 = lean_name_mk_string(x_6, x_415); -x_417 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__41; -lean_inc(x_362); -x_418 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_418, 0, x_362); -lean_ctor_set(x_418, 1, x_417); -x_419 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__12; -x_420 = lean_name_mk_string(x_9, x_419); -lean_inc(x_365); -lean_inc(x_420); -lean_inc(x_368); -x_421 = l_Lean_addMacroScope(x_368, x_420, x_365); -x_422 = lean_box(0); -lean_inc(x_420); -x_423 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_423, 0, x_420); -lean_ctor_set(x_423, 1, x_422); -x_424 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_424, 0, x_423); -lean_ctor_set(x_424, 1, x_422); -x_425 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__44; -lean_inc(x_362); -x_426 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_426, 0, x_362); -lean_ctor_set(x_426, 1, x_425); -lean_ctor_set(x_426, 2, x_421); -lean_ctor_set(x_426, 3, x_424); -x_427 = lean_array_push(x_392, x_418); -x_428 = lean_array_push(x_427, x_426); -x_429 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_429, 0, x_416); -lean_ctor_set(x_429, 1, x_428); -x_430 = lean_array_push(x_388, x_429); -x_431 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_431, 0, x_390); -lean_ctor_set(x_431, 1, x_430); -x_432 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__1; -x_433 = lean_array_push(x_432, x_431); -x_434 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_434, 0, x_414); +x_432 = lean_name_mk_string(x_6, x_431); +x_433 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__41; +lean_inc(x_372); +x_434 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_434, 0, x_372); lean_ctor_set(x_434, 1, x_433); -x_435 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__48; -x_436 = lean_name_mk_string(x_5, x_435); -x_437 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__50; -lean_inc(x_362); -x_438 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_438, 0, x_362); -lean_ctor_set(x_438, 1, x_437); -x_439 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_435 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__12; +x_436 = lean_name_mk_string(x_9, x_435); +lean_inc(x_375); +lean_inc(x_436); +lean_inc(x_378); +x_437 = l_Lean_addMacroScope(x_378, x_436, x_375); +x_438 = lean_box(0); +lean_inc(x_436); +x_439 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_439, 0, x_436); +lean_ctor_set(x_439, 1, x_438); +x_440 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_440, 0, x_439); +lean_ctor_set(x_440, 1, x_438); +x_441 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__44; +lean_inc(x_372); +x_442 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_442, 0, x_372); +lean_ctor_set(x_442, 1, x_441); +lean_ctor_set(x_442, 2, x_437); +lean_ctor_set(x_442, 3, x_440); +x_443 = lean_array_push(x_402, x_434); +x_444 = lean_array_push(x_443, x_442); +x_445 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_445, 0, x_432); +lean_ctor_set(x_445, 1, x_444); +x_446 = lean_array_push(x_398, x_445); +x_447 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_447, 0, x_400); +lean_ctor_set(x_447, 1, x_446); +x_448 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__2; +x_449 = lean_array_push(x_448, x_447); +x_450 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_450, 0, x_430); +lean_ctor_set(x_450, 1, x_449); +x_451 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__48; +x_452 = lean_name_mk_string(x_5, x_451); +x_453 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__50; +lean_inc(x_372); +x_454 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_454, 0, x_372); +lean_ctor_set(x_454, 1, x_453); +x_455 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; lean_inc(x_6); -x_440 = lean_name_mk_string(x_6, x_439); -x_441 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__5; -x_442 = l_Lean_addMacroScope(x_368, x_441, x_365); -x_443 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__54; -x_444 = lean_name_mk_string(x_420, x_443); -x_445 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_445, 0, x_444); -lean_ctor_set(x_445, 1, x_422); -x_446 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_446, 0, x_445); -lean_ctor_set(x_446, 1, x_422); -x_447 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__4; -x_448 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_448, 0, x_362); -lean_ctor_set(x_448, 1, x_447); -lean_ctor_set(x_448, 2, x_442); -lean_ctor_set(x_448, 3, x_446); +x_456 = lean_name_mk_string(x_6, x_455); +x_457 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__6; +x_458 = l_Lean_addMacroScope(x_378, x_457, x_375); +x_459 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__54; +x_460 = lean_name_mk_string(x_436, x_459); +x_461 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_461, 0, x_460); +lean_ctor_set(x_461, 1, x_438); +x_462 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_462, 0, x_461); +lean_ctor_set(x_462, 1, x_438); +x_463 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__5; +x_464 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_464, 0, x_372); +lean_ctor_set(x_464, 1, x_463); +lean_ctor_set(x_464, 2, x_458); +lean_ctor_set(x_464, 3, x_462); lean_inc(x_24); -x_449 = l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(x_422, x_24); -x_450 = l_Nat_repr(x_10); -x_451 = l_Lean_Syntax_mkLit(x_385, x_450, x_386); -x_452 = lean_array_push(x_392, x_448); -x_453 = lean_array_push(x_403, x_438); -x_454 = l_Lean_Elab_Term_toParserDescr_processSepBy1___lambda__1___closed__8; -x_455 = lean_array_push(x_454, x_412); -x_456 = lean_array_push(x_455, x_360); -x_457 = lean_array_push(x_456, x_434); +x_465 = l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(x_438, x_24); +x_466 = l_Nat_repr(x_10); +x_467 = l_Lean_Syntax_mkLit(x_395, x_466, x_396); +x_468 = lean_array_push(x_402, x_464); +x_469 = lean_array_push(x_413, x_454); +x_470 = l_Lean_Elab_Term_toParserDescr_processSepBy1___lambda__1___closed__8; +x_471 = lean_array_push(x_470, x_422); +x_472 = lean_array_push(x_471, x_428); +x_473 = lean_array_push(x_472, x_450); if (lean_obj_tag(x_11) == 0) { -lean_object* x_513; -x_513 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; -x_458 = x_513; -goto block_512; +lean_object* x_528; +x_528 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; +x_474 = x_528; +goto block_527; } else { -lean_object* x_514; lean_object* x_515; -x_514 = lean_ctor_get(x_11, 0); -lean_inc(x_514); +lean_object* x_529; lean_object* x_530; +x_529 = lean_ctor_get(x_11, 0); +lean_inc(x_529); lean_dec(x_11); -x_515 = lean_array_push(x_388, x_514); -x_458 = x_515; -goto block_512; +x_530 = lean_array_push(x_398, x_529); +x_474 = x_530; +goto block_527; } -block_512: +block_527: { -lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; -x_459 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; -x_460 = l_Array_append___rarg(x_459, x_458); -x_461 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_461, 0, x_390); -lean_ctor_set(x_461, 1, x_460); -x_462 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__33; -x_463 = lean_array_push(x_462, x_461); -x_464 = lean_array_push(x_463, x_409); -x_465 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__13; -x_466 = lean_array_push(x_464, x_465); -x_467 = lean_array_push(x_466, x_465); -x_468 = lean_array_push(x_467, x_465); -x_469 = lean_array_push(x_468, x_465); -x_470 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_470, 0, x_373); -lean_ctor_set(x_470, 1, x_469); -x_471 = lean_array_push(x_392, x_470); -if (lean_obj_tag(x_449) == 0) -{ -lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; -lean_dec(x_6); -x_472 = l___private_Init_Meta_0__Lean_quoteNameMk(x_24); -x_473 = lean_array_push(x_403, x_472); -x_474 = lean_array_push(x_473, x_451); -x_475 = lean_array_push(x_474, x_358); -x_476 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_476, 0, x_390); -lean_ctor_set(x_476, 1, x_475); -x_477 = lean_array_push(x_452, x_476); -x_478 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_478, 0, x_440); -lean_ctor_set(x_478, 1, x_477); -x_479 = lean_array_push(x_453, x_478); -x_480 = lean_array_push(x_479, x_465); -x_481 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_481, 0, x_436); -lean_ctor_set(x_481, 1, x_480); -x_482 = lean_array_push(x_457, x_481); -x_483 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_483, 0, x_411); -lean_ctor_set(x_483, 1, x_482); -x_484 = lean_array_push(x_471, x_483); +lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; +x_475 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; +x_476 = l_Array_append___rarg(x_475, x_474); +x_477 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_477, 0, x_400); +lean_ctor_set(x_477, 1, x_476); +x_478 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__33; +x_479 = lean_array_push(x_478, x_477); +x_480 = lean_array_push(x_479, x_419); +x_481 = lean_array_push(x_480, x_426); +x_482 = lean_array_push(x_481, x_426); +x_483 = lean_array_push(x_482, x_426); +x_484 = lean_array_push(x_483, x_426); x_485 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_485, 0, x_371); +lean_ctor_set(x_485, 0, x_383); lean_ctor_set(x_485, 1, x_484); -x_486 = l_Lean_Elab_Command_elabSyntax___lambda__3(x_3, x_485, x_13, x_14, x_369); -return x_486; +x_486 = lean_array_push(x_402, x_485); +if (lean_obj_tag(x_465) == 0) +{ +lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; +lean_dec(x_6); +x_487 = l___private_Init_Meta_0__Lean_quoteNameMk(x_24); +x_488 = lean_array_push(x_413, x_487); +x_489 = lean_array_push(x_488, x_467); +x_490 = lean_array_push(x_489, x_368); +x_491 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_491, 0, x_400); +lean_ctor_set(x_491, 1, x_490); +x_492 = lean_array_push(x_468, x_491); +x_493 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_493, 0, x_456); +lean_ctor_set(x_493, 1, x_492); +x_494 = lean_array_push(x_469, x_493); +x_495 = lean_array_push(x_494, x_426); +x_496 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_496, 0, x_452); +lean_ctor_set(x_496, 1, x_495); +x_497 = lean_array_push(x_473, x_496); +x_498 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_498, 0, x_421); +lean_ctor_set(x_498, 1, x_497); +x_499 = lean_array_push(x_486, x_498); +x_500 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_500, 0, x_381); +lean_ctor_set(x_500, 1, x_499); +x_501 = l_Lean_Elab_Command_elabSyntax___lambda__3(x_3, x_500, x_13, x_14, x_379); +return x_501; } else { -lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; +lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_dec(x_24); -x_487 = lean_ctor_get(x_449, 0); -lean_inc(x_487); -lean_dec(x_449); -x_488 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__22; -x_489 = lean_name_mk_string(x_6, x_488); -x_490 = l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__8; -x_491 = l_String_intercalate(x_490, x_487); -x_492 = l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__9; -x_493 = lean_string_append(x_492, x_491); -lean_dec(x_491); -x_494 = l_Lean_nameLitKind; -x_495 = l_Lean_Syntax_mkLit(x_494, x_493, x_386); -x_496 = lean_array_push(x_388, x_495); -x_497 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_497, 0, x_489); -lean_ctor_set(x_497, 1, x_496); -x_498 = lean_array_push(x_403, x_497); -x_499 = lean_array_push(x_498, x_451); -x_500 = lean_array_push(x_499, x_358); -x_501 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_501, 0, x_390); -lean_ctor_set(x_501, 1, x_500); -x_502 = lean_array_push(x_452, x_501); -x_503 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_503, 0, x_440); -lean_ctor_set(x_503, 1, x_502); -x_504 = lean_array_push(x_453, x_503); -x_505 = lean_array_push(x_504, x_465); -x_506 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_506, 0, x_436); -lean_ctor_set(x_506, 1, x_505); -x_507 = lean_array_push(x_457, x_506); -x_508 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_508, 0, x_411); -lean_ctor_set(x_508, 1, x_507); -x_509 = lean_array_push(x_471, x_508); -x_510 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_510, 0, x_371); -lean_ctor_set(x_510, 1, x_509); -x_511 = l_Lean_Elab_Command_elabSyntax___lambda__3(x_3, x_510, x_13, x_14, x_369); -return x_511; +x_502 = lean_ctor_get(x_465, 0); +lean_inc(x_502); +lean_dec(x_465); +x_503 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__22; +x_504 = lean_name_mk_string(x_6, x_503); +x_505 = l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__8; +x_506 = l_String_intercalate(x_505, x_502); +x_507 = l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__9; +x_508 = lean_string_append(x_507, x_506); +lean_dec(x_506); +x_509 = l_Lean_nameLitKind; +x_510 = l_Lean_Syntax_mkLit(x_509, x_508, x_396); +x_511 = lean_array_push(x_398, x_510); +x_512 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_512, 0, x_504); +lean_ctor_set(x_512, 1, x_511); +x_513 = lean_array_push(x_413, x_512); +x_514 = lean_array_push(x_513, x_467); +x_515 = lean_array_push(x_514, x_368); +x_516 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_516, 0, x_400); +lean_ctor_set(x_516, 1, x_515); +x_517 = lean_array_push(x_468, x_516); +x_518 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_518, 0, x_456); +lean_ctor_set(x_518, 1, x_517); +x_519 = lean_array_push(x_469, x_518); +x_520 = lean_array_push(x_519, x_426); +x_521 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_521, 0, x_452); +lean_ctor_set(x_521, 1, x_520); +x_522 = lean_array_push(x_473, x_521); +x_523 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_523, 0, x_421); +lean_ctor_set(x_523, 1, x_522); +x_524 = lean_array_push(x_486, x_523); +x_525 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_525, 0, x_381); +lean_ctor_set(x_525, 1, x_524); +x_526 = l_Lean_Elab_Command_elabSyntax___lambda__3(x_3, x_525, x_13, x_14, x_379); +return x_526; } } } else { -lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; -x_516 = lean_ctor_get(x_359, 0); -lean_inc(x_516); -lean_dec(x_359); -x_517 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_13, x_14, x_38); -x_518 = lean_ctor_get(x_517, 0); -lean_inc(x_518); -x_519 = lean_ctor_get(x_517, 1); -lean_inc(x_519); -lean_dec(x_517); -x_520 = l_Lean_Elab_Command_getCurrMacroScope(x_13, x_14, x_519); -x_521 = lean_ctor_get(x_520, 0); -lean_inc(x_521); -x_522 = lean_ctor_get(x_520, 1); -lean_inc(x_522); -lean_dec(x_520); -x_523 = l_Lean_Elab_Command_getMainModule___rarg(x_14, x_522); -x_524 = lean_ctor_get(x_523, 0); -lean_inc(x_524); -x_525 = lean_ctor_get(x_523, 1); -lean_inc(x_525); -lean_dec(x_523); -x_526 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__8; +lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; +x_531 = lean_ctor_get(x_369, 0); +lean_inc(x_531); +lean_dec(x_369); +x_532 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_13, x_14, x_38); +x_533 = lean_ctor_get(x_532, 0); +lean_inc(x_533); +x_534 = lean_ctor_get(x_532, 1); +lean_inc(x_534); +lean_dec(x_532); +x_535 = l_Lean_Elab_Command_getCurrMacroScope(x_13, x_14, x_534); +x_536 = lean_ctor_get(x_535, 0); +lean_inc(x_536); +x_537 = lean_ctor_get(x_535, 1); +lean_inc(x_537); +lean_dec(x_535); +x_538 = l_Lean_Elab_Command_getMainModule___rarg(x_14, x_537); +x_539 = lean_ctor_get(x_538, 0); +lean_inc(x_539); +x_540 = lean_ctor_get(x_538, 1); +lean_inc(x_540); +lean_dec(x_538); +x_541 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__8; lean_inc(x_5); -x_527 = lean_name_mk_string(x_5, x_526); -x_528 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__10; +x_542 = lean_name_mk_string(x_5, x_541); +x_543 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__10; lean_inc(x_5); -x_529 = lean_name_mk_string(x_5, x_528); -x_530 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__14; +x_544 = lean_name_mk_string(x_5, x_543); +x_545 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__14; lean_inc(x_6); -x_531 = lean_name_mk_string(x_6, x_530); -x_532 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__16; -lean_inc(x_518); -x_533 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_533, 0, x_518); -lean_ctor_set(x_533, 1, x_532); -x_534 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__17; +x_546 = lean_name_mk_string(x_6, x_545); +x_547 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__16; +lean_inc(x_533); +x_548 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_548, 0, x_533); +lean_ctor_set(x_548, 1, x_547); +x_549 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__17; lean_inc(x_6); -x_535 = lean_name_mk_string(x_6, x_534); -x_536 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__23; -x_537 = lean_name_mk_string(x_7, x_536); -x_538 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__25; -x_539 = lean_name_mk_string(x_537, x_538); -x_540 = l_Nat_repr(x_18); -x_541 = l_Lean_numLitKind; -x_542 = lean_box(2); -x_543 = l_Lean_Syntax_mkLit(x_541, x_540, x_542); -x_544 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__27; -x_545 = lean_array_push(x_544, x_543); -x_546 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__21; -x_547 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_547, 0, x_546); -lean_ctor_set(x_547, 1, x_545); -x_548 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__29; -x_549 = lean_array_push(x_548, x_27); -x_550 = lean_array_push(x_549, x_547); -x_551 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_551, 0, x_539); -lean_ctor_set(x_551, 1, x_550); -x_552 = lean_array_push(x_548, x_8); -x_553 = lean_array_push(x_552, x_551); -x_554 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_554, 0, x_535); -lean_ctor_set(x_554, 1, x_553); -x_555 = lean_array_push(x_544, x_554); -x_556 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_556, 0, x_546); -lean_ctor_set(x_556, 1, x_555); -x_557 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__32; -lean_inc(x_518); -x_558 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_558, 0, x_518); -lean_ctor_set(x_558, 1, x_557); -x_559 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__28; -x_560 = lean_array_push(x_559, x_533); -x_561 = lean_array_push(x_560, x_556); -x_562 = lean_array_push(x_561, x_558); -x_563 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_563, 0, x_531); -lean_ctor_set(x_563, 1, x_562); -x_564 = lean_array_push(x_544, x_563); -x_565 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_565, 0, x_546); -lean_ctor_set(x_565, 1, x_564); -x_566 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__35; -lean_inc(x_5); -x_567 = lean_name_mk_string(x_5, x_566); -lean_inc(x_518); -x_568 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_568, 0, x_518); -lean_ctor_set(x_568, 1, x_566); -x_569 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__37; -lean_inc(x_5); -x_570 = lean_name_mk_string(x_5, x_569); -x_571 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__39; -lean_inc(x_6); -x_572 = lean_name_mk_string(x_6, x_571); -x_573 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__41; -lean_inc(x_518); -x_574 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_574, 0, x_518); -lean_ctor_set(x_574, 1, x_573); -x_575 = l_Lean_Elab_Term_toParserDescr_resolveParserName_match__1___rarg___closed__1; -lean_inc(x_9); -x_576 = lean_name_mk_string(x_9, x_575); -lean_inc(x_521); -lean_inc(x_576); -lean_inc(x_524); -x_577 = l_Lean_addMacroScope(x_524, x_576, x_521); -x_578 = lean_box(0); -x_579 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_579, 0, x_576); -lean_ctor_set(x_579, 1, x_578); +x_550 = lean_name_mk_string(x_6, x_549); +x_551 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__23; +x_552 = lean_name_mk_string(x_7, x_551); +x_553 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__25; +x_554 = lean_name_mk_string(x_552, x_553); +x_555 = l_Nat_repr(x_18); +x_556 = l_Lean_numLitKind; +x_557 = lean_box(2); +x_558 = l_Lean_Syntax_mkLit(x_556, x_555, x_557); +x_559 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__27; +x_560 = lean_array_push(x_559, x_558); +x_561 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__21; +x_562 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_562, 0, x_561); +lean_ctor_set(x_562, 1, x_560); +x_563 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__29; +x_564 = lean_array_push(x_563, x_27); +x_565 = lean_array_push(x_564, x_562); +x_566 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_566, 0, x_554); +lean_ctor_set(x_566, 1, x_565); +x_567 = lean_array_push(x_563, x_8); +x_568 = lean_array_push(x_567, x_566); +x_569 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_569, 0, x_550); +lean_ctor_set(x_569, 1, x_568); +x_570 = lean_array_push(x_559, x_569); +x_571 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_571, 0, x_561); +lean_ctor_set(x_571, 1, x_570); +x_572 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__32; +lean_inc(x_533); +x_573 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_573, 0, x_533); +lean_ctor_set(x_573, 1, x_572); +x_574 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__28; +x_575 = lean_array_push(x_574, x_548); +x_576 = lean_array_push(x_575, x_571); +x_577 = lean_array_push(x_576, x_573); +x_578 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_578, 0, x_546); +lean_ctor_set(x_578, 1, x_577); +x_579 = lean_array_push(x_559, x_578); x_580 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_580, 0, x_579); -lean_ctor_set(x_580, 1, x_578); -x_581 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__8; -lean_inc(x_518); -x_582 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_582, 0, x_518); -lean_ctor_set(x_582, 1, x_581); -lean_ctor_set(x_582, 2, x_577); -lean_ctor_set(x_582, 3, x_580); -x_583 = lean_array_push(x_548, x_574); -x_584 = lean_array_push(x_583, x_582); -x_585 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_585, 0, x_572); -lean_ctor_set(x_585, 1, x_584); -x_586 = lean_array_push(x_544, x_585); -x_587 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_587, 0, x_546); -lean_ctor_set(x_587, 1, x_586); -x_588 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__1; -x_589 = lean_array_push(x_588, x_587); -x_590 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_590, 0, x_570); -lean_ctor_set(x_590, 1, x_589); -x_591 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__48; -x_592 = lean_name_mk_string(x_5, x_591); -x_593 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__50; -lean_inc(x_518); -x_594 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_594, 0, x_518); -lean_ctor_set(x_594, 1, x_593); -x_595 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +lean_ctor_set(x_580, 0, x_561); +lean_ctor_set(x_580, 1, x_579); +x_581 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__35; +lean_inc(x_5); +x_582 = lean_name_mk_string(x_5, x_581); +lean_inc(x_533); +x_583 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_583, 0, x_533); +lean_ctor_set(x_583, 1, x_581); +x_584 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__1; +lean_inc(x_5); +x_585 = lean_name_mk_string(x_5, x_584); +x_586 = lean_array_push(x_563, x_370); +x_587 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__13; +x_588 = lean_array_push(x_586, x_587); +x_589 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_589, 0, x_585); +lean_ctor_set(x_589, 1, x_588); +x_590 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__37; +lean_inc(x_5); +x_591 = lean_name_mk_string(x_5, x_590); +x_592 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__39; lean_inc(x_6); -x_596 = lean_name_mk_string(x_6, x_595); -x_597 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__13; -x_598 = l_Lean_addMacroScope(x_524, x_597, x_521); -x_599 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__12; -x_600 = lean_name_mk_string(x_9, x_599); -x_601 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__12; -x_602 = lean_name_mk_string(x_600, x_601); -x_603 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_603, 0, x_602); -lean_ctor_set(x_603, 1, x_578); -x_604 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_604, 0, x_603); -lean_ctor_set(x_604, 1, x_578); -x_605 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__11; -x_606 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_606, 0, x_518); +x_593 = lean_name_mk_string(x_6, x_592); +x_594 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__41; +lean_inc(x_533); +x_595 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_595, 0, x_533); +lean_ctor_set(x_595, 1, x_594); +x_596 = l_Lean_Elab_Term_toParserDescr_resolveParserName_match__1___rarg___closed__1; +lean_inc(x_9); +x_597 = lean_name_mk_string(x_9, x_596); +lean_inc(x_536); +lean_inc(x_597); +lean_inc(x_539); +x_598 = l_Lean_addMacroScope(x_539, x_597, x_536); +x_599 = lean_box(0); +x_600 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_600, 0, x_597); +lean_ctor_set(x_600, 1, x_599); +x_601 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_601, 0, x_600); +lean_ctor_set(x_601, 1, x_599); +x_602 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__9; +lean_inc(x_533); +x_603 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_603, 0, x_533); +lean_ctor_set(x_603, 1, x_602); +lean_ctor_set(x_603, 2, x_598); +lean_ctor_set(x_603, 3, x_601); +x_604 = lean_array_push(x_563, x_595); +x_605 = lean_array_push(x_604, x_603); +x_606 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_606, 0, x_593); lean_ctor_set(x_606, 1, x_605); -lean_ctor_set(x_606, 2, x_598); -lean_ctor_set(x_606, 3, x_604); +x_607 = lean_array_push(x_559, x_606); +x_608 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_608, 0, x_561); +lean_ctor_set(x_608, 1, x_607); +x_609 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__2; +x_610 = lean_array_push(x_609, x_608); +x_611 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_611, 0, x_591); +lean_ctor_set(x_611, 1, x_610); +x_612 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__48; +x_613 = lean_name_mk_string(x_5, x_612); +x_614 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__50; +lean_inc(x_533); +x_615 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_615, 0, x_533); +lean_ctor_set(x_615, 1, x_614); +x_616 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +lean_inc(x_6); +x_617 = lean_name_mk_string(x_6, x_616); +x_618 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__14; +x_619 = l_Lean_addMacroScope(x_539, x_618, x_536); +x_620 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__12; +x_621 = lean_name_mk_string(x_9, x_620); +x_622 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__13; +x_623 = lean_name_mk_string(x_621, x_622); +x_624 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_624, 0, x_623); +lean_ctor_set(x_624, 1, x_599); +x_625 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_625, 0, x_624); +lean_ctor_set(x_625, 1, x_599); +x_626 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__12; +x_627 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_627, 0, x_533); +lean_ctor_set(x_627, 1, x_626); +lean_ctor_set(x_627, 2, x_619); +lean_ctor_set(x_627, 3, x_625); lean_inc(x_24); -x_607 = l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(x_578, x_24); -x_608 = l_Nat_repr(x_10); -x_609 = l_Lean_Syntax_mkLit(x_541, x_608, x_542); -x_610 = l_Nat_repr(x_516); -x_611 = l_Lean_Syntax_mkLit(x_541, x_610, x_542); -x_612 = lean_array_push(x_548, x_606); -x_613 = lean_array_push(x_559, x_594); -x_614 = l_Lean_Elab_Term_toParserDescr_processSepBy1___lambda__1___closed__8; -x_615 = lean_array_push(x_614, x_568); -x_616 = lean_array_push(x_615, x_360); -x_617 = lean_array_push(x_616, x_590); +x_628 = l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(x_599, x_24); +x_629 = l_Nat_repr(x_10); +x_630 = l_Lean_Syntax_mkLit(x_556, x_629, x_557); +x_631 = l_Nat_repr(x_531); +x_632 = l_Lean_Syntax_mkLit(x_556, x_631, x_557); +x_633 = lean_array_push(x_563, x_627); +x_634 = lean_array_push(x_574, x_615); +x_635 = l_Lean_Elab_Term_toParserDescr_processSepBy1___lambda__1___closed__8; +x_636 = lean_array_push(x_635, x_583); +x_637 = lean_array_push(x_636, x_589); +x_638 = lean_array_push(x_637, x_611); if (lean_obj_tag(x_11) == 0) { -lean_object* x_675; -x_675 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; -x_618 = x_675; -goto block_674; +lean_object* x_695; +x_695 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; +x_639 = x_695; +goto block_694; } else { -lean_object* x_676; lean_object* x_677; -x_676 = lean_ctor_get(x_11, 0); -lean_inc(x_676); +lean_object* x_696; lean_object* x_697; +x_696 = lean_ctor_get(x_11, 0); +lean_inc(x_696); lean_dec(x_11); -x_677 = lean_array_push(x_544, x_676); -x_618 = x_677; -goto block_674; +x_697 = lean_array_push(x_559, x_696); +x_639 = x_697; +goto block_694; } -block_674: +block_694: { -lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; -x_619 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; -x_620 = l_Array_append___rarg(x_619, x_618); -x_621 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_621, 0, x_546); -lean_ctor_set(x_621, 1, x_620); -x_622 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__33; -x_623 = lean_array_push(x_622, x_621); -x_624 = lean_array_push(x_623, x_565); -x_625 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__13; -x_626 = lean_array_push(x_624, x_625); -x_627 = lean_array_push(x_626, x_625); -x_628 = lean_array_push(x_627, x_625); -x_629 = lean_array_push(x_628, x_625); -x_630 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_630, 0, x_529); -lean_ctor_set(x_630, 1, x_629); -x_631 = lean_array_push(x_548, x_630); -if (lean_obj_tag(x_607) == 0) -{ -lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; -lean_dec(x_6); -x_632 = l___private_Init_Meta_0__Lean_quoteNameMk(x_24); -x_633 = lean_array_push(x_614, x_632); -x_634 = lean_array_push(x_633, x_609); -x_635 = lean_array_push(x_634, x_611); -x_636 = lean_array_push(x_635, x_358); -x_637 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_637, 0, x_546); -lean_ctor_set(x_637, 1, x_636); -x_638 = lean_array_push(x_612, x_637); -x_639 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_639, 0, x_596); -lean_ctor_set(x_639, 1, x_638); -x_640 = lean_array_push(x_613, x_639); -x_641 = lean_array_push(x_640, x_625); +lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; +x_640 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; +x_641 = l_Array_append___rarg(x_640, x_639); x_642 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_642, 0, x_592); +lean_ctor_set(x_642, 0, x_561); lean_ctor_set(x_642, 1, x_641); -x_643 = lean_array_push(x_617, x_642); -x_644 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_644, 0, x_567); -lean_ctor_set(x_644, 1, x_643); -x_645 = lean_array_push(x_631, x_644); -x_646 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_646, 0, x_527); -lean_ctor_set(x_646, 1, x_645); -x_647 = l_Lean_Elab_Command_elabSyntax___lambda__3(x_3, x_646, x_13, x_14, x_525); -return x_647; +x_643 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__33; +x_644 = lean_array_push(x_643, x_642); +x_645 = lean_array_push(x_644, x_580); +x_646 = lean_array_push(x_645, x_587); +x_647 = lean_array_push(x_646, x_587); +x_648 = lean_array_push(x_647, x_587); +x_649 = lean_array_push(x_648, x_587); +x_650 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_650, 0, x_544); +lean_ctor_set(x_650, 1, x_649); +x_651 = lean_array_push(x_563, x_650); +if (lean_obj_tag(x_628) == 0) +{ +lean_object* x_652; lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; +lean_dec(x_6); +x_652 = l___private_Init_Meta_0__Lean_quoteNameMk(x_24); +x_653 = lean_array_push(x_635, x_652); +x_654 = lean_array_push(x_653, x_630); +x_655 = lean_array_push(x_654, x_632); +x_656 = lean_array_push(x_655, x_368); +x_657 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_657, 0, x_561); +lean_ctor_set(x_657, 1, x_656); +x_658 = lean_array_push(x_633, x_657); +x_659 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_659, 0, x_617); +lean_ctor_set(x_659, 1, x_658); +x_660 = lean_array_push(x_634, x_659); +x_661 = lean_array_push(x_660, x_587); +x_662 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_662, 0, x_613); +lean_ctor_set(x_662, 1, x_661); +x_663 = lean_array_push(x_638, x_662); +x_664 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_664, 0, x_582); +lean_ctor_set(x_664, 1, x_663); +x_665 = lean_array_push(x_651, x_664); +x_666 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_666, 0, x_542); +lean_ctor_set(x_666, 1, x_665); +x_667 = l_Lean_Elab_Command_elabSyntax___lambda__3(x_3, x_666, x_13, x_14, x_540); +return x_667; } else { -lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; +lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_dec(x_24); -x_648 = lean_ctor_get(x_607, 0); -lean_inc(x_648); -lean_dec(x_607); -x_649 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__22; -x_650 = lean_name_mk_string(x_6, x_649); -x_651 = l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__8; -x_652 = l_String_intercalate(x_651, x_648); -x_653 = l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__9; -x_654 = lean_string_append(x_653, x_652); -lean_dec(x_652); -x_655 = l_Lean_nameLitKind; -x_656 = l_Lean_Syntax_mkLit(x_655, x_654, x_542); -x_657 = lean_array_push(x_544, x_656); -x_658 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_658, 0, x_650); -lean_ctor_set(x_658, 1, x_657); -x_659 = lean_array_push(x_614, x_658); -x_660 = lean_array_push(x_659, x_609); -x_661 = lean_array_push(x_660, x_611); -x_662 = lean_array_push(x_661, x_358); -x_663 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_663, 0, x_546); -lean_ctor_set(x_663, 1, x_662); -x_664 = lean_array_push(x_612, x_663); -x_665 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_665, 0, x_596); -lean_ctor_set(x_665, 1, x_664); -x_666 = lean_array_push(x_613, x_665); -x_667 = lean_array_push(x_666, x_625); -x_668 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_668, 0, x_592); -lean_ctor_set(x_668, 1, x_667); -x_669 = lean_array_push(x_617, x_668); -x_670 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_670, 0, x_567); -lean_ctor_set(x_670, 1, x_669); -x_671 = lean_array_push(x_631, x_670); -x_672 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_672, 0, x_527); -lean_ctor_set(x_672, 1, x_671); -x_673 = l_Lean_Elab_Command_elabSyntax___lambda__3(x_3, x_672, x_13, x_14, x_525); -return x_673; +x_668 = lean_ctor_get(x_628, 0); +lean_inc(x_668); +lean_dec(x_628); +x_669 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__22; +x_670 = lean_name_mk_string(x_6, x_669); +x_671 = l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__8; +x_672 = l_String_intercalate(x_671, x_668); +x_673 = l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__9; +x_674 = lean_string_append(x_673, x_672); +lean_dec(x_672); +x_675 = l_Lean_nameLitKind; +x_676 = l_Lean_Syntax_mkLit(x_675, x_674, x_557); +x_677 = lean_array_push(x_559, x_676); +x_678 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_678, 0, x_670); +lean_ctor_set(x_678, 1, x_677); +x_679 = lean_array_push(x_635, x_678); +x_680 = lean_array_push(x_679, x_630); +x_681 = lean_array_push(x_680, x_632); +x_682 = lean_array_push(x_681, x_368); +x_683 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_683, 0, x_561); +lean_ctor_set(x_683, 1, x_682); +x_684 = lean_array_push(x_633, x_683); +x_685 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_685, 0, x_617); +lean_ctor_set(x_685, 1, x_684); +x_686 = lean_array_push(x_634, x_685); +x_687 = lean_array_push(x_686, x_587); +x_688 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_688, 0, x_613); +lean_ctor_set(x_688, 1, x_687); +x_689 = lean_array_push(x_638, x_688); +x_690 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_690, 0, x_582); +lean_ctor_set(x_690, 1, x_689); +x_691 = lean_array_push(x_651, x_690); +x_692 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_692, 0, x_542); +lean_ctor_set(x_692, 1, x_691); +x_693 = l_Lean_Elab_Command_elabSyntax___lambda__3(x_3, x_692, x_13, x_14, x_540); +return x_693; } } } @@ -17336,7 +17378,7 @@ return x_673; } else { -uint8_t x_678; +uint8_t x_698; lean_dec(x_27); lean_dec(x_24); lean_dec(x_18); @@ -17351,29 +17393,29 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_678 = !lean_is_exclusive(x_36); -if (x_678 == 0) +x_698 = !lean_is_exclusive(x_36); +if (x_698 == 0) { return x_36; } else { -lean_object* x_679; lean_object* x_680; lean_object* x_681; -x_679 = lean_ctor_get(x_36, 0); -x_680 = lean_ctor_get(x_36, 1); -lean_inc(x_680); -lean_inc(x_679); +lean_object* x_699; lean_object* x_700; lean_object* x_701; +x_699 = lean_ctor_get(x_36, 0); +x_700 = lean_ctor_get(x_36, 1); +lean_inc(x_700); +lean_inc(x_699); lean_dec(x_36); -x_681 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_681, 0, x_679); -lean_ctor_set(x_681, 1, x_680); -return x_681; +x_701 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_701, 0, x_699); +lean_ctor_set(x_701, 1, x_700); +return x_701; } } } else { -uint8_t x_682; +uint8_t x_702; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -17387,23 +17429,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_682 = !lean_is_exclusive(x_17); -if (x_682 == 0) +x_702 = !lean_is_exclusive(x_17); +if (x_702 == 0) { return x_17; } else { -lean_object* x_683; lean_object* x_684; lean_object* x_685; -x_683 = lean_ctor_get(x_17, 0); -x_684 = lean_ctor_get(x_17, 1); -lean_inc(x_684); -lean_inc(x_683); +lean_object* x_703; lean_object* x_704; lean_object* x_705; +x_703 = lean_ctor_get(x_17, 0); +x_704 = lean_ctor_get(x_17, 1); +lean_inc(x_704); +lean_inc(x_703); lean_dec(x_17); -x_685 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_685, 0, x_683); -lean_ctor_set(x_685, 1, x_684); -return x_685; +x_705 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_705, 0, x_703); +lean_ctor_set(x_705, 1, x_704); +return x_705; } } } @@ -18601,11 +18643,9 @@ static lean_object* _init_l_Lean_Elab_Command_elabSyntaxAbbrev___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__16; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_1 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__7; +x_2 = l_Lean_Elab_Command_elabSyntax___lambda__4___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -18614,8 +18654,8 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__7; -x_3 = lean_alloc_ctor(1, 2, 0); +x_2 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__16; +x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; @@ -18624,27 +18664,39 @@ return x_3; static lean_object* _init_l_Lean_Elab_Command_elabSyntaxAbbrev___closed__9() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("ParserDescr.nodeWithAntiquot"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__8; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; } } static lean_object* _init_l_Lean_Elab_Command_elabSyntaxAbbrev___closed__10() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__9; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string("ParserDescr.nodeWithAntiquot"); +return x_1; } } static lean_object* _init_l_Lean_Elab_Command_elabSyntaxAbbrev___closed__11() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__10; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabSyntaxAbbrev___closed__12() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__9; +x_1 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__10; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__10; +x_3 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__11; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -18652,7 +18704,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Command_elabSyntaxAbbrev___closed__12() { +static lean_object* _init_l_Lean_Elab_Command_elabSyntaxAbbrev___closed__13() { _start: { lean_object* x_1; @@ -18660,22 +18712,12 @@ x_1 = lean_mk_string("nodeWithAntiquot"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_elabSyntaxAbbrev___closed__13() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__13; -x_2 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__12; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} static lean_object* _init_l_Lean_Elab_Command_elabSyntaxAbbrev___closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__16; -x_2 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__12; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__13; +x_2 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__13; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -18684,11 +18726,9 @@ static lean_object* _init_l_Lean_Elab_Command_elabSyntaxAbbrev___closed__15() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__14; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__16; +x_2 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__13; +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -18698,7 +18738,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__15; -x_3 = lean_alloc_ctor(1, 2, 0); +x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; @@ -18708,6 +18748,18 @@ static lean_object* _init_l_Lean_Elab_Command_elabSyntaxAbbrev___closed__17() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__16; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabSyntaxAbbrev___closed__18() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__29; x_2 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__6; x_3 = lean_array_push(x_1, x_2); @@ -18742,7 +18794,7 @@ lean_inc(x_2); x_15 = l_Lean_Elab_Command_liftTermElabM___rarg(x_7, x_14, x_2, x_3, x_10); if (lean_obj_tag(x_15) == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); x_17 = lean_ctor_get(x_15, 1); @@ -18787,188 +18839,193 @@ lean_inc(x_26); x_35 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_35, 0, x_26); lean_ctor_set(x_35, 1, x_34); -x_36 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__41; +x_36 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__29; +x_37 = lean_array_push(x_36, x_6); +x_38 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__13; +x_39 = lean_array_push(x_37, x_38); +x_40 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__7; +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_39); +x_42 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__41; lean_inc(x_26); -x_37 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_37, 0, x_26); -lean_ctor_set(x_37, 1, x_36); -x_38 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__16; +x_43 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_43, 0, x_26); +lean_ctor_set(x_43, 1, x_42); +x_44 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__16; lean_inc(x_29); lean_inc(x_32); -x_39 = l_Lean_addMacroScope(x_32, x_38, x_29); -x_40 = lean_box(0); -x_41 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__44; -x_42 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__8; +x_45 = l_Lean_addMacroScope(x_32, x_44, x_29); +x_46 = lean_box(0); +x_47 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__44; +x_48 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__9; lean_inc(x_26); -x_43 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_43, 0, x_26); -lean_ctor_set(x_43, 1, x_41); -lean_ctor_set(x_43, 2, x_39); -lean_ctor_set(x_43, 3, x_42); -x_44 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__29; -x_45 = lean_array_push(x_44, x_37); -x_46 = lean_array_push(x_45, x_43); -x_47 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__40; -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_46); -x_49 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__27; -x_50 = lean_array_push(x_49, x_48); -x_51 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__21; -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_50); -x_53 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__47; -x_54 = lean_array_push(x_53, x_52); -x_55 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__38; -x_56 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_56, 1, x_54); -x_57 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__50; +x_49 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_49, 0, x_26); +lean_ctor_set(x_49, 1, x_47); +lean_ctor_set(x_49, 2, x_45); +lean_ctor_set(x_49, 3, x_48); +x_50 = lean_array_push(x_36, x_43); +x_51 = lean_array_push(x_50, x_49); +x_52 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__40; +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_51); +x_54 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__27; +x_55 = lean_array_push(x_54, x_53); +x_56 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__21; +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_56); +lean_ctor_set(x_57, 1, x_55); +x_58 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__47; +x_59 = lean_array_push(x_58, x_57); +x_60 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__38; +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_59); +x_62 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__50; lean_inc(x_26); -x_58 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_58, 0, x_26); -lean_ctor_set(x_58, 1, x_57); -x_59 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__13; -x_60 = l_Lean_addMacroScope(x_32, x_59, x_29); -x_61 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__11; -x_62 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__16; -x_63 = lean_alloc_ctor(3, 4, 0); +x_63 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_63, 0, x_26); -lean_ctor_set(x_63, 1, x_61); -lean_ctor_set(x_63, 2, x_60); -lean_ctor_set(x_63, 3, x_62); -x_64 = 1; -x_65 = l_Lean_Name_toString(x_23, x_64); -x_66 = lean_box(2); -x_67 = l_Lean_Syntax_mkStrLit(x_65, x_66); -lean_dec(x_65); +lean_ctor_set(x_63, 1, x_62); +x_64 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__14; +x_65 = l_Lean_addMacroScope(x_32, x_64, x_29); +x_66 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__12; +x_67 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__17; +x_68 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_68, 0, x_26); +lean_ctor_set(x_68, 1, x_66); +lean_ctor_set(x_68, 2, x_65); +lean_ctor_set(x_68, 3, x_67); +x_69 = 1; +x_70 = l_Lean_Name_toString(x_23, x_69); +x_71 = lean_box(2); +x_72 = l_Lean_Syntax_mkStrLit(x_70, x_71); +lean_dec(x_70); lean_inc(x_24); -x_68 = l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(x_40, x_24); -x_69 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__28; -x_70 = lean_array_push(x_69, x_67); -x_71 = lean_array_push(x_44, x_63); -x_72 = lean_array_push(x_69, x_58); -x_73 = l_Lean_Elab_Term_toParserDescr_processSepBy1___lambda__1___closed__8; -x_74 = lean_array_push(x_73, x_35); -x_75 = lean_array_push(x_74, x_6); -x_76 = lean_array_push(x_75, x_56); -if (lean_obj_tag(x_68) == 0) +x_73 = l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(x_46, x_24); +x_74 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__28; +x_75 = lean_array_push(x_74, x_72); +x_76 = lean_array_push(x_36, x_68); +x_77 = lean_array_push(x_74, x_63); +x_78 = l_Lean_Elab_Term_toParserDescr_processSepBy1___lambda__1___closed__8; +x_79 = lean_array_push(x_78, x_35); +x_80 = lean_array_push(x_79, x_41); +x_81 = lean_array_push(x_80, x_61); +if (lean_obj_tag(x_73) == 0) { -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_77 = l___private_Init_Meta_0__Lean_quoteNameMk(x_24); -x_78 = lean_array_push(x_70, x_77); -x_79 = lean_array_push(x_78, x_18); -x_80 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_80, 0, x_51); -lean_ctor_set(x_80, 1, x_79); -x_81 = lean_array_push(x_71, x_80); -x_82 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__8; -x_83 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_83, 0, x_82); -lean_ctor_set(x_83, 1, x_81); -x_84 = lean_array_push(x_72, x_83); -x_85 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__13; -x_86 = lean_array_push(x_84, x_85); -x_87 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__49; +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_82 = l___private_Init_Meta_0__Lean_quoteNameMk(x_24); +x_83 = lean_array_push(x_75, x_82); +x_84 = lean_array_push(x_83, x_18); +x_85 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_85, 0, x_56); +lean_ctor_set(x_85, 1, x_84); +x_86 = lean_array_push(x_76, x_85); +x_87 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__8; x_88 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_88, 0, x_87); lean_ctor_set(x_88, 1, x_86); -x_89 = lean_array_push(x_76, x_88); -x_90 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__36; -x_91 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_91, 0, x_90); -lean_ctor_set(x_91, 1, x_89); -x_92 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__17; -x_93 = lean_array_push(x_92, x_91); -x_94 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__9; +x_89 = lean_array_push(x_77, x_88); +x_90 = lean_array_push(x_89, x_38); +x_91 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__49; +x_92 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_90); +x_93 = lean_array_push(x_81, x_92); +x_94 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__36; x_95 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_95, 0, x_94); lean_ctor_set(x_95, 1, x_93); -lean_inc(x_95); -x_96 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCommand), 4, 1); -lean_closure_set(x_96, 0, x_95); -x_97 = l_Lean_Elab_Command_withMacroExpansion___rarg(x_1, x_95, x_96, x_2, x_3, x_33); -return x_97; +x_96 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__18; +x_97 = lean_array_push(x_96, x_95); +x_98 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__9; +x_99 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_99, 0, x_98); +lean_ctor_set(x_99, 1, x_97); +lean_inc(x_99); +x_100 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCommand), 4, 1); +lean_closure_set(x_100, 0, x_99); +x_101 = l_Lean_Elab_Command_withMacroExpansion___rarg(x_1, x_99, x_100, x_2, x_3, x_33); +return x_101; } else { -lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_dec(x_24); -x_98 = lean_ctor_get(x_68, 0); -lean_inc(x_98); -lean_dec(x_68); -x_99 = l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__8; -x_100 = l_String_intercalate(x_99, x_98); -x_101 = l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__9; -x_102 = lean_string_append(x_101, x_100); -lean_dec(x_100); -x_103 = l_Lean_nameLitKind; -x_104 = l_Lean_Syntax_mkLit(x_103, x_102, x_66); -x_105 = lean_array_push(x_49, x_104); -x_106 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__23; -x_107 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_107, 0, x_106); -lean_ctor_set(x_107, 1, x_105); -x_108 = lean_array_push(x_70, x_107); -x_109 = lean_array_push(x_108, x_18); -x_110 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_110, 0, x_51); -lean_ctor_set(x_110, 1, x_109); -x_111 = lean_array_push(x_71, x_110); -x_112 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__8; -x_113 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_113, 0, x_112); -lean_ctor_set(x_113, 1, x_111); -x_114 = lean_array_push(x_72, x_113); -x_115 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__13; -x_116 = lean_array_push(x_114, x_115); -x_117 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__49; -x_118 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_118, 0, x_117); -lean_ctor_set(x_118, 1, x_116); -x_119 = lean_array_push(x_76, x_118); -x_120 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__36; +x_102 = lean_ctor_get(x_73, 0); +lean_inc(x_102); +lean_dec(x_73); +x_103 = l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__8; +x_104 = l_String_intercalate(x_103, x_102); +x_105 = l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__9; +x_106 = lean_string_append(x_105, x_104); +lean_dec(x_104); +x_107 = l_Lean_nameLitKind; +x_108 = l_Lean_Syntax_mkLit(x_107, x_106, x_71); +x_109 = lean_array_push(x_54, x_108); +x_110 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__23; +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_109); +x_112 = lean_array_push(x_75, x_111); +x_113 = lean_array_push(x_112, x_18); +x_114 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_114, 0, x_56); +lean_ctor_set(x_114, 1, x_113); +x_115 = lean_array_push(x_76, x_114); +x_116 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__8; +x_117 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_117, 0, x_116); +lean_ctor_set(x_117, 1, x_115); +x_118 = lean_array_push(x_77, x_117); +x_119 = lean_array_push(x_118, x_38); +x_120 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__49; x_121 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_121, 0, x_120); lean_ctor_set(x_121, 1, x_119); -x_122 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__17; -x_123 = lean_array_push(x_122, x_121); -x_124 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__9; -x_125 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_125, 0, x_124); -lean_ctor_set(x_125, 1, x_123); -lean_inc(x_125); -x_126 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCommand), 4, 1); -lean_closure_set(x_126, 0, x_125); -x_127 = l_Lean_Elab_Command_withMacroExpansion___rarg(x_1, x_125, x_126, x_2, x_3, x_33); -return x_127; +x_122 = lean_array_push(x_81, x_121); +x_123 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__36; +x_124 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_122); +x_125 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__18; +x_126 = lean_array_push(x_125, x_124); +x_127 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__9; +x_128 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +lean_inc(x_128); +x_129 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCommand), 4, 1); +lean_closure_set(x_129, 0, x_128); +x_130 = l_Lean_Elab_Command_withMacroExpansion___rarg(x_1, x_128, x_129, x_2, x_3, x_33); +return x_130; } } else { -uint8_t x_128; +uint8_t x_131; lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_128 = !lean_is_exclusive(x_15); -if (x_128 == 0) +x_131 = !lean_is_exclusive(x_15); +if (x_131 == 0) { return x_15; } else { -lean_object* x_129; lean_object* x_130; lean_object* x_131; -x_129 = lean_ctor_get(x_15, 0); -x_130 = lean_ctor_get(x_15, 1); -lean_inc(x_130); -lean_inc(x_129); +lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_132 = lean_ctor_get(x_15, 0); +x_133 = lean_ctor_get(x_15, 1); +lean_inc(x_133); +lean_inc(x_132); lean_dec(x_15); -x_131 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_131, 0, x_129); -lean_ctor_set(x_131, 1, x_130); -return x_131; +x_134 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_134, 0, x_132); +lean_ctor_set(x_134, 1, x_133); +return x_134; } } } @@ -20067,7 +20124,7 @@ lean_dec(x_2); return x_4; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_5555____closed__1() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_5585____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -20077,11 +20134,11 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_5555_(lean_object* x_1) { +lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_5585_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_5555____closed__1; +x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_5585____closed__1; x_3 = l_Lean_registerTraceClass(x_2, x_1); return x_3; } @@ -20662,6 +20719,8 @@ l_Lean_Elab_Command_elabSyntax___lambda__4___closed__12 = _init_l_Lean_Elab_Comm lean_mark_persistent(l_Lean_Elab_Command_elabSyntax___lambda__4___closed__12); l_Lean_Elab_Command_elabSyntax___lambda__4___closed__13 = _init_l_Lean_Elab_Command_elabSyntax___lambda__4___closed__13(); lean_mark_persistent(l_Lean_Elab_Command_elabSyntax___lambda__4___closed__13); +l_Lean_Elab_Command_elabSyntax___lambda__4___closed__14 = _init_l_Lean_Elab_Command_elabSyntax___lambda__4___closed__14(); +lean_mark_persistent(l_Lean_Elab_Command_elabSyntax___lambda__4___closed__14); l_Lean_Elab_Command_elabSyntax___lambda__7___closed__1 = _init_l_Lean_Elab_Command_elabSyntax___lambda__7___closed__1(); lean_mark_persistent(l_Lean_Elab_Command_elabSyntax___lambda__7___closed__1); l_Lean_Elab_Command_elabSyntax___lambda__7___closed__2 = _init_l_Lean_Elab_Command_elabSyntax___lambda__7___closed__2(); @@ -20725,6 +20784,8 @@ l_Lean_Elab_Command_elabSyntaxAbbrev___closed__16 = _init_l_Lean_Elab_Command_el lean_mark_persistent(l_Lean_Elab_Command_elabSyntaxAbbrev___closed__16); l_Lean_Elab_Command_elabSyntaxAbbrev___closed__17 = _init_l_Lean_Elab_Command_elabSyntaxAbbrev___closed__17(); lean_mark_persistent(l_Lean_Elab_Command_elabSyntaxAbbrev___closed__17); +l_Lean_Elab_Command_elabSyntaxAbbrev___closed__18 = _init_l_Lean_Elab_Command_elabSyntaxAbbrev___closed__18(); +lean_mark_persistent(l_Lean_Elab_Command_elabSyntaxAbbrev___closed__18); l___regBuiltin_Lean_Elab_Command_elabSyntaxAbbrev___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabSyntaxAbbrev___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabSyntaxAbbrev___closed__1); l___regBuiltin_Lean_Elab_Command_elabSyntaxAbbrev___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabSyntaxAbbrev___closed__2(); @@ -20758,9 +20819,9 @@ l_Lean_Elab_Command_expandNoKindMacroRulesAux___lambda__1___closed__5 = _init_l_ lean_mark_persistent(l_Lean_Elab_Command_expandNoKindMacroRulesAux___lambda__1___closed__5); l_Lean_Elab_Command_expandNoKindMacroRulesAux___lambda__1___closed__6 = _init_l_Lean_Elab_Command_expandNoKindMacroRulesAux___lambda__1___closed__6(); lean_mark_persistent(l_Lean_Elab_Command_expandNoKindMacroRulesAux___lambda__1___closed__6); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_5555____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_5555____closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_5555____closed__1); -res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_5555_(lean_io_mk_world()); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_5585____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_5585____closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_5585____closed__1); +res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_5585_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Elab/Term.c b/stage0/stdlib/Lean/Elab/Term.c index aa32818a0c..e5dbb06c1c 100644 --- a/stage0/stdlib/Lean/Elab/Term.c +++ b/stage0/stdlib/Lean/Elab/Term.c @@ -25,6 +25,7 @@ lean_object* l_Lean_Elab_Term_resolveName___lambda__4(lean_object*, lean_object* static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFnsAux___closed__1; lean_object* l_Lean_Elab_Term_observing_match__1(lean_object*); lean_object* l_Lean_getConstInfo___at_Lean_Elab_Term_mkConst___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_ContainsPendingMVar_visit_match__1(lean_object*); static lean_object* l_Lean_Elab_Term_instInhabitedSavedState___closed__11; lean_object* l_Lean_Elab_Term_instMonadMacroAdapterTermElabM; uint8_t l_Lean_isRecCore(lean_object*, lean_object*); @@ -41,7 +42,6 @@ static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___l static lean_object* l_Lean_Elab_Term_tryPostponeIfHasMVars___closed__1; lean_object* l_Lean_compileDecl___at_Lean_Elab_Term_evalExpr___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_extractMacroScopes(lean_object*); -static lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__8; lean_object* l_Lean_Elab_Term_withoutAutoBoundImplicit(lean_object*); static lean_object* l_Lean_Elab_Term_instToStringMVarErrorKind___closed__3; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_instMetaEvalTermElabM___spec__4(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -69,7 +69,6 @@ static lean_object* l_Lean_Elab_Term_instMonadLogTermElabM___closed__2; lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isExplicitApp___boxed(lean_object*); lean_object* l_Lean_Elab_Term_commitIfNoErrors_x3f(lean_object*); lean_object* l_List_head_x21___at_Lean_Elab_Term_resolveName_x27___spec__2(lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4030____closed__1; static lean_object* l_Lean_Elab_Term_tryCoeThunk_x3f___closed__3; lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwMVarError___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -93,7 +92,6 @@ lean_object* l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object* lean_object* l_List_foldl___at_Lean_Elab_addMacroStack___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getLetRecsToLift___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_instMonadMacroAdapterTermElabM___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__9; lean_object* l_Lean_Elab_Term_instMonadInfoTreeTermElabM; lean_object* l_Lean_Elab_Term_saveState___boxed(lean_object*); static lean_object* l_Lean_Elab_Term_instInhabitedState___closed__4; @@ -111,7 +109,6 @@ lean_object* l_Lean_Meta_whnfForall(lean_object*, lean_object*, lean_object*, le static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__5___closed__5; lean_object* l_Lean_Elab_Term_resolveName___lambda__2___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12021____closed__2; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Term_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_loop___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__5___lambda__2___closed__1; lean_object* l_Lean_Elab_Term_instMonadTermElabM___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -158,6 +155,7 @@ lean_object* l___private_Lean_Util_Trace_0__Lean_withNestedTracesFinalizer___at_ lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getConstInfo___at_Lean_Elab_Term_mkConst___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Elab_isValidAutoBoundImplicitName(lean_object*); +lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Meta_ToHide_visitVisibleExpr_visit___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resolveLocalName_loop___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFnsAux___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_commitIfDidNotPostpone___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -191,6 +189,7 @@ static lean_object* l_Lean_Elab_Term_isLetRecAuxMVar___closed__3; lean_object* l_Lean_Elab_throwAutoBoundImplicitLocal___at_Lean_Elab_Term_resolveName_process___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_instInhabitedSavedState___closed__19; lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__6; lean_object* l_Lean_Elab_Term_applyResult___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_saveState___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLocalDeclImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -218,7 +217,7 @@ lean_object* l_Lean_Elab_Term_registerMVarErrorHoleInfo(lean_object*, lean_objec uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkTermInfo_match__2___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__2; -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12021____closed__1; +lean_object* l_Lean_Elab_Term_ContainsPendingMVar_visit_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isTypeAscription___boxed(lean_object*); lean_object* l_Std_PersistentArray_append___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkAuxName_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -246,7 +245,6 @@ lean_object* l_Lean_Elab_Term_resolveId_x3f___lambda__2___boxed(lean_object*, le extern lean_object* l_Lean_MessageData_nil; lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Term_traceAtCmdPos___spec__3(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Level_instBEqLevel; -static lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__6; lean_object* l_Lean_Elab_Term_instMonadLogTermElabM___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_saveState___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withoutPostponingUniverseConstraints___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -268,7 +266,6 @@ static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isNoImplicitLam lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux_match__1(lean_object*); lean_object* lean_local_ctx_find_from_user_name(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getMVarDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4030____closed__4; lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1___closed__4; lean_object* lean_expr_instantiate1(lean_object*, lean_object*); @@ -289,7 +286,6 @@ lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Elab_Term_0__Lean_E lean_object* l_Lean_Elab_Term_termElabAttribute___lambda__5___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ensureType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofList(lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4030____closed__2; extern lean_object* l_Lean_Meta_instInhabitedPostponedEntry; lean_object* l_Lean_Elab_InfoTree_substitute(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_termElabAttribute___closed__13; @@ -342,12 +338,12 @@ lean_object* l_Lean_Elab_Term_getMainModule___rarg(lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_instMetaEvalTermElabM___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_instMonadMacroAdapterTermElabM___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_USize_decLt(size_t, size_t); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4532____closed__3; lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwTypeMismatchError___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFns(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_addAutoBoundImplicits___spec__1___closed__2; extern lean_object* l_Lean_auxRecExt; lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_useImplicitLambda_x3f_match__1(lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4050____closed__3; lean_object* l_Lean_Meta_mkAppOptM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__8; static lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___lambda__2___closed__1; @@ -366,7 +362,6 @@ lean_object* l_Lean_Elab_Term_resolveLocalName_loop_match__1___rarg(lean_object* lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isExplicit___boxed(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_addAutoBoundImplicits___spec__5(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_termElabAttribute___closed__2; -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12021____closed__3; static lean_object* l_Lean_Elab_Term_mkTypeMismatchError___closed__5; lean_object* l_Lean_Elab_Term_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isExplicit___closed__1; @@ -408,9 +403,11 @@ lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___ static lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__1___closed__3; lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwKernelException___at_Lean_Elab_Term_evalExpr___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_containsPendingMVar_match__1___rarg(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_MetavarContext_isExprAssigned(lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_forIn_loop___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__5(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_HashMap_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Term_resolveName___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_instMetaEvalTermElabM___spec__12(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__12; @@ -442,6 +439,7 @@ static lean_object* l_Lean_Elab_Term_instMonadTermElabM___closed__4; lean_object* l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoeSort___lambda__1___closed__3; lean_object* l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__2(lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4532____closed__4; lean_object* l_Lean_Elab_Term_LVal_isFieldName___boxed(lean_object*); lean_object* l_Lean_Elab_Term_elabLevel(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkTermElabAttributeUnsafe(lean_object*); @@ -450,7 +448,6 @@ lean_object* l_Lean_Elab_Term_withAutoBoundImplicit_loop___rarg___lambda__1(lean lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTermEnsuringType(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__5; lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withoutPostponingUniverseConstraints_match__1(lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -542,8 +539,10 @@ lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_useImplicitLambda_x3f_ static lean_object* l_Lean_Elab_Term_mkConst___closed__2; lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_mkSyntheticSorryFor___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_decorateErrorMessageWithLambdaImplicitVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__3; lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFns_match__1(lean_object*); lean_object* l_Lean_Meta_expandCoe(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_ContainsPendingMVar_visit_match__2(lean_object*); lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_throwStuckAtUniverseCnstr_match__1(lean_object*); @@ -568,7 +567,6 @@ lean_object* l_Lean_Elab_Term_getMVarDecl___boxed(lean_object*, lean_object*, le static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Term_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__14___closed__1; static lean_object* l_Lean_Elab_logException___at___private_Lean_Elab_Term_0__Lean_Elab_Term_exceptionToSorry___spec__1___closed__2; lean_object* l_Lean_Expr_fvarId_x21(lean_object*); -static lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__7; lean_object* l_Std_PersistentArray_forMAux___at_Lean_Elab_Term_instMetaEvalTermElabM___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__2(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_addTermInfo___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -578,6 +576,7 @@ lean_object* l_Lean_Elab_Term_applyResult_match__1___rarg(lean_object*, lean_obj lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageLog_forM___at_Lean_Elab_Term_instMetaEvalTermElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashMapImp___rarg(lean_object*); +static lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__5; lean_object* l_Lean_Elab_Term_levelMVarToParam_x27___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_forInAux___at_Lean_Elab_Term_addAutoBoundImplicits___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* l_ReaderT_instMonadFunctorReaderT___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -614,17 +613,19 @@ lean_object* l_Lean_Meta_getDecLevel(lean_object*, lean_object*, lean_object*, l uint8_t l_Lean_Option_get___at_Lean_ppExpr___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_addCompletionInfo___at_Lean_Elab_Term_addDotCompletionInfo___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_mapM___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_containsPendingMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFnsAux___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_resolveId_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_findSome_x3f___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_withMVarContext___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__4(lean_object*); lean_object* l_Lean_Elab_Term_commitIfDidNotPostpone(lean_object*); +lean_object* l_Lean_Meta_getDelayedAssignment_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkTypeMismatchError_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFnsAux_match__2___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_9597_(lean_object*); -lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4050_(lean_object*); -lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4030_(lean_object*); +lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4552_(lean_object*); +lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4532_(lean_object*); +lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_10099_(lean_object*); lean_object* l_Lean_mkAuxName___at_Lean_Elab_Term_mkAuxName___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_setElabConfig(lean_object*); static lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__14; @@ -664,14 +665,15 @@ static lean_object* l_Lean_Elab_Term_instMonadBacktrackSavedStateTermElabM___clo lean_object* l_Lean_Elab_Term_MVarErrorInfo_logError_appendExtra(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_isLetRecAuxMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_replace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__8(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4532____closed__1; uint8_t l_Lean_Elab_Term_Context_errToSorry___default; lean_object* l_Lean_Elab_Term_instInhabitedTermElabResult(lean_object*); lean_object* l_Lean_Elab_Term_resolveName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__2; lean_object* l_Lean_Elab_Term_termElabAttribute___lambda__7___boxed(lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4532____closed__2; extern lean_object* l_Lean_Elab_abortTermExceptionId; static lean_object* l_Lean_Elab_Term_instInhabitedSavedState___closed__12; -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_9597____closed__2; lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_MVarErrorInfo_logError_appendExtra_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_eval_const(lean_object*, lean_object*, lean_object*); @@ -695,7 +697,6 @@ lean_object* l_Lean_Elab_Term_getSyntheticMVarDecl_x3f___boxed(lean_object*, lea static lean_object* l_Lean_Elab_Term_Context_autoBoundImplicits___default___closed__3; uint8_t l_Std_HashSetImp_contains___at___private_Lean_Elab_Term_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkTermInfo_match__2(lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_9597____closed__1; static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isHole___closed__4; lean_object* l_Lean_Elab_Term_resolveId_x3f(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_instInhabitedSavedState___closed__5; @@ -715,6 +716,7 @@ lean_object* l_Lean_Elab_Term_tryCoeThunk_x3f(lean_object*, lean_object*, lean_o static lean_object* l_Lean_Elab_Term_instMonadTermElabM___closed__1; static lean_object* l_Lean_Elab_Term_termElabAttribute___closed__14; lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4552____closed__3; lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe_match__1___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_instMonadTermElabM___closed__2; lean_object* l_Lean_Meta_getMVarsAtDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -767,6 +769,7 @@ lean_object* l_Lean_Elab_Term_elabTermEnsuringType___boxed(lean_object*, lean_ob lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_containsPendingMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Elab_Term_Context_implicitLambda___default; lean_object* l_Lean_Elab_Term_levelMVarToParam_x27_match__1___rarg(lean_object*, lean_object*); uint8_t l_Lean_Elab_Term_getSyntheticMVarDecl_x3f___lambda__1(lean_object*, lean_object*); @@ -848,7 +851,6 @@ lean_object* l_Lean_EnvExtensionInterfaceUnsafe_instInhabitedExt___lambda__1(lea lean_object* l_Lean_Elab_Term_instMonadInfoTreeTermElabM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_instInhabitedSavedState___closed__18; lean_object* l_Lean_Elab_Term_resolveId_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__10; static lean_object* l_Lean_Elab_Term_instInhabitedSavedState___closed__15; lean_object* l_Lean_Elab_Term_instMonadQuotationTermElabM; static lean_object* l_Lean_Elab_Term_instMonadQuotationTermElabM___closed__18; @@ -915,6 +917,7 @@ extern lean_object* l_Lean_Elab_postponeExceptionId; lean_object* l_Lean_Elab_throwPostpone___at_Lean_Elab_Term_tryPostpone___spec__1___rarg(lean_object*); lean_object* lean_environment_main_module(lean_object*); static lean_object* l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__9; +uint8_t lean_expr_eqv(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda_loop(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_tryCoeThunk_x3f_match__1(lean_object*); lean_object* l_List_map___at_Lean_MessageData_instCoeListExprMessageData___spec__1(lean_object*); @@ -927,6 +930,7 @@ lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__ static lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__6; lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_logUnassignedUsingErrorInfos___closed__1; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12523____closed__3; lean_object* l_Lean_Elab_Term_addDotCompletionInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resetMessageLog___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_commitWhenSome_x3f___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -985,6 +989,7 @@ lean_object* l_Lean_Elab_Term_isTypeApp_x3f(lean_object*, lean_object*, lean_obj static lean_object* l_Lean_Elab_Term_instToStringLVal___closed__2; lean_object* l_Lean_commitWhenSome_x3f___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__2___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda_loop___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_10099____closed__2; lean_object* l_Lean_Elab_Term_elabTerm___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_instMonadTermElabM___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Context_autoBoundImplicits___default; @@ -1038,6 +1043,7 @@ lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore(le static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__2___closed__1; lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore_match__2(lean_object*); static lean_object* l_Lean_Elab_Term_mkTypeMismatchError___closed__2; +lean_object* l_Lean_Elab_Term_ContainsPendingMVar_visit_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_adaptExpander(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getLevel(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_tryPostponeIfMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1075,19 +1081,17 @@ lean_object* l_Lean_Elab_Term_withFreshMacroScope___rarg(lean_object*, lean_obje static lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__9; lean_object* l_Lean_Elab_Term_TermElabM_toIO_match__1(lean_object*, lean_object*); lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4050____closed__4; lean_object* l_Lean_Elab_Term_LVal_getRef_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_evalExpr___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoeSort___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4552____closed__1; static lean_object* l_Lean_Elab_Term_tryPostponeIfHasMVars___closed__3; -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4050____closed__1; lean_object* l_Lean_Elab_Term_getLetRecsToLift___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resolveName_process___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_Term_getMainModule___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_resolveName_x27___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4050____closed__2; lean_object* l_Lean_Elab_Term_instMonadLogTermElabM___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_instHashableProd___rarg___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_instInhabitedSavedState___closed__20; @@ -1121,6 +1125,7 @@ lean_object* l_Lean_Elab_Term_addDotCompletionInfo___boxed(lean_object*, lean_ob extern lean_object* l_Lean_Expr_instBEqExpr; lean_object* l_Lean_Elab_withSaveInfoContext___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__1(lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___closed__2; +lean_object* l_Lean_Elab_Term_ContainsPendingMVar_visit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__4; lean_object* l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withoutErrToSorry___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1128,6 +1133,7 @@ lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term lean_object* l_Lean_Elab_Term_withoutMacroStackAtErr___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_foldr___at_Lean_Elab_Term_isLetRecAuxMVar___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_TermElabM_toIO___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_ContainsPendingMVar_visit_match__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_instMetaEvalTermElabM___spec__11(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_evalExpr___rarg___closed__3; lean_object* l_Lean_Elab_Term_applyResult_match__1(lean_object*, lean_object*); @@ -1169,20 +1175,21 @@ lean_object* l_Lean_Elab_Term_tryPostpone(lean_object*, lean_object*, lean_objec lean_object* l_Lean_Elab_Term_applyResult___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_IO_println___at_Lean_instEval___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_throwErrorIfErrors(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4552____closed__2; uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); -lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12021_(lean_object*); +lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12523_(lean_object*); static lean_object* l_Lean_Elab_Term_termElabAttribute___closed__10; lean_object* l_Lean_throwError___at_Lean_Elab_Term_evalExpr___spec__13(lean_object*); lean_object* l_Lean_Elab_Term_addAutoBoundImplicits(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_whnfD(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_instMonadQuotationTermElabM___closed__2; -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4030____closed__3; static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__11; lean_object* l_Lean_Elab_Term_termElabAttribute___lambda__8___boxed(lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__5; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_instMetaEvalTermElabM___spec__5(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkFreshLevelMVar___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_10099____closed__1; static lean_object* l_Lean_Elab_Term_resolveName_process___closed__2; lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_forM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1194,6 +1201,7 @@ lean_object* l_Lean_Elab_Term_instMonadQuotationTermElabM___lambda__1(lean_objec static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__1; lean_object* l_Lean_Elab_Term_mkTermInfo___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_instMonadInfoTreeTermElabM___closed__3; +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4552____closed__4; lean_object* l_Lean_Elab_Term_resolveName_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_termElabAttribute___lambda__4(lean_object*); static lean_object* l_Lean_Elab_Term_tryCoeThunk_x3f___closed__2; @@ -1241,8 +1249,10 @@ lean_object* l_Lean_Elab_Term_throwMVarError(lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_decorateErrorMessageWithLambdaImplicitVars___closed__3; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_instMetaEvalTermElabM___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_observing___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__1; static lean_object* l_Lean_Elab_Term_Context_autoBoundImplicits___default___closed__1; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_instMetaEvalTermElabM___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_tryPostponeIfHasMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__10(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_setMessageLog(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1266,6 +1276,7 @@ lean_object* l_Lean_Elab_withInfoTreeContext___at_Lean_Elab_Term_withMacroExpans lean_object* l_Lean_indentExpr(lean_object*); lean_object* l_Lean_mkBVar(lean_object*); lean_object* l_Lean_Elab_Term_mkTypeMismatchError_match__1(lean_object*); +lean_object* l_Lean_Elab_Term_ContainsPendingMVar_visit_match__3(lean_object*); lean_object* l_Lean_Elab_Term_addTermInfo___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_resolveName_x27___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1287,6 +1298,7 @@ static lean_object* l_Lean_Elab_Term_mkAuxName___closed__1; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Term_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_setLevelNames___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1___closed__1; +static lean_object* l_Lean_Elab_Term_ContainsPendingMVar_visit___closed__1; static lean_object* l_Lean_Elab_Term_instToStringSyntheticMVarKind___closed__3; lean_object* l_Lean_Elab_Term_isLocalIdent_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); @@ -1300,12 +1312,14 @@ lean_object* l_Lean_Elab_Term_tryPostponeIfNoneOrMVar___boxed(lean_object*, lean lean_object* l_Lean_Elab_Term_instMonadTermElabM___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_Meta_processPostponed(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_mkTypeMismatchError___closed__4; +static lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__2; lean_object* l_Lean_Elab_Term_saveState___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFns___closed__1; lean_object* l_Lean_Elab_Term_isTypeApp_x3f_match__1(lean_object*); static lean_object* l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__4; lean_object* l_Lean_Elab_Term_termElabAttribute___lambda__6(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__3; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12523____closed__2; static lean_object* l_Lean_Elab_Term_resolveId_x3f___lambda__2___closed__3; size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_Elab_Term_levelMVarToParam_x27_match__1(lean_object*); @@ -1336,8 +1350,10 @@ lean_object* l_Lean_Elab_Term_applyAttributesAt___boxed(lean_object*, lean_objec static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__6___rarg___closed__1; lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM(lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__3; +static lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__4; static lean_object* l_Lean_Elab_Term_instMonadQuotationTermElabM___closed__6; lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInst___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_containsPendingMVar_match__1(lean_object*); lean_object* l_Lean_Elab_Term_tryCoeThunk_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1___closed__3; lean_object* l_Lean_Elab_Term_getMainModule___rarg___boxed(lean_object*, lean_object*); @@ -1348,6 +1364,7 @@ lean_object* l_Lean_Elab_Term_isMonadApp_match__1___rarg(lean_object*, lean_obje lean_object* l_Lean_Elab_Term_resolveName_process___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__7; static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFns___closed__2; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12523____closed__1; lean_object* l_List_filterAux___at_Lean_Elab_Term_resolveId_x3f___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_addTermInfo___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_instMonadRef___rarg(lean_object*, lean_object*, lean_object*); @@ -1373,11 +1390,13 @@ lean_object* l_Std_HashSetImp_contains___at___private_Lean_Elab_Term_0__Lean_Ela static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__1; static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__5; static lean_object* l_Lean_Elab_logException___at___private_Lean_Elab_Term_0__Lean_Elab_Term_exceptionToSorry___spec__1___closed__1; +lean_object* l_Lean_Elab_Term_ContainsPendingMVar_visit___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_Term_0__Lean_Elab_Term_elabTermAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Elab_Term_Context_mayPostpone___default; lean_object* lean_add_decl(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_termElabAttribute___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___closed__1; +lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_termElabAttribute___lambda__4___boxed(lean_object*); lean_object* l_Lean_Elab_Term_setElabConfig(lean_object* x_1) { _start: @@ -15483,6 +15502,2361 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutMacroStackAtErr___rarg) return x_2; } } +lean_object* l_Lean_Elab_Term_ContainsPendingMVar_visit_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 2); +lean_inc(x_6); +x_7 = lean_ctor_get(x_1, 3); +lean_inc(x_7); +x_8 = lean_ctor_get_uint8(x_1, sizeof(void*)*4); +lean_dec(x_1); +x_9 = lean_box(x_8); +x_10 = lean_apply_5(x_2, x_4, x_5, x_6, x_7, x_9); +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; +lean_dec(x_2); +x_11 = lean_ctor_get(x_1, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_1, 1); +lean_inc(x_12); +x_13 = lean_ctor_get(x_1, 2); +lean_inc(x_13); +x_14 = lean_ctor_get(x_1, 3); +lean_inc(x_14); +x_15 = lean_ctor_get(x_1, 4); +lean_inc(x_15); +x_16 = lean_ctor_get_uint8(x_1, sizeof(void*)*5); +lean_dec(x_1); +x_17 = lean_box(x_16); +x_18 = lean_apply_6(x_3, x_11, x_12, x_13, x_14, x_15, x_17); +return x_18; +} +} +} +lean_object* l_Lean_Elab_Term_ContainsPendingMVar_visit_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_ContainsPendingMVar_visit_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_ContainsPendingMVar_visit_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Elab_Term_ContainsPendingMVar_visit_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_ContainsPendingMVar_visit_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_ContainsPendingMVar_visit_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 1: +{ +lean_object* x_11; uint64_t x_12; lean_object* x_13; lean_object* x_14; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_11 = lean_ctor_get(x_1, 0); +lean_inc(x_11); +x_12 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); +lean_dec(x_1); +x_13 = lean_box_uint64(x_12); +x_14 = lean_apply_2(x_8, x_11, x_13); +return x_14; +} +case 2: +{ +lean_object* x_15; uint64_t x_16; lean_object* x_17; lean_object* x_18; +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); +x_15 = lean_ctor_get(x_1, 0); +lean_inc(x_15); +x_16 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); +lean_dec(x_1); +x_17 = lean_box_uint64(x_16); +x_18 = lean_apply_2(x_9, x_15, x_17); +return x_18; +} +case 5: +{ +lean_object* x_19; lean_object* x_20; uint64_t x_21; lean_object* x_22; lean_object* x_23; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_19 = lean_ctor_get(x_1, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_1, 1); +lean_inc(x_20); +x_21 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +lean_dec(x_1); +x_22 = lean_box_uint64(x_21); +x_23 = lean_apply_3(x_5, x_19, x_20, x_22); +return x_23; +} +case 6: +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; uint64_t x_27; lean_object* x_28; lean_object* x_29; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_24 = lean_ctor_get(x_1, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_1, 1); +lean_inc(x_25); +x_26 = lean_ctor_get(x_1, 2); +lean_inc(x_26); +x_27 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +lean_dec(x_1); +x_28 = lean_box_uint64(x_27); +x_29 = lean_apply_4(x_3, x_24, x_25, x_26, x_28); +return x_29; +} +case 7: +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; uint64_t x_33; lean_object* x_34; lean_object* x_35; +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_30 = lean_ctor_get(x_1, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_1, 1); +lean_inc(x_31); +x_32 = lean_ctor_get(x_1, 2); +lean_inc(x_32); +x_33 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +lean_dec(x_1); +x_34 = lean_box_uint64(x_33); +x_35 = lean_apply_4(x_2, x_30, x_31, x_32, x_34); +return x_35; +} +case 8: +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint64_t x_40; lean_object* x_41; lean_object* x_42; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_36 = lean_ctor_get(x_1, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_1, 1); +lean_inc(x_37); +x_38 = lean_ctor_get(x_1, 2); +lean_inc(x_38); +x_39 = lean_ctor_get(x_1, 3); +lean_inc(x_39); +x_40 = lean_ctor_get_uint64(x_1, sizeof(void*)*4); +lean_dec(x_1); +x_41 = lean_box_uint64(x_40); +x_42 = lean_apply_5(x_4, x_36, x_37, x_38, x_39, x_41); +return x_42; +} +case 10: +{ +lean_object* x_43; lean_object* x_44; uint64_t x_45; lean_object* x_46; lean_object* x_47; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_43 = lean_ctor_get(x_1, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_1, 1); +lean_inc(x_44); +x_45 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +lean_dec(x_1); +x_46 = lean_box_uint64(x_45); +x_47 = lean_apply_3(x_6, x_43, x_44, x_46); +return x_47; +} +case 11: +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; uint64_t x_51; lean_object* x_52; lean_object* x_53; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_48 = lean_ctor_get(x_1, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_1, 1); +lean_inc(x_49); +x_50 = lean_ctor_get(x_1, 2); +lean_inc(x_50); +x_51 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +lean_dec(x_1); +x_52 = lean_box_uint64(x_51); +x_53 = lean_apply_4(x_7, x_48, x_49, x_50, x_52); +return x_53; +} +default: +{ +lean_object* x_54; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_54 = lean_apply_1(x_10, x_1); +return x_54; +} +} +} +} +lean_object* l_Lean_Elab_Term_ContainsPendingMVar_visit_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_ContainsPendingMVar_visit_match__3___rarg), 10, 0); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Term_ContainsPendingMVar_visit___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_ContainsPendingMVar_visit(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_10 = lean_st_ref_get(x_8, x_9); +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +lean_dec(x_10); +x_12 = lean_st_ref_get(x_2, x_11); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +if (lean_is_exclusive(x_12)) { + lean_ctor_release(x_12, 0); + lean_ctor_release(x_12, 1); + x_15 = x_12; +} else { + lean_dec_ref(x_12); + x_15 = lean_box(0); +} +lean_inc(x_1); +x_16 = l_Std_HashMapImp_find_x3f___at_Lean_Meta_ToHide_visitVisibleExpr_visit___spec__1(x_13, x_1); +if (lean_obj_tag(x_16) == 0) +{ +switch (lean_obj_tag(x_1)) { +case 1: +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_52; +x_17 = lean_ctor_get(x_1, 0); +lean_inc(x_17); +lean_inc(x_5); +x_52 = l_Lean_Meta_getLocalDecl(x_17, x_5, x_6, x_7, x_8, x_14); +if (lean_obj_tag(x_52) == 0) +{ +lean_object* x_53; +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +if (lean_obj_tag(x_53) == 0) +{ +lean_object* x_54; lean_object* x_55; +lean_dec(x_53); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); +x_55 = l_Lean_Elab_Term_ContainsPendingMVar_visit___closed__1; +x_18 = x_55; +x_19 = x_54; +goto block_51; +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_52, 1); +lean_inc(x_56); +lean_dec(x_52); +x_57 = lean_ctor_get(x_53, 4); +lean_inc(x_57); +lean_dec(x_53); +lean_inc(x_8); +x_58 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_57, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_56); +if (lean_obj_tag(x_58) == 0) +{ +lean_object* x_59; lean_object* x_60; +x_59 = lean_ctor_get(x_58, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_58, 1); +lean_inc(x_60); +lean_dec(x_58); +x_18 = x_59; +x_19 = x_60; +goto block_51; +} +else +{ +uint8_t x_61; +lean_dec(x_15); +lean_dec(x_8); +lean_dec(x_1); +x_61 = !lean_is_exclusive(x_58); +if (x_61 == 0) +{ +return x_58; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_58, 0); +x_63 = lean_ctor_get(x_58, 1); +lean_inc(x_63); +lean_inc(x_62); +lean_dec(x_58); +x_64 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_64, 0, x_62); +lean_ctor_set(x_64, 1, x_63); +return x_64; +} +} +} +} +else +{ +uint8_t x_65; +lean_dec(x_15); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_65 = !lean_is_exclusive(x_52); +if (x_65 == 0) +{ +return x_52; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_52, 0); +x_67 = lean_ctor_get(x_52, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_52); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +return x_68; +} +} +block_51: +{ +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_20; lean_object* x_21; +lean_dec(x_8); +lean_dec(x_1); +x_20 = lean_box(0); +if (lean_is_scalar(x_15)) { + x_21 = lean_alloc_ctor(0, 2, 0); +} else { + x_21 = x_15; +} +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_19); +return x_21; +} +else +{ +uint8_t x_22; +lean_dec(x_15); +x_22 = !lean_is_exclusive(x_18); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_23 = lean_ctor_get(x_18, 0); +x_24 = lean_st_ref_get(x_8, x_19); +lean_dec(x_8); +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec(x_24); +x_26 = lean_st_ref_take(x_2, x_25); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); +x_29 = l_Lean_Expr_instBEqExpr; +x_30 = l_Lean_Expr_instHashableExpr; +lean_inc(x_23); +x_31 = l_Std_HashMap_insert___rarg(x_29, x_30, x_27, x_1, x_23); +x_32 = lean_st_ref_set(x_2, x_31, x_28); +x_33 = !lean_is_exclusive(x_32); +if (x_33 == 0) +{ +lean_object* x_34; +x_34 = lean_ctor_get(x_32, 0); +lean_dec(x_34); +lean_ctor_set(x_32, 0, x_18); +return x_32; +} +else +{ +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_32, 1); +lean_inc(x_35); +lean_dec(x_32); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_18); +lean_ctor_set(x_36, 1, x_35); +return x_36; +} +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_37 = lean_ctor_get(x_18, 0); +lean_inc(x_37); +lean_dec(x_18); +x_38 = lean_st_ref_get(x_8, x_19); +lean_dec(x_8); +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +lean_dec(x_38); +x_40 = lean_st_ref_take(x_2, x_39); +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +lean_dec(x_40); +x_43 = l_Lean_Expr_instBEqExpr; +x_44 = l_Lean_Expr_instHashableExpr; +lean_inc(x_37); +x_45 = l_Std_HashMap_insert___rarg(x_43, x_44, x_41, x_1, x_37); +x_46 = lean_st_ref_set(x_2, x_45, x_42); +x_47 = lean_ctor_get(x_46, 1); +lean_inc(x_47); +if (lean_is_exclusive(x_46)) { + lean_ctor_release(x_46, 0); + lean_ctor_release(x_46, 1); + x_48 = x_46; +} else { + lean_dec_ref(x_46); + x_48 = lean_box(0); +} +x_49 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_49, 0, x_37); +if (lean_is_scalar(x_48)) { + x_50 = lean_alloc_ctor(0, 2, 0); +} else { + x_50 = x_48; +} +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_47); +return x_50; +} +} +} +} +case 2: +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_104; +x_69 = lean_ctor_get(x_1, 0); +lean_inc(x_69); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_1); +x_104 = l_Lean_Meta_instantiateMVars(x_1, x_5, x_6, x_7, x_8, x_14); +if (lean_obj_tag(x_104) == 0) +{ +lean_object* x_105; lean_object* x_106; uint8_t x_107; +x_105 = lean_ctor_get(x_104, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_104, 1); +lean_inc(x_106); +lean_dec(x_104); +x_107 = lean_expr_eqv(x_105, x_1); +if (x_107 == 0) +{ +lean_object* x_108; +lean_dec(x_69); +lean_inc(x_8); +x_108 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_105, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_106); +if (lean_obj_tag(x_108) == 0) +{ +lean_object* x_109; lean_object* x_110; +x_109 = lean_ctor_get(x_108, 0); +lean_inc(x_109); +x_110 = lean_ctor_get(x_108, 1); +lean_inc(x_110); +lean_dec(x_108); +x_70 = x_109; +x_71 = x_110; +goto block_103; +} +else +{ +uint8_t x_111; +lean_dec(x_15); +lean_dec(x_8); +lean_dec(x_1); +x_111 = !lean_is_exclusive(x_108); +if (x_111 == 0) +{ +return x_108; +} +else +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_112 = lean_ctor_get(x_108, 0); +x_113 = lean_ctor_get(x_108, 1); +lean_inc(x_113); +lean_inc(x_112); +lean_dec(x_108); +x_114 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_114, 0, x_112); +lean_ctor_set(x_114, 1, x_113); +return x_114; +} +} +} +else +{ +lean_object* x_115; lean_object* x_116; +lean_dec(x_105); +x_115 = l_Lean_Meta_getDelayedAssignment_x3f(x_69, x_5, x_6, x_7, x_8, x_106); +x_116 = lean_ctor_get(x_115, 0); +lean_inc(x_116); +if (lean_obj_tag(x_116) == 0) +{ +lean_object* x_117; lean_object* x_118; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_117 = lean_ctor_get(x_115, 1); +lean_inc(x_117); +lean_dec(x_115); +x_118 = lean_box(0); +x_70 = x_118; +x_71 = x_117; +goto block_103; +} +else +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_119 = lean_ctor_get(x_115, 1); +lean_inc(x_119); +lean_dec(x_115); +x_120 = lean_ctor_get(x_116, 0); +lean_inc(x_120); +lean_dec(x_116); +x_121 = lean_ctor_get(x_120, 2); +lean_inc(x_121); +lean_dec(x_120); +lean_inc(x_8); +x_122 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_121, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_119); +if (lean_obj_tag(x_122) == 0) +{ +lean_object* x_123; lean_object* x_124; +x_123 = lean_ctor_get(x_122, 0); +lean_inc(x_123); +x_124 = lean_ctor_get(x_122, 1); +lean_inc(x_124); +lean_dec(x_122); +x_70 = x_123; +x_71 = x_124; +goto block_103; +} +else +{ +uint8_t x_125; +lean_dec(x_15); +lean_dec(x_8); +lean_dec(x_1); +x_125 = !lean_is_exclusive(x_122); +if (x_125 == 0) +{ +return x_122; +} +else +{ +lean_object* x_126; lean_object* x_127; lean_object* x_128; +x_126 = lean_ctor_get(x_122, 0); +x_127 = lean_ctor_get(x_122, 1); +lean_inc(x_127); +lean_inc(x_126); +lean_dec(x_122); +x_128 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_128, 0, x_126); +lean_ctor_set(x_128, 1, x_127); +return x_128; +} +} +} +} +} +else +{ +uint8_t x_129; +lean_dec(x_69); +lean_dec(x_15); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_129 = !lean_is_exclusive(x_104); +if (x_129 == 0) +{ +return x_104; +} +else +{ +lean_object* x_130; lean_object* x_131; lean_object* x_132; +x_130 = lean_ctor_get(x_104, 0); +x_131 = lean_ctor_get(x_104, 1); +lean_inc(x_131); +lean_inc(x_130); +lean_dec(x_104); +x_132 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_132, 0, x_130); +lean_ctor_set(x_132, 1, x_131); +return x_132; +} +} +block_103: +{ +if (lean_obj_tag(x_70) == 0) +{ +lean_object* x_72; lean_object* x_73; +lean_dec(x_8); +lean_dec(x_1); +x_72 = lean_box(0); +if (lean_is_scalar(x_15)) { + x_73 = lean_alloc_ctor(0, 2, 0); +} else { + x_73 = x_15; +} +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_71); +return x_73; +} +else +{ +uint8_t x_74; +lean_dec(x_15); +x_74 = !lean_is_exclusive(x_70); +if (x_74 == 0) +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; +x_75 = lean_ctor_get(x_70, 0); +x_76 = lean_st_ref_get(x_8, x_71); +lean_dec(x_8); +x_77 = lean_ctor_get(x_76, 1); +lean_inc(x_77); +lean_dec(x_76); +x_78 = lean_st_ref_take(x_2, x_77); +x_79 = lean_ctor_get(x_78, 0); +lean_inc(x_79); +x_80 = lean_ctor_get(x_78, 1); +lean_inc(x_80); +lean_dec(x_78); +x_81 = l_Lean_Expr_instBEqExpr; +x_82 = l_Lean_Expr_instHashableExpr; +lean_inc(x_75); +x_83 = l_Std_HashMap_insert___rarg(x_81, x_82, x_79, x_1, x_75); +x_84 = lean_st_ref_set(x_2, x_83, x_80); +x_85 = !lean_is_exclusive(x_84); +if (x_85 == 0) +{ +lean_object* x_86; +x_86 = lean_ctor_get(x_84, 0); +lean_dec(x_86); +lean_ctor_set(x_84, 0, x_70); +return x_84; +} +else +{ +lean_object* x_87; lean_object* x_88; +x_87 = lean_ctor_get(x_84, 1); +lean_inc(x_87); +lean_dec(x_84); +x_88 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_88, 0, x_70); +lean_ctor_set(x_88, 1, x_87); +return x_88; +} +} +else +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; 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; +x_89 = lean_ctor_get(x_70, 0); +lean_inc(x_89); +lean_dec(x_70); +x_90 = lean_st_ref_get(x_8, x_71); +lean_dec(x_8); +x_91 = lean_ctor_get(x_90, 1); +lean_inc(x_91); +lean_dec(x_90); +x_92 = lean_st_ref_take(x_2, x_91); +x_93 = lean_ctor_get(x_92, 0); +lean_inc(x_93); +x_94 = lean_ctor_get(x_92, 1); +lean_inc(x_94); +lean_dec(x_92); +x_95 = l_Lean_Expr_instBEqExpr; +x_96 = l_Lean_Expr_instHashableExpr; +lean_inc(x_89); +x_97 = l_Std_HashMap_insert___rarg(x_95, x_96, x_93, x_1, x_89); +x_98 = lean_st_ref_set(x_2, x_97, x_94); +x_99 = lean_ctor_get(x_98, 1); +lean_inc(x_99); +if (lean_is_exclusive(x_98)) { + lean_ctor_release(x_98, 0); + lean_ctor_release(x_98, 1); + x_100 = x_98; +} else { + lean_dec_ref(x_98); + x_100 = lean_box(0); +} +x_101 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_101, 0, x_89); +if (lean_is_scalar(x_100)) { + x_102 = lean_alloc_ctor(0, 2, 0); +} else { + x_102 = x_100; +} +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_102, 1, x_99); +return x_102; +} +} +} +} +case 5: +{ +lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_169; +x_133 = lean_ctor_get(x_1, 0); +lean_inc(x_133); +x_134 = lean_ctor_get(x_1, 1); +lean_inc(x_134); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_169 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_133, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_14); +if (lean_obj_tag(x_169) == 0) +{ +lean_object* x_170; +x_170 = lean_ctor_get(x_169, 0); +lean_inc(x_170); +if (lean_obj_tag(x_170) == 0) +{ +lean_object* x_171; lean_object* x_172; +lean_dec(x_134); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_171 = lean_ctor_get(x_169, 1); +lean_inc(x_171); +lean_dec(x_169); +x_172 = lean_box(0); +x_135 = x_172; +x_136 = x_171; +goto block_168; +} +else +{ +lean_object* x_173; lean_object* x_174; +lean_dec(x_170); +x_173 = lean_ctor_get(x_169, 1); +lean_inc(x_173); +lean_dec(x_169); +lean_inc(x_8); +x_174 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_134, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_173); +if (lean_obj_tag(x_174) == 0) +{ +lean_object* x_175; lean_object* x_176; +x_175 = lean_ctor_get(x_174, 0); +lean_inc(x_175); +x_176 = lean_ctor_get(x_174, 1); +lean_inc(x_176); +lean_dec(x_174); +x_135 = x_175; +x_136 = x_176; +goto block_168; +} +else +{ +uint8_t x_177; +lean_dec(x_15); +lean_dec(x_8); +lean_dec(x_1); +x_177 = !lean_is_exclusive(x_174); +if (x_177 == 0) +{ +return x_174; +} +else +{ +lean_object* x_178; lean_object* x_179; lean_object* x_180; +x_178 = lean_ctor_get(x_174, 0); +x_179 = lean_ctor_get(x_174, 1); +lean_inc(x_179); +lean_inc(x_178); +lean_dec(x_174); +x_180 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_180, 0, x_178); +lean_ctor_set(x_180, 1, x_179); +return x_180; +} +} +} +} +else +{ +uint8_t x_181; +lean_dec(x_134); +lean_dec(x_15); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_181 = !lean_is_exclusive(x_169); +if (x_181 == 0) +{ +return x_169; +} +else +{ +lean_object* x_182; lean_object* x_183; lean_object* x_184; +x_182 = lean_ctor_get(x_169, 0); +x_183 = lean_ctor_get(x_169, 1); +lean_inc(x_183); +lean_inc(x_182); +lean_dec(x_169); +x_184 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_184, 0, x_182); +lean_ctor_set(x_184, 1, x_183); +return x_184; +} +} +block_168: +{ +if (lean_obj_tag(x_135) == 0) +{ +lean_object* x_137; lean_object* x_138; +lean_dec(x_8); +lean_dec(x_1); +x_137 = lean_box(0); +if (lean_is_scalar(x_15)) { + x_138 = lean_alloc_ctor(0, 2, 0); +} else { + x_138 = x_15; +} +lean_ctor_set(x_138, 0, x_137); +lean_ctor_set(x_138, 1, x_136); +return x_138; +} +else +{ +uint8_t x_139; +lean_dec(x_15); +x_139 = !lean_is_exclusive(x_135); +if (x_139 == 0) +{ +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; uint8_t x_150; +x_140 = lean_ctor_get(x_135, 0); +x_141 = lean_st_ref_get(x_8, x_136); +lean_dec(x_8); +x_142 = lean_ctor_get(x_141, 1); +lean_inc(x_142); +lean_dec(x_141); +x_143 = lean_st_ref_take(x_2, x_142); +x_144 = lean_ctor_get(x_143, 0); +lean_inc(x_144); +x_145 = lean_ctor_get(x_143, 1); +lean_inc(x_145); +lean_dec(x_143); +x_146 = l_Lean_Expr_instBEqExpr; +x_147 = l_Lean_Expr_instHashableExpr; +lean_inc(x_140); +x_148 = l_Std_HashMap_insert___rarg(x_146, x_147, x_144, x_1, x_140); +x_149 = lean_st_ref_set(x_2, x_148, x_145); +x_150 = !lean_is_exclusive(x_149); +if (x_150 == 0) +{ +lean_object* x_151; +x_151 = lean_ctor_get(x_149, 0); +lean_dec(x_151); +lean_ctor_set(x_149, 0, x_135); +return x_149; +} +else +{ +lean_object* x_152; lean_object* x_153; +x_152 = lean_ctor_get(x_149, 1); +lean_inc(x_152); +lean_dec(x_149); +x_153 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_153, 0, x_135); +lean_ctor_set(x_153, 1, x_152); +return x_153; +} +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; +x_154 = lean_ctor_get(x_135, 0); +lean_inc(x_154); +lean_dec(x_135); +x_155 = lean_st_ref_get(x_8, x_136); +lean_dec(x_8); +x_156 = lean_ctor_get(x_155, 1); +lean_inc(x_156); +lean_dec(x_155); +x_157 = lean_st_ref_take(x_2, x_156); +x_158 = lean_ctor_get(x_157, 0); +lean_inc(x_158); +x_159 = lean_ctor_get(x_157, 1); +lean_inc(x_159); +lean_dec(x_157); +x_160 = l_Lean_Expr_instBEqExpr; +x_161 = l_Lean_Expr_instHashableExpr; +lean_inc(x_154); +x_162 = l_Std_HashMap_insert___rarg(x_160, x_161, x_158, x_1, x_154); +x_163 = lean_st_ref_set(x_2, x_162, x_159); +x_164 = lean_ctor_get(x_163, 1); +lean_inc(x_164); +if (lean_is_exclusive(x_163)) { + lean_ctor_release(x_163, 0); + lean_ctor_release(x_163, 1); + x_165 = x_163; +} else { + lean_dec_ref(x_163); + x_165 = lean_box(0); +} +x_166 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_166, 0, x_154); +if (lean_is_scalar(x_165)) { + x_167 = lean_alloc_ctor(0, 2, 0); +} else { + x_167 = x_165; +} +lean_ctor_set(x_167, 0, x_166); +lean_ctor_set(x_167, 1, x_164); +return x_167; +} +} +} +} +case 6: +{ +lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_221; +x_185 = lean_ctor_get(x_1, 1); +lean_inc(x_185); +x_186 = lean_ctor_get(x_1, 2); +lean_inc(x_186); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_221 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_185, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_14); +if (lean_obj_tag(x_221) == 0) +{ +lean_object* x_222; +x_222 = lean_ctor_get(x_221, 0); +lean_inc(x_222); +if (lean_obj_tag(x_222) == 0) +{ +lean_object* x_223; lean_object* x_224; +lean_dec(x_186); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_223 = lean_ctor_get(x_221, 1); +lean_inc(x_223); +lean_dec(x_221); +x_224 = lean_box(0); +x_187 = x_224; +x_188 = x_223; +goto block_220; +} +else +{ +lean_object* x_225; lean_object* x_226; +lean_dec(x_222); +x_225 = lean_ctor_get(x_221, 1); +lean_inc(x_225); +lean_dec(x_221); +lean_inc(x_8); +x_226 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_186, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_225); +if (lean_obj_tag(x_226) == 0) +{ +lean_object* x_227; lean_object* x_228; +x_227 = lean_ctor_get(x_226, 0); +lean_inc(x_227); +x_228 = lean_ctor_get(x_226, 1); +lean_inc(x_228); +lean_dec(x_226); +x_187 = x_227; +x_188 = x_228; +goto block_220; +} +else +{ +uint8_t x_229; +lean_dec(x_15); +lean_dec(x_8); +lean_dec(x_1); +x_229 = !lean_is_exclusive(x_226); +if (x_229 == 0) +{ +return x_226; +} +else +{ +lean_object* x_230; lean_object* x_231; lean_object* x_232; +x_230 = lean_ctor_get(x_226, 0); +x_231 = lean_ctor_get(x_226, 1); +lean_inc(x_231); +lean_inc(x_230); +lean_dec(x_226); +x_232 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_232, 0, x_230); +lean_ctor_set(x_232, 1, x_231); +return x_232; +} +} +} +} +else +{ +uint8_t x_233; +lean_dec(x_186); +lean_dec(x_15); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_233 = !lean_is_exclusive(x_221); +if (x_233 == 0) +{ +return x_221; +} +else +{ +lean_object* x_234; lean_object* x_235; lean_object* x_236; +x_234 = lean_ctor_get(x_221, 0); +x_235 = lean_ctor_get(x_221, 1); +lean_inc(x_235); +lean_inc(x_234); +lean_dec(x_221); +x_236 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_236, 0, x_234); +lean_ctor_set(x_236, 1, x_235); +return x_236; +} +} +block_220: +{ +if (lean_obj_tag(x_187) == 0) +{ +lean_object* x_189; lean_object* x_190; +lean_dec(x_8); +lean_dec(x_1); +x_189 = lean_box(0); +if (lean_is_scalar(x_15)) { + x_190 = lean_alloc_ctor(0, 2, 0); +} else { + x_190 = x_15; +} +lean_ctor_set(x_190, 0, x_189); +lean_ctor_set(x_190, 1, x_188); +return x_190; +} +else +{ +uint8_t x_191; +lean_dec(x_15); +x_191 = !lean_is_exclusive(x_187); +if (x_191 == 0) +{ +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; uint8_t x_202; +x_192 = lean_ctor_get(x_187, 0); +x_193 = lean_st_ref_get(x_8, x_188); +lean_dec(x_8); +x_194 = lean_ctor_get(x_193, 1); +lean_inc(x_194); +lean_dec(x_193); +x_195 = lean_st_ref_take(x_2, x_194); +x_196 = lean_ctor_get(x_195, 0); +lean_inc(x_196); +x_197 = lean_ctor_get(x_195, 1); +lean_inc(x_197); +lean_dec(x_195); +x_198 = l_Lean_Expr_instBEqExpr; +x_199 = l_Lean_Expr_instHashableExpr; +lean_inc(x_192); +x_200 = l_Std_HashMap_insert___rarg(x_198, x_199, x_196, x_1, x_192); +x_201 = lean_st_ref_set(x_2, x_200, x_197); +x_202 = !lean_is_exclusive(x_201); +if (x_202 == 0) +{ +lean_object* x_203; +x_203 = lean_ctor_get(x_201, 0); +lean_dec(x_203); +lean_ctor_set(x_201, 0, x_187); +return x_201; +} +else +{ +lean_object* x_204; lean_object* x_205; +x_204 = lean_ctor_get(x_201, 1); +lean_inc(x_204); +lean_dec(x_201); +x_205 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_205, 0, x_187); +lean_ctor_set(x_205, 1, x_204); +return x_205; +} +} +else +{ +lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; +x_206 = lean_ctor_get(x_187, 0); +lean_inc(x_206); +lean_dec(x_187); +x_207 = lean_st_ref_get(x_8, x_188); +lean_dec(x_8); +x_208 = lean_ctor_get(x_207, 1); +lean_inc(x_208); +lean_dec(x_207); +x_209 = lean_st_ref_take(x_2, x_208); +x_210 = lean_ctor_get(x_209, 0); +lean_inc(x_210); +x_211 = lean_ctor_get(x_209, 1); +lean_inc(x_211); +lean_dec(x_209); +x_212 = l_Lean_Expr_instBEqExpr; +x_213 = l_Lean_Expr_instHashableExpr; +lean_inc(x_206); +x_214 = l_Std_HashMap_insert___rarg(x_212, x_213, x_210, x_1, x_206); +x_215 = lean_st_ref_set(x_2, x_214, x_211); +x_216 = lean_ctor_get(x_215, 1); +lean_inc(x_216); +if (lean_is_exclusive(x_215)) { + lean_ctor_release(x_215, 0); + lean_ctor_release(x_215, 1); + x_217 = x_215; +} else { + lean_dec_ref(x_215); + x_217 = lean_box(0); +} +x_218 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_218, 0, x_206); +if (lean_is_scalar(x_217)) { + x_219 = lean_alloc_ctor(0, 2, 0); +} else { + x_219 = x_217; +} +lean_ctor_set(x_219, 0, x_218); +lean_ctor_set(x_219, 1, x_216); +return x_219; +} +} +} +} +case 7: +{ +lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_273; +x_237 = lean_ctor_get(x_1, 1); +lean_inc(x_237); +x_238 = lean_ctor_get(x_1, 2); +lean_inc(x_238); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_273 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_237, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_14); +if (lean_obj_tag(x_273) == 0) +{ +lean_object* x_274; +x_274 = lean_ctor_get(x_273, 0); +lean_inc(x_274); +if (lean_obj_tag(x_274) == 0) +{ +lean_object* x_275; lean_object* x_276; +lean_dec(x_238); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_275 = lean_ctor_get(x_273, 1); +lean_inc(x_275); +lean_dec(x_273); +x_276 = lean_box(0); +x_239 = x_276; +x_240 = x_275; +goto block_272; +} +else +{ +lean_object* x_277; lean_object* x_278; +lean_dec(x_274); +x_277 = lean_ctor_get(x_273, 1); +lean_inc(x_277); +lean_dec(x_273); +lean_inc(x_8); +x_278 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_238, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_277); +if (lean_obj_tag(x_278) == 0) +{ +lean_object* x_279; lean_object* x_280; +x_279 = lean_ctor_get(x_278, 0); +lean_inc(x_279); +x_280 = lean_ctor_get(x_278, 1); +lean_inc(x_280); +lean_dec(x_278); +x_239 = x_279; +x_240 = x_280; +goto block_272; +} +else +{ +uint8_t x_281; +lean_dec(x_15); +lean_dec(x_8); +lean_dec(x_1); +x_281 = !lean_is_exclusive(x_278); +if (x_281 == 0) +{ +return x_278; +} +else +{ +lean_object* x_282; lean_object* x_283; lean_object* x_284; +x_282 = lean_ctor_get(x_278, 0); +x_283 = lean_ctor_get(x_278, 1); +lean_inc(x_283); +lean_inc(x_282); +lean_dec(x_278); +x_284 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_284, 0, x_282); +lean_ctor_set(x_284, 1, x_283); +return x_284; +} +} +} +} +else +{ +uint8_t x_285; +lean_dec(x_238); +lean_dec(x_15); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_285 = !lean_is_exclusive(x_273); +if (x_285 == 0) +{ +return x_273; +} +else +{ +lean_object* x_286; lean_object* x_287; lean_object* x_288; +x_286 = lean_ctor_get(x_273, 0); +x_287 = lean_ctor_get(x_273, 1); +lean_inc(x_287); +lean_inc(x_286); +lean_dec(x_273); +x_288 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_288, 0, x_286); +lean_ctor_set(x_288, 1, x_287); +return x_288; +} +} +block_272: +{ +if (lean_obj_tag(x_239) == 0) +{ +lean_object* x_241; lean_object* x_242; +lean_dec(x_8); +lean_dec(x_1); +x_241 = lean_box(0); +if (lean_is_scalar(x_15)) { + x_242 = lean_alloc_ctor(0, 2, 0); +} else { + x_242 = x_15; +} +lean_ctor_set(x_242, 0, x_241); +lean_ctor_set(x_242, 1, x_240); +return x_242; +} +else +{ +uint8_t x_243; +lean_dec(x_15); +x_243 = !lean_is_exclusive(x_239); +if (x_243 == 0) +{ +lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; uint8_t x_254; +x_244 = lean_ctor_get(x_239, 0); +x_245 = lean_st_ref_get(x_8, x_240); +lean_dec(x_8); +x_246 = lean_ctor_get(x_245, 1); +lean_inc(x_246); +lean_dec(x_245); +x_247 = lean_st_ref_take(x_2, x_246); +x_248 = lean_ctor_get(x_247, 0); +lean_inc(x_248); +x_249 = lean_ctor_get(x_247, 1); +lean_inc(x_249); +lean_dec(x_247); +x_250 = l_Lean_Expr_instBEqExpr; +x_251 = l_Lean_Expr_instHashableExpr; +lean_inc(x_244); +x_252 = l_Std_HashMap_insert___rarg(x_250, x_251, x_248, x_1, x_244); +x_253 = lean_st_ref_set(x_2, x_252, x_249); +x_254 = !lean_is_exclusive(x_253); +if (x_254 == 0) +{ +lean_object* x_255; +x_255 = lean_ctor_get(x_253, 0); +lean_dec(x_255); +lean_ctor_set(x_253, 0, x_239); +return x_253; +} +else +{ +lean_object* x_256; lean_object* x_257; +x_256 = lean_ctor_get(x_253, 1); +lean_inc(x_256); +lean_dec(x_253); +x_257 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_257, 0, x_239); +lean_ctor_set(x_257, 1, x_256); +return x_257; +} +} +else +{ +lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; +x_258 = lean_ctor_get(x_239, 0); +lean_inc(x_258); +lean_dec(x_239); +x_259 = lean_st_ref_get(x_8, x_240); +lean_dec(x_8); +x_260 = lean_ctor_get(x_259, 1); +lean_inc(x_260); +lean_dec(x_259); +x_261 = lean_st_ref_take(x_2, x_260); +x_262 = lean_ctor_get(x_261, 0); +lean_inc(x_262); +x_263 = lean_ctor_get(x_261, 1); +lean_inc(x_263); +lean_dec(x_261); +x_264 = l_Lean_Expr_instBEqExpr; +x_265 = l_Lean_Expr_instHashableExpr; +lean_inc(x_258); +x_266 = l_Std_HashMap_insert___rarg(x_264, x_265, x_262, x_1, x_258); +x_267 = lean_st_ref_set(x_2, x_266, x_263); +x_268 = lean_ctor_get(x_267, 1); +lean_inc(x_268); +if (lean_is_exclusive(x_267)) { + lean_ctor_release(x_267, 0); + lean_ctor_release(x_267, 1); + x_269 = x_267; +} else { + lean_dec_ref(x_267); + x_269 = lean_box(0); +} +x_270 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_270, 0, x_258); +if (lean_is_scalar(x_269)) { + x_271 = lean_alloc_ctor(0, 2, 0); +} else { + x_271 = x_269; +} +lean_ctor_set(x_271, 0, x_270); +lean_ctor_set(x_271, 1, x_268); +return x_271; +} +} +} +} +case 8: +{ +lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_326; +x_289 = lean_ctor_get(x_1, 1); +lean_inc(x_289); +x_290 = lean_ctor_get(x_1, 2); +lean_inc(x_290); +x_291 = lean_ctor_get(x_1, 3); +lean_inc(x_291); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_326 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_289, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_14); +if (lean_obj_tag(x_326) == 0) +{ +lean_object* x_327; +x_327 = lean_ctor_get(x_326, 0); +lean_inc(x_327); +if (lean_obj_tag(x_327) == 0) +{ +lean_object* x_328; lean_object* x_329; +lean_dec(x_291); +lean_dec(x_290); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_328 = lean_ctor_get(x_326, 1); +lean_inc(x_328); +lean_dec(x_326); +x_329 = lean_box(0); +x_292 = x_329; +x_293 = x_328; +goto block_325; +} +else +{ +lean_object* x_330; lean_object* x_331; +lean_dec(x_327); +x_330 = lean_ctor_get(x_326, 1); +lean_inc(x_330); +lean_dec(x_326); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_331 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_290, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_330); +if (lean_obj_tag(x_331) == 0) +{ +lean_object* x_332; +x_332 = lean_ctor_get(x_331, 0); +lean_inc(x_332); +if (lean_obj_tag(x_332) == 0) +{ +lean_object* x_333; lean_object* x_334; +lean_dec(x_291); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_333 = lean_ctor_get(x_331, 1); +lean_inc(x_333); +lean_dec(x_331); +x_334 = lean_box(0); +x_292 = x_334; +x_293 = x_333; +goto block_325; +} +else +{ +lean_object* x_335; lean_object* x_336; +lean_dec(x_332); +x_335 = lean_ctor_get(x_331, 1); +lean_inc(x_335); +lean_dec(x_331); +lean_inc(x_8); +x_336 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_291, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_335); +if (lean_obj_tag(x_336) == 0) +{ +lean_object* x_337; lean_object* x_338; +x_337 = lean_ctor_get(x_336, 0); +lean_inc(x_337); +x_338 = lean_ctor_get(x_336, 1); +lean_inc(x_338); +lean_dec(x_336); +x_292 = x_337; +x_293 = x_338; +goto block_325; +} +else +{ +uint8_t x_339; +lean_dec(x_15); +lean_dec(x_8); +lean_dec(x_1); +x_339 = !lean_is_exclusive(x_336); +if (x_339 == 0) +{ +return x_336; +} +else +{ +lean_object* x_340; lean_object* x_341; lean_object* x_342; +x_340 = lean_ctor_get(x_336, 0); +x_341 = lean_ctor_get(x_336, 1); +lean_inc(x_341); +lean_inc(x_340); +lean_dec(x_336); +x_342 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_342, 0, x_340); +lean_ctor_set(x_342, 1, x_341); +return x_342; +} +} +} +} +else +{ +uint8_t x_343; +lean_dec(x_291); +lean_dec(x_15); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_343 = !lean_is_exclusive(x_331); +if (x_343 == 0) +{ +return x_331; +} +else +{ +lean_object* x_344; lean_object* x_345; lean_object* x_346; +x_344 = lean_ctor_get(x_331, 0); +x_345 = lean_ctor_get(x_331, 1); +lean_inc(x_345); +lean_inc(x_344); +lean_dec(x_331); +x_346 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_346, 0, x_344); +lean_ctor_set(x_346, 1, x_345); +return x_346; +} +} +} +} +else +{ +uint8_t x_347; +lean_dec(x_291); +lean_dec(x_290); +lean_dec(x_15); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_347 = !lean_is_exclusive(x_326); +if (x_347 == 0) +{ +return x_326; +} +else +{ +lean_object* x_348; lean_object* x_349; lean_object* x_350; +x_348 = lean_ctor_get(x_326, 0); +x_349 = lean_ctor_get(x_326, 1); +lean_inc(x_349); +lean_inc(x_348); +lean_dec(x_326); +x_350 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_350, 0, x_348); +lean_ctor_set(x_350, 1, x_349); +return x_350; +} +} +block_325: +{ +if (lean_obj_tag(x_292) == 0) +{ +lean_object* x_294; lean_object* x_295; +lean_dec(x_8); +lean_dec(x_1); +x_294 = lean_box(0); +if (lean_is_scalar(x_15)) { + x_295 = lean_alloc_ctor(0, 2, 0); +} else { + x_295 = x_15; +} +lean_ctor_set(x_295, 0, x_294); +lean_ctor_set(x_295, 1, x_293); +return x_295; +} +else +{ +uint8_t x_296; +lean_dec(x_15); +x_296 = !lean_is_exclusive(x_292); +if (x_296 == 0) +{ +lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; uint8_t x_307; +x_297 = lean_ctor_get(x_292, 0); +x_298 = lean_st_ref_get(x_8, x_293); +lean_dec(x_8); +x_299 = lean_ctor_get(x_298, 1); +lean_inc(x_299); +lean_dec(x_298); +x_300 = lean_st_ref_take(x_2, x_299); +x_301 = lean_ctor_get(x_300, 0); +lean_inc(x_301); +x_302 = lean_ctor_get(x_300, 1); +lean_inc(x_302); +lean_dec(x_300); +x_303 = l_Lean_Expr_instBEqExpr; +x_304 = l_Lean_Expr_instHashableExpr; +lean_inc(x_297); +x_305 = l_Std_HashMap_insert___rarg(x_303, x_304, x_301, x_1, x_297); +x_306 = lean_st_ref_set(x_2, x_305, x_302); +x_307 = !lean_is_exclusive(x_306); +if (x_307 == 0) +{ +lean_object* x_308; +x_308 = lean_ctor_get(x_306, 0); +lean_dec(x_308); +lean_ctor_set(x_306, 0, x_292); +return x_306; +} +else +{ +lean_object* x_309; lean_object* x_310; +x_309 = lean_ctor_get(x_306, 1); +lean_inc(x_309); +lean_dec(x_306); +x_310 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_310, 0, x_292); +lean_ctor_set(x_310, 1, x_309); +return x_310; +} +} +else +{ +lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; +x_311 = lean_ctor_get(x_292, 0); +lean_inc(x_311); +lean_dec(x_292); +x_312 = lean_st_ref_get(x_8, x_293); +lean_dec(x_8); +x_313 = lean_ctor_get(x_312, 1); +lean_inc(x_313); +lean_dec(x_312); +x_314 = lean_st_ref_take(x_2, x_313); +x_315 = lean_ctor_get(x_314, 0); +lean_inc(x_315); +x_316 = lean_ctor_get(x_314, 1); +lean_inc(x_316); +lean_dec(x_314); +x_317 = l_Lean_Expr_instBEqExpr; +x_318 = l_Lean_Expr_instHashableExpr; +lean_inc(x_311); +x_319 = l_Std_HashMap_insert___rarg(x_317, x_318, x_315, x_1, x_311); +x_320 = lean_st_ref_set(x_2, x_319, x_316); +x_321 = lean_ctor_get(x_320, 1); +lean_inc(x_321); +if (lean_is_exclusive(x_320)) { + lean_ctor_release(x_320, 0); + lean_ctor_release(x_320, 1); + x_322 = x_320; +} else { + lean_dec_ref(x_320); + x_322 = lean_box(0); +} +x_323 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_323, 0, x_311); +if (lean_is_scalar(x_322)) { + x_324 = lean_alloc_ctor(0, 2, 0); +} else { + x_324 = x_322; +} +lean_ctor_set(x_324, 0, x_323); +lean_ctor_set(x_324, 1, x_321); +return x_324; +} +} +} +} +case 10: +{ +lean_object* x_351; lean_object* x_352; +lean_dec(x_15); +x_351 = lean_ctor_get(x_1, 1); +lean_inc(x_351); +lean_inc(x_8); +x_352 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_351, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_14); +if (lean_obj_tag(x_352) == 0) +{ +lean_object* x_353; +x_353 = lean_ctor_get(x_352, 0); +lean_inc(x_353); +if (lean_obj_tag(x_353) == 0) +{ +uint8_t x_354; +lean_dec(x_8); +lean_dec(x_1); +x_354 = !lean_is_exclusive(x_352); +if (x_354 == 0) +{ +lean_object* x_355; lean_object* x_356; +x_355 = lean_ctor_get(x_352, 0); +lean_dec(x_355); +x_356 = lean_box(0); +lean_ctor_set(x_352, 0, x_356); +return x_352; +} +else +{ +lean_object* x_357; lean_object* x_358; lean_object* x_359; +x_357 = lean_ctor_get(x_352, 1); +lean_inc(x_357); +lean_dec(x_352); +x_358 = lean_box(0); +x_359 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_359, 0, x_358); +lean_ctor_set(x_359, 1, x_357); +return x_359; +} +} +else +{ +lean_object* x_360; uint8_t x_361; +x_360 = lean_ctor_get(x_352, 1); +lean_inc(x_360); +lean_dec(x_352); +x_361 = !lean_is_exclusive(x_353); +if (x_361 == 0) +{ +lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; uint8_t x_372; +x_362 = lean_ctor_get(x_353, 0); +x_363 = lean_st_ref_get(x_8, x_360); +lean_dec(x_8); +x_364 = lean_ctor_get(x_363, 1); +lean_inc(x_364); +lean_dec(x_363); +x_365 = lean_st_ref_take(x_2, x_364); +x_366 = lean_ctor_get(x_365, 0); +lean_inc(x_366); +x_367 = lean_ctor_get(x_365, 1); +lean_inc(x_367); +lean_dec(x_365); +x_368 = l_Lean_Expr_instBEqExpr; +x_369 = l_Lean_Expr_instHashableExpr; +lean_inc(x_362); +x_370 = l_Std_HashMap_insert___rarg(x_368, x_369, x_366, x_1, x_362); +x_371 = lean_st_ref_set(x_2, x_370, x_367); +x_372 = !lean_is_exclusive(x_371); +if (x_372 == 0) +{ +lean_object* x_373; +x_373 = lean_ctor_get(x_371, 0); +lean_dec(x_373); +lean_ctor_set(x_371, 0, x_353); +return x_371; +} +else +{ +lean_object* x_374; lean_object* x_375; +x_374 = lean_ctor_get(x_371, 1); +lean_inc(x_374); +lean_dec(x_371); +x_375 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_375, 0, x_353); +lean_ctor_set(x_375, 1, x_374); +return x_375; +} +} +else +{ +lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; +x_376 = lean_ctor_get(x_353, 0); +lean_inc(x_376); +lean_dec(x_353); +x_377 = lean_st_ref_get(x_8, x_360); +lean_dec(x_8); +x_378 = lean_ctor_get(x_377, 1); +lean_inc(x_378); +lean_dec(x_377); +x_379 = lean_st_ref_take(x_2, x_378); +x_380 = lean_ctor_get(x_379, 0); +lean_inc(x_380); +x_381 = lean_ctor_get(x_379, 1); +lean_inc(x_381); +lean_dec(x_379); +x_382 = l_Lean_Expr_instBEqExpr; +x_383 = l_Lean_Expr_instHashableExpr; +lean_inc(x_376); +x_384 = l_Std_HashMap_insert___rarg(x_382, x_383, x_380, x_1, x_376); +x_385 = lean_st_ref_set(x_2, x_384, x_381); +x_386 = lean_ctor_get(x_385, 1); +lean_inc(x_386); +if (lean_is_exclusive(x_385)) { + lean_ctor_release(x_385, 0); + lean_ctor_release(x_385, 1); + x_387 = x_385; +} else { + lean_dec_ref(x_385); + x_387 = lean_box(0); +} +x_388 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_388, 0, x_376); +if (lean_is_scalar(x_387)) { + x_389 = lean_alloc_ctor(0, 2, 0); +} else { + x_389 = x_387; +} +lean_ctor_set(x_389, 0, x_388); +lean_ctor_set(x_389, 1, x_386); +return x_389; +} +} +} +else +{ +uint8_t x_390; +lean_dec(x_8); +lean_dec(x_1); +x_390 = !lean_is_exclusive(x_352); +if (x_390 == 0) +{ +return x_352; +} +else +{ +lean_object* x_391; lean_object* x_392; lean_object* x_393; +x_391 = lean_ctor_get(x_352, 0); +x_392 = lean_ctor_get(x_352, 1); +lean_inc(x_392); +lean_inc(x_391); +lean_dec(x_352); +x_393 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_393, 0, x_391); +lean_ctor_set(x_393, 1, x_392); +return x_393; +} +} +} +case 11: +{ +lean_object* x_394; lean_object* x_395; +lean_dec(x_15); +x_394 = lean_ctor_get(x_1, 2); +lean_inc(x_394); +lean_inc(x_8); +x_395 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_394, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_14); +if (lean_obj_tag(x_395) == 0) +{ +lean_object* x_396; +x_396 = lean_ctor_get(x_395, 0); +lean_inc(x_396); +if (lean_obj_tag(x_396) == 0) +{ +uint8_t x_397; +lean_dec(x_8); +lean_dec(x_1); +x_397 = !lean_is_exclusive(x_395); +if (x_397 == 0) +{ +lean_object* x_398; lean_object* x_399; +x_398 = lean_ctor_get(x_395, 0); +lean_dec(x_398); +x_399 = lean_box(0); +lean_ctor_set(x_395, 0, x_399); +return x_395; +} +else +{ +lean_object* x_400; lean_object* x_401; lean_object* x_402; +x_400 = lean_ctor_get(x_395, 1); +lean_inc(x_400); +lean_dec(x_395); +x_401 = lean_box(0); +x_402 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_402, 0, x_401); +lean_ctor_set(x_402, 1, x_400); +return x_402; +} +} +else +{ +lean_object* x_403; uint8_t x_404; +x_403 = lean_ctor_get(x_395, 1); +lean_inc(x_403); +lean_dec(x_395); +x_404 = !lean_is_exclusive(x_396); +if (x_404 == 0) +{ +lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; uint8_t x_415; +x_405 = lean_ctor_get(x_396, 0); +x_406 = lean_st_ref_get(x_8, x_403); +lean_dec(x_8); +x_407 = lean_ctor_get(x_406, 1); +lean_inc(x_407); +lean_dec(x_406); +x_408 = lean_st_ref_take(x_2, x_407); +x_409 = lean_ctor_get(x_408, 0); +lean_inc(x_409); +x_410 = lean_ctor_get(x_408, 1); +lean_inc(x_410); +lean_dec(x_408); +x_411 = l_Lean_Expr_instBEqExpr; +x_412 = l_Lean_Expr_instHashableExpr; +lean_inc(x_405); +x_413 = l_Std_HashMap_insert___rarg(x_411, x_412, x_409, x_1, x_405); +x_414 = lean_st_ref_set(x_2, x_413, x_410); +x_415 = !lean_is_exclusive(x_414); +if (x_415 == 0) +{ +lean_object* x_416; +x_416 = lean_ctor_get(x_414, 0); +lean_dec(x_416); +lean_ctor_set(x_414, 0, x_396); +return x_414; +} +else +{ +lean_object* x_417; lean_object* x_418; +x_417 = lean_ctor_get(x_414, 1); +lean_inc(x_417); +lean_dec(x_414); +x_418 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_418, 0, x_396); +lean_ctor_set(x_418, 1, x_417); +return x_418; +} +} +else +{ +lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; +x_419 = lean_ctor_get(x_396, 0); +lean_inc(x_419); +lean_dec(x_396); +x_420 = lean_st_ref_get(x_8, x_403); +lean_dec(x_8); +x_421 = lean_ctor_get(x_420, 1); +lean_inc(x_421); +lean_dec(x_420); +x_422 = lean_st_ref_take(x_2, x_421); +x_423 = lean_ctor_get(x_422, 0); +lean_inc(x_423); +x_424 = lean_ctor_get(x_422, 1); +lean_inc(x_424); +lean_dec(x_422); +x_425 = l_Lean_Expr_instBEqExpr; +x_426 = l_Lean_Expr_instHashableExpr; +lean_inc(x_419); +x_427 = l_Std_HashMap_insert___rarg(x_425, x_426, x_423, x_1, x_419); +x_428 = lean_st_ref_set(x_2, x_427, x_424); +x_429 = lean_ctor_get(x_428, 1); +lean_inc(x_429); +if (lean_is_exclusive(x_428)) { + lean_ctor_release(x_428, 0); + lean_ctor_release(x_428, 1); + x_430 = x_428; +} else { + lean_dec_ref(x_428); + x_430 = lean_box(0); +} +x_431 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_431, 0, x_419); +if (lean_is_scalar(x_430)) { + x_432 = lean_alloc_ctor(0, 2, 0); +} else { + x_432 = x_430; +} +lean_ctor_set(x_432, 0, x_431); +lean_ctor_set(x_432, 1, x_429); +return x_432; +} +} +} +else +{ +uint8_t x_433; +lean_dec(x_8); +lean_dec(x_1); +x_433 = !lean_is_exclusive(x_395); +if (x_433 == 0) +{ +return x_395; +} +else +{ +lean_object* x_434; lean_object* x_435; lean_object* x_436; +x_434 = lean_ctor_get(x_395, 0); +x_435 = lean_ctor_get(x_395, 1); +lean_inc(x_435); +lean_inc(x_434); +lean_dec(x_395); +x_436 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_436, 0, x_434); +lean_ctor_set(x_436, 1, x_435); +return x_436; +} +} +} +default: +{ +lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; uint8_t x_447; +lean_dec(x_15); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_437 = lean_st_ref_get(x_8, x_14); +lean_dec(x_8); +x_438 = lean_ctor_get(x_437, 1); +lean_inc(x_438); +lean_dec(x_437); +x_439 = lean_st_ref_take(x_2, x_438); +x_440 = lean_ctor_get(x_439, 0); +lean_inc(x_440); +x_441 = lean_ctor_get(x_439, 1); +lean_inc(x_441); +lean_dec(x_439); +x_442 = l_Lean_Expr_instBEqExpr; +x_443 = l_Lean_Expr_instHashableExpr; +x_444 = lean_box(0); +x_445 = l_Std_HashMap_insert___rarg(x_442, x_443, x_440, x_1, x_444); +x_446 = lean_st_ref_set(x_2, x_445, x_441); +x_447 = !lean_is_exclusive(x_446); +if (x_447 == 0) +{ +lean_object* x_448; lean_object* x_449; +x_448 = lean_ctor_get(x_446, 0); +lean_dec(x_448); +x_449 = l_Lean_Elab_Term_ContainsPendingMVar_visit___closed__1; +lean_ctor_set(x_446, 0, x_449); +return x_446; +} +else +{ +lean_object* x_450; lean_object* x_451; lean_object* x_452; +x_450 = lean_ctor_get(x_446, 1); +lean_inc(x_450); +lean_dec(x_446); +x_451 = l_Lean_Elab_Term_ContainsPendingMVar_visit___closed__1; +x_452 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_452, 0, x_451); +lean_ctor_set(x_452, 1, x_450); +return x_452; +} +} +} +} +else +{ +uint8_t x_453; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_453 = !lean_is_exclusive(x_16); +if (x_453 == 0) +{ +lean_object* x_454; +if (lean_is_scalar(x_15)) { + x_454 = lean_alloc_ctor(0, 2, 0); +} else { + x_454 = x_15; +} +lean_ctor_set(x_454, 0, x_16); +lean_ctor_set(x_454, 1, x_14); +return x_454; +} +else +{ +lean_object* x_455; lean_object* x_456; lean_object* x_457; +x_455 = lean_ctor_get(x_16, 0); +lean_inc(x_455); +lean_dec(x_16); +x_456 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_456, 0, x_455); +if (lean_is_scalar(x_15)) { + x_457 = lean_alloc_ctor(0, 2, 0); +} else { + x_457 = x_15; +} +lean_ctor_set(x_457, 0, x_456); +lean_ctor_set(x_457, 1, x_14); +return x_457; +} +} +} +} +lean_object* l_Lean_Elab_Term_ContainsPendingMVar_visit___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_10; +} +} +lean_object* l_Lean_Elab_Term_containsPendingMVar_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Elab_Term_containsPendingMVar_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_containsPendingMVar_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_containsPendingMVar(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_18 = lean_st_ref_get(x_7, x_8); +x_19 = lean_ctor_get(x_18, 1); +lean_inc(x_19); +lean_dec(x_18); +x_20 = l_Lean_Elab_Term_instInhabitedSavedState___closed__1; +x_21 = lean_st_mk_ref(x_20, x_19); +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +lean_dec(x_21); +lean_inc(x_7); +x_24 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_1, x_22, x_2, x_3, x_4, x_5, x_6, x_7, x_23); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; +lean_dec(x_22); +lean_dec(x_7); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_27 = lean_box(0); +x_9 = x_27; +x_10 = x_26; +goto block_17; +} +else +{ +lean_object* x_28; uint8_t x_29; +x_28 = lean_ctor_get(x_24, 1); +lean_inc(x_28); +lean_dec(x_24); +x_29 = !lean_is_exclusive(x_25); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_30 = lean_ctor_get(x_25, 0); +x_31 = lean_st_ref_get(x_7, x_28); +lean_dec(x_7); +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +lean_dec(x_31); +x_33 = lean_st_ref_get(x_22, x_32); +lean_dec(x_22); +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec(x_33); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_30); +lean_ctor_set(x_36, 1, x_34); +lean_ctor_set(x_25, 0, x_36); +x_9 = x_25; +x_10 = x_35; +goto block_17; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_37 = lean_ctor_get(x_25, 0); +lean_inc(x_37); +lean_dec(x_25); +x_38 = lean_st_ref_get(x_7, x_28); +lean_dec(x_7); +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +lean_dec(x_38); +x_40 = lean_st_ref_get(x_22, x_39); +lean_dec(x_22); +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +lean_dec(x_40); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_37); +lean_ctor_set(x_43, 1, x_41); +x_44 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_44, 0, x_43); +x_9 = x_44; +x_10 = x_42; +goto block_17; +} +} +} +else +{ +uint8_t x_45; +lean_dec(x_22); +lean_dec(x_7); +x_45 = !lean_is_exclusive(x_24); +if (x_45 == 0) +{ +return x_24; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_24, 0); +x_47 = lean_ctor_get(x_24, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_24); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; +} +} +block_17: +{ +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_11; lean_object* x_12; lean_object* x_13; +x_11 = 1; +x_12 = lean_box(x_11); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_10); +return x_13; +} +else +{ +uint8_t x_14; lean_object* x_15; lean_object* x_16; +lean_dec(x_9); +x_14 = 0; +x_15 = lean_box(x_14); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_10); +return x_16; +} +} +} +} +lean_object* l_Lean_Elab_Term_containsPendingMVar___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Elab_Term_containsPendingMVar(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_3); +lean_dec(x_2); +return x_9; +} +} lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -15651,6 +18025,271 @@ return x_25; } } } +static lean_object* _init_l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("synthesized type class instance type is not definitionally equal to expected type, synthesized"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("\nhas type"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("\nexpected"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +lean_dec(x_4); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_1); +x_12 = lean_infer_type(x_1, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_2); +x_15 = lean_infer_type(x_2, x_7, x_8, x_9, x_10, x_14); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_16); +lean_inc(x_13); +x_18 = l_Lean_Meta_isExprDefEq(x_13, x_16, x_7, x_8, x_9, x_10, x_17); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; uint8_t x_20; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_unbox(x_19); +lean_dec(x_19); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; +lean_dec(x_1); +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_dec(x_18); +x_22 = l_Lean_indentExpr(x_2); +x_23 = l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__2; +x_24 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_22); +x_25 = l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__4; +x_26 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +x_27 = l_Lean_indentExpr(x_16); +x_28 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +x_29 = l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__6; +x_30 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +x_31 = l_Lean_indentExpr(x_13); +x_32 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +x_33 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1___closed__4; +x_34 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +x_35 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1(x_34, x_5, x_6, x_7, x_8, x_9, x_10, x_21); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_36 = !lean_is_exclusive(x_35); +if (x_36 == 0) +{ +return x_35; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_35, 0); +x_38 = lean_ctor_get(x_35, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_35); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +return x_39; +} +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +lean_dec(x_16); +lean_dec(x_13); +x_40 = lean_ctor_get(x_18, 1); +lean_inc(x_40); +lean_dec(x_18); +x_41 = lean_box(0); +x_42 = l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__1(x_2, x_1, x_3, x_41, x_5, x_6, x_7, x_8, x_9, x_10, x_40); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_42; +} +} +else +{ +uint8_t x_43; +lean_dec(x_16); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_43 = !lean_is_exclusive(x_18); +if (x_43 == 0) +{ +return x_18; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_18, 0); +x_45 = lean_ctor_get(x_18, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_18); +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_45); +return x_46; +} +} +} +else +{ +uint8_t x_47; +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_47 = !lean_is_exclusive(x_15); +if (x_47 == 0) +{ +return x_15; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_15, 0); +x_49 = lean_ctor_get(x_15, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_15); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +return x_50; +} +} +} +else +{ +uint8_t x_51; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_51 = !lean_is_exclusive(x_12); +if (x_51 == 0) +{ +return x_12; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_12, 0); +x_53 = lean_ctor_get(x_12, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_12); +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; +} +} +} +} static lean_object* _init_l_Lean_Elab_Term_synthesizeInstMVarCore___closed__1() { _start: { @@ -15685,57 +18324,6 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_synthesizeInstMVarCore___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("synthesized type class instance type is not definitionally equal to expected type, synthesized"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Term_synthesizeInstMVarCore___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_synthesizeInstMVarCore___closed__5; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Term_synthesizeInstMVarCore___closed__7() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("\nhas type"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Term_synthesizeInstMVarCore___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_synthesizeInstMVarCore___closed__7; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Term_synthesizeInstMVarCore___closed__9() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("\nexpected"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Term_synthesizeInstMVarCore___closed__10() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_synthesizeInstMVarCore___closed__9; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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: { @@ -15978,132 +18566,60 @@ x_67 = lean_unbox(x_66); lean_dec(x_66); if (x_67 == 0) { -lean_object* x_68; lean_object* x_69; +lean_object* x_68; lean_object* x_69; uint8_t x_70; lean_object* x_71; lean_object* x_78; x_68 = lean_ctor_get(x_65, 1); lean_inc(x_68); -lean_dec(x_65); +if (lean_is_exclusive(x_65)) { + lean_ctor_release(x_65, 0); + lean_ctor_release(x_65, 1); + x_69 = x_65; +} else { + lean_dec_ref(x_65); + x_69 = lean_box(0); +} lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_63); -x_69 = lean_infer_type(x_63, x_5, x_6, x_7, x_8, x_68); -if (lean_obj_tag(x_69) == 0) +x_78 = l_Lean_Elab_Term_containsPendingMVar(x_63, x_3, x_4, x_5, x_6, x_7, x_8, x_68); +if (lean_obj_tag(x_78) == 0) { -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_69, 0); -lean_inc(x_70); -x_71 = lean_ctor_get(x_69, 1); -lean_inc(x_71); -lean_dec(x_69); +lean_object* x_79; uint8_t x_80; +x_79 = lean_ctor_get(x_78, 0); +lean_inc(x_79); +x_80 = lean_unbox(x_79); +if (x_80 == 0) +{ +lean_object* x_81; lean_object* x_82; +lean_dec(x_79); +x_81 = lean_ctor_get(x_78, 1); +lean_inc(x_81); +lean_dec(x_78); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_27); -x_72 = lean_infer_type(x_27, x_5, x_6, x_7, x_8, x_71); -if (lean_obj_tag(x_72) == 0) +x_82 = l_Lean_Elab_Term_containsPendingMVar(x_27, x_3, x_4, x_5, x_6, x_7, x_8, x_81); +if (lean_obj_tag(x_82) == 0) { -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_72, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_72, 1); -lean_inc(x_74); -lean_dec(x_72); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_73); -lean_inc(x_70); -x_75 = l_Lean_Meta_isExprDefEq(x_70, x_73, x_5, x_6, x_7, x_8, x_74); -if (lean_obj_tag(x_75) == 0) -{ -lean_object* x_76; uint8_t x_77; -x_76 = lean_ctor_get(x_75, 0); -lean_inc(x_76); -x_77 = lean_unbox(x_76); -lean_dec(x_76); -if (x_77 == 0) -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; uint8_t x_93; -lean_dec(x_63); -x_78 = lean_ctor_get(x_75, 1); -lean_inc(x_78); -lean_dec(x_75); -x_79 = l_Lean_indentExpr(x_27); -x_80 = l_Lean_Elab_Term_synthesizeInstMVarCore___closed__6; -x_81 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_81, 0, x_80); -lean_ctor_set(x_81, 1, x_79); -x_82 = l_Lean_Elab_Term_synthesizeInstMVarCore___closed__8; -x_83 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_83, 0, x_81); -lean_ctor_set(x_83, 1, x_82); -x_84 = l_Lean_indentExpr(x_73); -x_85 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_85, 0, x_83); -lean_ctor_set(x_85, 1, x_84); -x_86 = l_Lean_Elab_Term_synthesizeInstMVarCore___closed__10; -x_87 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_87, 0, x_85); -lean_ctor_set(x_87, 1, x_86); -x_88 = l_Lean_indentExpr(x_70); -x_89 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_89, 0, x_87); -lean_ctor_set(x_89, 1, x_88); -x_90 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1___closed__4; -x_91 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_90); -x_92 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1(x_91, x_3, x_4, x_5, x_6, x_7, x_8, x_78); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_93 = !lean_is_exclusive(x_92); -if (x_93 == 0) -{ -return x_92; +lean_object* x_83; lean_object* x_84; uint8_t x_85; +x_83 = lean_ctor_get(x_82, 0); +lean_inc(x_83); +x_84 = lean_ctor_get(x_82, 1); +lean_inc(x_84); +lean_dec(x_82); +x_85 = lean_unbox(x_83); +lean_dec(x_83); +x_70 = x_85; +x_71 = x_84; +goto block_77; } else { -lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_94 = lean_ctor_get(x_92, 0); -x_95 = lean_ctor_get(x_92, 1); -lean_inc(x_95); -lean_inc(x_94); -lean_dec(x_92); -x_96 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_96, 0, x_94); -lean_ctor_set(x_96, 1, x_95); -return x_96; -} -} -else -{ -lean_object* x_97; lean_object* x_98; lean_object* x_99; -lean_dec(x_73); -lean_dec(x_70); -x_97 = lean_ctor_get(x_75, 1); -lean_inc(x_97); -lean_dec(x_75); -x_98 = lean_box(0); -x_99 = l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__1(x_27, x_63, x_60, x_98, x_3, x_4, x_5, x_6, x_7, x_8, x_97); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -return x_99; -} -} -else -{ -uint8_t x_100; -lean_dec(x_73); -lean_dec(x_70); +uint8_t x_86; +lean_dec(x_69); lean_dec(x_63); lean_dec(x_27); lean_dec(x_8); @@ -16112,22 +18628,138 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_100 = !lean_is_exclusive(x_75); -if (x_100 == 0) +x_86 = !lean_is_exclusive(x_82); +if (x_86 == 0) { -return x_75; +return x_82; } else { -lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_101 = lean_ctor_get(x_75, 0); -x_102 = lean_ctor_get(x_75, 1); -lean_inc(x_102); -lean_inc(x_101); -lean_dec(x_75); -x_103 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_103, 0, x_101); -lean_ctor_set(x_103, 1, x_102); +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_82, 0); +x_88 = lean_ctor_get(x_82, 1); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_82); +x_89 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set(x_89, 1, x_88); +return x_89; +} +} +} +else +{ +lean_object* x_90; uint8_t x_91; +x_90 = lean_ctor_get(x_78, 1); +lean_inc(x_90); +lean_dec(x_78); +x_91 = lean_unbox(x_79); +lean_dec(x_79); +x_70 = x_91; +x_71 = x_90; +goto block_77; +} +} +else +{ +uint8_t x_92; +lean_dec(x_69); +lean_dec(x_63); +lean_dec(x_27); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_92 = !lean_is_exclusive(x_78); +if (x_92 == 0) +{ +return x_78; +} +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_78, 0); +x_94 = lean_ctor_get(x_78, 1); +lean_inc(x_94); +lean_inc(x_93); +lean_dec(x_78); +x_95 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_95, 0, x_93); +lean_ctor_set(x_95, 1, x_94); +return x_95; +} +} +block_77: +{ +if (x_70 == 0) +{ +lean_object* x_72; lean_object* x_73; +lean_dec(x_69); +x_72 = lean_box(0); +x_73 = l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2(x_63, x_27, x_60, x_72, x_3, x_4, x_5, x_6, x_7, x_8, x_71); +lean_dec(x_4); +return x_73; +} +else +{ +uint8_t x_74; lean_object* x_75; lean_object* x_76; +lean_dec(x_63); +lean_dec(x_27); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_74 = 0; +x_75 = lean_box(x_74); +if (lean_is_scalar(x_69)) { + x_76 = lean_alloc_ctor(0, 2, 0); +} else { + x_76 = x_69; +} +lean_ctor_set(x_76, 0, x_75); +lean_ctor_set(x_76, 1, x_71); +return x_76; +} +} +} +else +{ +uint8_t x_96; +lean_dec(x_63); +lean_dec(x_27); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_96 = !lean_is_exclusive(x_65); +if (x_96 == 0) +{ +lean_object* x_97; uint8_t x_98; lean_object* x_99; +x_97 = lean_ctor_get(x_65, 0); +lean_dec(x_97); +x_98 = 1; +x_99 = lean_box(x_98); +lean_ctor_set(x_65, 0, x_99); +return x_65; +} +else +{ +lean_object* x_100; uint8_t x_101; lean_object* x_102; lean_object* x_103; +x_100 = lean_ctor_get(x_65, 1); +lean_inc(x_100); +lean_dec(x_65); +x_101 = 1; +x_102 = lean_box(x_101); +x_103 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_100); return x_103; } } @@ -16135,7 +18767,6 @@ return x_103; else { uint8_t x_104; -lean_dec(x_70); lean_dec(x_63); lean_dec(x_27); lean_dec(x_8); @@ -16144,19 +18775,19 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_104 = !lean_is_exclusive(x_72); +x_104 = !lean_is_exclusive(x_65); if (x_104 == 0) { -return x_72; +return x_65; } else { lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_105 = lean_ctor_get(x_72, 0); -x_106 = lean_ctor_get(x_72, 1); +x_105 = lean_ctor_get(x_65, 0); +x_106 = lean_ctor_get(x_65, 1); lean_inc(x_106); lean_inc(x_105); -lean_dec(x_72); +lean_dec(x_65); x_107 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_107, 0, x_105); lean_ctor_set(x_107, 1, x_106); @@ -16167,7 +18798,6 @@ return x_107; else { uint8_t x_108; -lean_dec(x_63); lean_dec(x_27); lean_dec(x_8); lean_dec(x_7); @@ -16175,19 +18805,19 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_108 = !lean_is_exclusive(x_69); +x_108 = !lean_is_exclusive(x_62); if (x_108 == 0) { -return x_69; +return x_62; } else { lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_109 = lean_ctor_get(x_69, 0); -x_110 = lean_ctor_get(x_69, 1); +x_109 = lean_ctor_get(x_62, 0); +x_110 = lean_ctor_get(x_62, 1); lean_inc(x_110); lean_inc(x_109); -lean_dec(x_69); +lean_dec(x_62); x_111 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_111, 0, x_109); lean_ctor_set(x_111, 1, x_110); @@ -16195,35 +18825,36 @@ return x_111; } } } -else +} +default: { uint8_t x_112; -lean_dec(x_63); -lean_dec(x_27); +lean_dec(x_15); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_112 = !lean_is_exclusive(x_65); +lean_dec(x_1); +x_112 = !lean_is_exclusive(x_17); if (x_112 == 0) { lean_object* x_113; uint8_t x_114; lean_object* x_115; -x_113 = lean_ctor_get(x_65, 0); +x_113 = lean_ctor_get(x_17, 0); lean_dec(x_113); -x_114 = 1; +x_114 = 0; x_115 = lean_box(x_114); -lean_ctor_set(x_65, 0, x_115); -return x_65; +lean_ctor_set(x_17, 0, x_115); +return x_17; } else { lean_object* x_116; uint8_t x_117; lean_object* x_118; lean_object* x_119; -x_116 = lean_ctor_get(x_65, 1); +x_116 = lean_ctor_get(x_17, 1); lean_inc(x_116); -lean_dec(x_65); -x_117 = 1; +lean_dec(x_17); +x_117 = 0; x_118 = lean_box(x_117); x_119 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_119, 0, x_118); @@ -16232,30 +18863,31 @@ return x_119; } } } +} else { uint8_t x_120; -lean_dec(x_63); -lean_dec(x_27); +lean_dec(x_15); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_120 = !lean_is_exclusive(x_65); +lean_dec(x_1); +x_120 = !lean_is_exclusive(x_17); if (x_120 == 0) { -return x_65; +return x_17; } else { lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_121 = lean_ctor_get(x_65, 0); -x_122 = lean_ctor_get(x_65, 1); +x_121 = lean_ctor_get(x_17, 0); +x_122 = lean_ctor_get(x_17, 1); lean_inc(x_122); lean_inc(x_121); -lean_dec(x_65); +lean_dec(x_17); x_123 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_123, 0, x_121); lean_ctor_set(x_123, 1, x_122); @@ -16266,106 +18898,6 @@ return x_123; else { uint8_t x_124; -lean_dec(x_27); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_124 = !lean_is_exclusive(x_62); -if (x_124 == 0) -{ -return x_62; -} -else -{ -lean_object* x_125; lean_object* x_126; lean_object* x_127; -x_125 = lean_ctor_get(x_62, 0); -x_126 = lean_ctor_get(x_62, 1); -lean_inc(x_126); -lean_inc(x_125); -lean_dec(x_62); -x_127 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_127, 0, x_125); -lean_ctor_set(x_127, 1, x_126); -return x_127; -} -} -} -} -default: -{ -uint8_t x_128; -lean_dec(x_15); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_128 = !lean_is_exclusive(x_17); -if (x_128 == 0) -{ -lean_object* x_129; uint8_t x_130; lean_object* x_131; -x_129 = lean_ctor_get(x_17, 0); -lean_dec(x_129); -x_130 = 0; -x_131 = lean_box(x_130); -lean_ctor_set(x_17, 0, x_131); -return x_17; -} -else -{ -lean_object* x_132; uint8_t x_133; lean_object* x_134; lean_object* x_135; -x_132 = lean_ctor_get(x_17, 1); -lean_inc(x_132); -lean_dec(x_17); -x_133 = 0; -x_134 = lean_box(x_133); -x_135 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_135, 0, x_134); -lean_ctor_set(x_135, 1, x_132); -return x_135; -} -} -} -} -else -{ -uint8_t x_136; -lean_dec(x_15); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_136 = !lean_is_exclusive(x_17); -if (x_136 == 0) -{ -return x_17; -} -else -{ -lean_object* x_137; lean_object* x_138; lean_object* x_139; -x_137 = lean_ctor_get(x_17, 0); -x_138 = lean_ctor_get(x_17, 1); -lean_inc(x_138); -lean_inc(x_137); -lean_dec(x_17); -x_139 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_139, 0, x_137); -lean_ctor_set(x_139, 1, x_138); -return x_139; -} -} -} -else -{ -uint8_t x_140; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -16374,23 +18906,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_140 = !lean_is_exclusive(x_14); -if (x_140 == 0) +x_124 = !lean_is_exclusive(x_14); +if (x_124 == 0) { return x_14; } else { -lean_object* x_141; lean_object* x_142; lean_object* x_143; -x_141 = lean_ctor_get(x_14, 0); -x_142 = lean_ctor_get(x_14, 1); -lean_inc(x_142); -lean_inc(x_141); +lean_object* x_125; lean_object* x_126; lean_object* x_127; +x_125 = lean_ctor_get(x_14, 0); +x_126 = lean_ctor_get(x_14, 1); +lean_inc(x_126); +lean_inc(x_125); lean_dec(x_14); -x_143 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_143, 0, x_141); -lean_ctor_set(x_143, 1, x_142); -return x_143; +x_127 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_127, 0, x_125); +lean_ctor_set(x_127, 1, x_126); +return x_127; } } } @@ -16423,7 +18955,17 @@ lean_dec(x_3); return x_12; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4030____closed__1() { +lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_6); +lean_dec(x_3); +return x_12; +} +} +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4532____closed__1() { _start: { lean_object* x_1; @@ -16431,17 +18973,17 @@ x_1 = lean_mk_string("autoLift"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4030____closed__2() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4532____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4030____closed__1; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4532____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4030____closed__3() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4532____closed__3() { _start: { lean_object* x_1; @@ -16449,13 +18991,13 @@ x_1 = lean_mk_string("insert monadic lifts (i.e., `liftM` and `liftCoeM`) when n return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4030____closed__4() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4532____closed__4() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = 1; x_2 = l_Lean_Elab_Term_mkTermElabAttribute___closed__1; -x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4030____closed__3; +x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4532____closed__3; x_4 = lean_box(x_1); x_5 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_5, 0, x_4); @@ -16464,12 +19006,12 @@ lean_ctor_set(x_5, 2, x_3); return x_5; } } -lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4030_(lean_object* x_1) { +lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4532_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4030____closed__2; -x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4030____closed__4; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4532____closed__2; +x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4532____closed__4; x_4 = l_Lean_Option_register___at_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_4____spec__1(x_2, x_3, x_1); return x_4; } @@ -16487,7 +19029,7 @@ lean_ctor_set(x_4, 1, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4050____closed__1() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4552____closed__1() { _start: { lean_object* x_1; @@ -16495,17 +19037,17 @@ x_1 = lean_mk_string("maxCoeSize"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4050____closed__2() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4552____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4050____closed__1; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4552____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4050____closed__3() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4552____closed__3() { _start: { lean_object* x_1; @@ -16513,13 +19055,13 @@ x_1 = lean_mk_string("maximum number of instances used to construct an automatic return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4050____closed__4() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4552____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = lean_unsigned_to_nat(16u); x_2 = l_Lean_Elab_Term_mkTermElabAttribute___closed__1; -x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4050____closed__3; +x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4552____closed__3; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -16527,12 +19069,12 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4050_(lean_object* x_1) { +lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4552_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4050____closed__2; -x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4050____closed__4; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4552____closed__2; +x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4552____closed__4; x_4 = l_Lean_Option_register___at_Lean_initFn____x40_Lean_Util_RecDepth___hyg_4____spec__1(x_2, x_3, x_1); return x_4; } @@ -37255,7 +39797,7 @@ lean_dec(x_3); return x_10; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_9597____closed__1() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_10099____closed__1() { _start: { lean_object* x_1; @@ -37263,21 +39805,21 @@ x_1 = lean_mk_string("letrec"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_9597____closed__2() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_10099____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Term_MVarErrorInfo_logError___closed__12; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_9597____closed__1; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_10099____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_9597_(lean_object* x_1) { +lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_10099_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_9597____closed__2; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_10099____closed__2; x_3 = l_Lean_registerTraceClass(x_2, x_1); return x_3; } @@ -37568,7 +40110,7 @@ lean_object* l_Lean_Elab_Term_isLetRecAuxMVar(lean_object* x_1, lean_object* x_2 _start: { lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; -x_9 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_9597____closed__2; +x_9 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_10099____closed__2; x_37 = lean_st_ref_get(x_7, x_8); x_38 = lean_ctor_get(x_37, 0); lean_inc(x_38); @@ -47962,7 +50504,7 @@ lean_dec(x_3); return x_11; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12021____closed__1() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12523____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -47972,7 +50514,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12021____closed__2() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12523____closed__2() { _start: { lean_object* x_1; @@ -47980,17 +50522,17 @@ x_1 = lean_mk_string("debug"); return x_1; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12021____closed__3() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12523____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Term_MVarErrorInfo_logError___closed__12; -x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12021____closed__2; +x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12523____closed__2; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12021_(lean_object* x_1) { +lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12523_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -48002,7 +50544,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; x_4 = lean_ctor_get(x_3, 1); lean_inc(x_4); lean_dec(x_3); -x_5 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12021____closed__1; +x_5 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12523____closed__1; x_6 = l_Lean_registerTraceClass(x_5, x_4); if (lean_obj_tag(x_6) == 0) { @@ -48010,7 +50552,7 @@ lean_object* x_7; lean_object* x_8; lean_object* x_9; x_7 = lean_ctor_get(x_6, 1); lean_inc(x_7); lean_dec(x_6); -x_8 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12021____closed__3; +x_8 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12523____closed__3; x_9 = l_Lean_registerTraceClass(x_8, x_7); return x_9; } @@ -48565,6 +51107,8 @@ l_Lean_Elab_Term_mkTypeMismatchError___closed__5 = _init_l_Lean_Elab_Term_mkType lean_mark_persistent(l_Lean_Elab_Term_mkTypeMismatchError___closed__5); l_Lean_Elab_Term_mkTypeMismatchError___closed__6 = _init_l_Lean_Elab_Term_mkTypeMismatchError___closed__6(); lean_mark_persistent(l_Lean_Elab_Term_mkTypeMismatchError___closed__6); +l_Lean_Elab_Term_ContainsPendingMVar_visit___closed__1 = _init_l_Lean_Elab_Term_ContainsPendingMVar_visit___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_ContainsPendingMVar_visit___closed__1); l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__1___closed__1 = _init_l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__1___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__1___closed__1); l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__1___closed__2 = _init_l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__1___closed__2(); @@ -48573,6 +51117,18 @@ l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__1___closed__3 = _init_l_Lean_E lean_mark_persistent(l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__1___closed__3); l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__1___closed__4 = _init_l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__1___closed__4(); lean_mark_persistent(l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__1___closed__4); +l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__1 = _init_l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__1); +l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__2 = _init_l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__2); +l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__3 = _init_l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__3(); +lean_mark_persistent(l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__3); +l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__4 = _init_l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__4(); +lean_mark_persistent(l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__4); +l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__5 = _init_l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__5(); +lean_mark_persistent(l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__5); +l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__6 = _init_l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__6(); +lean_mark_persistent(l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__6); l_Lean_Elab_Term_synthesizeInstMVarCore___closed__1 = _init_l_Lean_Elab_Term_synthesizeInstMVarCore___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_synthesizeInstMVarCore___closed__1); l_Lean_Elab_Term_synthesizeInstMVarCore___closed__2 = _init_l_Lean_Elab_Term_synthesizeInstMVarCore___closed__2(); @@ -48581,44 +51137,32 @@ l_Lean_Elab_Term_synthesizeInstMVarCore___closed__3 = _init_l_Lean_Elab_Term_syn lean_mark_persistent(l_Lean_Elab_Term_synthesizeInstMVarCore___closed__3); l_Lean_Elab_Term_synthesizeInstMVarCore___closed__4 = _init_l_Lean_Elab_Term_synthesizeInstMVarCore___closed__4(); lean_mark_persistent(l_Lean_Elab_Term_synthesizeInstMVarCore___closed__4); -l_Lean_Elab_Term_synthesizeInstMVarCore___closed__5 = _init_l_Lean_Elab_Term_synthesizeInstMVarCore___closed__5(); -lean_mark_persistent(l_Lean_Elab_Term_synthesizeInstMVarCore___closed__5); -l_Lean_Elab_Term_synthesizeInstMVarCore___closed__6 = _init_l_Lean_Elab_Term_synthesizeInstMVarCore___closed__6(); -lean_mark_persistent(l_Lean_Elab_Term_synthesizeInstMVarCore___closed__6); -l_Lean_Elab_Term_synthesizeInstMVarCore___closed__7 = _init_l_Lean_Elab_Term_synthesizeInstMVarCore___closed__7(); -lean_mark_persistent(l_Lean_Elab_Term_synthesizeInstMVarCore___closed__7); -l_Lean_Elab_Term_synthesizeInstMVarCore___closed__8 = _init_l_Lean_Elab_Term_synthesizeInstMVarCore___closed__8(); -lean_mark_persistent(l_Lean_Elab_Term_synthesizeInstMVarCore___closed__8); -l_Lean_Elab_Term_synthesizeInstMVarCore___closed__9 = _init_l_Lean_Elab_Term_synthesizeInstMVarCore___closed__9(); -lean_mark_persistent(l_Lean_Elab_Term_synthesizeInstMVarCore___closed__9); -l_Lean_Elab_Term_synthesizeInstMVarCore___closed__10 = _init_l_Lean_Elab_Term_synthesizeInstMVarCore___closed__10(); -lean_mark_persistent(l_Lean_Elab_Term_synthesizeInstMVarCore___closed__10); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4030____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4030____closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4030____closed__1); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4030____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4030____closed__2(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4030____closed__2); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4030____closed__3 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4030____closed__3(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4030____closed__3); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4030____closed__4 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4030____closed__4(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4030____closed__4); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4532____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4532____closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4532____closed__1); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4532____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4532____closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4532____closed__2); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4532____closed__3 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4532____closed__3(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4532____closed__3); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4532____closed__4 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4532____closed__4(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4532____closed__4); l_Lean_Elab_Term_autoLift___closed__1 = _init_l_Lean_Elab_Term_autoLift___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_autoLift___closed__1); -res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4030_(lean_io_mk_world()); +res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4532_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_Elab_Term_autoLift = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Elab_Term_autoLift); lean_dec_ref(res); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4050____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4050____closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4050____closed__1); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4050____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4050____closed__2(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4050____closed__2); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4050____closed__3 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4050____closed__3(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4050____closed__3); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4050____closed__4 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4050____closed__4(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4050____closed__4); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4552____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4552____closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4552____closed__1); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4552____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4552____closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4552____closed__2); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4552____closed__3 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4552____closed__3(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4552____closed__3); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4552____closed__4 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4552____closed__4(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4552____closed__4); l_Lean_Elab_Term_maxCoeSize___closed__1 = _init_l_Lean_Elab_Term_maxCoeSize___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_maxCoeSize___closed__1); -res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4050_(lean_io_mk_world()); +res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4552_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_Elab_Term_maxCoeSize = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Elab_Term_maxCoeSize); @@ -48843,11 +51387,11 @@ l_Lean_Elab_Term_mkAuxName___closed__1 = _init_l_Lean_Elab_Term_mkAuxName___clos lean_mark_persistent(l_Lean_Elab_Term_mkAuxName___closed__1); l_Lean_Elab_Term_mkAuxName___closed__2 = _init_l_Lean_Elab_Term_mkAuxName___closed__2(); lean_mark_persistent(l_Lean_Elab_Term_mkAuxName___closed__2); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_9597____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_9597____closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_9597____closed__1); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_9597____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_9597____closed__2(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_9597____closed__2); -res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_9597_(lean_io_mk_world()); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_10099____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_10099____closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_10099____closed__1); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_10099____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_10099____closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_10099____closed__2); +res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_10099_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_Elab_Term_isLetRecAuxMVar___lambda__2___closed__1 = _init_l_Lean_Elab_Term_isLetRecAuxMVar___lambda__2___closed__1(); @@ -48966,13 +51510,13 @@ l___private_Lean_Elab_Term_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___closed_ lean_mark_persistent(l___private_Lean_Elab_Term_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___closed__3); l___private_Lean_Elab_Term_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___closed__4 = _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___closed__4(); lean_mark_persistent(l___private_Lean_Elab_Term_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___closed__4); -l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12021____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12021____closed__1(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12021____closed__1); -l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12021____closed__2 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12021____closed__2(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12021____closed__2); -l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12021____closed__3 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12021____closed__3(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12021____closed__3); -res = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12021_(lean_io_mk_world()); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12523____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12523____closed__1(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12523____closed__1); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12523____closed__2 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12523____closed__2(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12523____closed__2); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12523____closed__3 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12523____closed__3(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12523____closed__3); +res = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12523_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Meta/Reduce.c b/stage0/stdlib/Lean/Meta/Reduce.c index 935bf452a2..bd8478ac12 100644 --- a/stage0/stdlib/Lean/Meta/Reduce.c +++ b/stage0/stdlib/Lean/Meta/Reduce.c @@ -44,11 +44,12 @@ lean_object* l_Std_HashMap_insert___rarg(lean_object*, lean_object*, lean_object lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Lean_Core_withIncRecDepth___at_Lean_Meta_reduce_visit___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkProj(lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Meta_reduce_visit___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); -lean_object* l_Lean_Meta_reduce_visit_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_reduce_visit_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Meta_reduce_visit___spec__1(lean_object*, lean_object*); @@ -95,70 +96,93 @@ lean_object* l_Lean_Meta_isType(lean_object*, lean_object*, lean_object*, lean_o uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_Std_mkHashMap___at_Lean_Meta_reduce___spec__1___boxed(lean_object*); lean_object* l_Lean_Core_withIncRecDepth___at_Lean_Meta_reduce_visit___spec__8___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_reduce_visit_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Meta_reduce_visit_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { switch (lean_obj_tag(x_1)) { case 5: { -lean_object* x_6; lean_object* x_7; uint64_t x_8; lean_object* x_9; lean_object* x_10; +lean_object* x_7; lean_object* x_8; uint64_t x_9; lean_object* x_10; lean_object* x_11; +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_6 = lean_ctor_get(x_1, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_1, 1); +x_7 = lean_ctor_get(x_1, 0); lean_inc(x_7); -x_8 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +x_8 = lean_ctor_get(x_1, 1); +lean_inc(x_8); +x_9 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); lean_dec(x_1); -x_9 = lean_box_uint64(x_8); -x_10 = lean_apply_3(x_2, x_6, x_7, x_9); -return x_10; +x_10 = lean_box_uint64(x_9); +x_11 = lean_apply_3(x_2, x_7, x_8, x_10); +return x_11; } case 6: { -lean_object* x_11; lean_object* x_12; lean_object* x_13; uint64_t x_14; lean_object* x_15; lean_object* x_16; +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint64_t x_15; lean_object* x_16; lean_object* x_17; +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_11 = lean_ctor_get(x_1, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_1, 1); +x_12 = lean_ctor_get(x_1, 0); lean_inc(x_12); -x_13 = lean_ctor_get(x_1, 2); +x_13 = lean_ctor_get(x_1, 1); lean_inc(x_13); -x_14 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_14 = lean_ctor_get(x_1, 2); +lean_inc(x_14); +x_15 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); lean_dec(x_1); -x_15 = lean_box_uint64(x_14); -x_16 = lean_apply_4(x_3, x_11, x_12, x_13, x_15); -return x_16; +x_16 = lean_box_uint64(x_15); +x_17 = lean_apply_4(x_3, x_12, x_13, x_14, x_16); +return x_17; } case 7: { -lean_object* x_17; lean_object* x_18; lean_object* x_19; uint64_t x_20; lean_object* x_21; lean_object* x_22; +lean_object* x_18; lean_object* x_19; lean_object* x_20; uint64_t x_21; lean_object* x_22; lean_object* x_23; +lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_17 = lean_ctor_get(x_1, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_1, 1); +x_18 = lean_ctor_get(x_1, 0); lean_inc(x_18); -x_19 = lean_ctor_get(x_1, 2); +x_19 = lean_ctor_get(x_1, 1); lean_inc(x_19); -x_20 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_20 = lean_ctor_get(x_1, 2); +lean_inc(x_20); +x_21 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); lean_dec(x_1); -x_21 = lean_box_uint64(x_20); -x_22 = lean_apply_4(x_4, x_17, x_18, x_19, x_21); -return x_22; +x_22 = lean_box_uint64(x_21); +x_23 = lean_apply_4(x_4, x_18, x_19, x_20, x_22); +return x_23; } -default: +case 11: { -lean_object* x_23; +lean_object* x_24; lean_object* x_25; lean_object* x_26; uint64_t x_27; lean_object* x_28; lean_object* x_29; +lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_23 = lean_apply_1(x_5, x_1); -return x_23; +x_24 = lean_ctor_get(x_1, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_1, 1); +lean_inc(x_25); +x_26 = lean_ctor_get(x_1, 2); +lean_inc(x_26); +x_27 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +lean_dec(x_1); +x_28 = lean_box_uint64(x_27); +x_29 = lean_apply_4(x_5, x_24, x_25, x_26, x_28); +return x_29; +} +default: +{ +lean_object* x_30; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_30 = lean_apply_1(x_6, x_1); +return x_30; } } } @@ -167,7 +191,7 @@ lean_object* l_Lean_Meta_reduce_visit_match__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_reduce_visit_match__1___rarg), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_reduce_visit_match__1___rarg), 6, 0); return x_2; } } @@ -1082,61 +1106,61 @@ if (x_4 == 0) { x_12 = x_4; x_13 = x_11; -goto block_67; +goto block_83; } else { -lean_object* x_68; +lean_object* x_84; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_1); -x_68 = l_Lean_Meta_isProof(x_1, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_68) == 0) +x_84 = l_Lean_Meta_isProof(x_1, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_84) == 0) { -lean_object* x_69; lean_object* x_70; uint8_t x_71; -x_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_68, 1); -lean_inc(x_70); -lean_dec(x_68); -x_71 = lean_unbox(x_69); -lean_dec(x_69); -x_12 = x_71; -x_13 = x_70; -goto block_67; +lean_object* x_85; lean_object* x_86; uint8_t 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); +x_87 = lean_unbox(x_85); +lean_dec(x_85); +x_12 = x_87; +x_13 = x_86; +goto block_83; } else { -uint8_t x_72; +uint8_t x_88; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_72 = !lean_is_exclusive(x_68); -if (x_72 == 0) +x_88 = !lean_is_exclusive(x_84); +if (x_88 == 0) { -return x_68; +return x_84; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_68, 0); -x_74 = lean_ctor_get(x_68, 1); -lean_inc(x_74); -lean_inc(x_73); -lean_dec(x_68); -x_75 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_75, 0, x_73); -lean_ctor_set(x_75, 1, x_74); -return x_75; +lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_89 = lean_ctor_get(x_84, 0); +x_90 = lean_ctor_get(x_84, 1); +lean_inc(x_90); +lean_inc(x_89); +lean_dec(x_84); +x_91 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_91, 0, x_89); +lean_ctor_set(x_91, 1, x_90); +return x_91; } } } -block_67: +block_83: { if (x_12 == 0) { @@ -1306,91 +1330,157 @@ lean_closure_set(x_56, 2, x_55); x_57 = l_Lean_Meta_forallTelescope___at_Lean_Meta_reduce_visit___spec__7___rarg(x_15, x_56, x_6, x_7, x_8, x_9, x_10, x_52); return x_57; } +case 11: +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_58 = lean_ctor_get(x_14, 1); +lean_inc(x_58); +lean_dec(x_14); +x_59 = lean_ctor_get(x_15, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_15, 1); +lean_inc(x_60); +x_61 = lean_ctor_get(x_15, 2); +lean_inc(x_61); +lean_dec(x_15); +x_62 = l_Lean_Meta_reduce_visit(x_2, x_3, x_4, x_61, x_6, x_7, x_8, x_9, x_10, x_58); +if (lean_obj_tag(x_62) == 0) +{ +uint8_t x_63; +x_63 = !lean_is_exclusive(x_62); +if (x_63 == 0) +{ +lean_object* x_64; lean_object* x_65; +x_64 = lean_ctor_get(x_62, 0); +x_65 = l_Lean_mkProj(x_59, x_60, x_64); +lean_ctor_set(x_62, 0, x_65); +return x_62; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_66 = lean_ctor_get(x_62, 0); +x_67 = lean_ctor_get(x_62, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_62); +x_68 = l_Lean_mkProj(x_59, x_60, x_66); +x_69 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set(x_69, 1, x_67); +return x_69; +} +} +else +{ +uint8_t x_70; +lean_dec(x_60); +lean_dec(x_59); +x_70 = !lean_is_exclusive(x_62); +if (x_70 == 0) +{ +return x_62; +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_62, 0); +x_72 = lean_ctor_get(x_62, 1); +lean_inc(x_72); +lean_inc(x_71); +lean_dec(x_62); +x_73 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_73, 0, x_71); +lean_ctor_set(x_73, 1, x_72); +return x_73; +} +} +} default: { -uint8_t x_58; +uint8_t x_74; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_58 = !lean_is_exclusive(x_14); -if (x_58 == 0) +x_74 = !lean_is_exclusive(x_14); +if (x_74 == 0) { -lean_object* x_59; -x_59 = lean_ctor_get(x_14, 0); -lean_dec(x_59); +lean_object* x_75; +x_75 = lean_ctor_get(x_14, 0); +lean_dec(x_75); return x_14; } else { -lean_object* x_60; lean_object* x_61; -x_60 = lean_ctor_get(x_14, 1); -lean_inc(x_60); +lean_object* x_76; lean_object* x_77; +x_76 = lean_ctor_get(x_14, 1); +lean_inc(x_76); lean_dec(x_14); -x_61 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_61, 0, x_15); -lean_ctor_set(x_61, 1, x_60); -return x_61; +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_15); +lean_ctor_set(x_77, 1, x_76); +return x_77; } } } } else { -uint8_t x_62; +uint8_t x_78; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_62 = !lean_is_exclusive(x_14); -if (x_62 == 0) +x_78 = !lean_is_exclusive(x_14); +if (x_78 == 0) { return x_14; } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_63 = lean_ctor_get(x_14, 0); -x_64 = lean_ctor_get(x_14, 1); -lean_inc(x_64); -lean_inc(x_63); +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_14, 0); +x_80 = lean_ctor_get(x_14, 1); +lean_inc(x_80); +lean_inc(x_79); lean_dec(x_14); -x_65 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_65, 0, x_63); -lean_ctor_set(x_65, 1, x_64); -return x_65; +x_81 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_81, 0, x_79); +lean_ctor_set(x_81, 1, x_80); +return x_81; } } } else { -lean_object* x_66; +lean_object* x_82; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_66 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_66, 0, x_1); -lean_ctor_set(x_66, 1, x_13); -return x_66; +x_82 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_82, 0, x_1); +lean_ctor_set(x_82, 1, x_13); +return x_82; } } } else { -lean_object* x_76; +lean_object* x_92; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_76 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_76, 0, x_1); -lean_ctor_set(x_76, 1, x_11); -return x_76; +x_92 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_92, 0, x_1); +lean_ctor_set(x_92, 1, x_11); +return x_92; } } } diff --git a/stage0/stdlib/Lean/Util/MonadCache.c b/stage0/stdlib/Lean/Util/MonadCache.c index c573a9c1e6..3be73ccb28 100644 --- a/stage0/stdlib/Lean/Util/MonadCache.c +++ b/stage0/stdlib/Lean/Util/MonadCache.c @@ -26,6 +26,7 @@ lean_object* l_Lean_MonadCacheT_instMonadMonadCacheT___boxed(lean_object*, lean_ lean_object* l_Lean_MonadCacheT_instMonadControlMonadCacheT___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MonadCacheT_run___rarg___lambda__4(lean_object*, lean_object*); lean_object* l_ReaderT_tryFinally___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadCacheT_instAlternativeMonadCacheT(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MonadStateCacheT_instMonadMonadStateCacheT(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_modify___at_Lean_MonadCacheT_instMonadHashMapCacheAdapterMonadCacheT___spec__1___rarg___lambda__1(lean_object*, lean_object*); lean_object* l_Lean_MonadCacheT_run(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -55,10 +56,12 @@ lean_object* l_Lean_checkCache_match__1(lean_object*, lean_object*); lean_object* l_StateRefT_x27_lift(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_modify___at_Lean_MonadStateCacheT_instMonadHashMapCacheAdapterMonadStateCacheT___spec__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_find_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadCacheT_instAlternativeMonadCacheT___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MonadHashMapCacheAdapter_findCached_x3f(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_checkCache___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MonadStateCacheT_instMonadControlMonadStateCacheT(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MonadStateCacheT_instMonadFinallyMonadStateCacheT___rarg(lean_object*, lean_object*); +lean_object* l_Lean_MonadCacheT_instAlternativeMonadCacheT___rarg(lean_object*, lean_object*); lean_object* l_Lean_MonadStateCacheT_instMonadMonadStateCacheT___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_StateT_get___rarg(lean_object*, lean_object*); lean_object* l_ST_Prim_Ref_get___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -131,6 +134,7 @@ lean_object* l_Lean_MonadCacheT_instMonadControlMonadCacheT(lean_object*, lean_o lean_object* l_Lean_instMonadCacheExceptT___rarg(lean_object*, lean_object*); lean_object* l_Lean_MonadCacheT_instMonadFinallyMonadCacheT(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_instMonadRef___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_ReaderT_instAlternativeReaderT___rarg(lean_object*, lean_object*); lean_object* l_Lean_MonadStateCacheT_instMonadControlMonadStateCacheT___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_checkCache_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: @@ -948,6 +952,33 @@ lean_dec(x_5); return x_8; } } +lean_object* l_Lean_MonadCacheT_instAlternativeMonadCacheT___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_ReaderT_instAlternativeReaderT___rarg(x_2, x_1); +return x_3; +} +} +lean_object* l_Lean_MonadCacheT_instAlternativeMonadCacheT(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = lean_alloc_closure((void*)(l_Lean_MonadCacheT_instAlternativeMonadCacheT___rarg), 2, 0); +return x_8; +} +} +lean_object* l_Lean_MonadCacheT_instAlternativeMonadCacheT___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_MonadCacheT_instAlternativeMonadCacheT(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_8; +} +} lean_object* l_modify___at_Lean_MonadStateCacheT_instMonadHashMapCacheAdapterMonadStateCacheT___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: {