diff --git a/stage0/src/Init/Lean.lean b/stage0/src/Init/Lean.lean index e037c7c29a..c8fc6010e6 100644 --- a/stage0/src/Init/Lean.lean +++ b/stage0/src/Init/Lean.lean @@ -21,3 +21,4 @@ import Init.Lean.AuxRecursor import Init.Lean.Linter import Init.Lean.Meta import Init.Lean.Eval +import Init.Lean.Structure diff --git a/stage0/src/Init/Lean/Compiler/ExternAttr.lean b/stage0/src/Init/Lean/Compiler/ExternAttr.lean index c43e769783..015c4ba0dd 100644 --- a/stage0/src/Init/Lean/Compiler/ExternAttr.lean +++ b/stage0/src/Init/Lean/Compiler/ExternAttr.lean @@ -45,14 +45,14 @@ private partial def syntaxToExternEntries (a : Array Syntax) : Nat → List Exte | Syntax.ident _ _ backend _ => let i := i + 1; if i == a.size then Except.error "string or identifier expected" - else match (a.get! i).isIdOrAtom with + else match (a.get! i).isIdOrAtom? with | some "adhoc" => syntaxToExternEntries (i+1) (ExternEntry.adhoc backend :: entries) | some "inline" => let i := i + 1; - match (a.get! i).isStrLit with + match (a.get! i).isStrLit? with | some pattern => syntaxToExternEntries (i+1) (ExternEntry.inline backend pattern :: entries) | none => Except.error "string literal expected" - | _ => match (a.get! i).isStrLit with + | _ => match (a.get! i).isStrLit? with | some fn => syntaxToExternEntries (i+1) (ExternEntry.standard backend fn :: entries) | none => Except.error "string literal expected" | _ => Except.error "identifier expected" @@ -63,10 +63,10 @@ match s with | Syntax.node _ args => if args.size == 0 then Except.error "unexpected kind of argument" else - let (arity, i) : Option Nat × Nat := match (args.get! 0).isNatLit with + let (arity, i) : Option Nat × Nat := match (args.get! 0).isNatLit? with | some arity => (some arity, 1) | none => (none, 0); - match (args.get! i).isStrLit with + match (args.get! i).isStrLit? with | some str => if args.size == i+1 then Except.ok { arity := arity, entries := [ ExternEntry.standard `all str ] } diff --git a/stage0/src/Init/Lean/Data/Name.lean b/stage0/src/Init/Lean/Data/Name.lean index ee69ead9cb..16a91eda37 100644 --- a/stage0/src/Init/Lean/Data/Name.lean +++ b/stage0/src/Init/Lean/Data/Name.lean @@ -151,6 +151,11 @@ def appendIndexAfter : Name → Nat → Name | str p s _, idx => mkNameStr p (s ++ "_" ++ toString idx) | n, idx => mkNameStr n ("_" ++ toString idx) +def appendBefore : Name → String → Name +| anonymous, pre => mkNameStr anonymous pre +| str p s _, pre => mkNameStr p (pre ++ s) +| num p n _, pre => mkNameNum (mkNameStr p pre) n + /- The frontend does not allow user declarations to start with `_` in any of its parts. We use name parts starting with `_` internally to create auxiliary names (e.g., `_private`). -/ def isInternal : Name → Bool diff --git a/stage0/src/Init/Lean/Declaration.lean b/stage0/src/Init/Lean/Declaration.lean index e702c5993d..2e2e33c851 100644 --- a/stage0/src/Init/Lean/Declaration.lean +++ b/stage0/src/Init/Lean/Declaration.lean @@ -53,6 +53,8 @@ end ReducibilityHints structure ConstantVal := (name : Name) (lparams : List Name) (type : Expr) +instance ConstantVal.inhabited : Inhabited ConstantVal := ⟨{ name := arbitrary _, lparams := arbitrary _, type := arbitrary _ }⟩ + structure AxiomVal extends ConstantVal := (isUnsafe : Bool) @@ -112,6 +114,9 @@ structure ConstructorVal extends ConstantVal := (nfields : Nat) -- Number of fields (i.e., arity - nparams) (isUnsafe : Bool) +instance ConstructorVal.inhabited : Inhabited ConstructorVal := +⟨{ toConstantVal := arbitrary _, induct := arbitrary _, cidx := 0, nparams := 0, nfields := 0, isUnsafe := true }⟩ + /-- Information for reducing a recursor -/ structure RecursorRule := (ctor : Name) -- Reduction rule for this Constructor diff --git a/stage0/src/Init/Lean/Elab/Quotation.lean b/stage0/src/Init/Lean/Elab/Quotation.lean index 23303c7ccf..2c654b675c 100644 --- a/stage0/src/Init/Lean/Elab/Quotation.lean +++ b/stage0/src/Init/Lean/Elab/Quotation.lean @@ -88,8 +88,8 @@ private partial def toPreterm (env : Environment) : Syntax → Except String Exp arg ← toPreterm $ args.get! 1; pure $ mkApp fn arg | `Lean.Parser.Term.paren => toPreterm $ (args.get! 1).getArg 0 - | `strLit => pure $ mkStrLit $ stx.isStrLit.getD "" - | `numLit => pure $ mkNatLit $ stx.isNatLit.getD 0 + | `strLit => pure $ mkStrLit $ stx.isStrLit?.getD "" + | `numLit => pure $ mkNatLit $ stx.isNatLit?.getD 0 | k => panic! "stxQuot: unimplemented kind " ++ toString k @[export lean_parse_stx_quot] diff --git a/stage0/src/Init/Lean/Elab/Term.lean b/stage0/src/Init/Lean/Elab/Term.lean index 4fda896970..48ec72e51a 100644 --- a/stage0/src/Init/Lean/Elab/Term.lean +++ b/stage0/src/Init/Lean/Elab/Term.lean @@ -45,8 +45,18 @@ abbrev TermElab := SyntaxNode → Option Expr → TermElabM Expr abbrev TermElabResult := EStateM.Result Exception State Expr +instance TermElabM.inhabited {α} : Inhabited (TermElabM α) := +⟨throw $ Exception.other ""⟩ + instance TermElabResult.inhabited : Inhabited TermElabResult := ⟨EStateM.Result.ok (arbitrary _) (arbitrary _)⟩ +inductive Projection +| num (fieldIdx : Nat) +| str (fieldName : String) + +instance Projection.hasToString : HasToString Projection := +⟨fun p => match p with | Projection.num n => toString n | Projection.str s => s⟩ + /-- Execute `x`, save resulting expression and new state. If `x` fails, then it also stores exception and new state. -/ @@ -141,6 +151,8 @@ def isDefEq (t s : Expr) : TermElabM Bool := liftMetaM $ Meta.isDefEq t s def inferType (e : Expr) : TermElabM Expr := liftMetaM $ Meta.inferType e def whnf (e : Expr) : TermElabM Expr := liftMetaM $ Meta.whnf e def whnfForall (e : Expr) : TermElabM Expr := liftMetaM $ Meta.whnfForall e +def whnfCore (e : Expr) : TermElabM Expr := liftMetaM $ Meta.whnfCore e +def unfoldDefinition (e : Expr) : TermElabM (Option Expr) := liftMetaM $ Meta.unfoldDefinition e def instantiateMVars (e : Expr) : TermElabM Expr := liftMetaM $ Meta.instantiateMVars e def isClass (t : Expr) : TermElabM (Option Name) := liftMetaM $ Meta.isClass t def mkFreshLevelMVar : TermElabM Level := liftMetaM $ Meta.mkFreshLevelMVar @@ -555,19 +567,34 @@ let argIdx := 0; let instMVars := #[]; elabAppArgsAux ref args expectedType? explicit argIdx namedArgs instMVars fType f -private def elabAppProjs (ref : Syntax) (f : Expr) (projs : List String) (namedArgs : Array NamedArg) (args : Array Syntax) - (expectedType? : Option Expr) (explicit : Bool) : TermElabM Expr := --- TODO -elabAppArgs ref f namedArgs args expectedType? explicit +private def elabAppProjsAux (ref : Syntax) (namedArgs : Array NamedArg) (args : Array Syntax) (expectedType? : Option Expr) (explicit : Bool) + : Expr → List Projection → TermElabM Expr +| f, [] => elabAppArgs ref f namedArgs args expectedType? explicit +| f, proj::projs => do + fType ← inferType f; + -- TODO + elabAppArgs ref f namedArgs args expectedType? explicit -private partial def elabAppFn (ref : Syntax) : Syntax → Array NamedArg → Array Syntax → Option Expr → Bool → Array TermElabResult → TermElabM (Array TermElabResult) -| f, namedArgs, args, expectedType?, explicit, acc => +private def elabAppProjs (ref : Syntax) (f : Expr) (projs : List Projection) (namedArgs : Array NamedArg) (args : Array Syntax) + (expectedType? : Option Expr) (explicit : Bool) : TermElabM Expr := do +when (!projs.isEmpty && explicit) $ logErrorAndThrow ref "invalid use of projection notation with `@` modifier"; +elabAppProjsAux ref namedArgs args expectedType? explicit f projs + +private partial def elabAppFn (ref : Syntax) : Syntax → List Projection → Array NamedArg → Array Syntax → Option Expr → Bool → Array TermElabResult → TermElabM (Array TermElabResult) +| f, projs, namedArgs, args, expectedType?, explicit, acc => let k := f.getKind; if k == `Lean.Parser.Term.explicit then -- `f` is of the form `@ id` - elabAppFn (f.getArg 1) namedArgs args expectedType? true acc + elabAppFn (f.getArg 1) projs namedArgs args expectedType? true acc else if k == choiceKind then - f.getArgs.foldlM (fun acc f => elabAppFn f namedArgs args expectedType? explicit acc) acc + f.getArgs.foldlM (fun acc f => elabAppFn f projs namedArgs args expectedType? explicit acc) acc + else if k == `Lean.Parser.Term.proj then + -- term `.` (fieldIdx <|> ident) + let field := f.getArg 2; + match field.isFieldIdx?, field with + | some idx, _ => elabAppFn (f.getArg 0) (Projection.num idx :: projs) namedArgs args expectedType? true acc + | _, Syntax.ident _ val _ _ => elabAppFn (f.getArg 0) (Projection.str val.toString :: projs) namedArgs args expectedType? true acc + | _, _ => logErrorAndThrow field "unexpected kind of field access" else if k == `Lean.Parser.Term.id then -- ident (explicitUniv | namedPattern)? match f.getArg 0 with @@ -575,14 +602,15 @@ private partial def elabAppFn (ref : Syntax) : Syntax → Array NamedArg → Arr us ← elabExplicitUniv (f.getArg 1); -- `namedPattern` should already have been expanded fprojs ← resolveName n preresolved us f; fprojs.foldlM - (fun acc ⟨f, projs⟩ => do - s ← observing $ elabAppProjs ref f projs namedArgs args expectedType? explicit; + (fun acc ⟨f, projs'⟩ => do + let projs' := projs'.map Projection.str; + s ← observing $ elabAppProjs ref f (projs' ++ projs) namedArgs args expectedType? explicit; pure $ acc.push s) acc | _ => unreachable! else do f ← withoutPostponing $ elabTerm f none; - s ← observing $ elabAppArgs ref f namedArgs args expectedType? explicit; + s ← observing $ elabAppProjs ref f projs namedArgs args expectedType? explicit; pure $ acc.push s private def getSuccess (candidates : Array TermElabResult) : Array TermElabResult := @@ -624,7 +652,7 @@ private def elabAppAux (ref : Syntax) (f : Syntax) (namedArgs : Array NamedArg) Another (more expensive) option is: execute, and if successes > 1, `mayPostpone == true`, and `expectedType? == some ?m` where `?m` is not assigned, then we postpone `elabAppAux`. It is more expensive because we would have to re-elaborate the whole thing after we assign `?m`. We **can't** continue from `TermElabResult` since they contain a snapshot of the state, and state has changed. -/ -candidates ← elabAppFn ref f namedArgs args expectedType? false #[]; +candidates ← elabAppFn ref f [] namedArgs args expectedType? false #[]; if candidates.size == 1 then applyResult $ candidates.get! 0 else @@ -671,6 +699,7 @@ fun stx expectedType? => do @[builtinTermElab «id»] def elabId : TermElab := elabApp @[builtinTermElab explicit] def elabExplicit : TermElab := elabApp @[builtinTermElab choice] def elabChoice : TermElab := elabApp +@[builtinTermElab proj] def elabProj : TermElab := elabApp end Term diff --git a/stage0/src/Init/Lean/Meta/Basic.lean b/stage0/src/Init/Lean/Meta/Basic.lean index c7910109bd..5af0b083fb 100644 --- a/stage0/src/Init/Lean/Meta/Basic.lean +++ b/stage0/src/Init/Lean/Meta/Basic.lean @@ -508,19 +508,22 @@ resettingSynthInstanceCache $ (reducing? : Bool) (maxFVars? : Option Nat) (k : Array Expr → Expr → MetaM α) : LocalContext → Array Expr → Nat → Expr → MetaM α -| lctx, fvars, j, Expr.forallE n d b c => do - let d := d.instantiateRevRange j fvars.size fvars; - fvarId ← mkFreshId; - let lctx := lctx.mkLocalDecl fvarId n d c.binderInfo; - let fvar := mkFVar fvarId; - let fvars := fvars.push fvar; +| lctx, fvars, j, type@(Expr.forallE n d b c) => do + let process : Unit → MetaM α := fun _ => do { + let d := d.instantiateRevRange j fvars.size fvars; + fvarId ← mkFreshId; + let lctx := lctx.mkLocalDecl fvarId n d c.binderInfo; + let fvar := mkFVar fvarId; + let fvars := fvars.push fvar; + forallTelescopeReducingAuxAux lctx fvars j b + }; match maxFVars? with - | none => forallTelescopeReducingAuxAux lctx fvars j b + | none => process () | some maxFVars => if fvars.size < maxFVars then - forallTelescopeReducingAuxAux lctx fvars j b + process () else - let type := b.instantiateRevRange j fvars.size fvars; + let type := type.instantiateRevRange j fvars.size fvars; adaptReader (fun (ctx : Context) => { lctx := lctx, .. ctx }) $ withNewLocalInstances isClassExpensive fvars j $ k fvars type @@ -616,18 +619,21 @@ lambdaTelescopeAux k lctx #[] 0 e private partial def forallMetaTelescopeReducingAux (reducing? : Bool) (maxMVars? : Option Nat) : Array Expr → Array BinderInfo → Nat → Expr → MetaM (Array Expr × Array BinderInfo × Expr) -| mvars, bis, j, Expr.forallE n d b c => do - let d := d.instantiateRevRange j mvars.size mvars; - mvar ← mkFreshExprMVar d; - let mvars := mvars.push mvar; - let bis := bis.push c.binderInfo; +| mvars, bis, j, type@(Expr.forallE n d b c) => do + let process : Unit → MetaM (Array Expr × Array BinderInfo × Expr) := fun _ => do { + let d := d.instantiateRevRange j mvars.size mvars; + mvar ← mkFreshExprMVar d; + let mvars := mvars.push mvar; + let bis := bis.push c.binderInfo; + forallMetaTelescopeReducingAux mvars bis j b + }; match maxMVars? with - | none => forallMetaTelescopeReducingAux mvars bis j b + | none => process () | some maxMVars => if mvars.size < maxMVars then - forallMetaTelescopeReducingAux mvars bis j b + process () else - let type := b.instantiateRevRange j mvars.size mvars; + let type := type.instantiateRevRange j mvars.size mvars; pure (mvars, bis, type) | mvars, bis, j, type => let type := type.instantiateRevRange j mvars.size mvars; @@ -651,22 +657,28 @@ forallMetaTelescopeReducingAux true maxMVars? #[] #[] 0 e /-- Similar to `forallMetaTelescopeReducingAux` but for lambda expressions. -/ private partial def lambdaMetaTelescopeAux (maxMVars? : Option Nat) : Array Expr → Array BinderInfo → Nat → Expr → MetaM (Array Expr × Array BinderInfo × Expr) -| mvars, bis, j, Expr.lam n d b c => do - let d := d.instantiateRevRange j mvars.size mvars; - mvar ← mkFreshExprMVar d; - let mvars := mvars.push mvar; - let bis := bis.push c.binderInfo; +| mvars, bis, j, type => do + let finalize : Unit → MetaM (Array Expr × Array BinderInfo × Expr) := fun _ => do { + let type := type.instantiateRevRange j mvars.size mvars; + pure (mvars, bis, type) + }; + let process : Unit → MetaM (Array Expr × Array BinderInfo × Expr) := fun _ => do { + match type with + | Expr.lam n d b c => do + let d := d.instantiateRevRange j mvars.size mvars; + mvar ← mkFreshExprMVar d; + let mvars := mvars.push mvar; + let bis := bis.push c.binderInfo; + lambdaMetaTelescopeAux mvars bis j b + | _ => finalize () + }; match maxMVars? with - | none => lambdaMetaTelescopeAux mvars bis j b + | none => process () | some maxMVars => if mvars.size < maxMVars then - lambdaMetaTelescopeAux mvars bis j b + process () else - let type := b.instantiateRevRange j mvars.size mvars; - pure (mvars, bis, type) -| mvars, bis, j, type => - let type := type.instantiateRevRange j mvars.size mvars; - pure (mvars, bis, type) + finalize () /-- Similar to `forallMetaTelescope` but for lambda expressions. -/ def lambdaMetaTelescope (e : Expr) (maxMVars? : Option Nat := none) : MetaM (Array Expr × Array BinderInfo × Expr) := diff --git a/stage0/src/Init/Lean/Meta/DiscrTree.lean b/stage0/src/Init/Lean/Meta/DiscrTree.lean index 8e66cbebc3..b7a30df40c 100644 --- a/stage0/src/Init/Lean/Meta/DiscrTree.lean +++ b/stage0/src/Init/Lean/Meta/DiscrTree.lean @@ -252,9 +252,28 @@ match e.getAppFn with | Expr.fvar fvarId _ => let nargs := e.getAppNumArgs; pure (Key.fvar fvarId nargs, e.getAppRevArgs) | Expr.mvar mvarId _ => if isMatch? then pure (Key.other, #[]) - else condM (isReadOnlyOrSyntheticExprMVar mvarId) - (pure (Key.other, #[])) - (pure (Key.star, #[])) + else do + ctx ← read; + if ctx.config.isDefEqStuckEx then + /- + When the configuration flag `isDefEqStuckEx` is set to true, + we want `isDefEq` to throw an exception whenever it tries to assign + a read-only metavariable. + This feature is useful for type class resolution where + we may want to notify the caller that the TC problem may be solveable + later after it assigns `?m`. + The method `DiscrTree.getUnify e` returns candidates `c` that may "unify" with `e`. + That is, `isDefEq c e` may return true. Now, consider `DiscrTree.getUnify d (HasAdd ?m)` + where `?m` is a read-only metavariable, and the discrimination tree contains the keys + `HadAdd Nat` and `HasAdd Int`. If `isDefEqStuckEx` is set to true, we must treat `?m` as + a regular metavariable here, otherwise we return the empty set of candidates. + This is incorrect because it is equivalent to saying that there is no solution even if + the caller assigns `?m` and try again. -/ + pure (Key.star, #[]) + else + condM (isReadOnlyOrSyntheticExprMVar mvarId) + (pure (Key.other, #[])) + (pure (Key.star, #[])) | _ => pure (Key.other, #[]) private abbrev getMatchKeyArgs (e : Expr) : MetaM (Key × Array Expr) := diff --git a/stage0/src/Init/Lean/Structure.lean b/stage0/src/Init/Lean/Structure.lean new file mode 100644 index 0000000000..2f4dbb0041 --- /dev/null +++ b/stage0/src/Init/Lean/Structure.lean @@ -0,0 +1,124 @@ +/- +Copyright (c) 2019 Microsoft Corporation. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Leonardo de Moura + +Helper functions for retrieving structure information. +-/ +prelude +import Init.Lean.Environment +import Init.Lean.ProjFns + +namespace Lean + +/-- + Return true iff `constName` is the a non-recursive inductive + datatype that has only one constructor. -/ +def isStructureLike (env : Environment) (constName : Name) : Bool := +match env.find constName with +| some (ConstantInfo.inductInfo { isRec := false, ctors := [ctor], .. }) => true +| _ => false + +/-- We mark subobject fields by prefixing them with "_" in the structure's intro rule. -/ +def mkInternalSubobjectFieldName (fieldName : Name) : Name := +fieldName.appendBefore "_" + +def isInternalSubobjectFieldName : Name → Bool +| Name.str _ s _ => s.length > 0 && s.get 0 == '_' +| _ => false + +def deinternalizeFieldName : Name → Name +| n@(Name.str p s _) => if s.length > 0 && s.get 0 == '_' then mkNameStr p (s.drop 1) else n +| n => n + +def getStructureCtor (env : Environment) (constName : Name) : ConstructorVal := +match env.find constName with +| some (ConstantInfo.inductInfo { nparams := nparams, isRec := false, ctors := [ctorName], .. }) => + match env.find ctorName with + | some (ConstantInfo.ctorInfo val) => val + | _ => panic! "ill-formed environment" +| _ => panic! "structure expected" + +private def getStructureFieldsAux (nparams : Nat) : Nat → Expr → Array Name → Array Name +| i, Expr.forallE n d b _, fieldNames => + if i < nparams then + getStructureFieldsAux (i+1) b fieldNames + else + getStructureFieldsAux (i+1) b (fieldNames.push $ deinternalizeFieldName n) +| _, _, fieldNames => fieldNames + +def getStructureFields (env : Environment) (structName : Name) : Array Name := +let ctor := getStructureCtor env structName; +getStructureFieldsAux ctor.nparams 0 ctor.type #[] + +private def isSubobjectFieldAux (nparams : Nat) (target : Name) : Nat → Expr → Option Name +| i, Expr.forallE n d b _ => + if i < nparams then + isSubobjectFieldAux (i+1) b + else if n == target then + match d.getAppFn with + | Expr.const parentStructName _ _ => some parentStructName + | _ => panic! "ill-formed structure" + else + isSubobjectFieldAux (i+1) b +| _, _ => none + +/-- If `fieldName` represents the relation to a parent structure `S`, return `S` -/ +def isSubobjectField? (env : Environment) (structName : Name) (fieldName : Name) : Option Name := +let ctor := getStructureCtor env structName; +isSubobjectFieldAux ctor.nparams (mkInternalSubobjectFieldName fieldName) 0 ctor.type + +/-- Return immediate parent structures -/ +def getParentStructures (env : Environment) (structName : Name) : Array Name := +let fieldNames := getStructureFields env structName; +fieldNames.foldl + (fun (acc : Array Name) fieldName => + match isSubobjectField? env structName fieldName with + | some parentStructName => acc.push parentStructName + | none => acc) + #[] + +/-- `findField? env S fname`. If `fname` is defined in a parent `S'` of `S`, return `S'` -/ +partial def findField? (env : Environment) : Name → Name → Option Name +| structName, fieldName => + if (getStructureFields env structName).contains fieldName then + some structName + else + (getParentStructures env structName).find? $ fun parentStructName => findField? parentStructName fieldName + +private partial def getStructureFieldsFlattenedAux (env : Environment) : Name → Array Name → Array Name +| structName, fullNames => + (getStructureFields env structName).foldl + (fun (fullNames : Array Name) (fieldName : Name) => + let fullNames := fullNames.push fieldName; + match isSubobjectField? env structName fieldName with + | some parentStructName => getStructureFieldsFlattenedAux parentStructName fullNames + | none => fullNames) + fullNames + +def getStructureFieldsFlattened (env : Environment) (structName : Name) : Array Name := +getStructureFieldsFlattenedAux env structName #[] + +private def hasProjFn (env : Environment) (structName : Name) (nparams : Nat) : Nat → Expr → Bool +| i, Expr.forallE n d b _ => + if i < nparams then + hasProjFn (i+1) b + else + let fullFieldName := structName ++ deinternalizeFieldName n; + env.isProjectionFn fullFieldName +| _, _ => false + +/-- + Return true if `constName` is the name of an inductive datatype + created using the `structure` or `class` commands. + + We perform the check by testing whether auxiliary projection functions + have been created. -/ +def isStructure (env : Environment) (constName : Name) : Bool := +if isStructureLike env constName then + let ctor := getStructureCtor env constName; + hasProjFn env constName ctor.nparams 0 ctor.type +else + false + +end Lean diff --git a/stage0/src/Init/Lean/Syntax.lean b/stage0/src/Init/Lean/Syntax.lean index c432f864a4..1ae888346b 100644 --- a/stage0/src/Init/Lean/Syntax.lean +++ b/stage0/src/Init/Lean/Syntax.lean @@ -364,7 +364,7 @@ mkStxNumLit (toString val) namespace Syntax -def isStrLit : Syntax → Option String +def isStrLit? : Syntax → Option String | Syntax.node k args => if k == strLitKind && args.size == 1 then match args.get! 0 with @@ -443,19 +443,19 @@ def isNatLitAux (nodeKind : SyntaxNodeKind) : Syntax → Option Nat none | _ => none -def isNatLit (s : Syntax) : Option Nat := +def isNatLit? (s : Syntax) : Option Nat := isNatLitAux numLitKind s -def isFieldIdx (s : Syntax) : Option Nat := +def isFieldIdx? (s : Syntax) : Option Nat := isNatLitAux fieldIdxKind s -def isIdOrAtom : Syntax → Option String +def isIdOrAtom? : Syntax → Option String | Syntax.atom _ val => some val | Syntax.ident _ rawVal _ _ => some rawVal.toString | _ => none def toNat (stx : Syntax) : Nat := -match stx.isNatLit with +match stx.isNatLit? with | some val => val | none => 0 diff --git a/stage0/src/frontends/lean/structure_cmd.cpp b/stage0/src/frontends/lean/structure_cmd.cpp index 656cbb8585..feb8725dc3 100644 --- a/stage0/src/frontends/lean/structure_cmd.cpp +++ b/stage0/src/frontends/lean/structure_cmd.cpp @@ -136,20 +136,6 @@ buffer get_parent_structures(environment const & env, name const & S_name) return parents; } -name_set get_ancestor_structures(environment const & env, name const & S_name) { - name_set ns; - std::function go = [&](name const & n) { - for (auto const & p : get_parent_structures(env, n)) { - if (!ns.contains(p)) { - ns.insert(p); - go(p); - } - } - }; - go(S_name); - return ns; -} - optional find_field(environment const & env, name const & S_name, name const & fname) { for (auto const & n : get_structure_fields(env, S_name)) if (n == fname) diff --git a/stage0/src/library/constructions/projection.cpp b/stage0/src/library/constructions/projection.cpp index 0e3cf7b5c9..dd5f6ed021 100644 --- a/stage0/src/library/constructions/projection.cpp +++ b/stage0/src/library/constructions/projection.cpp @@ -71,7 +71,7 @@ environment mk_projections(environment const & env, name const & n, buffer } expr C_A = mk_app(mk_constant(n, lvls), params); binder_info c_bi = inst_implicit ? mk_inst_implicit_binder_info() : mk_binder_info(); - expr c = lctx.mk_local_decl(ngen, name("c"), C_A, c_bi); + expr c = lctx.mk_local_decl(ngen, name("self"), C_A, c_bi); buffer cnstr_type_args; // arguments that are not parameters expr it = cnstr_type; while (is_pi(it)) { diff --git a/stage0/stdlib/CMakeLists.txt b/stage0/stdlib/CMakeLists.txt index 4bbdd5491f..897bcdaf27 100644 --- a/stage0/stdlib/CMakeLists.txt +++ b/stage0/stdlib/CMakeLists.txt @@ -1 +1 @@ -add_library (stage0 OBJECT Init/./Coe.c Init/./Control.c Init/./Control/Alternative.c Init/./Control/Applicative.c Init/./Control/Conditional.c Init/./Control/EState.c Init/./Control/Except.c Init/./Control/Functor.c Init/./Control/Id.c Init/./Control/Lift.c Init/./Control/Monad.c Init/./Control/MonadFail.c Init/./Control/Option.c Init/./Control/Reader.c Init/./Control/State.c Init/./Core.c Init/./Data.c Init/./Data/Array.c Init/./Data/Array/Basic.c Init/./Data/Array/BinSearch.c Init/./Data/Array/QSort.c Init/./Data/AssocList.c Init/./Data/Basic.c Init/./Data/BinomialHeap.c Init/./Data/BinomialHeap/Basic.c Init/./Data/ByteArray.c Init/./Data/ByteArray/Basic.c Init/./Data/Char.c Init/./Data/Char/Basic.c Init/./Data/DList.c Init/./Data/Fin.c Init/./Data/Fin/Basic.c Init/./Data/HashMap.c Init/./Data/HashMap/Basic.c Init/./Data/HashSet.c Init/./Data/Hashable.c Init/./Data/Int.c Init/./Data/Int/Basic.c Init/./Data/List.c Init/./Data/List/Basic.c Init/./Data/List/BasicAux.c Init/./Data/List/Control.c Init/./Data/List/Instances.c Init/./Data/Nat.c Init/./Data/Nat/Basic.c Init/./Data/Nat/Bitwise.c Init/./Data/Nat/Control.c Init/./Data/Nat/Div.c Init/./Data/Option.c Init/./Data/Option/Basic.c Init/./Data/Option/BasicAux.c Init/./Data/Option/Instances.c Init/./Data/PersistentArray.c Init/./Data/PersistentArray/Basic.c Init/./Data/PersistentHashMap.c Init/./Data/PersistentHashMap/Basic.c Init/./Data/PersistentHashSet.c Init/./Data/Queue.c Init/./Data/Queue/Basic.c Init/./Data/RBMap.c Init/./Data/RBMap/Basic.c Init/./Data/RBMap/BasicAux.c Init/./Data/RBTree.c Init/./Data/RBTree/Basic.c Init/./Data/Random.c Init/./Data/Repr.c Init/./Data/Stack.c Init/./Data/Stack/Basic.c Init/./Data/String.c Init/./Data/String/Basic.c Init/./Data/ToString.c Init/./Data/UInt.c Init/./Default.c Init/./Fix.c Init/./Lean.c Init/./Lean/Attributes.c Init/./Lean/AuxRecursor.c Init/./Lean/Class.c Init/./Lean/Compiler.c Init/./Lean/Compiler/ClosedTermCache.c Init/./Lean/Compiler/ConstFolding.c Init/./Lean/Compiler/ExportAttr.c Init/./Lean/Compiler/ExternAttr.c Init/./Lean/Compiler/IR.c Init/./Lean/Compiler/IR/Basic.c Init/./Lean/Compiler/IR/Borrow.c Init/./Lean/Compiler/IR/Boxing.c Init/./Lean/Compiler/IR/Checker.c Init/./Lean/Compiler/IR/CompilerM.c Init/./Lean/Compiler/IR/CtorLayout.c Init/./Lean/Compiler/IR/ElimDeadBranches.c Init/./Lean/Compiler/IR/ElimDeadVars.c Init/./Lean/Compiler/IR/EmitC.c Init/./Lean/Compiler/IR/EmitUtil.c Init/./Lean/Compiler/IR/ExpandResetReuse.c Init/./Lean/Compiler/IR/Format.c Init/./Lean/Compiler/IR/FreeVars.c Init/./Lean/Compiler/IR/LiveVars.c Init/./Lean/Compiler/IR/NormIds.c Init/./Lean/Compiler/IR/PushProj.c Init/./Lean/Compiler/IR/RC.c Init/./Lean/Compiler/IR/ResetReuse.c Init/./Lean/Compiler/IR/SimpCase.c Init/./Lean/Compiler/IR/UnboxResult.c Init/./Lean/Compiler/ImplementedByAttr.c Init/./Lean/Compiler/InitAttr.c Init/./Lean/Compiler/InlineAttrs.c Init/./Lean/Compiler/NameMangling.c Init/./Lean/Compiler/NeverExtractAttr.c Init/./Lean/Compiler/Specialize.c Init/./Lean/Compiler/Util.c Init/./Lean/Data/Format.c Init/./Lean/Data/KVMap.c Init/./Lean/Data/LBool.c Init/./Lean/Data/LOption.c Init/./Lean/Data/Name.c Init/./Lean/Data/NameGenerator.c Init/./Lean/Data/Options.c Init/./Lean/Data/Position.c Init/./Lean/Data/SMap.c Init/./Lean/Data/Trie.c Init/./Lean/Declaration.c Init/./Lean/Elab.c Init/./Lean/Elab/Alias.c Init/./Lean/Elab/BuiltinNotation.c Init/./Lean/Elab/Command.c Init/./Lean/Elab/ElabStrategyAttrs.c Init/./Lean/Elab/Exception.c Init/./Lean/Elab/Frontend.c Init/./Lean/Elab/Import.c Init/./Lean/Elab/Log.c Init/./Lean/Elab/Quotation.c Init/./Lean/Elab/ResolveName.c Init/./Lean/Elab/Term.c Init/./Lean/Elab/Util.c Init/./Lean/Environment.c Init/./Lean/EqnCompiler.c Init/./Lean/EqnCompiler/MatchPattern.c Init/./Lean/Eval.c Init/./Lean/Expr.c Init/./Lean/Level.c Init/./Lean/Linter.c Init/./Lean/LocalContext.c Init/./Lean/Meta.c Init/./Lean/Meta/AbstractMVars.c Init/./Lean/Meta/AppBuilder.c Init/./Lean/Meta/Basic.c Init/./Lean/Meta/Check.c Init/./Lean/Meta/DiscrTree.c Init/./Lean/Meta/DiscrTreeTypes.c Init/./Lean/Meta/Exception.c Init/./Lean/Meta/ExprDefEq.c Init/./Lean/Meta/FunInfo.c Init/./Lean/Meta/InferType.c Init/./Lean/Meta/Instances.c Init/./Lean/Meta/LevelDefEq.c Init/./Lean/Meta/Message.c Init/./Lean/Meta/Offset.c Init/./Lean/Meta/Reduce.c Init/./Lean/Meta/SynthInstance.c Init/./Lean/Meta/Tactic.c Init/./Lean/Meta/Tactic/Assumption.c Init/./Lean/Meta/Tactic/Intro.c Init/./Lean/Meta/Tactic/Util.c Init/./Lean/Meta/WHNF.c Init/./Lean/MetavarContext.c Init/./Lean/Modifiers.c Init/./Lean/Parser.c Init/./Lean/Parser/Command.c Init/./Lean/Parser/Identifier.c Init/./Lean/Parser/Level.c Init/./Lean/Parser/Module.c Init/./Lean/Parser/Parser.c Init/./Lean/Parser/Term.c Init/./Lean/Parser/Transform.c Init/./Lean/ProjFns.c Init/./Lean/ReducibilityAttrs.c Init/./Lean/Runtime.c Init/./Lean/Scopes.c Init/./Lean/Syntax.c Init/./Lean/ToExpr.c Init/./Lean/Util/Message.c Init/./Lean/Util/MonadCache.c Init/./Lean/Util/Path.c Init/./Lean/Util/Profile.c Init/./Lean/Util/Trace.c Init/./Lean/Util/WHNF.c Init/./System.c Init/./System/FilePath.c Init/./System/IO.c Init/./System/Platform.c Init/./Util.c Init/./WF.c) +add_library (stage0 OBJECT Init/./Coe.c Init/./Control.c Init/./Control/Alternative.c Init/./Control/Applicative.c Init/./Control/Conditional.c Init/./Control/EState.c Init/./Control/Except.c Init/./Control/Functor.c Init/./Control/Id.c Init/./Control/Lift.c Init/./Control/Monad.c Init/./Control/MonadFail.c Init/./Control/Option.c Init/./Control/Reader.c Init/./Control/State.c Init/./Core.c Init/./Data.c Init/./Data/Array.c Init/./Data/Array/Basic.c Init/./Data/Array/BinSearch.c Init/./Data/Array/QSort.c Init/./Data/AssocList.c Init/./Data/Basic.c Init/./Data/BinomialHeap.c Init/./Data/BinomialHeap/Basic.c Init/./Data/ByteArray.c Init/./Data/ByteArray/Basic.c Init/./Data/Char.c Init/./Data/Char/Basic.c Init/./Data/DList.c Init/./Data/Fin.c Init/./Data/Fin/Basic.c Init/./Data/HashMap.c Init/./Data/HashMap/Basic.c Init/./Data/HashSet.c Init/./Data/Hashable.c Init/./Data/Int.c Init/./Data/Int/Basic.c Init/./Data/List.c Init/./Data/List/Basic.c Init/./Data/List/BasicAux.c Init/./Data/List/Control.c Init/./Data/List/Instances.c Init/./Data/Nat.c Init/./Data/Nat/Basic.c Init/./Data/Nat/Bitwise.c Init/./Data/Nat/Control.c Init/./Data/Nat/Div.c Init/./Data/Option.c Init/./Data/Option/Basic.c Init/./Data/Option/BasicAux.c Init/./Data/Option/Instances.c Init/./Data/PersistentArray.c Init/./Data/PersistentArray/Basic.c Init/./Data/PersistentHashMap.c Init/./Data/PersistentHashMap/Basic.c Init/./Data/PersistentHashSet.c Init/./Data/Queue.c Init/./Data/Queue/Basic.c Init/./Data/RBMap.c Init/./Data/RBMap/Basic.c Init/./Data/RBMap/BasicAux.c Init/./Data/RBTree.c Init/./Data/RBTree/Basic.c Init/./Data/Random.c Init/./Data/Repr.c Init/./Data/Stack.c Init/./Data/Stack/Basic.c Init/./Data/String.c Init/./Data/String/Basic.c Init/./Data/ToString.c Init/./Data/UInt.c Init/./Default.c Init/./Fix.c Init/./Lean.c Init/./Lean/Attributes.c Init/./Lean/AuxRecursor.c Init/./Lean/Class.c Init/./Lean/Compiler.c Init/./Lean/Compiler/ClosedTermCache.c Init/./Lean/Compiler/ConstFolding.c Init/./Lean/Compiler/ExportAttr.c Init/./Lean/Compiler/ExternAttr.c Init/./Lean/Compiler/IR.c Init/./Lean/Compiler/IR/Basic.c Init/./Lean/Compiler/IR/Borrow.c Init/./Lean/Compiler/IR/Boxing.c Init/./Lean/Compiler/IR/Checker.c Init/./Lean/Compiler/IR/CompilerM.c Init/./Lean/Compiler/IR/CtorLayout.c Init/./Lean/Compiler/IR/ElimDeadBranches.c Init/./Lean/Compiler/IR/ElimDeadVars.c Init/./Lean/Compiler/IR/EmitC.c Init/./Lean/Compiler/IR/EmitUtil.c Init/./Lean/Compiler/IR/ExpandResetReuse.c Init/./Lean/Compiler/IR/Format.c Init/./Lean/Compiler/IR/FreeVars.c Init/./Lean/Compiler/IR/LiveVars.c Init/./Lean/Compiler/IR/NormIds.c Init/./Lean/Compiler/IR/PushProj.c Init/./Lean/Compiler/IR/RC.c Init/./Lean/Compiler/IR/ResetReuse.c Init/./Lean/Compiler/IR/SimpCase.c Init/./Lean/Compiler/IR/UnboxResult.c Init/./Lean/Compiler/ImplementedByAttr.c Init/./Lean/Compiler/InitAttr.c Init/./Lean/Compiler/InlineAttrs.c Init/./Lean/Compiler/NameMangling.c Init/./Lean/Compiler/NeverExtractAttr.c Init/./Lean/Compiler/Specialize.c Init/./Lean/Compiler/Util.c Init/./Lean/Data/Format.c Init/./Lean/Data/KVMap.c Init/./Lean/Data/LBool.c Init/./Lean/Data/LOption.c Init/./Lean/Data/Name.c Init/./Lean/Data/NameGenerator.c Init/./Lean/Data/Options.c Init/./Lean/Data/Position.c Init/./Lean/Data/SMap.c Init/./Lean/Data/Trie.c Init/./Lean/Declaration.c Init/./Lean/Elab.c Init/./Lean/Elab/Alias.c Init/./Lean/Elab/BuiltinNotation.c Init/./Lean/Elab/Command.c Init/./Lean/Elab/ElabStrategyAttrs.c Init/./Lean/Elab/Exception.c Init/./Lean/Elab/Frontend.c Init/./Lean/Elab/Import.c Init/./Lean/Elab/Log.c Init/./Lean/Elab/Quotation.c Init/./Lean/Elab/ResolveName.c Init/./Lean/Elab/Term.c Init/./Lean/Elab/Util.c Init/./Lean/Environment.c Init/./Lean/EqnCompiler.c Init/./Lean/EqnCompiler/MatchPattern.c Init/./Lean/Eval.c Init/./Lean/Expr.c Init/./Lean/Level.c Init/./Lean/Linter.c Init/./Lean/LocalContext.c Init/./Lean/Meta.c Init/./Lean/Meta/AbstractMVars.c Init/./Lean/Meta/AppBuilder.c Init/./Lean/Meta/Basic.c Init/./Lean/Meta/Check.c Init/./Lean/Meta/DiscrTree.c Init/./Lean/Meta/DiscrTreeTypes.c Init/./Lean/Meta/Exception.c Init/./Lean/Meta/ExprDefEq.c Init/./Lean/Meta/FunInfo.c Init/./Lean/Meta/InferType.c Init/./Lean/Meta/Instances.c Init/./Lean/Meta/LevelDefEq.c Init/./Lean/Meta/Message.c Init/./Lean/Meta/Offset.c Init/./Lean/Meta/Reduce.c Init/./Lean/Meta/SynthInstance.c Init/./Lean/Meta/Tactic.c Init/./Lean/Meta/Tactic/Assumption.c Init/./Lean/Meta/Tactic/Intro.c Init/./Lean/Meta/Tactic/Util.c Init/./Lean/Meta/WHNF.c Init/./Lean/MetavarContext.c Init/./Lean/Modifiers.c Init/./Lean/Parser.c Init/./Lean/Parser/Command.c Init/./Lean/Parser/Identifier.c Init/./Lean/Parser/Level.c Init/./Lean/Parser/Module.c Init/./Lean/Parser/Parser.c Init/./Lean/Parser/Term.c Init/./Lean/Parser/Transform.c Init/./Lean/ProjFns.c Init/./Lean/ReducibilityAttrs.c Init/./Lean/Runtime.c Init/./Lean/Scopes.c Init/./Lean/Structure.c Init/./Lean/Syntax.c Init/./Lean/ToExpr.c Init/./Lean/Util/Message.c Init/./Lean/Util/MonadCache.c Init/./Lean/Util/Path.c Init/./Lean/Util/Profile.c Init/./Lean/Util/Trace.c Init/./Lean/Util/WHNF.c Init/./System.c Init/./System/FilePath.c Init/./System/IO.c Init/./System/Platform.c Init/./Util.c Init/./WF.c) diff --git a/stage0/stdlib/Init/Lean.c b/stage0/stdlib/Init/Lean.c index a8712e7925..ed6ecb26f9 100644 --- a/stage0/stdlib/Init/Lean.c +++ b/stage0/stdlib/Init/Lean.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Init.Lean -// Imports: Init.Lean.Compiler Init.Lean.Environment Init.Lean.Modifiers Init.Lean.ProjFns Init.Lean.Runtime Init.Lean.Attributes Init.Lean.Parser Init.Lean.ReducibilityAttrs Init.Lean.Elab Init.Lean.EqnCompiler Init.Lean.Class Init.Lean.LocalContext Init.Lean.MetavarContext Init.Lean.AuxRecursor Init.Lean.Linter Init.Lean.Meta Init.Lean.Eval +// Imports: Init.Lean.Compiler Init.Lean.Environment Init.Lean.Modifiers Init.Lean.ProjFns Init.Lean.Runtime Init.Lean.Attributes Init.Lean.Parser Init.Lean.ReducibilityAttrs Init.Lean.Elab Init.Lean.EqnCompiler Init.Lean.Class Init.Lean.LocalContext Init.Lean.MetavarContext Init.Lean.AuxRecursor Init.Lean.Linter Init.Lean.Meta Init.Lean.Eval Init.Lean.Structure #include "runtime/lean.h" #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -30,6 +30,7 @@ lean_object* initialize_Init_Lean_AuxRecursor(lean_object*); lean_object* initialize_Init_Lean_Linter(lean_object*); lean_object* initialize_Init_Lean_Meta(lean_object*); lean_object* initialize_Init_Lean_Eval(lean_object*); +lean_object* initialize_Init_Lean_Structure(lean_object*); static bool _G_initialized = false; lean_object* initialize_Init_Lean(lean_object* w) { lean_object * res; @@ -86,6 +87,9 @@ lean_dec_ref(res); res = initialize_Init_Lean_Eval(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Init_Lean_Structure(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); return lean_mk_io_result(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Init/Lean/Compiler/ExternAttr.c b/stage0/stdlib/Init/Lean/Compiler/ExternAttr.c index 45d8dd6a47..876fc41961 100644 --- a/stage0/stdlib/Init/Lean/Compiler/ExternAttr.c +++ b/stage0/stdlib/Init/Lean/Compiler/ExternAttr.c @@ -77,6 +77,7 @@ lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l___private_Init_Data_Array_QSort_1__partitionAux___main___at_Lean_mkExternAttr___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_swap(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_expandExternPatternAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Syntax_isStrLit_x3f(lean_object*); lean_object* l_Lean_expandExternPatternAux___main(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Compiler_ExternAttr_2__syntaxToExternAttrData___closed__5; lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); @@ -85,7 +86,6 @@ lean_object* l___private_Init_Lean_Compiler_ExternAttr_2__syntaxToExternAttrData lean_object* l_Lean_expandExternPatternAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkExternAttr___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkExternAttr___closed__2; -lean_object* l_Lean_Syntax_isStrLit(lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Array_qsortAux___main___at_Lean_mkExternAttr___spec__3___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_List_reprAux___main___rarg___closed__1; @@ -106,6 +106,7 @@ lean_object* l_List_foldl___main___at_Lean_mkSimpleFnCall___spec__1___boxed(lean uint8_t l_String_Iterator_hasNext(lean_object*); extern lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___closed__3; lean_object* l_Lean_isExternC___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Syntax_isIdOrAtom_x3f(lean_object*); extern lean_object* l_Option_HasRepr___rarg___closed__3; lean_object* l___private_Init_Lean_Compiler_ExternAttr_2__syntaxToExternAttrData(lean_object*); lean_object* lean_get_extern_attr_data(lean_object*, lean_object*); @@ -133,7 +134,6 @@ lean_object* l_Lean_expandExternPatternAux(lean_object*, lean_object*, lean_obje lean_object* l_Lean_getExternEntryForAux___boxed(lean_object*, lean_object*); lean_object* lean_io_ref_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkExternAttr___closed__4; -lean_object* l_Lean_Syntax_isIdOrAtom(lean_object*); lean_object* l_Lean_PersistentEnvExtension_getState___rarg(lean_object*, lean_object*); lean_object* lean_io_initializing(lean_object*); extern lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___closed__2; @@ -286,11 +286,11 @@ if (x_11 == 0) { lean_object* x_12; lean_object* x_13; x_12 = lean_array_get(x_6, x_1, x_10); -x_13 = l_Lean_Syntax_isIdOrAtom(x_12); +x_13 = l_Lean_Syntax_isIdOrAtom_x3f(x_12); if (lean_obj_tag(x_13) == 0) { lean_object* x_14; -x_14 = l_Lean_Syntax_isStrLit(x_12); +x_14 = l_Lean_Syntax_isStrLit_x3f(x_12); lean_dec(x_12); if (lean_obj_tag(x_14) == 0) { @@ -337,7 +337,7 @@ lean_dec(x_21); if (x_25 == 0) { lean_object* x_26; -x_26 = l_Lean_Syntax_isStrLit(x_12); +x_26 = l_Lean_Syntax_isStrLit_x3f(x_12); lean_dec(x_12); if (lean_obj_tag(x_26) == 0) { @@ -374,7 +374,7 @@ lean_dec(x_12); x_33 = lean_nat_add(x_10, x_9); lean_dec(x_10); x_34 = lean_array_get(x_6, x_1, x_33); -x_35 = l_Lean_Syntax_isStrLit(x_34); +x_35 = l_Lean_Syntax_isStrLit_x3f(x_34); lean_dec(x_34); if (lean_obj_tag(x_35) == 0) { @@ -633,7 +633,7 @@ lean_inc(x_9); lean_dec(x_7); x_10 = l_Lean_stxInh; x_11 = lean_array_get(x_10, x_3, x_9); -x_12 = l_Lean_Syntax_isStrLit(x_11); +x_12 = l_Lean_Syntax_isStrLit_x3f(x_11); lean_dec(x_11); if (lean_obj_tag(x_12) == 0) { diff --git a/stage0/stdlib/Init/Lean/Data/Name.c b/stage0/stdlib/Init/Lean/Data/Name.c index 334086e5bc..12d7f58c7d 100644 --- a/stage0/stdlib/Init/Lean/Data/Name.c +++ b/stage0/stdlib/Init/Lean/Data/Name.c @@ -125,6 +125,7 @@ size_t lean_usize_mix_hash(size_t, size_t); uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); lean_object* l_Lean_Name_isPrefixOf___boxed(lean_object*, lean_object*); lean_object* l_Lean_NameSet_insert(lean_object*, lean_object*); +lean_object* l_Lean_Name_appendBefore(lean_object*, lean_object*); lean_object* l_RBNode_ins___main___at_Lean_NameMap_insert___spec__3(lean_object*); lean_object* l_RBNode_ins___main___at_Lean_NameMap_insert___spec__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_RBNode_find___main___at_Lean_NameMap_contains___spec__1___rarg(lean_object*, lean_object*); @@ -1299,6 +1300,44 @@ return x_7; } } } +lean_object* l_Lean_Name_appendBefore(lean_object* x_1, lean_object* x_2) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 0: +{ +lean_object* x_3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +case 1: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_string_append(x_2, x_5); +lean_dec(x_5); +x_7 = lean_name_mk_string(x_4, x_6); +return x_7; +} +default: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_8 = lean_ctor_get(x_1, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_1, 1); +lean_inc(x_9); +lean_dec(x_1); +x_10 = lean_name_mk_string(x_8, x_2); +x_11 = lean_name_mk_numeral(x_10, x_9); +return x_11; +} +} +} +} uint8_t l_Lean_Name_isInternal___main(lean_object* x_1) { _start: { diff --git a/stage0/stdlib/Init/Lean/Declaration.c b/stage0/stdlib/Init/Lean/Declaration.c index 5c354761f5..faba8f6c6f 100644 --- a/stage0/stdlib/Init/Lean/Declaration.c +++ b/stage0/stdlib/Init/Lean/Declaration.c @@ -14,8 +14,10 @@ extern "C" { #endif lean_object* l_Lean_ReducibilityHints_lt___boxed(lean_object*, lean_object*); +lean_object* l_Lean_ConstantVal_inhabited___closed__1; lean_object* l___private_Init_Util_1__mkPanicMessage(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ConstantInfo_instantiateValueLevelParams___boxed(lean_object*, lean_object*); +lean_object* l_Lean_ConstantVal_inhabited___closed__2; lean_object* l_Lean_ConstantInfo_value_x3f___boxed(lean_object*); lean_object* l_Lean_RecursorVal_getMajorIdx___boxed(lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); @@ -25,12 +27,14 @@ lean_object* l_Lean_ConstantInfo_value_x21___boxed(lean_object*); lean_object* l_Lean_ConstantInfo_value_x21___closed__2; lean_object* l_Lean_RecursorVal_getMajorIdx(lean_object*); lean_object* l_Lean_ConstantInfo_instantiateTypeLevelParams___boxed(lean_object*, lean_object*); +extern lean_object* l_Lean_Expr_Inhabited___closed__1; uint8_t l_UInt32_decLt(uint32_t, uint32_t); lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_ConstantInfo_toConstantVal(lean_object*); lean_object* lean_instantiate_type_lparams(lean_object*, lean_object*); lean_object* l_Lean_ConstantInfo_hasValue___boxed(lean_object*); lean_object* l_Lean_ConstantInfo_name(lean_object*); +lean_object* l_Lean_ConstantVal_inhabited; lean_object* l_Lean_ConstantInfo_toConstantVal___boxed(lean_object*); uint8_t l_Lean_ConstantInfo_hasValue(lean_object*); lean_object* l_Lean_RecursorVal_getInduct___boxed(lean_object*); @@ -39,6 +43,7 @@ lean_object* l_Lean_ConstantInfo_isCtor___boxed(lean_object*); lean_object* l_Lean_ConstantInfo_hints(lean_object*); lean_object* l_Lean_ConstantInfo_type(lean_object*); lean_object* l_Lean_ConstantInfo_value_x3f(lean_object*); +lean_object* l_Lean_ConstructorVal_inhabited___closed__1; lean_object* l_Lean_RecursorVal_getInduct(lean_object*); lean_object* l_Lean_ConstantInfo_lparams(lean_object*); lean_object* lean_instantiate_value_lparams(lean_object*, lean_object*); @@ -47,6 +52,7 @@ lean_object* l_panic(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_InductiveVal_nctors___boxed(lean_object*); lean_object* l_Lean_Name_getPrefix(lean_object*); lean_object* l_Lean_ConstantInfo_name___boxed(lean_object*); +lean_object* l_Lean_ConstructorVal_inhabited; extern lean_object* l_Lean_Expr_Inhabited; lean_object* l_Lean_InductiveVal_nctors(lean_object*); lean_object* l_Lean_ConstantInfo_value_x21___closed__3; @@ -127,6 +133,40 @@ x_4 = lean_box(x_3); return x_4; } } +lean_object* _init_l_Lean_ConstantVal_inhabited___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = lean_box(0); +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* _init_l_Lean_ConstantVal_inhabited___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = lean_box(0); +x_2 = l_Lean_ConstantVal_inhabited___closed__1; +x_3 = l_Lean_Expr_Inhabited___closed__1; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +lean_object* _init_l_Lean_ConstantVal_inhabited() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_ConstantVal_inhabited___closed__2; +return x_1; +} +} lean_object* l_Lean_InductiveVal_nctors(lean_object* x_1) { _start: { @@ -146,6 +186,32 @@ lean_dec(x_1); return x_2; } } +lean_object* _init_l_Lean_ConstructorVal_inhabited___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; +x_1 = l_Lean_ConstantVal_inhabited___closed__2; +x_2 = lean_box(0); +x_3 = lean_unsigned_to_nat(0u); +x_4 = 1; +x_5 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_5, 0, x_1); +lean_ctor_set(x_5, 1, x_2); +lean_ctor_set(x_5, 2, x_3); +lean_ctor_set(x_5, 3, x_3); +lean_ctor_set(x_5, 4, x_3); +lean_ctor_set_uint8(x_5, sizeof(void*)*5, x_4); +return x_5; +} +} +lean_object* _init_l_Lean_ConstructorVal_inhabited() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_ConstructorVal_inhabited___closed__1; +return x_1; +} +} lean_object* l_Lean_RecursorVal_getMajorIdx(lean_object* x_1) { _start: { @@ -367,7 +433,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_ConstantInfo_value_x21___closed__1; -x_2 = lean_unsigned_to_nat(194u); +x_2 = lean_unsigned_to_nat(199u); x_3 = lean_unsigned_to_nat(31u); x_4 = l_Lean_ConstantInfo_value_x21___closed__2; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -496,6 +562,16 @@ if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_ReducibilityHints_Inhabited = _init_l_Lean_ReducibilityHints_Inhabited(); lean_mark_persistent(l_Lean_ReducibilityHints_Inhabited); +l_Lean_ConstantVal_inhabited___closed__1 = _init_l_Lean_ConstantVal_inhabited___closed__1(); +lean_mark_persistent(l_Lean_ConstantVal_inhabited___closed__1); +l_Lean_ConstantVal_inhabited___closed__2 = _init_l_Lean_ConstantVal_inhabited___closed__2(); +lean_mark_persistent(l_Lean_ConstantVal_inhabited___closed__2); +l_Lean_ConstantVal_inhabited = _init_l_Lean_ConstantVal_inhabited(); +lean_mark_persistent(l_Lean_ConstantVal_inhabited); +l_Lean_ConstructorVal_inhabited___closed__1 = _init_l_Lean_ConstructorVal_inhabited___closed__1(); +lean_mark_persistent(l_Lean_ConstructorVal_inhabited___closed__1); +l_Lean_ConstructorVal_inhabited = _init_l_Lean_ConstructorVal_inhabited(); +lean_mark_persistent(l_Lean_ConstructorVal_inhabited); l_Lean_ConstantInfo_value_x21___closed__1 = _init_l_Lean_ConstantInfo_value_x21___closed__1(); lean_mark_persistent(l_Lean_ConstantInfo_value_x21___closed__1); l_Lean_ConstantInfo_value_x21___closed__2 = _init_l_Lean_ConstantInfo_value_x21___closed__2(); diff --git a/stage0/stdlib/Init/Lean/Elab/Quotation.c b/stage0/stdlib/Init/Lean/Elab/Quotation.c index e54225b593..bca7aea137 100644 --- a/stage0/stdlib/Init/Lean/Elab/Quotation.c +++ b/stage0/stdlib/Init/Lean/Elab/Quotation.c @@ -77,6 +77,7 @@ extern lean_object* l_Lean_Parser_Term_id___elambda__1___closed__2; extern lean_object* l_Lean_numLitKind; extern lean_object* l_Lean_strLitKind; lean_object* l___private_Init_Lean_Elab_Quotation_7__quote(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Syntax_isStrLit_x3f(lean_object*); extern lean_object* l_Lean_Parser_Term_antiquot___elambda__1___rarg___closed__1; lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_numLitKind___closed__1; @@ -92,7 +93,6 @@ extern lean_object* l_Lean_Parser_Term_id___elambda__1___closed__1; lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_Quotation_7__quote___main___spec__8___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_1__const(lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_8__toPreterm___main___closed__2; -lean_object* l_Lean_Syntax_isStrLit(lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_8__toPreterm___main___closed__1; lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_Quotation_7__quote___main___spec__3___boxed(lean_object*, lean_object*, lean_object*); @@ -2706,7 +2706,7 @@ else lean_object* x_30; lean_dec(x_18); lean_dec(x_4); -x_30 = l_Lean_Syntax_isStrLit(x_2); +x_30 = l_Lean_Syntax_isStrLit_x3f(x_2); lean_dec(x_2); if (lean_obj_tag(x_30) == 0) { diff --git a/stage0/stdlib/Init/Lean/Elab/Term.c b/stage0/stdlib/Init/Lean/Elab/Term.c index 333ef96f64..7e4a38381e 100644 --- a/stage0/stdlib/Init/Lean/Elab/Term.c +++ b/stage0/stdlib/Init/Lean/Elab/Term.c @@ -13,22 +13,23 @@ #ifdef __cplusplus extern "C" { #endif -lean_object* l_Array_filterAux___main___at___private_Init_Lean_Elab_Term_17__getSuccess___spec__1(lean_object*, lean_object*, lean_object*); -extern lean_object* l___private_Init_Lean_Meta_Check_2__checkLambdaLet___lambda__2___closed__1; lean_object* l_Lean_Elab_Term_elabBinders(lean_object*); lean_object* l_Lean_Elab_Term_addNamedArg___closed__5; -lean_object* l___private_Init_Lean_Elab_Term_20__mergeFailures(lean_object*); lean_object* l_Lean_Elab_Term_getEnv___rarg(lean_object*); lean_object* l_Lean_Elab_Term_TermElabM_monadLog___lambda__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkForall(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Term_21__mergeFailures(lean_object*); +lean_object* l___private_Init_Lean_Elab_Term_17__elabAppFn___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1___closed__1; +lean_object* l_Array_filterAux___main___at___private_Init_Lean_Elab_Term_18__getSuccess___spec__1(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_app___elambda__1___closed__1; size_t l_USize_add(size_t, size_t); -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Term_23__expandApp___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Term_23__expandApp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_fieldIdxKind; lean_object* l_Lean_SMap_empty___at_Lean_Elab_Term_mkBuiltinTermElabTable___spec__1___closed__2; lean_object* l_Lean_Expr_mvarId_x21(lean_object*); lean_object* l_Lean_Elab_getPos___at_Lean_Elab_Term_ensureType___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); +lean_object* l_Lean_Syntax_isNatLitAux(lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabChoice___closed__3; extern lean_object* l_Lean_Parser_Term_explicit___elambda__1___closed__2; extern lean_object* l___private_Init_Lean_Environment_8__persistentEnvExtensionsRef; @@ -64,14 +65,20 @@ lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_PersistentHashMap_containsAtAux___main___at_Lean_Elab_Term_addBuiltinTermElab___spec__6___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_tracer___closed__3; lean_object* l_Lean_Elab_Term_inferType(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Term_17__elabAppFn___main___closed__1; lean_object* l_Lean_Elab_logErrorAndThrow___at_Lean_Elab_Term_ensureType___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_assignExprMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Term_13__elabAppArgsAux___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_ensureHasType___closed__2; +lean_object* l___private_Init_Lean_Elab_Term_21__mergeFailures___rarg___closed__3; +lean_object* l___private_Init_Lean_Elab_Term_17__elabAppFn___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resettingSynthInstanceCacheWhen(lean_object*); +lean_object* l___private_Init_Lean_Elab_Term_17__elabAppFn___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Format_pretty(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Term_13__elabAppArgsAux___main___closed__2; extern lean_object* l_Lean_List_format___rarg___closed__2; +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Term_24__expandApp___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_logErrorAndThrow___at___private_Init_Lean_Elab_Term_21__mergeFailures___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_registerBuiltinTermElabAttr___closed__3; lean_object* l_Lean_SMap_empty___at_Lean_Elab_Term_mkBuiltinTermElabTable___spec__1___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabId___closed__1; @@ -89,23 +96,26 @@ extern lean_object* l_Lean_nameToExprAux___main___closed__4; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabId___closed__2; lean_object* l_Lean_Elab_Term_getLocalInsts___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resettingSynthInstanceCacheWhen___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Term_17__elabAppFn___main___closed__2; lean_object* l_mkHashMap___at_Lean_Elab_Term_mkBuiltinTermElabTable___spec__2(lean_object*); extern lean_object* l_Lean_Parser_Term_forall___elambda__1___closed__2; lean_object* lean_array_fswap(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_TermElabM_monadLog___lambda__4___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_Term_16__elabAppFn___main___closed__1; +lean_object* l_Lean_Elab_logErrorAndThrow___at___private_Init_Lean_Elab_Term_21__mergeFailures___spec__2(lean_object*); lean_object* l___private_Init_Lean_Elab_Log_1__resetTraceState___at_Lean_Elab_Term_elabTerm___spec__7(lean_object*); extern lean_object* l_Prod_HasRepr___rarg___closed__1; lean_object* l_Lean_Elab_Term_elabStxQuot___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_TermElabM_monadLog___closed__6; lean_object* l___private_Init_Lean_Elab_Log_1__resetTraceState___at_Lean_Elab_Term_elabTerm___spec__7___rarg(lean_object*); +lean_object* l_Lean_Meta_SynthInstance_SynthM_inhabited___lambda__1___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_stxInh; lean_object* l_Lean_Meta_Exception_toMessageData(lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_Term_21__mergeFailures___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_PersistentHashMap_mkCollisionNode___rarg___closed__1; size_t l_USize_sub(size_t, size_t); +lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabProj___closed__3; extern lean_object* l_Array_empty___closed__1; lean_object* l_Lean_Elab_mkElabAttribute___at_Lean_Elab_Term_mkTermElabAttribute___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_logErrorAndThrow___at___private_Init_Lean_Elab_Term_20__mergeFailures___spec__2(lean_object*); lean_object* l___private_Init_Lean_Elab_Term_10__resolveLocalName___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabSort___rarg(lean_object*); lean_object* l___private_Init_Lean_Elab_Term_9__resolveLocalNameAux___main(lean_object*, lean_object*, lean_object*); @@ -113,21 +123,17 @@ lean_object* l_Lean_Elab_Term_resolveName___closed__3; lean_object* l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeInstMVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_findIdxAux___main___at___private_Init_Lean_Elab_Term_13__elabAppArgsAux___main___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__2; -lean_object* l___private_Init_Lean_Elab_Term_16__elabAppFn___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTypeStx___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_registerBuiltinTermElabAttr___closed__5; lean_object* lean_dbg_trace(lean_object*, lean_object*); lean_object* lean_io_mk_ref(lean_object*, lean_object*); -lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getEnv___boxed(lean_object*); lean_object* l_List_append___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabArrow___closed__3; -lean_object* l_Lean_Elab_logErrorAndThrow___at___private_Init_Lean_Elab_Term_20__mergeFailures___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_AssocList_foldlM___main___at_Lean_Elab_Term_addBuiltinTermElab___spec__15(lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* lean_io_ref_get(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_declareBuiltinParser___closed__5; -lean_object* l___private_Init_Lean_Elab_Term_20__mergeFailures___rarg___closed__3; lean_object* l_Lean_Elab_Term_registerBuiltinTermElabAttr___closed__6; lean_object* l_Array_reverseAux___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_stxQuot_expand(lean_object*, lean_object*); @@ -140,14 +146,12 @@ lean_object* l_Lean_Elab_Term_elabParen___closed__3; extern lean_object* l_Lean_Elab_mkElabAttribute___rarg___closed__1; lean_object* l_Lean_Elab_Term_getMVarDecl(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabListLit___closed__1; -lean_object* l___private_Init_Lean_Elab_Term_20__mergeFailures___rarg___closed__1; lean_object* lean_expr_instantiate1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_NamedArg_hasToString(lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_mkTermElabAttribute___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at_Lean_Elab_Term_elabTerm___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); -lean_object* l___private_Init_Lean_Elab_Term_20__mergeFailures___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_depArrow___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_resetSynthInstanceCache(lean_object*); lean_object* l_Lean_registerAttribute(lean_object*, lean_object*); @@ -156,6 +160,7 @@ lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_Elab_Term_elabListLit___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ensureType(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Term_14__elabAppArgs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_read___at_Lean_Elab_Term_TermElabM_monadLog___spec__1(lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabTypeStx___closed__2; extern lean_object* l_String_splitAux___main___closed__1; @@ -163,7 +168,7 @@ lean_object* lean_environment_find(lean_object*, lean_object*); extern lean_object* l_Lean_Expr_getAppArgs___closed__1; lean_object* l_Lean_Elab_Term_registerBuiltinTermElabAttr___lambda__1___closed__3; lean_object* l_Lean_registerEnvExtensionUnsafe___at_Lean_Elab_Term_mkTermElabAttribute___spec__4___closed__1; -lean_object* l___private_Init_Lean_Elab_Term_22__expandAppAux(lean_object*, lean_object*); +lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_Term_17__elabAppFn___main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabSort___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getMCtx(lean_object*); size_t l_USize_shiftRight(size_t, size_t); @@ -171,6 +176,7 @@ lean_object* l_Lean_Elab_Term_withLCtx___rarg(lean_object*, lean_object*, lean_o lean_object* l_Lean_Elab_Term_addNamedArg___closed__6; extern lean_object* l_Lean_Elab_logUnknownDecl___rarg___closed__4; lean_object* l_PersistentHashMap_findAux___main___at_Lean_Elab_Term_elabTerm___spec__3___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Term_23__expandAppAux(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resolveName___closed__6; lean_object* l_Lean_Elab_Term_elabTypeStx___rarg(lean_object*); lean_object* l_Lean_mkAtom(lean_object*); @@ -192,19 +198,17 @@ extern lean_object* l_Lean_LocalContext_Inhabited___closed__1; lean_object* l_Lean_Elab_Term_resolveName___closed__5; lean_object* l_Lean_Elab_Term_mkFreshExprMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MonadTracerAdapter_addTrace___at_Lean_Elab_Term_elabTerm___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_Term_20__mergeFailures___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_Term_6__matchBinder___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabId___closed__3; lean_object* l_Lean_Elab_Term_TermElabResult_inhabited___closed__1; -lean_object* l___private_Init_Lean_Elab_Term_21__elabAppAux___closed__2; lean_object* lean_nat_add(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_Term_19__getFailureMessage(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_termElabAttribute___closed__2; lean_object* l_Lean_Elab_Term_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_addBuiltinTermElab___spec__11(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getTraceState(lean_object*); lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_Term_6__matchBinder___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_AttributeImpl_inhabited___closed__4; +lean_object* l___private_Init_Lean_Elab_Term_22__elabAppAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabParen___closed__2; lean_object* l_Lean_Elab_Term_whnf(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getOptions(lean_object*, lean_object*); @@ -212,6 +216,7 @@ extern lean_object* l_Lean_Parser_Term_prop___elambda__1___rarg___closed__2; lean_object* l_Lean_Elab_Term_elabParen___closed__1; lean_object* l_Lean_Elab_Term_liftMetaM(lean_object*); extern lean_object* l_Lean_PersistentEnvExtension_inhabited___rarg___closed__1; +extern lean_object* l_Lean_Parser_Term_proj___elambda__1___closed__2; lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_Term_6__matchBinder___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabListLit___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Term_1__mkFreshAnonymousName___rarg___closed__1; @@ -220,18 +225,18 @@ lean_object* l_Lean_Meta_isClass(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Term_4__expandBinderIdent(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Term_7__elabBinderViews___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SMap_contains___at_Lean_Elab_Term_addBuiltinTermElab___spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Term_20__getFailureMessage(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_insertAtCollisionNodeAux___main___at_Lean_Elab_Term_addBuiltinTermElab___spec__10(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_Term_16__elabAppFn___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Util_Message_1__getMostRecentErrorAux___main(lean_object*); extern lean_object* l_Lean_Meta_dbgTrace___rarg___closed__1; -lean_object* l___private_Init_Lean_Elab_Term_21__elabAppAux___closed__1; extern lean_object* l_Array_HasRepr___rarg___closed__1; +lean_object* l___private_Init_Lean_Elab_Term_24__expandApp(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Term_20__getFailureMessage___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Term_17__elabAppFn___main___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___private_Init_Lean_Elab_Term_12__mkConsts(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Term_4__expandBinderIdent___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_AssocList_replace___main___at_Lean_Elab_Term_addBuiltinTermElab___spec__16(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Term_14__elabAppArgs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_Term_23__expandApp(lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_Term_16__elabAppFn___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resolveName___closed__10; lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_declareBuiltinTermElab___closed__3; @@ -239,13 +244,12 @@ lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabProp___closed__3; extern lean_object* l_Lean_Expr_Inhabited___closed__1; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); extern lean_object* l_Lean_Name_appendIndexAfter___closed__1; +lean_object* l_Lean_Elab_logErrorAndThrow___at___private_Init_Lean_Elab_Term_17__elabAppFn___main___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_addContext___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_Term_13__elabAppArgsAux___main___spec__2(lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Term_16__elabAppFn___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(lean_object*); lean_object* l_Lean_Elab_getPos___at_Lean_Elab_Term_ensureType___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabChoice___closed__2; -extern lean_object* l_List_Monad; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabArrow___closed__2; lean_object* l_Lean_Elab_Term_observing(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_declareBuiltinTermElab(lean_object*, lean_object*, lean_object*, lean_object*); @@ -256,10 +260,10 @@ extern lean_object* l_Lean_EnvExtension_Inhabited___rarg___closed__1; lean_object* l_Lean_Elab_Term_dbgTrace(lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabArrow___closed__1; extern lean_object* l_Lean_Parser_Term_id___elambda__1___closed__2; -lean_object* l___private_Init_Lean_Elab_Term_20__mergeFailures___rarg___closed__2; lean_object* l_EStateM_bind___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_SimpleMonadTracerAdapter_isTracingEnabledFor___rarg___lambda__1___closed__2; lean_object* lean_nat_sub(lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_Term_22__elabAppAux___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabExplicit(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabSort___closed__3; extern lean_object* l_Lean_choiceKind___closed__2; @@ -281,10 +285,13 @@ lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__3; lean_object* l_Lean_Elab_Term_mkHole___closed__2; lean_object* l_Lean_KernelException_toMessageData(lean_object*); uint8_t l_PersistentHashMap_containsAtAux___main___at_Lean_Elab_Term_addBuiltinTermElab___spec__6(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Term_16__elabAppProjs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabParen(lean_object*); lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Term_3__expandBinderType___boxed(lean_object*); -lean_object* l___private_Init_Lean_Elab_Term_15__elabAppProjs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_Projection_hasToString(lean_object*); +lean_object* l_List_map___main___at___private_Init_Lean_Elab_Term_17__elabAppFn___main___spec__1(lean_object*); +lean_object* l_Lean_Elab_Term_TermElabM_inhabited(lean_object*); lean_object* l_Lean_Elab_Term_elabForall___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_declareBuiltinTermElab___closed__6; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabChoice___closed__1; @@ -303,10 +310,11 @@ lean_object* l_Lean_Elab_log___at_Lean_Elab_Term_ensureType___spec__2___boxed(le lean_object* l___private_Init_Lean_Elab_Term_2__mkFreshInstanceName___boxed(lean_object*); lean_object* l_ReaderT_bind___at_Lean_Elab_Term_TermElabM_monadLog___spec__2(lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1___lambda__1___closed__2; lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabDepArrow___closed__3; lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Term_25__regTraceClasses___closed__1; +lean_object* l___private_Init_Lean_Elab_Term_23__expandAppAux___main(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withNode___rarg___closed__1; lean_object* l_Lean_Elab_Term_TermElabM_monadLog___lambda__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_logErrorAndThrow___at_Lean_Elab_Term_addNamedArg___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); @@ -325,13 +333,12 @@ lean_object* l_Lean_Elab_Term_withNode___rarg___closed__2; lean_object* l___private_Init_Lean_Elab_Term_7__elabBinderViews___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabListLit___closed__3; lean_object* l_Lean_registerEnvExtensionUnsafe___at_Lean_Elab_Term_mkTermElabAttribute___spec__4(lean_object*, lean_object*); -lean_object* l_Lean_Elab_getPosition___at___private_Init_Lean_Elab_Term_18__toMessageData___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_getPosition___at___private_Init_Lean_Elab_Term_18__toMessageData___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_trySynthInstance(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Term_17__elabAppFn___main___spec__4(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* l___private_Init_Lean_Elab_Term_19__toMessageData(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_explicitBinder___elambda__1___closed__2; extern lean_object* l_PersistentHashMap_insertAux___main___rarg___closed__3; lean_object* l_Lean_Syntax_getId(lean_object*); -lean_object* l___private_Init_Lean_Elab_Term_21__elabAppAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_IO_ofExcept___at_Lean_Parser_declareBuiltinParser___spec__1(lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); extern lean_object* l_Lean_choiceKind; @@ -339,15 +346,15 @@ lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabTypeStx(lean_object*); lean_object* l_Lean_Elab_logInfoAt___at_Lean_Elab_Term_elabTerm___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabParen___closed__3; lean_object* l___private_Init_Lean_Elab_Term_10__resolveLocalName(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_logErrorAndThrow___at___private_Init_Lean_Elab_Term_17__elabAppFn___main___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SMap_insert___at_Lean_Elab_Term_addBuiltinTermElab___spec__7(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__5; lean_object* l___private_Init_Lean_Elab_Term_6__matchBinder___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabDepArrow(lean_object*); lean_object* l_Lean_Elab_Term_elabTypeStx___rarg___closed__1; lean_object* l_Lean_Elab_Term_mkFreshId___rarg(lean_object*); +lean_object* l___private_Init_Lean_Elab_Term_15__elabAppProjsAux(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabParen___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_Term_19__getFailureMessage___closed__1; -lean_object* l___private_Init_Lean_Elab_Term_18__toMessageData(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_explicitUniv___elambda__1___closed__2; lean_object* l___private_Init_Lean_Elab_Term_8__elabBindersAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_PersistentArray_empty___closed__3; @@ -357,7 +364,6 @@ lean_object* l_Lean_Elab_Term_resolveName(lean_object*, lean_object*, lean_objec lean_object* l_PersistentHashMap_findAtAux___main___at_Lean_Elab_Term_elabTerm___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Term_6__matchBinder___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabProp___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_Term_19__getFailureMessage___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_metavar_ctx_assign_expr(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_consumeDefaultParams___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_findAux___main___at_Lean_Elab_Term_elabTerm___spec__3(lean_object*, size_t, lean_object*); @@ -369,7 +375,6 @@ extern lean_object* l_Lean_Parser_mkTermParserAttribute___closed__4; lean_object* l_Lean_Elab_Term_mkTermElabAttribute(lean_object*); extern lean_object* l_Lean_Meta_Exception_toTraceMessageData___closed__4; uint8_t l_PersistentHashMap_contains___at_Lean_Elab_Term_addBuiltinTermElab___spec__4(lean_object*, lean_object*); -lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1___lambda__1___closed__1; extern lean_object* l_Lean_Parser_declareBuiltinParser___closed__7; extern lean_object* l_Lean_Parser_Term_explicitUniv___elambda__1___closed__1; lean_object* l_Lean_Elab_Term_addBuiltinTermElab___closed__2; @@ -385,6 +390,7 @@ lean_object* l___private_Init_Lean_Elab_Term_11__mkFreshLevelMVars___boxed(lean_ size_t lean_usize_modn(size_t, lean_object*); extern lean_object* l___private_Init_Lean_Environment_5__envExtensionsRef; extern lean_object* l_Lean_registerEnvExtensionUnsafe___rarg___closed__1; +lean_object* l_Lean_Elab_Term_TermElabM_inhabited___closed__2; lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_Elab_Term_mkTermElabAttribute___spec__2(lean_object*, lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); @@ -408,7 +414,6 @@ lean_object* l_mkHashMapImp___rarg(lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabParen___closed__1; lean_object* l_Lean_Elab_Term_ensureHasType___closed__1; lean_object* l_Lean_Elab_Term_addBuiltinTermElab___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_Term_24__regTraceClasses(lean_object*); lean_object* l_Lean_Elab_Term_getLocalInsts(lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabProp(lean_object*); lean_object* l_HashMapImp_find___at_Lean_Elab_Term_elabTerm___spec__5___boxed(lean_object*, lean_object*); @@ -417,6 +422,8 @@ extern lean_object* l_Lean_formatEntry___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabSort___closed__2; lean_object* l_Lean_Elab_Term_isClass(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_TermElabResult_inhabited; +lean_object* l___private_Init_Lean_Elab_Term_22__elabAppAux___closed__3; +lean_object* l___private_Init_Lean_Elab_Term_25__regTraceClasses(lean_object*); lean_object* l_Lean_Elab_log___at_Lean_Elab_Term_ensureType___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkFVar(lean_object*); lean_object* l_Lean_Elab_Term_resolveName___closed__11; @@ -427,12 +434,14 @@ lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabExplicit___closed__1; lean_object* l_Lean_ConstantInfo_type(lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabProp___closed__1; lean_object* l_Lean_Elab_Term_resolveName___closed__9; +lean_object* l_Lean_Elab_Term_TermElabM_inhabited___closed__1; lean_object* l_Lean_Elab_Term_elabBinders___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_land(size_t, size_t); lean_object* l_HashMapImp_contains___at_Lean_Elab_Term_addBuiltinTermElab___spec__2___boxed(lean_object*, lean_object*); lean_object* l_AssocList_find___main___at_Lean_Elab_Term_elabTerm___spec__6___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resolveName___closed__4; lean_object* l_Lean_Elab_Term_withNode___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabProj(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ParametricAttribute_setParam___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofArray(lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabDepArrow___closed__1; @@ -454,7 +463,6 @@ lean_object* l_Lean_Elab_Term_withLCtx(lean_object*); lean_object* l_Lean_Elab_Term_withNode(lean_object*); extern lean_object* l_Option_HasRepr___rarg___closed__3; lean_object* l_Lean_Elab_Term_getNamespace___boxed(lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_Term_21__elabAppAux___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabExplicit(lean_object*); lean_object* l_Lean_Elab_Term_withoutPostponing___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabForall___closed__1; @@ -465,6 +473,7 @@ extern lean_object* l_Lean_Parser_Term_implicitBinder___elambda__1___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabId(lean_object*); lean_object* l_Lean_Elab_Term_TermElabM_monadLog; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabProp___closed__2; +lean_object* l_Lean_Elab_Term_unfoldDefinition(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeInstMVars(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___closed__1; lean_object* l_Lean_Elab_Term_elabArrow(lean_object*, lean_object*, lean_object*, lean_object*); @@ -473,20 +482,23 @@ lean_object* l___private_Init_Lean_Elab_Term_11__mkFreshLevelMVars(lean_object*, lean_object* lean_local_ctx_find_from_user_name(lean_object*, lean_object*); lean_object* l_Lean_Meta_trySynthInstance(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_declareBuiltinTermElab___closed__7; -lean_object* l_Lean_Elab_logErrorAndThrow___at___private_Init_Lean_Elab_Term_20__mergeFailures___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_Term_21__mergeFailures___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabProj___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabForall___closed__3; extern lean_object* l_Lean_Parser_Term_instBinder___elambda__1___rarg___closed__2; +lean_object* l_Lean_WHNF_whnfCore___main___at_Lean_Meta_whnfCore___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getNumArgs(lean_object*); extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteList___main___closed__6; lean_object* l_Array_iterateMAux___main___at_Lean_mkAppStx___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_declareBuiltinTermElab___closed__5; lean_object* l_Lean_Elab_Term_getLCtx(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Term_16__elabAppProjs___closed__1; uint8_t l_HashMapImp_contains___at_Lean_Elab_Term_addBuiltinTermElab___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ensureHasType___closed__3; lean_object* l_Lean_registerTagAttribute___lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_Term_24__regTraceClasses___closed__1; lean_object* l_PersistentHashMap_contains___at_Lean_Elab_Term_addBuiltinTermElab___spec__4___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_logErrorAndThrow___at_Lean_Elab_Term_ensureType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Term_16__elabAppProjs___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_mkHole; extern lean_object* l_Lean_mkInitAttr___lambda__1___closed__1; uint8_t lean_nat_dec_le(lean_object*, lean_object*); @@ -498,9 +510,9 @@ extern lean_object* l_Lean_Syntax_asNode___closed__1; lean_object* l_Lean_nameToExprAux___main(lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabExplicit___closed__3; uint8_t l_AssocList_contains___main___at_Lean_Elab_Term_addBuiltinTermElab___spec__3(lean_object*, lean_object*); +lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabProj___closed__2; lean_object* l_Lean_Elab_Term_ensureType___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); -lean_object* l___private_Init_Lean_Elab_Term_15__elabAppProjs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SMap_find___at_Lean_Elab_Term_elabTerm___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ensureType___closed__2; lean_object* l_PersistentHashMap_insertAux___main___at_Lean_Elab_Term_addBuiltinTermElab___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -509,6 +521,7 @@ lean_object* l_Lean_Environment_addAndCompile(lean_object*, lean_object*, lean_o lean_object* l_Lean_Elab_Term_registerSyntheticMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getKind(lean_object*); lean_object* l_Lean_Elab_Term_tracer___closed__4; +lean_object* l___private_Init_Lean_Elab_Term_22__elabAppAux___closed__1; lean_object* l_Lean_Elab_Term_registerBuiltinTermElabAttr___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_registerBuiltinTermElabAttr(lean_object*); lean_object* l_Lean_registerTagAttribute___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -518,20 +531,21 @@ lean_object* l_Lean_Elab_Term_registerBuiltinTermElabAttr___lambda__1___closed__ lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Term_elabTerm___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_AttributeImpl_inhabited___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabChoice(lean_object*); +lean_object* l___private_Init_Lean_Elab_Term_21__mergeFailures___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ensureType___closed__1; extern lean_object* l_Lean_Parser_Term_app___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_mkFreshLevelMVar___rarg(lean_object*); extern lean_object* l_Lean_EnvExtension_setState___closed__1; lean_object* l_PersistentHashMap_insert___at_Lean_Elab_Term_addBuiltinTermElab___spec__8(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___closed__4; -lean_object* l___private_Init_Lean_Elab_Term_22__expandAppAux___main(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Term_22__elabAppAux___closed__2; lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_Term_6__matchBinder___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_Term_21__elabAppAux___closed__3; +lean_object* l_Lean_Elab_Term_whnfCore(lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_Util_1__mkPanicMessage___closed__2; +lean_object* l_Lean_Elab_logErrorAndThrow___at___private_Init_Lean_Elab_Term_21__mergeFailures___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabParen___closed__2; lean_object* l_Lean_Elab_Term_resettingSynthInstanceCacheWhen___rarg(uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeInstMVar(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Term_16__elabAppFn___main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabExplicitUniv(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_hole___elambda__1___rarg___closed__1; lean_object* l_Lean_Elab_Term_isExprMVarAssigned(lean_object*, lean_object*, lean_object*); @@ -556,9 +570,9 @@ lean_object* l_Lean_Elab_Term_synthesizeInstMVar___boxed(lean_object*, lean_obje lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabApp___closed__3; lean_object* l_Lean_Elab_Term_elabType(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_registerBuiltinTermElabAttr___closed__2; -lean_object* l___private_Init_Lean_Elab_Term_16__elabAppFn___main___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_synthesizeInstMVar___closed__2; lean_object* l_Lean_Elab_mkMessage___at_Lean_Elab_Term_elabTerm___spec__11(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Term_21__mergeFailures___rarg___closed__2; lean_object* l_Lean_Elab_Term_whnfForall(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_instantiateMVars___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_TermElabM_monadLog___closed__1; @@ -574,19 +588,20 @@ extern lean_object* l_Lean_Parser_Term_namedArgument___elambda__1___rarg___close lean_object* l_Array_findIdxAux___main___at___private_Init_Lean_Elab_Term_13__elabAppArgsAux___main___spec__1(lean_object*, lean_object*, lean_object*); lean_object* lean_io_ref_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_Term_21__elabAppAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getEnv(lean_object*); lean_object* l_Lean_Elab_Term_getOpenDecls(lean_object*, lean_object*); lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Term_24__expandApp___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_addNamedArg___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabListLit(lean_object*); lean_object* l_PersistentHashMap_getCollisionNodeSize___rarg(lean_object*); +lean_object* l___private_Init_Lean_Elab_Term_22__elabAppAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_Lean_Elab_Util_1__regTraceClasses___closed__4; lean_object* l_Lean_Elab_Term_tracer___closed__2; +lean_object* l___private_Init_Lean_Elab_Term_24__expandApp___closed__1; lean_object* l_Lean_Elab_Term_addNamedArg___closed__1; lean_object* l___private_Init_Lean_Util_Trace_4__checkTraceOption___at_Lean_Elab_Term_elabTerm___spec__13(lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_Lean_Elab_Util_1__regTraceClasses___closed__1; -lean_object* l___private_Init_Lean_Elab_Term_23__expandApp___closed__1; extern lean_object* l_Lean_KernelException_toMessageData___closed__12; lean_object* l___private_Init_Lean_Elab_Term_1__mkFreshAnonymousName(lean_object*); lean_object* l_Lean_Syntax_formatStx___main(lean_object*); @@ -594,7 +609,6 @@ lean_object* l_Array_toList___rarg(lean_object*); lean_object* l_Lean_Elab_Term_addNamedArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTerm___closed__3; extern lean_object* l_Lean_Expr_Inhabited; -lean_object* l___private_Init_Lean_Elab_Term_18__toMessageData___closed__2; lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_addBuiltinTermElab(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); @@ -606,48 +620,51 @@ lean_object* l___private_Init_Lean_Elab_Term_8__elabBindersAux___main___boxed(le lean_object* l_Lean_PersistentEnvExtension_getState___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_tracer___closed__1; lean_object* l___private_Init_Lean_Elab_Term_7__elabBinderViews___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Term_17__elabAppFn___main___closed__3; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabHole___closed__3; lean_object* l_Lean_Syntax_foldArgsAuxM___main___at_Lean_Syntax_foldSepRevArgsM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_TermElabM_monadLog___closed__9; lean_object* l_Lean_Elab_Term_getOpenDecls___boxed(lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Term_24__expandApp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getTraceState___boxed(lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabDepArrow___closed__2; lean_object* l_Lean_Elab_Term_mkFreshLevelMVar(lean_object*); lean_object* l_Lean_Elab_Term_tracer___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__4; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabStxQuot___closed__3; -lean_object* l___private_Init_Lean_Elab_Term_18__toMessageData___closed__1; lean_object* l_Lean_Elab_Term_resettingSynthInstanceCache___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_io_initializing(lean_object*); lean_object* l_Lean_Elab_mkMessage___at_Lean_Elab_Term_elabTerm___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___closed__2; +lean_object* l_Lean_Elab_getPosition___at___private_Init_Lean_Elab_Term_19__toMessageData___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_TermElabM_monadLog___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resolveName___closed__2; +lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_Term_17__elabAppFn___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_Elab_Term_elabListLit___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeInstMVar___closed__3; +lean_object* l___private_Init_Lean_Elab_Term_16__elabAppProjs___closed__3; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabApp___closed__1; +lean_object* l_Lean_WHNF_unfoldDefinitionAux___at_Lean_Meta_unfoldDefinition___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getLCtx___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkFreshLevelMVar___boxed(lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabStxQuot(lean_object*); -lean_object* l___private_Init_Lean_Elab_Term_20__mergeFailures___rarg(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Init_Lean_Util_Trace_3__checkTraceOptionAux___main(lean_object*, lean_object*); lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Term_elabTerm___spec__10(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_setTraceState(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_Term_18__toMessageData___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_addNamedArg___closed__2; -lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_Term_20__mergeFailures___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Position_DecidableEq(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkFreshLevelMVar___rarg(lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); extern lean_object* l_Lean_MetavarContext_Inhabited___closed__1; -lean_object* l___private_Init_Lean_Elab_Term_16__elabAppFn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_getPosition___at___private_Init_Lean_Elab_Term_19__toMessageData___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Term_17__elabAppFn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_SMap_contains___at_Lean_Elab_Term_addBuiltinTermElab___spec__1(lean_object*, lean_object*); -lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_Term_16__elabAppFn___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_addContext(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_listLit___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_registerBuiltinTermElabAttr___closed__4; extern lean_object* l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabProj(lean_object*); lean_object* l_Lean_MetavarContext_getDecl(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_tracer; lean_object* l_Lean_Elab_Term_resetSynthInstanceCache___boxed(lean_object*); @@ -664,6 +681,7 @@ lean_object* l_Lean_Elab_Term_applyResult(lean_object*, lean_object*, lean_objec lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabForall(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabHole___closed__1; +lean_object* l___private_Init_Lean_Elab_Term_16__elabAppProjs___closed__2; lean_object* l_Lean_SMap_empty___at_Lean_Elab_Term_mkBuiltinTermElabTable___spec__1; lean_object* l_Lean_MonadTracerAdapter_addTrace___at_Lean_Elab_Term_elabTerm___spec__14(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_usize_to_nat(size_t); @@ -675,13 +693,14 @@ extern lean_object* l_HashMap_Inhabited___closed__1; extern lean_object* l_Lean_Parser_Term_simpleBinder___elambda__1___closed__2; extern lean_object* l_Lean_Parser_Term_forall___elambda__1___closed__1; lean_object* l_Lean_indentExpr(lean_object*); +lean_object* l___private_Init_Lean_Elab_Term_15__elabAppProjsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_AssocList_contains___main___at_Lean_Elab_Term_addBuiltinTermElab___spec__3___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getNamespace(lean_object*, lean_object*); -extern lean_object* l_String_Inhabited; lean_object* l_Lean_Elab_Term_registerBuiltinTermElabAttr___closed__1; lean_object* l_PersistentHashMap_insertAux___main___at_Lean_Elab_Term_addBuiltinTermElab___spec__9(lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resolveName___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_mkTermElabAttribute___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Term_21__mergeFailures___rarg___closed__1; lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__6; lean_object* l___private_Init_Lean_Elab_Term_1__mkFreshAnonymousName___rarg___closed__2; lean_object* l_Lean_Elab_Term_resolveName___closed__1; @@ -692,9 +711,9 @@ lean_object* l_Lean_Elab_Term_TermElabM_monadLog___closed__8; lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_Term_6__matchBinder___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_registerSyntheticMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Term_18__getSuccess(lean_object*); +lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_PersistentEnvExtension_inhabited___rarg___closed__4; -lean_object* l___private_Init_Lean_Elab_Term_17__getSuccess(lean_object*); extern lean_object* l_Lean_initAttr; lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_addBuiltinTermElab___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getOptions___boxed(lean_object*, lean_object*); @@ -704,29 +723,29 @@ lean_object* l_Lean_Elab_Term_tracer___lambda__1___boxed(lean_object*, lean_obje lean_object* lean_name_mk_numeral(lean_object*, lean_object*); lean_object* l_Lean_Elab_syntaxNodeKindOfAttrParam(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getMCtx___rarg(lean_object*); +lean_object* l___private_Init_Lean_Elab_Term_19__toMessageData___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Term_13__elabAppArgsAux___main(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_TermElabM_monadLog___closed__4; +lean_object* l___private_Init_Lean_Elab_Term_19__toMessageData___closed__1; lean_object* l_HashMapImp_moveEntries___main___at_Lean_Elab_Term_addBuiltinTermElab___spec__14(lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_mkCollisionNode___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_Term_23__expandApp___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_find___at_Lean_Elab_Term_elabTerm___spec__2___boxed(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Term_13__elabAppArgsAux___main___closed__1; lean_object* l_Lean_Elab_Term_liftMetaM___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1___lambda__1___closed__3; lean_object* l_Lean_Elab_Term_addNamedArg___closed__4; lean_object* l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeInstMVars___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkTermElabAttribute___closed__1; extern lean_object* l_Lean_Parser_Term_type___elambda__1___rarg___closed__2; uint8_t l_Lean_Expr_isSort(lean_object*); -lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_consumeDefaultParams___rarg___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_NameGenerator_Inhabited___closed__3; +lean_object* l___private_Init_Lean_Elab_Term_19__toMessageData___closed__2; lean_object* l___private_Init_Lean_Elab_Term_13__elabAppArgsAux___main___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 lean_string_dec_eq(lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); extern lean_object* l___private_Init_Lean_Elab_Util_1__regTraceClasses___closed__2; -lean_object* l_monadInhabited___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_sort___elambda__1___rarg___closed__2; +lean_object* l___private_Init_Lean_Elab_Term_21__mergeFailures___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabBinder(lean_object*); lean_object* l_Lean_Elab_Term_TermElabM_monadLog___lambda__3(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Term_13__elabAppArgsAux___main___closed__8; @@ -774,6 +793,34 @@ x_1 = l_Lean_Elab_Term_State_inhabited___closed__2; return x_1; } } +lean_object* _init_l_Lean_Elab_Term_TermElabM_inhabited___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_String_splitAux___main___closed__1; +x_2 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l_Lean_Elab_Term_TermElabM_inhabited___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_TermElabM_inhabited___closed__1; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_SynthInstance_SynthM_inhabited___lambda__1___boxed), 3, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_TermElabM_inhabited(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Elab_Term_TermElabM_inhabited___closed__2; +return x_2; +} +} lean_object* _init_l_Lean_Elab_Term_TermElabResult_inhabited___closed__1() { _start: { @@ -794,6 +841,28 @@ x_1 = l_Lean_Elab_Term_TermElabResult_inhabited___closed__1; return x_1; } } +lean_object* l_Lean_Elab_Term_Projection_hasToString(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_2; lean_object* x_3; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +lean_dec(x_1); +x_3 = l_Nat_repr(x_2); +return x_3; +} +else +{ +lean_object* x_4; +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +return x_4; +} +} +} lean_object* l_Lean_Elab_Term_observing(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -5675,6 +5744,314 @@ return x_37; } } } +lean_object* l_Lean_Elab_Term_whnfCore(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); +lean_dec(x_2); +x_5 = !lean_is_exclusive(x_3); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_ctor_get(x_3, 0); +x_7 = l_Lean_WHNF_whnfCore___main___at_Lean_Meta_whnfCore___spec__1(x_1, x_4, x_6); +if (lean_obj_tag(x_7) == 0) +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) +{ +lean_object* x_9; +x_9 = lean_ctor_get(x_7, 1); +lean_ctor_set(x_3, 0, x_9); +lean_ctor_set(x_7, 1, x_3); +return x_7; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_7, 0); +x_11 = lean_ctor_get(x_7, 1); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_7); +lean_ctor_set(x_3, 0, x_11); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_3); +return x_12; +} +} +else +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_7); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_7, 0); +x_15 = lean_ctor_get(x_7, 1); +x_16 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_3, 0, x_15); +lean_ctor_set(x_7, 1, x_3); +lean_ctor_set(x_7, 0, x_16); +return x_7; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_ctor_get(x_7, 0); +x_18 = lean_ctor_get(x_7, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_7); +x_19 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_3, 0, x_18); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_3); +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; +x_21 = lean_ctor_get(x_3, 0); +x_22 = lean_ctor_get(x_3, 1); +x_23 = lean_ctor_get(x_3, 2); +x_24 = lean_ctor_get(x_3, 3); +x_25 = lean_ctor_get(x_3, 4); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_3); +x_26 = l_Lean_WHNF_whnfCore___main___at_Lean_Meta_whnfCore___spec__1(x_1, x_4, x_21); +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); +if (lean_is_exclusive(x_26)) { + lean_ctor_release(x_26, 0); + lean_ctor_release(x_26, 1); + x_29 = x_26; +} else { + lean_dec_ref(x_26); + x_29 = lean_box(0); +} +x_30 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_22); +lean_ctor_set(x_30, 2, x_23); +lean_ctor_set(x_30, 3, x_24); +lean_ctor_set(x_30, 4, x_25); +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_27); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_32 = lean_ctor_get(x_26, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_26, 1); +lean_inc(x_33); +if (lean_is_exclusive(x_26)) { + lean_ctor_release(x_26, 0); + lean_ctor_release(x_26, 1); + x_34 = x_26; +} else { + lean_dec_ref(x_26); + x_34 = lean_box(0); +} +x_35 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_35, 0, x_32); +x_36 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_36, 0, x_33); +lean_ctor_set(x_36, 1, x_22); +lean_ctor_set(x_36, 2, x_23); +lean_ctor_set(x_36, 3, x_24); +lean_ctor_set(x_36, 4, x_25); +if (lean_is_scalar(x_34)) { + x_37 = lean_alloc_ctor(1, 2, 0); +} else { + x_37 = x_34; +} +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +} +lean_object* l_Lean_Elab_Term_unfoldDefinition(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); +lean_dec(x_2); +x_5 = !lean_is_exclusive(x_3); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_ctor_get(x_3, 0); +x_7 = l_Lean_WHNF_unfoldDefinitionAux___at_Lean_Meta_unfoldDefinition___spec__1(x_1, x_4, x_6); +if (lean_obj_tag(x_7) == 0) +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) +{ +lean_object* x_9; +x_9 = lean_ctor_get(x_7, 1); +lean_ctor_set(x_3, 0, x_9); +lean_ctor_set(x_7, 1, x_3); +return x_7; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_7, 0); +x_11 = lean_ctor_get(x_7, 1); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_7); +lean_ctor_set(x_3, 0, x_11); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_3); +return x_12; +} +} +else +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_7); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_7, 0); +x_15 = lean_ctor_get(x_7, 1); +x_16 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_3, 0, x_15); +lean_ctor_set(x_7, 1, x_3); +lean_ctor_set(x_7, 0, x_16); +return x_7; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_ctor_get(x_7, 0); +x_18 = lean_ctor_get(x_7, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_7); +x_19 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_3, 0, x_18); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_3); +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; +x_21 = lean_ctor_get(x_3, 0); +x_22 = lean_ctor_get(x_3, 1); +x_23 = lean_ctor_get(x_3, 2); +x_24 = lean_ctor_get(x_3, 3); +x_25 = lean_ctor_get(x_3, 4); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_3); +x_26 = l_Lean_WHNF_unfoldDefinitionAux___at_Lean_Meta_unfoldDefinition___spec__1(x_1, x_4, x_21); +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); +if (lean_is_exclusive(x_26)) { + lean_ctor_release(x_26, 0); + lean_ctor_release(x_26, 1); + x_29 = x_26; +} else { + lean_dec_ref(x_26); + x_29 = lean_box(0); +} +x_30 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_22); +lean_ctor_set(x_30, 2, x_23); +lean_ctor_set(x_30, 3, x_24); +lean_ctor_set(x_30, 4, x_25); +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_27); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_32 = lean_ctor_get(x_26, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_26, 1); +lean_inc(x_33); +if (lean_is_exclusive(x_26)) { + lean_ctor_release(x_26, 0); + lean_ctor_release(x_26, 1); + x_34 = x_26; +} else { + lean_dec_ref(x_26); + x_34 = lean_box(0); +} +x_35 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_35, 0, x_32); +x_36 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_36, 0, x_33); +lean_ctor_set(x_36, 1, x_22); +lean_ctor_set(x_36, 2, x_23); +lean_ctor_set(x_36, 3, x_24); +lean_ctor_set(x_36, 4, x_25); +if (lean_is_scalar(x_34)) { + x_37 = lean_alloc_ctor(1, 2, 0); +} else { + x_37 = x_34; +} +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +} lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -19478,287 +19855,400 @@ lean_dec(x_2); return x_4; } } -lean_object* _init_l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1___lambda__1___closed__1() { +lean_object* _init_l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1___closed__1() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_List_Monad; -x_2 = l_String_Inhabited; -x_3 = l_monadInhabited___rarg(x_1, x_2); -return x_3; +lean_object* x_1; +x_1 = l_Lean_Elab_Term_TermElabM_inhabited(lean_box(0)); +return x_1; } } -lean_object* _init_l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1___lambda__1___closed__2() { +lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Expr_Inhabited; -x_2 = l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1___lambda__1___closed__1; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -lean_object* _init_l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1___lambda__1___closed__3() { -_start: +if (lean_obj_tag(x_4) == 0) { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_List_Monad; -x_2 = l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1___lambda__1___closed__2; -x_3 = l_monadInhabited___rarg(x_1, x_2); -return x_3; +lean_object* x_7; +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_3); +lean_ctor_set(x_7, 1, x_6); +return x_7; } -} -lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: +else { uint8_t x_8; -x_8 = !lean_is_exclusive(x_1); +x_8 = !lean_is_exclusive(x_4); if (x_8 == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = lean_ctor_get(x_1, 0); -x_10 = lean_ctor_get(x_1, 1); -lean_inc(x_9); -x_11 = lean_environment_find(x_2, x_9); -if (lean_obj_tag(x_11) == 0) +lean_object* x_9; uint8_t x_10; +x_9 = lean_ctor_get(x_4, 0); +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -lean_free_object(x_1); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_4); -x_12 = l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1___lambda__1___closed__3; -x_13 = l_monadInhabited___rarg(x_3, x_12); -x_14 = l_unreachable_x21___rarg(x_13); -x_15 = lean_apply_2(x_14, x_6, x_7); -return x_15; +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_ctor_get(x_4, 1); +x_12 = lean_ctor_get(x_9, 0); +x_13 = lean_ctor_get(x_9, 1); +lean_inc(x_12); +lean_inc(x_2); +x_14 = lean_environment_find(x_2, x_12); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +lean_free_object(x_9); +lean_dec(x_13); +lean_dec(x_12); +lean_free_object(x_4); +lean_dec(x_3); +x_15 = l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1___closed__1; +x_16 = l_unreachable_x21___rarg(x_15); +lean_inc(x_5); +x_17 = lean_apply_2(x_16, x_5, x_6); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_3 = x_18; +x_4 = x_11; +x_6 = x_19; +goto _start; } else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; -lean_dec(x_3); -x_16 = lean_ctor_get(x_11, 0); -lean_inc(x_16); +uint8_t x_21; lean_dec(x_11); -x_17 = l_Lean_ConstantInfo_lparams(x_16); -lean_dec(x_16); -x_18 = lean_unsigned_to_nat(0u); -x_19 = l_List_lengthAux___main___rarg(x_17, x_18); -lean_dec(x_17); -x_20 = l_List_lengthAux___main___rarg(x_4, x_18); -x_21 = lean_nat_dec_lt(x_19, x_20); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_21 = !lean_is_exclusive(x_17); if (x_21 == 0) { -lean_object* x_22; lean_object* x_23; uint8_t x_24; -x_22 = lean_nat_sub(x_19, x_20); -lean_dec(x_20); -lean_dec(x_19); -x_23 = l___private_Init_Lean_Elab_Term_11__mkFreshLevelMVars(x_22, x_6, x_7); -lean_dec(x_6); -x_24 = !lean_is_exclusive(x_23); -if (x_24 == 0) -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_25 = lean_ctor_get(x_23, 0); -x_26 = l_List_append___rarg(x_4, x_25); -x_27 = l_Lean_mkConst(x_9, x_26); -lean_ctor_set(x_1, 0, x_27); -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_1); -lean_ctor_set(x_28, 1, x_5); -lean_ctor_set(x_23, 0, x_28); -return x_23; +return x_17; } else { -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_29 = lean_ctor_get(x_23, 0); -x_30 = lean_ctor_get(x_23, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_23); -x_31 = l_List_append___rarg(x_4, x_29); -x_32 = l_Lean_mkConst(x_9, x_31); -lean_ctor_set(x_1, 0, x_32); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_1); -lean_ctor_set(x_33, 1, x_5); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_30); -return x_34; -} -} -else -{ -lean_object* x_35; -lean_dec(x_20); -lean_dec(x_19); -lean_free_object(x_1); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_6); -lean_dec(x_4); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_5); -lean_ctor_set(x_35, 1, x_7); -return x_35; +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_17, 0); +x_23 = lean_ctor_get(x_17, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_17); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; } } } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_1, 0); -x_37 = lean_ctor_get(x_1, 1); -lean_inc(x_37); -lean_inc(x_36); -lean_dec(x_1); -lean_inc(x_36); -x_38 = lean_environment_find(x_2, x_36); -if (lean_obj_tag(x_38) == 0) +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; +x_25 = lean_ctor_get(x_14, 0); +lean_inc(x_25); +lean_dec(x_14); +x_26 = l_Lean_ConstantInfo_lparams(x_25); +lean_dec(x_25); +x_27 = lean_unsigned_to_nat(0u); +x_28 = l_List_lengthAux___main___rarg(x_26, x_27); +lean_dec(x_26); +x_29 = l_List_lengthAux___main___rarg(x_1, x_27); +x_30 = lean_nat_dec_lt(x_28, x_29); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_31 = lean_nat_sub(x_28, x_29); +lean_dec(x_29); +lean_dec(x_28); +x_32 = l___private_Init_Lean_Elab_Term_11__mkFreshLevelMVars(x_31, x_5, x_6); +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +lean_dec(x_32); +lean_inc(x_1); +x_35 = l_List_append___rarg(x_1, x_33); +x_36 = l_Lean_mkConst(x_12, x_35); +lean_ctor_set(x_9, 0, x_36); +lean_ctor_set(x_4, 1, x_3); +x_3 = x_4; +x_4 = x_11; +x_6 = x_34; +goto _start; +} +else +{ +lean_dec(x_29); +lean_dec(x_28); +lean_free_object(x_9); +lean_dec(x_13); +lean_dec(x_12); +lean_free_object(x_4); +x_4 = x_11; +goto _start; +} +} +} +else { lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -lean_dec(x_37); -lean_dec(x_36); -lean_dec(x_5); -lean_dec(x_4); -x_39 = l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1___lambda__1___closed__3; -x_40 = l_monadInhabited___rarg(x_3, x_39); -x_41 = l_unreachable_x21___rarg(x_40); -x_42 = lean_apply_2(x_41, x_6, x_7); -return x_42; -} -else -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; -lean_dec(x_3); -x_43 = lean_ctor_get(x_38, 0); -lean_inc(x_43); -lean_dec(x_38); -x_44 = l_Lean_ConstantInfo_lparams(x_43); -lean_dec(x_43); -x_45 = lean_unsigned_to_nat(0u); -x_46 = l_List_lengthAux___main___rarg(x_44, x_45); -lean_dec(x_44); -x_47 = l_List_lengthAux___main___rarg(x_4, x_45); -x_48 = lean_nat_dec_lt(x_46, x_47); -if (x_48 == 0) -{ -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; -x_49 = lean_nat_sub(x_46, x_47); -lean_dec(x_47); -lean_dec(x_46); -x_50 = l___private_Init_Lean_Elab_Term_11__mkFreshLevelMVars(x_49, x_6, x_7); -lean_dec(x_6); -x_51 = lean_ctor_get(x_50, 0); -lean_inc(x_51); -x_52 = lean_ctor_get(x_50, 1); -lean_inc(x_52); -if (lean_is_exclusive(x_50)) { - lean_ctor_release(x_50, 0); - lean_ctor_release(x_50, 1); - x_53 = x_50; -} else { - lean_dec_ref(x_50); - x_53 = lean_box(0); -} -x_54 = l_List_append___rarg(x_4, x_51); -x_55 = l_Lean_mkConst(x_36, x_54); -x_56 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_56, 1, x_37); -x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_56); -lean_ctor_set(x_57, 1, x_5); -if (lean_is_scalar(x_53)) { - x_58 = lean_alloc_ctor(0, 2, 0); -} else { - x_58 = x_53; -} -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_52); -return x_58; -} -else -{ -lean_object* x_59; -lean_dec(x_47); -lean_dec(x_46); -lean_dec(x_37); -lean_dec(x_36); -lean_dec(x_6); -lean_dec(x_4); -x_59 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_59, 0, x_5); -lean_ctor_set(x_59, 1, x_7); -return x_59; -} -} -} -} -} -lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___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) { -_start: -{ -lean_object* x_8; -x_8 = l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1(x_1, x_2, x_3, x_5, x_4, x_6, x_7); -return x_8; -} -} -lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -if (lean_obj_tag(x_5) == 0) -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; -lean_dec(x_3); -lean_dec(x_1); -x_8 = lean_ctor_get(x_2, 0); -lean_inc(x_8); -lean_dec(x_2); -x_9 = lean_ctor_get(x_8, 1); -lean_inc(x_9); -lean_dec(x_8); -x_10 = lean_apply_4(x_9, lean_box(0), x_4, x_6, x_7); -return x_10; -} -else -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_11 = lean_ctor_get(x_5, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_5, 1); -lean_inc(x_12); -lean_dec(x_5); -x_13 = lean_ctor_get(x_2, 1); -lean_inc(x_13); -lean_inc(x_1); +x_39 = lean_ctor_get(x_4, 1); +x_40 = lean_ctor_get(x_9, 0); +x_41 = lean_ctor_get(x_9, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_9); +lean_inc(x_40); lean_inc(x_2); -lean_inc(x_3); -x_14 = lean_alloc_closure((void*)(l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1___lambda__1), 7, 5); -lean_closure_set(x_14, 0, x_11); -lean_closure_set(x_14, 1, x_3); -lean_closure_set(x_14, 2, x_2); -lean_closure_set(x_14, 3, x_1); -lean_closure_set(x_14, 4, x_4); -x_15 = lean_alloc_closure((void*)(l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1___lambda__2), 7, 4); -lean_closure_set(x_15, 0, x_1); -lean_closure_set(x_15, 1, x_2); -lean_closure_set(x_15, 2, x_3); -lean_closure_set(x_15, 3, x_12); -x_16 = lean_apply_6(x_13, lean_box(0), lean_box(0), x_14, x_15, x_6, x_7); -return x_16; +x_42 = lean_environment_find(x_2, x_40); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +lean_dec(x_41); +lean_dec(x_40); +lean_free_object(x_4); +lean_dec(x_3); +x_43 = l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1___closed__1; +x_44 = l_unreachable_x21___rarg(x_43); +lean_inc(x_5); +x_45 = lean_apply_2(x_44, x_5, x_6); +if (lean_obj_tag(x_45) == 0) +{ +lean_object* x_46; lean_object* x_47; +x_46 = lean_ctor_get(x_45, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_45, 1); +lean_inc(x_47); +lean_dec(x_45); +x_3 = x_46; +x_4 = x_39; +x_6 = x_47; +goto _start; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +lean_dec(x_39); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_49 = lean_ctor_get(x_45, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_45, 1); +lean_inc(x_50); +if (lean_is_exclusive(x_45)) { + lean_ctor_release(x_45, 0); + lean_ctor_release(x_45, 1); + x_51 = x_45; +} else { + lean_dec_ref(x_45); + x_51 = lean_box(0); +} +if (lean_is_scalar(x_51)) { + x_52 = lean_alloc_ctor(1, 2, 0); +} else { + x_52 = x_51; +} +lean_ctor_set(x_52, 0, x_49); +lean_ctor_set(x_52, 1, x_50); +return x_52; +} +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_53 = lean_ctor_get(x_42, 0); +lean_inc(x_53); +lean_dec(x_42); +x_54 = l_Lean_ConstantInfo_lparams(x_53); +lean_dec(x_53); +x_55 = lean_unsigned_to_nat(0u); +x_56 = l_List_lengthAux___main___rarg(x_54, x_55); +lean_dec(x_54); +x_57 = l_List_lengthAux___main___rarg(x_1, x_55); +x_58 = lean_nat_dec_lt(x_56, 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; +x_59 = lean_nat_sub(x_56, x_57); +lean_dec(x_57); +lean_dec(x_56); +x_60 = l___private_Init_Lean_Elab_Term_11__mkFreshLevelMVars(x_59, x_5, x_6); +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +lean_dec(x_60); +lean_inc(x_1); +x_63 = l_List_append___rarg(x_1, x_61); +x_64 = l_Lean_mkConst(x_40, x_63); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_41); +lean_ctor_set(x_4, 1, x_3); +lean_ctor_set(x_4, 0, x_65); +x_3 = x_4; +x_4 = x_39; +x_6 = x_62; +goto _start; +} +else +{ +lean_dec(x_57); +lean_dec(x_56); +lean_dec(x_41); +lean_dec(x_40); +lean_free_object(x_4); +x_4 = x_39; +goto _start; +} +} +} +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_68 = lean_ctor_get(x_4, 0); +x_69 = lean_ctor_get(x_4, 1); +lean_inc(x_69); +lean_inc(x_68); +lean_dec(x_4); +x_70 = lean_ctor_get(x_68, 0); +lean_inc(x_70); +x_71 = lean_ctor_get(x_68, 1); +lean_inc(x_71); +if (lean_is_exclusive(x_68)) { + lean_ctor_release(x_68, 0); + lean_ctor_release(x_68, 1); + x_72 = x_68; +} else { + lean_dec_ref(x_68); + x_72 = lean_box(0); +} +lean_inc(x_70); +lean_inc(x_2); +x_73 = lean_environment_find(x_2, x_70); +if (lean_obj_tag(x_73) == 0) +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; +lean_dec(x_72); +lean_dec(x_71); +lean_dec(x_70); +lean_dec(x_3); +x_74 = l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1___closed__1; +x_75 = l_unreachable_x21___rarg(x_74); +lean_inc(x_5); +x_76 = lean_apply_2(x_75, x_5, x_6); +if (lean_obj_tag(x_76) == 0) +{ +lean_object* x_77; lean_object* x_78; +x_77 = lean_ctor_get(x_76, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_76, 1); +lean_inc(x_78); +lean_dec(x_76); +x_3 = x_77; +x_4 = x_69; +x_6 = x_78; +goto _start; +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +lean_dec(x_69); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_80 = lean_ctor_get(x_76, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_76, 1); +lean_inc(x_81); +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + x_82 = x_76; +} else { + lean_dec_ref(x_76); + x_82 = lean_box(0); +} +if (lean_is_scalar(x_82)) { + x_83 = lean_alloc_ctor(1, 2, 0); +} else { + x_83 = x_82; +} +lean_ctor_set(x_83, 0, x_80); +lean_ctor_set(x_83, 1, x_81); +return x_83; +} +} +else +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; +x_84 = lean_ctor_get(x_73, 0); +lean_inc(x_84); +lean_dec(x_73); +x_85 = l_Lean_ConstantInfo_lparams(x_84); +lean_dec(x_84); +x_86 = lean_unsigned_to_nat(0u); +x_87 = l_List_lengthAux___main___rarg(x_85, x_86); +lean_dec(x_85); +x_88 = l_List_lengthAux___main___rarg(x_1, x_86); +x_89 = lean_nat_dec_lt(x_87, x_88); +if (x_89 == 0) +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_90 = lean_nat_sub(x_87, x_88); +lean_dec(x_88); +lean_dec(x_87); +x_91 = l___private_Init_Lean_Elab_Term_11__mkFreshLevelMVars(x_90, x_5, x_6); +x_92 = lean_ctor_get(x_91, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_91, 1); +lean_inc(x_93); +lean_dec(x_91); +lean_inc(x_1); +x_94 = l_List_append___rarg(x_1, x_92); +x_95 = l_Lean_mkConst(x_70, x_94); +if (lean_is_scalar(x_72)) { + x_96 = lean_alloc_ctor(0, 2, 0); +} else { + x_96 = x_72; +} +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_71); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_96); +lean_ctor_set(x_97, 1, x_3); +x_3 = x_97; +x_4 = x_69; +x_6 = x_93; +goto _start; +} +else +{ +lean_dec(x_88); +lean_dec(x_87); +lean_dec(x_72); +lean_dec(x_71); +lean_dec(x_70); +x_4 = x_69; +goto _start; +} +} +} } } } lean_object* l___private_Init_Lean_Elab_Term_12__mkConsts(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; x_5 = l_Lean_Elab_Term_getEnv___rarg(x_4); x_6 = lean_ctor_get(x_5, 0); lean_inc(x_6); @@ -19766,9 +20256,8 @@ x_7 = lean_ctor_get(x_5, 1); lean_inc(x_7); lean_dec(x_5); x_8 = lean_box(0); -x_9 = l___private_Init_Lean_Meta_Check_2__checkLambdaLet___lambda__2___closed__1; -x_10 = l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1(x_2, x_9, x_6, x_8, x_1, x_3, x_7); -return x_10; +x_9 = l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1(x_2, x_6, x_8, x_1, x_3, x_7); +return x_9; } } lean_object* _init_l_Lean_Elab_Term_resolveName___closed__1() { @@ -21954,333 +22443,566 @@ lean_dec(x_4); return x_10; } } -lean_object* l___private_Init_Lean_Elab_Term_15__elabAppProjs(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l___private_Init_Lean_Elab_Term_14__elabAppArgs(x_1, x_2, x_4, x_5, x_6, x_7, x_8, x_9); -return x_10; -} -} -lean_object* l___private_Init_Lean_Elab_Term_15__elabAppProjs___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -uint8_t x_10; lean_object* x_11; -x_10 = lean_unbox(x_7); -lean_dec(x_7); -x_11 = l___private_Init_Lean_Elab_Term_15__elabAppProjs(x_1, x_2, x_3, x_4, x_5, x_6, x_10, x_8, x_9); -lean_dec(x_5); -lean_dec(x_3); -return x_11; -} -} -lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_Term_16__elabAppFn___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Init_Lean_Elab_Term_15__elabAppProjsAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { if (lean_obj_tag(x_7) == 0) { lean_object* x_10; -lean_dec(x_8); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_6); -lean_ctor_set(x_10, 1, x_9); +x_10 = l___private_Init_Lean_Elab_Term_14__elabAppArgs(x_1, x_6, x_2, x_3, x_4, x_5, x_8, 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; -x_11 = lean_ctor_get(x_7, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_7, 1); -lean_inc(x_12); -lean_dec(x_7); -x_13 = lean_ctor_get(x_11, 0); -lean_inc(x_13); -lean_dec(x_11); -lean_inc(x_9); +lean_object* x_11; lean_inc(x_8); -lean_inc(x_4); -lean_inc(x_2); -lean_inc(x_1); -x_14 = l___private_Init_Lean_Elab_Term_14__elabAppArgs(x_1, x_13, x_2, x_3, x_4, x_5, x_8, x_9); -x_15 = lean_array_push(x_6, x_14); -x_6 = x_15; -x_7 = x_12; -goto _start; -} -} -} -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Term_16__elabAppFn___main___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: +lean_inc(x_6); +x_11 = l_Lean_Elab_Term_inferType(x_6, x_8, x_9); +if (lean_obj_tag(x_11) == 0) { -lean_object* x_12; uint8_t x_13; -x_12 = lean_array_get_size(x_7); -x_13 = lean_nat_dec_lt(x_8, x_12); -lean_dec(x_12); -if (x_13 == 0) -{ -lean_object* x_14; -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_1); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_9); -lean_ctor_set(x_14, 1, x_11); -return x_14; +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_11, 1); +lean_inc(x_12); +lean_dec(x_11); +x_13 = l___private_Init_Lean_Elab_Term_14__elabAppArgs(x_1, x_6, x_2, x_3, x_4, x_5, x_8, x_12); +return x_13; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_15 = lean_array_fget(x_7, x_8); -x_16 = lean_unsigned_to_nat(1u); -x_17 = lean_nat_add(x_8, x_16); +uint8_t x_14; lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_14 = !lean_is_exclusive(x_11); +if (x_14 == 0) +{ +return x_11; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_11, 0); +x_16 = lean_ctor_get(x_11, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_11); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +} +} +} +lean_object* l___private_Init_Lean_Elab_Term_15__elabAppProjsAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_5); +lean_dec(x_5); +x_11 = l___private_Init_Lean_Elab_Term_15__elabAppProjsAux(x_1, x_2, x_3, x_4, x_10, x_6, x_7, x_8, x_9); +lean_dec(x_7); +lean_dec(x_3); +return x_11; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Term_16__elabAppProjs___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("invalid use of projection notation with `@` modifier"); +return x_1; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Term_16__elabAppProjs___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Init_Lean_Elab_Term_16__elabAppProjs___closed__1; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Term_16__elabAppProjs___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Init_Lean_Elab_Term_16__elabAppProjs___closed__2; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l___private_Init_Lean_Elab_Term_16__elabAppProjs(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +uint8_t x_10; +x_10 = l_List_isEmpty___rarg(x_3); +if (x_10 == 0) +{ +if (x_7 == 0) +{ +lean_object* x_11; +x_11 = l___private_Init_Lean_Elab_Term_15__elabAppProjsAux(x_1, x_4, x_5, x_6, x_7, x_2, x_3, x_8, x_9); +return x_11; +} +else +{ +lean_object* x_12; lean_object* x_13; uint8_t x_14; +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +x_12 = l___private_Init_Lean_Elab_Term_16__elabAppProjs___closed__3; +x_13 = l_Lean_Elab_logErrorAndThrow___at_Lean_Elab_Term_addNamedArg___spec__2(x_1, x_12, x_8, x_9); +lean_dec(x_8); +lean_dec(x_1); +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +return x_13; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_13, 0); +x_16 = lean_ctor_get(x_13, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_13); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +} +else +{ +lean_object* x_18; +x_18 = l___private_Init_Lean_Elab_Term_15__elabAppProjsAux(x_1, x_4, x_5, x_6, x_7, x_2, x_3, x_8, x_9); +return x_18; +} +} +} +lean_object* l___private_Init_Lean_Elab_Term_16__elabAppProjs___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_7); +lean_dec(x_7); +x_11 = l___private_Init_Lean_Elab_Term_16__elabAppProjs(x_1, x_2, x_3, x_4, x_5, x_6, x_10, x_8, x_9); +lean_dec(x_5); +lean_dec(x_3); +return x_11; +} +} +lean_object* l_List_map___main___at___private_Init_Lean_Elab_Term_17__elabAppFn___main___spec__1(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_2; +x_2 = lean_box(0); +return x_2; +} +else +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_1); +if (x_3 == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_1, 0); +x_5 = lean_ctor_get(x_1, 1); +x_6 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_6, 0, x_4); +x_7 = l_List_map___main___at___private_Init_Lean_Elab_Term_17__elabAppFn___main___spec__1(x_5); +lean_ctor_set(x_1, 1, x_7); +lean_ctor_set(x_1, 0, x_6); +return x_1; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_8 = lean_ctor_get(x_1, 0); +x_9 = lean_ctor_get(x_1, 1); +lean_inc(x_9); +lean_inc(x_8); +lean_dec(x_1); +x_10 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_10, 0, x_8); +x_11 = l_List_map___main___at___private_Init_Lean_Elab_Term_17__elabAppFn___main___spec__1(x_9); +x_12 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +return x_12; +} +} +} +} +lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_Term_17__elabAppFn___main___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_11; +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_7); +lean_ctor_set(x_11, 1, x_10); +return x_11; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_12 = lean_ctor_get(x_8, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_8, 1); +lean_inc(x_13); +lean_dec(x_8); +x_14 = lean_ctor_get(x_12, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_12, 1); +lean_inc(x_15); +lean_dec(x_12); +x_16 = l_List_map___main___at___private_Init_Lean_Elab_Term_17__elabAppFn___main___spec__1(x_15); +lean_inc(x_2); +x_17 = l_List_append___rarg(x_16, x_2); lean_inc(x_10); +lean_inc(x_9); lean_inc(x_5); lean_inc(x_3); lean_inc(x_1); -x_18 = l___private_Init_Lean_Elab_Term_16__elabAppFn___main(x_1, x_15, x_3, x_4, x_5, x_6, x_9, x_10, x_11); -if (lean_obj_tag(x_18) == 0) +x_18 = l___private_Init_Lean_Elab_Term_16__elabAppProjs(x_1, x_14, x_17, x_3, x_4, x_5, x_6, x_9, x_10); +lean_dec(x_17); +x_19 = lean_array_push(x_7, x_18); +x_7 = x_19; +x_8 = x_13; +goto _start; +} +} +} +lean_object* l_Lean_Elab_logErrorAndThrow___at___private_Init_Lean_Elab_Term_17__elabAppFn___main___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: { -lean_object* x_19; lean_object* x_20; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); +uint8_t x_5; lean_object* x_6; uint8_t x_7; +x_5 = 2; +x_6 = l_Lean_Elab_log___at_Lean_Elab_Term_ensureType___spec__2(x_1, x_5, x_2, x_3, x_4); +x_7 = !lean_is_exclusive(x_6); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_ctor_get(x_6, 0); +lean_dec(x_8); +x_9 = lean_box(5); +lean_ctor_set_tag(x_6, 1); +lean_ctor_set(x_6, 0, x_9); +return x_6; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_6, 1); +lean_inc(x_10); +lean_dec(x_6); +x_11 = lean_box(5); +x_12 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_10); +return x_12; +} +} +} +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Term_17__elabAppFn___main___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; uint8_t x_14; +x_13 = lean_array_get_size(x_8); +x_14 = lean_nat_dec_lt(x_9, x_13); +lean_dec(x_13); +if (x_14 == 0) +{ +lean_object* x_15; +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_10); +lean_ctor_set(x_15, 1, x_12); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_16 = lean_array_fget(x_8, x_9); +x_17 = lean_unsigned_to_nat(1u); +x_18 = lean_nat_add(x_9, x_17); +lean_dec(x_9); +lean_inc(x_11); +lean_inc(x_6); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_19 = l___private_Init_Lean_Elab_Term_17__elabAppFn___main(x_1, x_16, x_3, x_4, x_5, x_6, x_7, x_10, x_11, x_12); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); -lean_dec(x_18); -x_8 = x_17; -x_9 = x_19; -x_11 = x_20; +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_9 = x_18; +x_10 = x_20; +x_12 = x_21; goto _start; } else { -uint8_t x_22; -lean_dec(x_17); -lean_dec(x_10); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_1); -x_22 = !lean_is_exclusive(x_18); -if (x_22 == 0) -{ -return x_18; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_18, 0); -x_24 = lean_ctor_get(x_18, 1); -lean_inc(x_24); -lean_inc(x_23); +uint8_t x_23; lean_dec(x_18); -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* _init_l___private_Init_Lean_Elab_Term_16__elabAppFn___main___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Meta_Check_2__checkLambdaLet___lambda__2___closed__1; -x_2 = l_Array_empty___closed__1; -x_3 = l_monadInhabited___rarg(x_1, x_2); -return x_3; -} -} -lean_object* l___private_Init_Lean_Elab_Term_16__elabAppFn___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_10 = l_Lean_Syntax_getKind(x_2); -x_11 = l_Lean_Parser_Term_explicit___elambda__1___closed__2; -x_12 = lean_name_eq(x_10, x_11); -if (x_12 == 0) -{ -lean_object* x_13; uint8_t x_14; -x_13 = l_Lean_choiceKind; -x_14 = lean_name_eq(x_10, x_13); -if (x_14 == 0) -{ -lean_object* x_15; uint8_t x_16; -x_15 = l_Lean_Parser_Term_id___elambda__1___closed__2; -x_16 = lean_name_eq(x_10, x_15); -lean_dec(x_10); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; -x_17 = lean_box(0); -x_18 = lean_ctor_get(x_8, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_8, 1); -lean_inc(x_19); -x_20 = lean_ctor_get(x_8, 2); -lean_inc(x_20); -x_21 = lean_ctor_get(x_8, 3); -lean_inc(x_21); -x_22 = lean_ctor_get(x_8, 4); -lean_inc(x_22); -x_23 = lean_ctor_get(x_8, 5); -lean_inc(x_23); -x_24 = lean_ctor_get(x_8, 6); -lean_inc(x_24); -x_25 = lean_ctor_get(x_8, 7); -lean_inc(x_25); -x_26 = 0; -x_27 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_27, 0, x_18); -lean_ctor_set(x_27, 1, x_19); -lean_ctor_set(x_27, 2, x_20); -lean_ctor_set(x_27, 3, x_21); -lean_ctor_set(x_27, 4, x_22); -lean_ctor_set(x_27, 5, x_23); -lean_ctor_set(x_27, 6, x_24); -lean_ctor_set(x_27, 7, x_25); -lean_ctor_set_uint8(x_27, sizeof(void*)*8, x_26); -x_28 = l_Lean_Elab_Term_elabTerm(x_2, x_17, x_27, x_9); -if (lean_obj_tag(x_28) == 0) -{ -uint8_t x_29; -x_29 = !lean_is_exclusive(x_28); -if (x_29 == 0) -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_30 = lean_ctor_get(x_28, 0); -x_31 = lean_ctor_get(x_28, 1); -lean_inc(x_31); -x_32 = l___private_Init_Lean_Elab_Term_14__elabAppArgs(x_1, x_30, x_3, x_4, x_5, x_6, x_8, x_31); -x_33 = lean_array_push(x_7, x_32); -lean_ctor_set(x_28, 0, x_33); -return x_28; -} -else -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_34 = lean_ctor_get(x_28, 0); -x_35 = lean_ctor_get(x_28, 1); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_28); -lean_inc(x_35); -x_36 = l___private_Init_Lean_Elab_Term_14__elabAppArgs(x_1, x_34, x_3, x_4, x_5, x_6, x_8, x_35); -x_37 = lean_array_push(x_7, x_36); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_35); -return x_38; -} -} -else -{ -uint8_t x_39; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); +lean_dec(x_11); +lean_dec(x_6); +lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_39 = !lean_is_exclusive(x_28); -if (x_39 == 0) +x_23 = !lean_is_exclusive(x_19); +if (x_23 == 0) { -return x_28; +return x_19; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_28, 0); -x_41 = lean_ctor_get(x_28, 1); -lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_28); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -return x_42; +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_19, 0); +x_25 = lean_ctor_get(x_19, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_19); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +} +} +} +lean_object* _init_l___private_Init_Lean_Elab_Term_17__elabAppFn___main___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("unexpected kind of field access"); +return x_1; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Term_17__elabAppFn___main___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Init_Lean_Elab_Term_17__elabAppFn___main___closed__1; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Term_17__elabAppFn___main___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Init_Lean_Elab_Term_17__elabAppFn___main___closed__2; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l___private_Init_Lean_Elab_Term_17__elabAppFn___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_11 = l_Lean_Syntax_getKind(x_2); +x_12 = l_Lean_Parser_Term_explicit___elambda__1___closed__2; +x_13 = lean_name_eq(x_11, x_12); +if (x_13 == 0) +{ +lean_object* x_14; uint8_t x_15; +x_14 = l_Lean_choiceKind; +x_15 = lean_name_eq(x_11, x_14); +if (x_15 == 0) +{ +lean_object* x_16; uint8_t x_17; +x_16 = l_Lean_Parser_Term_proj___elambda__1___closed__2; +x_17 = lean_name_eq(x_11, x_16); +if (x_17 == 0) +{ +lean_object* x_18; uint8_t x_19; +x_18 = l_Lean_Parser_Term_id___elambda__1___closed__2; +x_19 = lean_name_eq(x_11, x_18); +lean_dec(x_11); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; +x_20 = lean_box(0); +x_21 = lean_ctor_get(x_9, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_9, 1); +lean_inc(x_22); +x_23 = lean_ctor_get(x_9, 2); +lean_inc(x_23); +x_24 = lean_ctor_get(x_9, 3); +lean_inc(x_24); +x_25 = lean_ctor_get(x_9, 4); +lean_inc(x_25); +x_26 = lean_ctor_get(x_9, 5); +lean_inc(x_26); +x_27 = lean_ctor_get(x_9, 6); +lean_inc(x_27); +x_28 = lean_ctor_get(x_9, 7); +lean_inc(x_28); +x_29 = 0; +x_30 = lean_alloc_ctor(0, 8, 1); +lean_ctor_set(x_30, 0, x_21); +lean_ctor_set(x_30, 1, x_22); +lean_ctor_set(x_30, 2, x_23); +lean_ctor_set(x_30, 3, x_24); +lean_ctor_set(x_30, 4, x_25); +lean_ctor_set(x_30, 5, x_26); +lean_ctor_set(x_30, 6, x_27); +lean_ctor_set(x_30, 7, x_28); +lean_ctor_set_uint8(x_30, sizeof(void*)*8, x_29); +x_31 = l_Lean_Elab_Term_elabTerm(x_2, x_20, x_30, x_10); +if (lean_obj_tag(x_31) == 0) +{ +uint8_t x_32; +x_32 = !lean_is_exclusive(x_31); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_33 = lean_ctor_get(x_31, 0); +x_34 = lean_ctor_get(x_31, 1); +lean_inc(x_34); +x_35 = l___private_Init_Lean_Elab_Term_16__elabAppProjs(x_1, x_33, x_3, x_4, x_5, x_6, x_7, x_9, x_34); +lean_dec(x_3); +x_36 = lean_array_push(x_8, x_35); +lean_ctor_set(x_31, 0, x_36); +return x_31; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_37 = lean_ctor_get(x_31, 0); +x_38 = lean_ctor_get(x_31, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_31); +lean_inc(x_38); +x_39 = l___private_Init_Lean_Elab_Term_16__elabAppProjs(x_1, x_37, x_3, x_4, x_5, x_6, x_7, x_9, x_38); +lean_dec(x_3); +x_40 = lean_array_push(x_8, x_39); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_38); +return x_41; +} +} +else +{ +uint8_t x_42; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_42 = !lean_is_exclusive(x_31); +if (x_42 == 0) +{ +return x_31; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_31, 0); +x_44 = lean_ctor_get(x_31, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_31); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; } } } else { -lean_object* x_43; lean_object* x_44; -x_43 = lean_unsigned_to_nat(0u); -x_44 = l_Lean_Syntax_getArg(x_2, x_43); -if (lean_obj_tag(x_44) == 3) +lean_object* x_46; lean_object* x_47; +x_46 = lean_unsigned_to_nat(0u); +x_47 = l_Lean_Syntax_getArg(x_2, x_46); +if (lean_obj_tag(x_47) == 3) { -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_45 = lean_ctor_get(x_44, 2); -lean_inc(x_45); -x_46 = lean_ctor_get(x_44, 3); -lean_inc(x_46); -lean_dec(x_44); -x_47 = l_Lean_Elab_Term_elabExplicitUniv___rarg(x_9); -x_48 = lean_ctor_get(x_47, 0); +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_48 = lean_ctor_get(x_47, 2); lean_inc(x_48); -x_49 = lean_ctor_get(x_47, 1); +x_49 = lean_ctor_get(x_47, 3); lean_inc(x_49); lean_dec(x_47); -lean_inc(x_8); -x_50 = l_Lean_Elab_Term_resolveName(x_45, x_46, x_48, x_2, x_8, x_49); -lean_dec(x_2); -if (lean_obj_tag(x_50) == 0) -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_50 = l_Lean_Elab_Term_elabExplicitUniv___rarg(x_10); x_51 = lean_ctor_get(x_50, 0); lean_inc(x_51); x_52 = lean_ctor_get(x_50, 1); lean_inc(x_52); lean_dec(x_50); -x_53 = l_List_foldlM___main___at___private_Init_Lean_Elab_Term_16__elabAppFn___main___spec__1(x_1, x_3, x_4, x_5, x_6, x_7, x_51, x_8, x_52); +lean_inc(x_9); +x_53 = l_Lean_Elab_Term_resolveName(x_48, x_49, x_51, x_2, x_9, x_52); +lean_dec(x_2); +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); +x_56 = l_List_foldlM___main___at___private_Init_Lean_Elab_Term_17__elabAppFn___main___spec__2(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_54, x_9, x_55); +return x_56; +} +else +{ +uint8_t x_57; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_57 = !lean_is_exclusive(x_53); +if (x_57 == 0) +{ return x_53; } else { -uint8_t x_54; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_1); -x_54 = !lean_is_exclusive(x_50); -if (x_54 == 0) -{ -return x_50; -} -else -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_50, 0); -x_56 = lean_ctor_get(x_50, 1); -lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_50); -x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_55); -lean_ctor_set(x_57, 1, x_56); -return x_57; -} -} -} -else -{ lean_object* x_58; lean_object* x_59; lean_object* x_60; -lean_dec(x_44); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_58 = l___private_Init_Lean_Elab_Term_16__elabAppFn___main___closed__1; -x_59 = l_unreachable_x21___rarg(x_58); -x_60 = lean_apply_2(x_59, x_8, x_9); +x_58 = lean_ctor_get(x_53, 0); +x_59 = lean_ctor_get(x_53, 1); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_53); +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; } } @@ -22288,84 +23010,191 @@ return x_60; else { lean_object* x_61; lean_object* x_62; lean_object* x_63; -lean_dec(x_10); -x_61 = l_Lean_Syntax_getArgs(x_2); -x_62 = lean_unsigned_to_nat(0u); -x_63 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Term_16__elabAppFn___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_61, x_62, x_7, x_8, x_9); -lean_dec(x_61); +lean_dec(x_47); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); lean_dec(x_2); +lean_dec(x_1); +x_61 = l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1___closed__1; +x_62 = l_unreachable_x21___rarg(x_61); +x_63 = lean_apply_2(x_62, x_9, x_10); return x_63; } } +} else { -lean_object* x_64; lean_object* x_65; uint8_t x_66; -lean_dec(x_10); -x_64 = lean_unsigned_to_nat(1u); +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +lean_dec(x_11); +x_64 = lean_unsigned_to_nat(2u); x_65 = l_Lean_Syntax_getArg(x_2, x_64); +x_66 = l_Lean_fieldIdxKind; +x_67 = l_Lean_Syntax_isNatLitAux(x_66, x_65); +if (lean_obj_tag(x_67) == 0) +{ +if (lean_obj_tag(x_65) == 3) +{ +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; uint8_t x_77; +x_68 = lean_ctor_get(x_65, 1); +lean_inc(x_68); +lean_dec(x_65); +x_69 = lean_unsigned_to_nat(0u); +x_70 = l_Lean_Syntax_getArg(x_2, x_69); lean_dec(x_2); -x_66 = 1; -x_2 = x_65; -x_6 = x_66; +x_71 = lean_ctor_get(x_68, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_68, 1); +lean_inc(x_72); +x_73 = lean_ctor_get(x_68, 2); +lean_inc(x_73); +lean_dec(x_68); +x_74 = lean_string_utf8_extract(x_71, x_72, x_73); +lean_dec(x_73); +lean_dec(x_72); +lean_dec(x_71); +x_75 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_75, 0, x_74); +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_75); +lean_ctor_set(x_76, 1, x_3); +x_77 = 1; +x_2 = x_70; +x_3 = x_76; +x_7 = x_77; +goto _start; +} +else +{ +lean_object* x_79; lean_object* x_80; +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_79 = l___private_Init_Lean_Elab_Term_17__elabAppFn___main___closed__3; +x_80 = l_Lean_Elab_logErrorAndThrow___at___private_Init_Lean_Elab_Term_17__elabAppFn___main___spec__3(x_65, x_79, x_9, x_10); +lean_dec(x_9); +lean_dec(x_65); +return x_80; +} +} +else +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; +lean_dec(x_65); +x_81 = lean_ctor_get(x_67, 0); +lean_inc(x_81); +lean_dec(x_67); +x_82 = lean_unsigned_to_nat(0u); +x_83 = l_Lean_Syntax_getArg(x_2, x_82); +lean_dec(x_2); +x_84 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_84, 0, x_81); +x_85 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_3); +x_86 = 1; +x_2 = x_83; +x_3 = x_85; +x_7 = x_86; goto _start; } } } -lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_Term_16__elabAppFn___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: +else { -uint8_t x_10; lean_object* x_11; -x_10 = lean_unbox(x_5); -lean_dec(x_5); -x_11 = l_List_foldlM___main___at___private_Init_Lean_Elab_Term_16__elabAppFn___main___spec__1(x_1, x_2, x_3, x_4, x_10, x_6, x_7, x_8, x_9); -lean_dec(x_3); -return x_11; -} -} -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Term_16__elabAppFn___main___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -uint8_t x_12; lean_object* x_13; -x_12 = lean_unbox(x_6); -lean_dec(x_6); -x_13 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Term_16__elabAppFn___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_12, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_7); -lean_dec(x_4); +lean_object* x_88; lean_object* x_89; lean_object* x_90; +lean_dec(x_11); +x_88 = l_Lean_Syntax_getArgs(x_2); +x_89 = lean_unsigned_to_nat(0u); +x_90 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Term_17__elabAppFn___main___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_88, x_89, x_8, x_9, x_10); +lean_dec(x_88); lean_dec(x_2); -return x_13; +return x_90; } } -lean_object* l___private_Init_Lean_Elab_Term_16__elabAppFn___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +else +{ +lean_object* x_91; lean_object* x_92; uint8_t x_93; +lean_dec(x_11); +x_91 = lean_unsigned_to_nat(1u); +x_92 = l_Lean_Syntax_getArg(x_2, x_91); +lean_dec(x_2); +x_93 = 1; +x_2 = x_92; +x_7 = x_93; +goto _start; +} +} +} +lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_Term_17__elabAppFn___main___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -uint8_t x_10; lean_object* x_11; -x_10 = lean_unbox(x_6); +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_6); lean_dec(x_6); -x_11 = l___private_Init_Lean_Elab_Term_16__elabAppFn___main(x_1, x_2, x_3, x_4, x_5, x_10, x_7, x_8, x_9); +x_12 = l_List_foldlM___main___at___private_Init_Lean_Elab_Term_17__elabAppFn___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_11, x_7, x_8, x_9, x_10); lean_dec(x_4); +return x_12; +} +} +lean_object* l_Lean_Elab_logErrorAndThrow___at___private_Init_Lean_Elab_Term_17__elabAppFn___main___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Elab_logErrorAndThrow___at___private_Init_Lean_Elab_Term_17__elabAppFn___main___spec__3(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_5; +} +} +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Term_17__elabAppFn___main___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* 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_7); +lean_dec(x_7); +x_14 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Term_17__elabAppFn___main___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_13, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_2); +return x_14; +} +} +lean_object* l___private_Init_Lean_Elab_Term_17__elabAppFn___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_7); +lean_dec(x_7); +x_12 = l___private_Init_Lean_Elab_Term_17__elabAppFn___main(x_1, x_2, x_3, x_4, x_5, x_6, x_11, x_8, x_9, x_10); +lean_dec(x_5); +return x_12; +} +} +lean_object* l___private_Init_Lean_Elab_Term_17__elabAppFn(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l___private_Init_Lean_Elab_Term_17__elabAppFn___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); return x_11; } } -lean_object* l___private_Init_Lean_Elab_Term_16__elabAppFn(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Init_Lean_Elab_Term_17__elabAppFn___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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; -x_10 = l___private_Init_Lean_Elab_Term_16__elabAppFn___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_10; +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_7); +lean_dec(x_7); +x_12 = l___private_Init_Lean_Elab_Term_17__elabAppFn(x_1, x_2, x_3, x_4, x_5, x_6, x_11, x_8, x_9, x_10); +lean_dec(x_5); +return x_12; } } -lean_object* l___private_Init_Lean_Elab_Term_16__elabAppFn___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -uint8_t x_10; lean_object* x_11; -x_10 = lean_unbox(x_6); -lean_dec(x_6); -x_11 = l___private_Init_Lean_Elab_Term_16__elabAppFn(x_1, x_2, x_3, x_4, x_5, x_10, x_7, x_8, x_9); -lean_dec(x_4); -return x_11; -} -} -lean_object* l_Array_filterAux___main___at___private_Init_Lean_Elab_Term_17__getSuccess___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_filterAux___main___at___private_Init_Lean_Elab_Term_18__getSuccess___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -22429,16 +23258,16 @@ goto _start; } } } -lean_object* l___private_Init_Lean_Elab_Term_17__getSuccess(lean_object* x_1) { +lean_object* l___private_Init_Lean_Elab_Term_18__getSuccess(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Array_filterAux___main___at___private_Init_Lean_Elab_Term_17__getSuccess___spec__1(x_1, x_2, x_2); +x_3 = l_Array_filterAux___main___at___private_Init_Lean_Elab_Term_18__getSuccess___spec__1(x_1, x_2, x_2); return x_3; } } -lean_object* l_Lean_Elab_getPosition___at___private_Init_Lean_Elab_Term_18__toMessageData___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Elab_getPosition___at___private_Init_Lean_Elab_Term_19__toMessageData___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -22465,7 +23294,7 @@ return x_11; } } } -lean_object* _init_l___private_Init_Lean_Elab_Term_18__toMessageData___closed__1() { +lean_object* _init_l___private_Init_Lean_Elab_Term_19__toMessageData___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -22475,17 +23304,17 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_Term_18__toMessageData___closed__2() { +lean_object* _init_l___private_Init_Lean_Elab_Term_19__toMessageData___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_Term_18__toMessageData___closed__1; +x_1 = l___private_Init_Lean_Elab_Term_19__toMessageData___closed__1; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Init_Lean_Elab_Term_18__toMessageData(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Elab_Term_19__toMessageData(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; @@ -22497,7 +23326,7 @@ lean_inc(x_7); lean_dec(x_5); x_8 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_8, 0, x_6); -x_9 = l_Lean_Elab_getPosition___at___private_Init_Lean_Elab_Term_18__toMessageData___spec__1(x_8, x_3, x_7); +x_9 = l_Lean_Elab_getPosition___at___private_Init_Lean_Elab_Term_19__toMessageData___spec__1(x_8, x_3, x_7); lean_dec(x_8); x_10 = !lean_is_exclusive(x_9); if (x_10 == 0) @@ -22518,7 +23347,7 @@ x_16 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_16, 0, x_15); x_17 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_17, 0, x_16); -x_18 = l___private_Init_Lean_Elab_Term_18__toMessageData___closed__2; +x_18 = l___private_Init_Lean_Elab_Term_19__toMessageData___closed__2; x_19 = lean_alloc_ctor(8, 2, 0); lean_ctor_set(x_19, 0, x_17); lean_ctor_set(x_19, 1, x_18); @@ -22579,7 +23408,7 @@ x_36 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_36, 0, x_35); x_37 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_37, 0, x_36); -x_38 = l___private_Init_Lean_Elab_Term_18__toMessageData___closed__2; +x_38 = l___private_Init_Lean_Elab_Term_19__toMessageData___closed__2; x_39 = lean_alloc_ctor(8, 2, 0); lean_ctor_set(x_39, 0, x_37); lean_ctor_set(x_39, 1, x_38); @@ -22624,44 +23453,34 @@ return x_51; } } } -lean_object* l_Lean_Elab_getPosition___at___private_Init_Lean_Elab_Term_18__toMessageData___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Elab_getPosition___at___private_Init_Lean_Elab_Term_19__toMessageData___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_Elab_getPosition___at___private_Init_Lean_Elab_Term_18__toMessageData___spec__1(x_1, x_2, x_3); +x_4 = l_Lean_Elab_getPosition___at___private_Init_Lean_Elab_Term_19__toMessageData___spec__1(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l___private_Init_Lean_Elab_Term_18__toMessageData___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Elab_Term_19__toMessageData___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Init_Lean_Elab_Term_18__toMessageData(x_1, x_2, x_3, x_4); +x_5 = l___private_Init_Lean_Elab_Term_19__toMessageData(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); return x_5; } } -lean_object* _init_l___private_Init_Lean_Elab_Term_19__getFailureMessage___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Meta_Check_2__checkLambdaLet___lambda__2___closed__1; -x_2 = l_Lean_MessageData_Inhabited; -x_3 = l_monadInhabited___rarg(x_1, x_2); -return x_3; -} -} -lean_object* l___private_Init_Lean_Elab_Term_19__getFailureMessage(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Elab_Term_20__getFailureMessage(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_1) == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_dec(x_1); -x_5 = l___private_Init_Lean_Elab_Term_19__getFailureMessage___closed__1; +x_5 = l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1___closed__1; x_6 = l_unreachable_x21___rarg(x_5); x_7 = lean_apply_2(x_6, x_3, x_4); return x_7; @@ -22726,7 +23545,7 @@ lean_dec(x_10); x_22 = lean_ctor_get(x_8, 0); lean_inc(x_22); lean_dec(x_8); -x_23 = l___private_Init_Lean_Elab_Term_18__toMessageData(x_22, x_2, x_3, x_21); +x_23 = l___private_Init_Lean_Elab_Term_19__toMessageData(x_22, x_2, x_3, x_21); lean_dec(x_3); return x_23; } @@ -22921,7 +23740,7 @@ lean_dec(x_75); if (lean_obj_tag(x_76) == 0) { lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_77 = l___private_Init_Lean_Elab_Term_19__getFailureMessage___closed__1; +x_77 = l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1___closed__1; x_78 = l_unreachable_x21___rarg(x_77); x_79 = lean_apply_2(x_78, x_3, x_74); return x_79; @@ -22932,7 +23751,7 @@ lean_object* x_80; lean_object* x_81; x_80 = lean_ctor_get(x_76, 0); lean_inc(x_80); lean_dec(x_76); -x_81 = l___private_Init_Lean_Elab_Term_18__toMessageData(x_80, x_2, x_3, x_74); +x_81 = l___private_Init_Lean_Elab_Term_19__toMessageData(x_80, x_2, x_3, x_74); lean_dec(x_3); return x_81; } @@ -22941,16 +23760,16 @@ return x_81; } } } -lean_object* l___private_Init_Lean_Elab_Term_19__getFailureMessage___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Elab_Term_20__getFailureMessage___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Init_Lean_Elab_Term_19__getFailureMessage(x_1, x_2, x_3, x_4); +x_5 = l___private_Init_Lean_Elab_Term_20__getFailureMessage(x_1, x_2, x_3, x_4); lean_dec(x_2); return x_5; } } -lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_Term_20__mergeFailures___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_Term_21__mergeFailures___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; uint8_t x_7; @@ -22979,7 +23798,7 @@ x_13 = x_12; x_14 = lean_array_fset(x_3, x_2, x_13); lean_inc(x_4); lean_inc(x_11); -x_15 = l___private_Init_Lean_Elab_Term_19__getFailureMessage(x_11, x_1, x_4, x_5); +x_15 = l___private_Init_Lean_Elab_Term_20__getFailureMessage(x_11, x_1, x_4, x_5); if (lean_obj_tag(x_15) == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; @@ -23027,7 +23846,7 @@ return x_26; } } } -lean_object* l_Lean_Elab_logErrorAndThrow___at___private_Init_Lean_Elab_Term_20__mergeFailures___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_logErrorAndThrow___at___private_Init_Lean_Elab_Term_21__mergeFailures___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; lean_object* x_6; uint8_t x_7; @@ -23058,15 +23877,15 @@ return x_12; } } } -lean_object* l_Lean_Elab_logErrorAndThrow___at___private_Init_Lean_Elab_Term_20__mergeFailures___spec__2(lean_object* x_1) { +lean_object* l_Lean_Elab_logErrorAndThrow___at___private_Init_Lean_Elab_Term_21__mergeFailures___spec__2(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_logErrorAndThrow___at___private_Init_Lean_Elab_Term_20__mergeFailures___spec__2___rarg___boxed), 4, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_logErrorAndThrow___at___private_Init_Lean_Elab_Term_21__mergeFailures___spec__2___rarg___boxed), 4, 0); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_Term_20__mergeFailures___rarg___closed__1() { +lean_object* _init_l___private_Init_Lean_Elab_Term_21__mergeFailures___rarg___closed__1() { _start: { lean_object* x_1; @@ -23074,33 +23893,33 @@ x_1 = lean_mk_string("overloaded, errors "); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_Term_20__mergeFailures___rarg___closed__2() { +lean_object* _init_l___private_Init_Lean_Elab_Term_21__mergeFailures___rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_Term_20__mergeFailures___rarg___closed__1; +x_1 = l___private_Init_Lean_Elab_Term_21__mergeFailures___rarg___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_Term_20__mergeFailures___rarg___closed__3() { +lean_object* _init_l___private_Init_Lean_Elab_Term_21__mergeFailures___rarg___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_Term_20__mergeFailures___rarg___closed__2; +x_1 = l___private_Init_Lean_Elab_Term_21__mergeFailures___rarg___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Init_Lean_Elab_Term_20__mergeFailures___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Elab_Term_21__mergeFailures___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; x_5 = lean_unsigned_to_nat(0u); lean_inc(x_3); -x_6 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_Term_20__mergeFailures___spec__1(x_2, x_5, x_1, x_3, x_4); +x_6 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_Term_21__mergeFailures___spec__1(x_2, x_5, x_1, x_3, x_4); if (lean_obj_tag(x_6) == 0) { lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; @@ -23111,11 +23930,11 @@ lean_inc(x_8); lean_dec(x_6); x_9 = l_Lean_MessageData_ofArray(x_7); lean_dec(x_7); -x_10 = l___private_Init_Lean_Elab_Term_20__mergeFailures___rarg___closed__3; +x_10 = l___private_Init_Lean_Elab_Term_21__mergeFailures___rarg___closed__3; x_11 = lean_alloc_ctor(8, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_9); -x_12 = l_Lean_Elab_logErrorAndThrow___at___private_Init_Lean_Elab_Term_20__mergeFailures___spec__2___rarg(x_2, x_11, x_3, x_8); +x_12 = l_Lean_Elab_logErrorAndThrow___at___private_Init_Lean_Elab_Term_21__mergeFailures___spec__2___rarg(x_2, x_11, x_3, x_8); lean_dec(x_3); return x_12; } @@ -23144,43 +23963,43 @@ return x_16; } } } -lean_object* l___private_Init_Lean_Elab_Term_20__mergeFailures(lean_object* x_1) { +lean_object* l___private_Init_Lean_Elab_Term_21__mergeFailures(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Term_20__mergeFailures___rarg___boxed), 4, 0); +x_2 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Term_21__mergeFailures___rarg___boxed), 4, 0); return x_2; } } -lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_Term_20__mergeFailures___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* l_Array_umapMAux___main___at___private_Init_Lean_Elab_Term_21__mergeFailures___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_Term_20__mergeFailures___spec__1(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_Term_21__mergeFailures___spec__1(x_1, x_2, x_3, x_4, x_5); lean_dec(x_1); return x_6; } } -lean_object* l_Lean_Elab_logErrorAndThrow___at___private_Init_Lean_Elab_Term_20__mergeFailures___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_logErrorAndThrow___at___private_Init_Lean_Elab_Term_21__mergeFailures___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Elab_logErrorAndThrow___at___private_Init_Lean_Elab_Term_20__mergeFailures___spec__2___rarg(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Elab_logErrorAndThrow___at___private_Init_Lean_Elab_Term_21__mergeFailures___spec__2___rarg(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_1); return x_5; } } -lean_object* l___private_Init_Lean_Elab_Term_20__mergeFailures___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Elab_Term_21__mergeFailures___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Init_Lean_Elab_Term_20__mergeFailures___rarg(x_1, x_2, x_3, x_4); +x_5 = l___private_Init_Lean_Elab_Term_21__mergeFailures___rarg(x_1, x_2, x_3, x_4); lean_dec(x_2); return x_5; } } -lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_Term_21__elabAppAux___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_Term_22__elabAppAux___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -23251,7 +24070,7 @@ goto _start; } } } -lean_object* _init_l___private_Init_Lean_Elab_Term_21__elabAppAux___closed__1() { +lean_object* _init_l___private_Init_Lean_Elab_Term_22__elabAppAux___closed__1() { _start: { lean_object* x_1; @@ -23259,156 +24078,157 @@ x_1 = lean_mk_string("ambiguous, possible interpretations "); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_Term_21__elabAppAux___closed__2() { +lean_object* _init_l___private_Init_Lean_Elab_Term_22__elabAppAux___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_Term_21__elabAppAux___closed__1; +x_1 = l___private_Init_Lean_Elab_Term_22__elabAppAux___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_Term_21__elabAppAux___closed__3() { +lean_object* _init_l___private_Init_Lean_Elab_Term_22__elabAppAux___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_Term_21__elabAppAux___closed__2; +x_1 = l___private_Init_Lean_Elab_Term_22__elabAppAux___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Init_Lean_Elab_Term_21__elabAppAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l___private_Init_Lean_Elab_Term_22__elabAppAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -uint8_t x_8; lean_object* x_9; lean_object* x_10; -x_8 = 0; -x_9 = l_Array_empty___closed__1; +lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; +x_8 = lean_box(0); +x_9 = 0; +x_10 = l_Array_empty___closed__1; lean_inc(x_6); lean_inc(x_2); -x_10 = l___private_Init_Lean_Elab_Term_16__elabAppFn___main(x_1, x_2, x_3, x_4, x_5, x_8, x_9, x_6, x_7); -if (lean_obj_tag(x_10) == 0) +x_11 = l___private_Init_Lean_Elab_Term_17__elabAppFn___main(x_1, x_2, x_8, x_3, x_4, x_5, x_9, x_10, x_6, x_7); +if (lean_obj_tag(x_11) == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -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; lean_object* x_15; uint8_t x_16; +x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); -lean_dec(x_10); -x_13 = lean_array_get_size(x_11); -x_14 = lean_unsigned_to_nat(1u); -x_15 = lean_nat_dec_eq(x_13, x_14); -lean_dec(x_13); -if (x_15 == 0) +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_array_get_size(x_12); +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_dec_eq(x_14, x_15); +lean_dec(x_14); +if (x_16 == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_16 = lean_unsigned_to_nat(0u); -lean_inc(x_11); -x_17 = l_Array_filterAux___main___at___private_Init_Lean_Elab_Term_17__getSuccess___spec__1(x_11, x_16, x_16); -x_18 = lean_array_get_size(x_17); -x_19 = lean_nat_dec_eq(x_18, x_14); -if (x_19 == 0) -{ -uint8_t x_20; -x_20 = lean_nat_dec_lt(x_14, x_18); -lean_dec(x_18); +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_17 = lean_unsigned_to_nat(0u); +lean_inc(x_12); +x_18 = l_Array_filterAux___main___at___private_Init_Lean_Elab_Term_18__getSuccess___spec__1(x_12, x_17, x_17); +x_19 = lean_array_get_size(x_18); +x_20 = lean_nat_dec_eq(x_19, x_15); if (x_20 == 0) { -lean_object* x_21; -lean_dec(x_17); -x_21 = l___private_Init_Lean_Elab_Term_20__mergeFailures___rarg(x_11, x_2, x_6, x_12); -lean_dec(x_2); -return x_21; -} -else +uint8_t x_21; +x_21 = lean_nat_dec_lt(x_15, x_19); +lean_dec(x_19); +if (x_21 == 0) { -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -lean_dec(x_11); -x_22 = l_Lean_Elab_Term_getLCtx(x_6, x_12); -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 1); -lean_inc(x_24); -lean_dec(x_22); -x_25 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_Term_21__elabAppAux___spec__1(x_23, x_16, x_17); -x_26 = l_Lean_MessageData_ofArray(x_25); -lean_dec(x_25); -x_27 = l___private_Init_Lean_Elab_Term_21__elabAppAux___closed__3; -x_28 = lean_alloc_ctor(8, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_26); -x_29 = l_Lean_Elab_logErrorAndThrow___at_Lean_Elab_Term_ensureType___spec__1(x_2, x_28, x_6, x_24); -lean_dec(x_6); -lean_dec(x_2); -return x_29; -} -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; +lean_object* x_22; lean_dec(x_18); -lean_dec(x_11); +x_22 = l___private_Init_Lean_Elab_Term_21__mergeFailures___rarg(x_12, x_2, x_6, x_13); lean_dec(x_2); -x_30 = l_Lean_Elab_Term_TermElabResult_inhabited; -x_31 = lean_array_get(x_30, x_17, x_16); -lean_dec(x_17); -x_32 = l_Lean_Elab_Term_applyResult(x_31, x_6, x_12); +return x_22; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_dec(x_12); +x_23 = l_Lean_Elab_Term_getLCtx(x_6, x_13); +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_Term_22__elabAppAux___spec__1(x_24, x_17, x_18); +x_27 = l_Lean_MessageData_ofArray(x_26); +lean_dec(x_26); +x_28 = l___private_Init_Lean_Elab_Term_22__elabAppAux___closed__3; +x_29 = lean_alloc_ctor(8, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +x_30 = l_Lean_Elab_logErrorAndThrow___at_Lean_Elab_Term_ensureType___spec__1(x_2, x_29, x_6, x_25); lean_dec(x_6); -return x_32; +lean_dec(x_2); +return x_30; } } else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -lean_dec(x_2); -x_33 = l_Lean_Elab_Term_TermElabResult_inhabited; -x_34 = lean_unsigned_to_nat(0u); -x_35 = lean_array_get(x_33, x_11, x_34); -lean_dec(x_11); -x_36 = l_Lean_Elab_Term_applyResult(x_35, x_6, x_12); +lean_object* x_31; lean_object* x_32; lean_object* x_33; +lean_dec(x_19); lean_dec(x_12); +lean_dec(x_2); +x_31 = l_Lean_Elab_Term_TermElabResult_inhabited; +x_32 = lean_array_get(x_31, x_18, x_17); +lean_dec(x_18); +x_33 = l_Lean_Elab_Term_applyResult(x_32, x_6, x_13); +lean_dec(x_13); lean_dec(x_6); -return x_36; +return x_33; } } else { -uint8_t x_37; +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +lean_dec(x_2); +x_34 = l_Lean_Elab_Term_TermElabResult_inhabited; +x_35 = lean_unsigned_to_nat(0u); +x_36 = lean_array_get(x_34, x_12, x_35); +lean_dec(x_12); +x_37 = l_Lean_Elab_Term_applyResult(x_36, x_6, x_13); +lean_dec(x_13); +lean_dec(x_6); +return x_37; +} +} +else +{ +uint8_t x_38; lean_dec(x_6); lean_dec(x_2); -x_37 = !lean_is_exclusive(x_10); -if (x_37 == 0) +x_38 = !lean_is_exclusive(x_11); +if (x_38 == 0) { -return x_10; +return x_11; } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_10, 0); -x_39 = lean_ctor_get(x_10, 1); +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_11, 0); +x_40 = lean_ctor_get(x_11, 1); +lean_inc(x_40); lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_10); -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_11); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +return x_41; } } } } -lean_object* l___private_Init_Lean_Elab_Term_21__elabAppAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l___private_Init_Lean_Elab_Term_22__elabAppAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; -x_8 = l___private_Init_Lean_Elab_Term_21__elabAppAux(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Init_Lean_Elab_Term_22__elabAppAux(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_4); return x_8; } } -lean_object* l___private_Init_Lean_Elab_Term_22__expandAppAux___main(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Init_Lean_Elab_Term_23__expandAppAux___main(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 1) @@ -23460,15 +24280,15 @@ return x_19; } } } -lean_object* l___private_Init_Lean_Elab_Term_22__expandAppAux(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Init_Lean_Elab_Term_23__expandAppAux(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l___private_Init_Lean_Elab_Term_22__expandAppAux___main(x_1, x_2); +x_3 = l___private_Init_Lean_Elab_Term_23__expandAppAux___main(x_1, x_2); return x_3; } } -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Term_23__expandApp___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Term_24__expandApp___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; uint8_t x_8; @@ -23695,7 +24515,7 @@ goto _start; } } } -lean_object* _init_l___private_Init_Lean_Elab_Term_23__expandApp___closed__1() { +lean_object* _init_l___private_Init_Lean_Elab_Term_24__expandApp___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -23706,12 +24526,12 @@ lean_ctor_set(x_2, 1, x_1); return x_2; } } -lean_object* l___private_Init_Lean_Elab_Term_23__expandApp(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_Lean_Elab_Term_24__expandApp(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; x_4 = l_Array_empty___closed__1; -x_5 = l___private_Init_Lean_Elab_Term_22__expandAppAux___main(x_1, x_4); +x_5 = l___private_Init_Lean_Elab_Term_23__expandAppAux___main(x_1, x_4); x_6 = !lean_is_exclusive(x_5); if (x_6 == 0) { @@ -23719,8 +24539,8 @@ lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_ob x_7 = lean_ctor_get(x_5, 0); x_8 = lean_ctor_get(x_5, 1); x_9 = lean_unsigned_to_nat(0u); -x_10 = l___private_Init_Lean_Elab_Term_23__expandApp___closed__1; -x_11 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Term_23__expandApp___spec__1(x_8, x_8, x_9, x_10, x_2, x_3); +x_10 = l___private_Init_Lean_Elab_Term_24__expandApp___closed__1; +x_11 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Term_24__expandApp___spec__1(x_8, x_8, x_9, x_10, x_2, x_3); lean_dec(x_8); if (lean_obj_tag(x_11) == 0) { @@ -23783,8 +24603,8 @@ lean_inc(x_22); lean_inc(x_21); lean_dec(x_5); x_23 = lean_unsigned_to_nat(0u); -x_24 = l___private_Init_Lean_Elab_Term_23__expandApp___closed__1; -x_25 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Term_23__expandApp___spec__1(x_22, x_22, x_23, x_24, x_2, x_3); +x_24 = l___private_Init_Lean_Elab_Term_24__expandApp___closed__1; +x_25 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Term_24__expandApp___spec__1(x_22, x_22, x_23, x_24, x_2, x_3); lean_dec(x_22); if (lean_obj_tag(x_25) == 0) { @@ -23841,22 +24661,22 @@ return x_34; } } } -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Term_23__expandApp___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Term_24__expandApp___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; -x_7 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Term_23__expandApp___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Term_24__expandApp___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); return x_7; } } -lean_object* l___private_Init_Lean_Elab_Term_23__expandApp___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_Lean_Elab_Term_24__expandApp___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Init_Lean_Elab_Term_23__expandApp(x_1, x_2, x_3); +x_4 = l___private_Init_Lean_Elab_Term_24__expandApp(x_1, x_2, x_3); lean_dec(x_2); return x_4; } @@ -23866,7 +24686,7 @@ _start: { lean_object* x_5; lean_inc(x_1); -x_5 = l___private_Init_Lean_Elab_Term_23__expandApp(x_1, x_3, x_4); +x_5 = l___private_Init_Lean_Elab_Term_24__expandApp(x_1, x_3, x_4); if (lean_obj_tag(x_5) == 0) { lean_object* 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; @@ -23885,7 +24705,7 @@ lean_inc(x_10); x_11 = lean_ctor_get(x_7, 1); lean_inc(x_11); lean_dec(x_7); -x_12 = l___private_Init_Lean_Elab_Term_21__elabAppAux(x_1, x_9, x_10, x_11, x_2, x_3, x_8); +x_12 = l___private_Init_Lean_Elab_Term_22__elabAppAux(x_1, x_9, x_10, x_11, x_2, x_3, x_8); lean_dec(x_11); return x_12; } @@ -24088,7 +24908,52 @@ x_5 = l_Lean_Elab_Term_addBuiltinTermElab(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* _init_l___private_Init_Lean_Elab_Term_24__regTraceClasses___closed__1() { +lean_object* l_Lean_Elab_Term_elabProj(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Elab_Term_elabApp(x_1, x_2, x_3, x_4); +return x_5; +} +} +lean_object* _init_l___regBuiltinTermElab_Lean_Elab_Term_elabProj___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("elabProj"); +return x_1; +} +} +lean_object* _init_l___regBuiltinTermElab_Lean_Elab_Term_elabProj___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Term_declareBuiltinTermElab___closed__4; +x_2 = l___regBuiltinTermElab_Lean_Elab_Term_elabProj___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l___regBuiltinTermElab_Lean_Elab_Term_elabProj___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabProj), 4, 0); +return x_1; +} +} +lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabProj(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_2 = l_Lean_Parser_Term_proj___elambda__1___closed__2; +x_3 = l___regBuiltinTermElab_Lean_Elab_Term_elabProj___closed__2; +x_4 = l___regBuiltinTermElab_Lean_Elab_Term_elabProj___closed__3; +x_5 = l_Lean_Elab_Term_addBuiltinTermElab(x_2, x_3, x_4, x_1); +return x_5; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Term_25__regTraceClasses___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -24098,11 +24963,11 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l___private_Init_Lean_Elab_Term_24__regTraceClasses(lean_object* x_1) { +lean_object* l___private_Init_Lean_Elab_Term_25__regTraceClasses(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l___private_Init_Lean_Elab_Term_24__regTraceClasses___closed__1; +x_2 = l___private_Init_Lean_Elab_Term_25__regTraceClasses___closed__1; x_3 = l_Lean_registerTraceClass(x_2, x_1); if (lean_obj_tag(x_3) == 0) { @@ -24185,6 +25050,10 @@ l_Lean_Elab_Term_State_inhabited___closed__2 = _init_l_Lean_Elab_Term_State_inha lean_mark_persistent(l_Lean_Elab_Term_State_inhabited___closed__2); l_Lean_Elab_Term_State_inhabited = _init_l_Lean_Elab_Term_State_inhabited(); lean_mark_persistent(l_Lean_Elab_Term_State_inhabited); +l_Lean_Elab_Term_TermElabM_inhabited___closed__1 = _init_l_Lean_Elab_Term_TermElabM_inhabited___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_TermElabM_inhabited___closed__1); +l_Lean_Elab_Term_TermElabM_inhabited___closed__2 = _init_l_Lean_Elab_Term_TermElabM_inhabited___closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_TermElabM_inhabited___closed__2); l_Lean_Elab_Term_TermElabResult_inhabited___closed__1 = _init_l_Lean_Elab_Term_TermElabResult_inhabited___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_TermElabResult_inhabited___closed__1); l_Lean_Elab_Term_TermElabResult_inhabited = _init_l_Lean_Elab_Term_TermElabResult_inhabited(); @@ -24466,12 +25335,8 @@ l_Lean_Elab_Term_addNamedArg___closed__5 = _init_l_Lean_Elab_Term_addNamedArg___ lean_mark_persistent(l_Lean_Elab_Term_addNamedArg___closed__5); l_Lean_Elab_Term_addNamedArg___closed__6 = _init_l_Lean_Elab_Term_addNamedArg___closed__6(); lean_mark_persistent(l_Lean_Elab_Term_addNamedArg___closed__6); -l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1___lambda__1___closed__1 = _init_l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1___lambda__1___closed__1(); -lean_mark_persistent(l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1___lambda__1___closed__1); -l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1___lambda__1___closed__2 = _init_l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1___lambda__1___closed__2(); -lean_mark_persistent(l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1___lambda__1___closed__2); -l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1___lambda__1___closed__3 = _init_l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1___lambda__1___closed__3(); -lean_mark_persistent(l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1___lambda__1___closed__3); +l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1___closed__1 = _init_l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1___closed__1(); +lean_mark_persistent(l_List_foldlM___main___at___private_Init_Lean_Elab_Term_12__mkConsts___spec__1___closed__1); l_Lean_Elab_Term_resolveName___closed__1 = _init_l_Lean_Elab_Term_resolveName___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_resolveName___closed__1); l_Lean_Elab_Term_resolveName___closed__2 = _init_l_Lean_Elab_Term_resolveName___closed__2(); @@ -24526,28 +25391,36 @@ l___private_Init_Lean_Elab_Term_13__elabAppArgsAux___main___closed__8 = _init_l_ lean_mark_persistent(l___private_Init_Lean_Elab_Term_13__elabAppArgsAux___main___closed__8); l___private_Init_Lean_Elab_Term_13__elabAppArgsAux___main___closed__9 = _init_l___private_Init_Lean_Elab_Term_13__elabAppArgsAux___main___closed__9(); lean_mark_persistent(l___private_Init_Lean_Elab_Term_13__elabAppArgsAux___main___closed__9); -l___private_Init_Lean_Elab_Term_16__elabAppFn___main___closed__1 = _init_l___private_Init_Lean_Elab_Term_16__elabAppFn___main___closed__1(); -lean_mark_persistent(l___private_Init_Lean_Elab_Term_16__elabAppFn___main___closed__1); -l___private_Init_Lean_Elab_Term_18__toMessageData___closed__1 = _init_l___private_Init_Lean_Elab_Term_18__toMessageData___closed__1(); -lean_mark_persistent(l___private_Init_Lean_Elab_Term_18__toMessageData___closed__1); -l___private_Init_Lean_Elab_Term_18__toMessageData___closed__2 = _init_l___private_Init_Lean_Elab_Term_18__toMessageData___closed__2(); -lean_mark_persistent(l___private_Init_Lean_Elab_Term_18__toMessageData___closed__2); -l___private_Init_Lean_Elab_Term_19__getFailureMessage___closed__1 = _init_l___private_Init_Lean_Elab_Term_19__getFailureMessage___closed__1(); -lean_mark_persistent(l___private_Init_Lean_Elab_Term_19__getFailureMessage___closed__1); -l___private_Init_Lean_Elab_Term_20__mergeFailures___rarg___closed__1 = _init_l___private_Init_Lean_Elab_Term_20__mergeFailures___rarg___closed__1(); -lean_mark_persistent(l___private_Init_Lean_Elab_Term_20__mergeFailures___rarg___closed__1); -l___private_Init_Lean_Elab_Term_20__mergeFailures___rarg___closed__2 = _init_l___private_Init_Lean_Elab_Term_20__mergeFailures___rarg___closed__2(); -lean_mark_persistent(l___private_Init_Lean_Elab_Term_20__mergeFailures___rarg___closed__2); -l___private_Init_Lean_Elab_Term_20__mergeFailures___rarg___closed__3 = _init_l___private_Init_Lean_Elab_Term_20__mergeFailures___rarg___closed__3(); -lean_mark_persistent(l___private_Init_Lean_Elab_Term_20__mergeFailures___rarg___closed__3); -l___private_Init_Lean_Elab_Term_21__elabAppAux___closed__1 = _init_l___private_Init_Lean_Elab_Term_21__elabAppAux___closed__1(); -lean_mark_persistent(l___private_Init_Lean_Elab_Term_21__elabAppAux___closed__1); -l___private_Init_Lean_Elab_Term_21__elabAppAux___closed__2 = _init_l___private_Init_Lean_Elab_Term_21__elabAppAux___closed__2(); -lean_mark_persistent(l___private_Init_Lean_Elab_Term_21__elabAppAux___closed__2); -l___private_Init_Lean_Elab_Term_21__elabAppAux___closed__3 = _init_l___private_Init_Lean_Elab_Term_21__elabAppAux___closed__3(); -lean_mark_persistent(l___private_Init_Lean_Elab_Term_21__elabAppAux___closed__3); -l___private_Init_Lean_Elab_Term_23__expandApp___closed__1 = _init_l___private_Init_Lean_Elab_Term_23__expandApp___closed__1(); -lean_mark_persistent(l___private_Init_Lean_Elab_Term_23__expandApp___closed__1); +l___private_Init_Lean_Elab_Term_16__elabAppProjs___closed__1 = _init_l___private_Init_Lean_Elab_Term_16__elabAppProjs___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Elab_Term_16__elabAppProjs___closed__1); +l___private_Init_Lean_Elab_Term_16__elabAppProjs___closed__2 = _init_l___private_Init_Lean_Elab_Term_16__elabAppProjs___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Elab_Term_16__elabAppProjs___closed__2); +l___private_Init_Lean_Elab_Term_16__elabAppProjs___closed__3 = _init_l___private_Init_Lean_Elab_Term_16__elabAppProjs___closed__3(); +lean_mark_persistent(l___private_Init_Lean_Elab_Term_16__elabAppProjs___closed__3); +l___private_Init_Lean_Elab_Term_17__elabAppFn___main___closed__1 = _init_l___private_Init_Lean_Elab_Term_17__elabAppFn___main___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Elab_Term_17__elabAppFn___main___closed__1); +l___private_Init_Lean_Elab_Term_17__elabAppFn___main___closed__2 = _init_l___private_Init_Lean_Elab_Term_17__elabAppFn___main___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Elab_Term_17__elabAppFn___main___closed__2); +l___private_Init_Lean_Elab_Term_17__elabAppFn___main___closed__3 = _init_l___private_Init_Lean_Elab_Term_17__elabAppFn___main___closed__3(); +lean_mark_persistent(l___private_Init_Lean_Elab_Term_17__elabAppFn___main___closed__3); +l___private_Init_Lean_Elab_Term_19__toMessageData___closed__1 = _init_l___private_Init_Lean_Elab_Term_19__toMessageData___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Elab_Term_19__toMessageData___closed__1); +l___private_Init_Lean_Elab_Term_19__toMessageData___closed__2 = _init_l___private_Init_Lean_Elab_Term_19__toMessageData___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Elab_Term_19__toMessageData___closed__2); +l___private_Init_Lean_Elab_Term_21__mergeFailures___rarg___closed__1 = _init_l___private_Init_Lean_Elab_Term_21__mergeFailures___rarg___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Elab_Term_21__mergeFailures___rarg___closed__1); +l___private_Init_Lean_Elab_Term_21__mergeFailures___rarg___closed__2 = _init_l___private_Init_Lean_Elab_Term_21__mergeFailures___rarg___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Elab_Term_21__mergeFailures___rarg___closed__2); +l___private_Init_Lean_Elab_Term_21__mergeFailures___rarg___closed__3 = _init_l___private_Init_Lean_Elab_Term_21__mergeFailures___rarg___closed__3(); +lean_mark_persistent(l___private_Init_Lean_Elab_Term_21__mergeFailures___rarg___closed__3); +l___private_Init_Lean_Elab_Term_22__elabAppAux___closed__1 = _init_l___private_Init_Lean_Elab_Term_22__elabAppAux___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Elab_Term_22__elabAppAux___closed__1); +l___private_Init_Lean_Elab_Term_22__elabAppAux___closed__2 = _init_l___private_Init_Lean_Elab_Term_22__elabAppAux___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Elab_Term_22__elabAppAux___closed__2); +l___private_Init_Lean_Elab_Term_22__elabAppAux___closed__3 = _init_l___private_Init_Lean_Elab_Term_22__elabAppAux___closed__3(); +lean_mark_persistent(l___private_Init_Lean_Elab_Term_22__elabAppAux___closed__3); +l___private_Init_Lean_Elab_Term_24__expandApp___closed__1 = _init_l___private_Init_Lean_Elab_Term_24__expandApp___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Elab_Term_24__expandApp___closed__1); l___regBuiltinTermElab_Lean_Elab_Term_elabApp___closed__1 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabApp___closed__1(); lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabApp___closed__1); l___regBuiltinTermElab_Lean_Elab_Term_elabApp___closed__2 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabApp___closed__2(); @@ -24584,9 +25457,18 @@ lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabChoice___closed__ res = l___regBuiltinTermElab_Lean_Elab_Term_elabChoice(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l___private_Init_Lean_Elab_Term_24__regTraceClasses___closed__1 = _init_l___private_Init_Lean_Elab_Term_24__regTraceClasses___closed__1(); -lean_mark_persistent(l___private_Init_Lean_Elab_Term_24__regTraceClasses___closed__1); -res = l___private_Init_Lean_Elab_Term_24__regTraceClasses(lean_io_mk_world()); +l___regBuiltinTermElab_Lean_Elab_Term_elabProj___closed__1 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabProj___closed__1(); +lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabProj___closed__1); +l___regBuiltinTermElab_Lean_Elab_Term_elabProj___closed__2 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabProj___closed__2(); +lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabProj___closed__2); +l___regBuiltinTermElab_Lean_Elab_Term_elabProj___closed__3 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabProj___closed__3(); +lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabProj___closed__3); +res = l___regBuiltinTermElab_Lean_Elab_Term_elabProj(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l___private_Init_Lean_Elab_Term_25__regTraceClasses___closed__1 = _init_l___private_Init_Lean_Elab_Term_25__regTraceClasses___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Elab_Term_25__regTraceClasses___closed__1); +res = l___private_Init_Lean_Elab_Term_25__regTraceClasses(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_mk_io_result(lean_box(0)); diff --git a/stage0/stdlib/Init/Lean/Meta/Basic.c b/stage0/stdlib/Init/Lean/Meta/Basic.c index 40290360ef..1c144f44f4 100644 --- a/stage0/stdlib/Init/Lean/Meta/Basic.c +++ b/stage0/stdlib/Init/Lean/Meta/Basic.c @@ -64,9 +64,9 @@ lean_object* l_Lean_mkMVar(lean_object*); lean_object* l_Lean_Meta_isClassQuick___main(lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; lean_object* l_Lean_Meta_isExprDefEqAux(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescopeReducing___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescopeReducing___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_lambdaTelescope(lean_object*); -lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescopeReducing___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescopeReducing___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_dbg_trace(lean_object*, lean_object*); lean_object* lean_io_mk_ref(lean_object*, lean_object*); lean_object* l_Lean_Meta_forallTelescope(lean_object*); @@ -145,8 +145,8 @@ lean_object* l_Lean_Meta_mkMetaExtension(lean_object*); lean_object* l___private_Init_Lean_Meta_Basic_6__forallTelescopeReducingAux___at_Lean_Meta_isClassExpensive___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Lean_Meta_InfoCacheKey_Inhabited___closed__1; -lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallBoundedTelescope___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallBoundedTelescope___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_instantiate_rev_range(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_Inhabited___closed__1; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); @@ -194,7 +194,7 @@ lean_object* l_Lean_Meta_isReadOnlyOrSyntheticExprMVar(lean_object*, lean_object lean_object* l_Lean_Meta_mkFreshLevelMVarId(lean_object*); lean_object* l_Lean_Meta_isExprMVarAssigned___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_Basic_9__lambdaMetaTelescopeAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_tracer___closed__3; lean_object* l_Lean_Meta_tracer; lean_object* l_Lean_Meta_metaExt___closed__2; @@ -267,7 +267,7 @@ lean_object* l_Lean_Meta_getMCtx___boxed(lean_object*); lean_object* l_Lean_Meta_isClassQuick(lean_object*, lean_object*, lean_object*); lean_object* l_IO_runMeta(lean_object*); lean_object* l___private_Init_Lean_Meta_Basic_5__forallTelescopeReducingAuxAux___main___at_Lean_Meta_forallTelescope___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallBoundedTelescope___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallBoundedTelescope___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_forallMetaTelescopeReducing(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_approxDefEq(lean_object*); lean_object* l_Lean_Meta_shouldReduceReducibleOnly___boxed(lean_object*, lean_object*); @@ -9521,6 +9521,8 @@ _start: lean_object* x_11; if (lean_obj_tag(x_8) == 7) { +if (lean_obj_tag(x_3) == 0) +{ lean_object* x_36; lean_object* x_37; lean_object* x_38; uint64_t x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; x_36 = lean_ctor_get(x_8, 0); lean_inc(x_36); @@ -9546,8 +9548,6 @@ lean_inc(x_43); x_46 = lean_local_ctx_mk_local_decl(x_5, x_43, x_36, x_41, x_45); x_47 = l_Lean_mkFVar(x_43); x_48 = lean_array_push(x_6, x_47); -if (lean_obj_tag(x_3) == 0) -{ x_5 = x_46; x_6 = x_48; x_8 = x_38; @@ -9556,66 +9556,92 @@ goto _start; } else { -lean_object* x_50; lean_object* x_51; uint8_t x_52; -x_50 = lean_ctor_get(x_3, 0); +lean_object* x_50; lean_object* x_51; lean_object* x_52; uint64_t x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_50 = lean_ctor_get(x_8, 0); lean_inc(x_50); -x_51 = lean_array_get_size(x_48); -x_52 = lean_nat_dec_lt(x_51, x_50); -lean_dec(x_50); -if (x_52 == 0) +x_51 = lean_ctor_get(x_8, 1); +lean_inc(x_51); +x_52 = lean_ctor_get(x_8, 2); +lean_inc(x_52); +x_53 = lean_ctor_get_uint64(x_8, sizeof(void*)*3); +x_54 = lean_ctor_get(x_3, 0); +lean_inc(x_54); +x_55 = lean_array_get_size(x_6); +x_56 = lean_nat_dec_lt(x_55, x_54); +lean_dec(x_54); +if (x_56 == 0) { -lean_object* x_53; lean_object* x_54; uint8_t x_55; -lean_dec(x_3); -lean_inc(x_48); -x_53 = lean_expr_instantiate_rev_range(x_38, x_7, x_51, x_48); +lean_object* x_57; lean_object* x_58; uint8_t x_59; +lean_dec(x_52); lean_dec(x_51); -lean_dec(x_38); -lean_inc(x_48); -x_54 = lean_apply_2(x_4, x_48, x_53); -x_55 = !lean_is_exclusive(x_9); -if (x_55 == 0) +lean_dec(x_50); +lean_dec(x_3); +lean_inc(x_6); +x_57 = lean_expr_instantiate_rev_range(x_8, x_7, x_55, x_6); +lean_dec(x_55); +lean_dec(x_8); +lean_inc(x_6); +x_58 = lean_apply_2(x_4, x_6, x_57); +x_59 = !lean_is_exclusive(x_9); +if (x_59 == 0) { -lean_object* x_56; lean_object* x_57; -x_56 = lean_ctor_get(x_9, 1); -lean_dec(x_56); -lean_ctor_set(x_9, 1, x_46); -x_57 = l_Lean_Meta_withNewLocalInstances___main___rarg(x_1, x_48, x_7, x_54, x_9, x_44); -lean_dec(x_48); -return x_57; -} -else -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_58 = lean_ctor_get(x_9, 0); -x_59 = lean_ctor_get(x_9, 2); -lean_inc(x_59); -lean_inc(x_58); -lean_dec(x_9); -x_60 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_46); -lean_ctor_set(x_60, 2, x_59); -x_61 = l_Lean_Meta_withNewLocalInstances___main___rarg(x_1, x_48, x_7, x_54, x_60, x_44); -lean_dec(x_48); +lean_object* x_60; lean_object* x_61; +x_60 = lean_ctor_get(x_9, 1); +lean_dec(x_60); +lean_ctor_set(x_9, 1, x_5); +x_61 = l_Lean_Meta_withNewLocalInstances___main___rarg(x_1, x_6, x_7, x_58, x_9, x_10); +lean_dec(x_6); return x_61; } +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_62 = lean_ctor_get(x_9, 0); +x_63 = lean_ctor_get(x_9, 2); +lean_inc(x_63); +lean_inc(x_62); +lean_dec(x_9); +x_64 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_64, 0, x_62); +lean_ctor_set(x_64, 1, x_5); +lean_ctor_set(x_64, 2, x_63); +x_65 = l_Lean_Meta_withNewLocalInstances___main___rarg(x_1, x_6, x_7, x_58, x_64, x_10); +lean_dec(x_6); +return x_65; +} } else { +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +lean_dec(x_8); +lean_inc(x_6); +x_66 = lean_expr_instantiate_rev_range(x_51, x_7, x_55, x_6); +lean_dec(x_55); lean_dec(x_51); -x_5 = x_46; -x_6 = x_48; -x_8 = x_38; -x_10 = x_44; +x_67 = l_Lean_Meta_mkFreshId___rarg(x_10); +x_68 = lean_ctor_get(x_67, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_67, 1); +lean_inc(x_69); +lean_dec(x_67); +x_70 = (uint8_t)((x_53 << 24) >> 61); +lean_inc(x_68); +x_71 = lean_local_ctx_mk_local_decl(x_5, x_68, x_50, x_66, x_70); +x_72 = l_Lean_mkFVar(x_68); +x_73 = lean_array_push(x_6, x_72); +x_5 = x_71; +x_6 = x_73; +x_8 = x_52; +x_10 = x_69; goto _start; } } } else { -lean_object* x_63; -x_63 = lean_box(0); -x_11 = x_63; +lean_object* x_75; +x_75 = lean_box(0); +x_11 = x_75; goto block_35; } block_35: @@ -16436,6 +16462,8 @@ _start: lean_object* x_9; if (lean_obj_tag(x_6) == 7) { +if (lean_obj_tag(x_2) == 0) +{ lean_object* x_22; lean_object* x_23; lean_object* x_24; uint64_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; x_22 = lean_ctor_get(x_6, 0); lean_inc(x_22); @@ -16461,8 +16489,6 @@ lean_inc(x_29); x_32 = lean_local_ctx_mk_local_decl(x_3, x_29, x_22, x_27, x_31); x_33 = l_Lean_mkFVar(x_29); x_34 = lean_array_push(x_4, x_33); -if (lean_obj_tag(x_2) == 0) -{ x_3 = x_32; x_4 = x_34; x_6 = x_24; @@ -16471,66 +16497,92 @@ goto _start; } else { -lean_object* x_36; lean_object* x_37; uint8_t x_38; -x_36 = lean_ctor_get(x_2, 0); +lean_object* x_36; lean_object* x_37; lean_object* x_38; uint64_t x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_36 = lean_ctor_get(x_6, 0); lean_inc(x_36); -x_37 = lean_array_get_size(x_34); -x_38 = lean_nat_dec_lt(x_37, x_36); -lean_dec(x_36); -if (x_38 == 0) +x_37 = lean_ctor_get(x_6, 1); +lean_inc(x_37); +x_38 = lean_ctor_get(x_6, 2); +lean_inc(x_38); +x_39 = lean_ctor_get_uint64(x_6, sizeof(void*)*3); +x_40 = lean_ctor_get(x_2, 0); +lean_inc(x_40); +x_41 = lean_array_get_size(x_4); +x_42 = lean_nat_dec_lt(x_41, x_40); +lean_dec(x_40); +if (x_42 == 0) { -lean_object* x_39; uint8_t x_40; -lean_dec(x_2); -lean_inc(x_34); -x_39 = lean_expr_instantiate_rev_range(x_24, x_5, x_37, x_34); +lean_object* x_43; uint8_t x_44; +lean_dec(x_38); lean_dec(x_37); -lean_dec(x_24); -x_40 = !lean_is_exclusive(x_7); -if (x_40 == 0) -{ -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_7, 1); +lean_dec(x_36); +lean_dec(x_2); +lean_inc(x_4); +x_43 = lean_expr_instantiate_rev_range(x_6, x_5, x_41, x_4); lean_dec(x_41); -lean_ctor_set(x_7, 1, x_32); -x_42 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_isClassExpensive___main___spec__6(x_39, x_34, x_5, x_7, x_30); -lean_dec(x_34); -lean_dec(x_39); -return x_42; -} -else +lean_dec(x_6); +x_44 = !lean_is_exclusive(x_7); +if (x_44 == 0) { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_43 = lean_ctor_get(x_7, 0); -x_44 = lean_ctor_get(x_7, 2); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_7); -x_45 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_32); -lean_ctor_set(x_45, 2, x_44); -x_46 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_isClassExpensive___main___spec__6(x_39, x_34, x_5, x_45, x_30); -lean_dec(x_34); -lean_dec(x_39); +lean_object* x_45; lean_object* x_46; +x_45 = lean_ctor_get(x_7, 1); +lean_dec(x_45); +lean_ctor_set(x_7, 1, x_3); +x_46 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_isClassExpensive___main___spec__6(x_43, x_4, x_5, x_7, x_8); +lean_dec(x_4); +lean_dec(x_43); return x_46; } +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_47 = lean_ctor_get(x_7, 0); +x_48 = lean_ctor_get(x_7, 2); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_7); +x_49 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_3); +lean_ctor_set(x_49, 2, x_48); +x_50 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_isClassExpensive___main___spec__6(x_43, x_4, x_5, x_49, x_8); +lean_dec(x_4); +lean_dec(x_43); +return x_50; +} } else { +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +lean_dec(x_6); +lean_inc(x_4); +x_51 = lean_expr_instantiate_rev_range(x_37, x_5, x_41, x_4); +lean_dec(x_41); lean_dec(x_37); -x_3 = x_32; -x_4 = x_34; -x_6 = x_24; -x_8 = x_30; +x_52 = l_Lean_Meta_mkFreshId___rarg(x_8); +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); +x_55 = (uint8_t)((x_39 << 24) >> 61); +lean_inc(x_53); +x_56 = lean_local_ctx_mk_local_decl(x_3, x_53, x_36, x_51, x_55); +x_57 = l_Lean_mkFVar(x_53); +x_58 = lean_array_push(x_4, x_57); +x_3 = x_56; +x_4 = x_58; +x_6 = x_38; +x_8 = x_54; goto _start; } } } else { -lean_object* x_48; -x_48 = lean_box(0); -x_9 = x_48; +lean_object* x_60; +x_60 = lean_box(0); +x_9 = x_60; goto block_21; } block_21: @@ -21254,2071 +21306,2063 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withNewLocalInstances___main___at_L return x_2; } } -lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _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_inc(x_5); -x_10 = l_Lean_mkFVar(x_5); +lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_9 = lean_array_get_size(x_2); lean_inc(x_2); -x_11 = lean_array_push(x_2, x_10); -x_12 = lean_array_get_size(x_11); -lean_inc(x_11); -x_13 = lean_expr_instantiate_rev_range(x_4, x_3, x_12, x_11); -lean_dec(x_12); -x_14 = lean_array_get_size(x_6); -x_15 = lean_nat_dec_lt(x_7, x_14); -lean_dec(x_14); -if (x_15 == 0) +x_10 = lean_expr_instantiate_rev_range(x_4, x_3, x_9, x_2); +lean_dec(x_9); +x_11 = lean_array_get_size(x_5); +x_12 = lean_nat_dec_lt(x_6, x_11); +lean_dec(x_11); +if (x_12 == 0) { -lean_object* x_16; -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_2); -x_16 = lean_apply_4(x_1, x_11, x_13, x_8, x_9); -return x_16; +lean_object* x_13; +lean_dec(x_6); +x_13 = lean_apply_4(x_1, x_2, x_10, x_7, x_8); +return x_13; } else { -lean_object* x_17; lean_object* x_18; -lean_dec(x_13); -lean_dec(x_11); -x_17 = lean_array_fget(x_6, x_7); -lean_inc(x_8); -x_18 = l_Lean_Meta_getFVarLocalDecl(x_17, x_8, x_9); -if (lean_obj_tag(x_18) == 0) +lean_object* x_14; lean_object* x_15; +lean_dec(x_10); +x_14 = lean_array_fget(x_5, x_6); +lean_inc(x_7); +x_15 = l_Lean_Meta_getFVarLocalDecl(x_14, x_7, x_8); +if (lean_obj_tag(x_15) == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +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 = l_Lean_LocalDecl_type(x_16); +lean_dec(x_16); +lean_inc(x_7); +lean_inc(x_18); +x_19 = l_Lean_Meta_isClassQuick___main(x_18, x_7, x_17); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; +x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); -lean_dec(x_18); -x_21 = l_Lean_LocalDecl_type(x_19); -lean_dec(x_19); -lean_inc(x_8); -lean_inc(x_21); -x_22 = l_Lean_Meta_isClassQuick___main(x_21, x_8, x_20); -if (lean_obj_tag(x_22) == 0) -{ -lean_object* x_23; -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -switch (lean_obj_tag(x_23)) { +switch (lean_obj_tag(x_20)) { case 0: { -lean_object* x_24; lean_object* x_25; lean_object* x_26; -lean_dec(x_21); -lean_dec(x_17); -x_24 = lean_ctor_get(x_22, 1); -lean_inc(x_24); -lean_dec(x_22); -x_25 = lean_unsigned_to_nat(1u); -x_26 = lean_nat_add(x_7, x_25); -lean_dec(x_7); -x_7 = x_26; -x_9 = x_24; +lean_object* x_21; lean_object* x_22; lean_object* x_23; +lean_dec(x_18); +lean_dec(x_14); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = lean_unsigned_to_nat(1u); +x_23 = lean_nat_add(x_6, x_22); +lean_dec(x_6); +x_6 = x_23; +x_8 = x_21; goto _start; } case 1: { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; -lean_dec(x_21); -x_28 = lean_ctor_get(x_22, 1); -lean_inc(x_28); -lean_dec(x_22); -x_29 = lean_ctor_get(x_23, 0); -lean_inc(x_29); -lean_dec(x_23); -x_30 = lean_unsigned_to_nat(1u); -x_31 = lean_nat_add(x_7, x_30); -lean_dec(x_7); -x_32 = !lean_is_exclusive(x_28); -if (x_32 == 0) +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; +lean_dec(x_18); +x_25 = lean_ctor_get(x_19, 1); +lean_inc(x_25); +lean_dec(x_19); +x_26 = lean_ctor_get(x_20, 0); +lean_inc(x_26); +lean_dec(x_20); +x_27 = lean_unsigned_to_nat(1u); +x_28 = lean_nat_add(x_6, x_27); +lean_dec(x_6); +x_29 = !lean_is_exclusive(x_25); +if (x_29 == 0) { -lean_object* x_33; uint8_t x_34; -x_33 = lean_ctor_get(x_28, 2); -x_34 = !lean_is_exclusive(x_33); +lean_object* x_30; uint8_t x_31; +x_30 = lean_ctor_get(x_25, 2); +x_31 = !lean_is_exclusive(x_30); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_32 = lean_ctor_get(x_30, 2); +x_33 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +lean_ctor_set(x_30, 2, x_33); +x_34 = !lean_is_exclusive(x_7); if (x_34 == 0) { -lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_35 = lean_ctor_get(x_33, 2); -x_36 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; -lean_ctor_set(x_33, 2, x_36); -x_37 = !lean_is_exclusive(x_8); -if (x_37 == 0) +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_35 = lean_ctor_get(x_7, 2); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_26); +lean_ctor_set(x_36, 1, x_14); +x_37 = lean_array_push(x_35, x_36); +lean_ctor_set(x_7, 2, x_37); +x_38 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__4___rarg(x_1, x_2, x_3, x_4, x_5, x_28, x_7, x_25); +if (lean_obj_tag(x_38) == 0) { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_38 = lean_ctor_get(x_8, 2); -x_39 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_39, 0, x_29); -lean_ctor_set(x_39, 1, x_17); -x_40 = lean_array_push(x_38, x_39); -lean_ctor_set(x_8, 2, x_40); -x_41 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__4___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_31, x_8, x_28); -if (lean_obj_tag(x_41) == 0) +lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +x_40 = lean_ctor_get(x_39, 2); +lean_inc(x_40); +x_41 = !lean_is_exclusive(x_38); +if (x_41 == 0) { -lean_object* x_42; lean_object* x_43; uint8_t x_44; -x_42 = lean_ctor_get(x_41, 1); -lean_inc(x_42); -x_43 = lean_ctor_get(x_42, 2); -lean_inc(x_43); -x_44 = !lean_is_exclusive(x_41); -if (x_44 == 0) +lean_object* x_42; uint8_t x_43; +x_42 = lean_ctor_get(x_38, 1); +lean_dec(x_42); +x_43 = !lean_is_exclusive(x_39); +if (x_43 == 0) { -lean_object* x_45; uint8_t x_46; -x_45 = lean_ctor_get(x_41, 1); -lean_dec(x_45); -x_46 = !lean_is_exclusive(x_42); -if (x_46 == 0) +lean_object* x_44; uint8_t x_45; +x_44 = lean_ctor_get(x_39, 2); +lean_dec(x_44); +x_45 = !lean_is_exclusive(x_40); +if (x_45 == 0) { -lean_object* x_47; uint8_t x_48; -x_47 = lean_ctor_get(x_42, 2); -lean_dec(x_47); -x_48 = !lean_is_exclusive(x_43); -if (x_48 == 0) -{ -lean_object* x_49; -x_49 = lean_ctor_get(x_43, 2); -lean_dec(x_49); -lean_ctor_set(x_43, 2, x_35); -return x_41; +lean_object* x_46; +x_46 = lean_ctor_get(x_40, 2); +lean_dec(x_46); +lean_ctor_set(x_40, 2, x_32); +return x_38; } else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_43, 0); -x_51 = lean_ctor_get(x_43, 1); -lean_inc(x_51); -lean_inc(x_50); -lean_dec(x_43); -x_52 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -lean_ctor_set(x_52, 2, x_35); -lean_ctor_set(x_42, 2, x_52); -return x_41; +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_40, 0); +x_48 = lean_ctor_get(x_40, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_40); +x_49 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +lean_ctor_set(x_49, 2, x_32); +lean_ctor_set(x_39, 2, x_49); +return x_38; } } else { -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_53 = lean_ctor_get(x_42, 0); -x_54 = lean_ctor_get(x_42, 1); -x_55 = lean_ctor_get(x_42, 3); -x_56 = lean_ctor_get(x_42, 4); -x_57 = lean_ctor_get(x_42, 5); -lean_inc(x_57); -lean_inc(x_56); -lean_inc(x_55); +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; +x_50 = lean_ctor_get(x_39, 0); +x_51 = lean_ctor_get(x_39, 1); +x_52 = lean_ctor_get(x_39, 3); +x_53 = lean_ctor_get(x_39, 4); +x_54 = lean_ctor_get(x_39, 5); lean_inc(x_54); lean_inc(x_53); -lean_dec(x_42); -x_58 = lean_ctor_get(x_43, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_43, 1); -lean_inc(x_59); -if (lean_is_exclusive(x_43)) { - lean_ctor_release(x_43, 0); - lean_ctor_release(x_43, 1); - lean_ctor_release(x_43, 2); - x_60 = x_43; +lean_inc(x_52); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_39); +x_55 = lean_ctor_get(x_40, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_40, 1); +lean_inc(x_56); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + lean_ctor_release(x_40, 2); + x_57 = x_40; } else { - lean_dec_ref(x_43); - x_60 = lean_box(0); + lean_dec_ref(x_40); + x_57 = lean_box(0); } -if (lean_is_scalar(x_60)) { - x_61 = lean_alloc_ctor(0, 3, 0); +if (lean_is_scalar(x_57)) { + x_58 = lean_alloc_ctor(0, 3, 0); } else { - x_61 = x_60; + x_58 = x_57; } -lean_ctor_set(x_61, 0, x_58); -lean_ctor_set(x_61, 1, x_59); -lean_ctor_set(x_61, 2, x_35); -x_62 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_62, 0, x_53); -lean_ctor_set(x_62, 1, x_54); -lean_ctor_set(x_62, 2, x_61); -lean_ctor_set(x_62, 3, x_55); -lean_ctor_set(x_62, 4, x_56); -lean_ctor_set(x_62, 5, x_57); -lean_ctor_set(x_41, 1, x_62); -return x_41; +lean_ctor_set(x_58, 0, x_55); +lean_ctor_set(x_58, 1, x_56); +lean_ctor_set(x_58, 2, x_32); +x_59 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_59, 0, x_50); +lean_ctor_set(x_59, 1, x_51); +lean_ctor_set(x_59, 2, x_58); +lean_ctor_set(x_59, 3, x_52); +lean_ctor_set(x_59, 4, x_53); +lean_ctor_set(x_59, 5, x_54); +lean_ctor_set(x_38, 1, x_59); +return x_38; } } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_63 = lean_ctor_get(x_41, 0); +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_60 = lean_ctor_get(x_38, 0); +lean_inc(x_60); +lean_dec(x_38); +x_61 = lean_ctor_get(x_39, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_39, 1); +lean_inc(x_62); +x_63 = lean_ctor_get(x_39, 3); lean_inc(x_63); -lean_dec(x_41); -x_64 = lean_ctor_get(x_42, 0); +x_64 = lean_ctor_get(x_39, 4); lean_inc(x_64); -x_65 = lean_ctor_get(x_42, 1); +x_65 = lean_ctor_get(x_39, 5); lean_inc(x_65); -x_66 = lean_ctor_get(x_42, 3); -lean_inc(x_66); -x_67 = lean_ctor_get(x_42, 4); -lean_inc(x_67); -x_68 = lean_ctor_get(x_42, 5); -lean_inc(x_68); -if (lean_is_exclusive(x_42)) { - lean_ctor_release(x_42, 0); - lean_ctor_release(x_42, 1); - lean_ctor_release(x_42, 2); - lean_ctor_release(x_42, 3); - lean_ctor_release(x_42, 4); - lean_ctor_release(x_42, 5); - x_69 = x_42; +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + lean_ctor_release(x_39, 2); + lean_ctor_release(x_39, 3); + lean_ctor_release(x_39, 4); + lean_ctor_release(x_39, 5); + x_66 = x_39; } else { - lean_dec_ref(x_42); + lean_dec_ref(x_39); + x_66 = lean_box(0); +} +x_67 = lean_ctor_get(x_40, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_40, 1); +lean_inc(x_68); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + lean_ctor_release(x_40, 2); + x_69 = x_40; +} else { + lean_dec_ref(x_40); x_69 = lean_box(0); } -x_70 = lean_ctor_get(x_43, 0); -lean_inc(x_70); -x_71 = lean_ctor_get(x_43, 1); -lean_inc(x_71); -if (lean_is_exclusive(x_43)) { - lean_ctor_release(x_43, 0); - lean_ctor_release(x_43, 1); - lean_ctor_release(x_43, 2); - x_72 = x_43; -} else { - lean_dec_ref(x_43); - x_72 = lean_box(0); -} -if (lean_is_scalar(x_72)) { - x_73 = lean_alloc_ctor(0, 3, 0); -} else { - x_73 = x_72; -} -lean_ctor_set(x_73, 0, x_70); -lean_ctor_set(x_73, 1, x_71); -lean_ctor_set(x_73, 2, x_35); if (lean_is_scalar(x_69)) { - x_74 = lean_alloc_ctor(0, 6, 0); + x_70 = lean_alloc_ctor(0, 3, 0); } else { - x_74 = x_69; + x_70 = x_69; } -lean_ctor_set(x_74, 0, x_64); -lean_ctor_set(x_74, 1, x_65); -lean_ctor_set(x_74, 2, x_73); -lean_ctor_set(x_74, 3, x_66); -lean_ctor_set(x_74, 4, x_67); -lean_ctor_set(x_74, 5, x_68); -x_75 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_75, 0, x_63); -lean_ctor_set(x_75, 1, x_74); -return x_75; +lean_ctor_set(x_70, 0, x_67); +lean_ctor_set(x_70, 1, x_68); +lean_ctor_set(x_70, 2, x_32); +if (lean_is_scalar(x_66)) { + x_71 = lean_alloc_ctor(0, 6, 0); +} else { + x_71 = x_66; +} +lean_ctor_set(x_71, 0, x_61); +lean_ctor_set(x_71, 1, x_62); +lean_ctor_set(x_71, 2, x_70); +lean_ctor_set(x_71, 3, x_63); +lean_ctor_set(x_71, 4, x_64); +lean_ctor_set(x_71, 5, x_65); +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_60); +lean_ctor_set(x_72, 1, x_71); +return x_72; } } else { -lean_object* x_76; lean_object* x_77; uint8_t x_78; -x_76 = lean_ctor_get(x_41, 1); -lean_inc(x_76); -x_77 = lean_ctor_get(x_76, 2); -lean_inc(x_77); -x_78 = !lean_is_exclusive(x_41); -if (x_78 == 0) +lean_object* x_73; lean_object* x_74; uint8_t x_75; +x_73 = lean_ctor_get(x_38, 1); +lean_inc(x_73); +x_74 = lean_ctor_get(x_73, 2); +lean_inc(x_74); +x_75 = !lean_is_exclusive(x_38); +if (x_75 == 0) { -lean_object* x_79; uint8_t x_80; -x_79 = lean_ctor_get(x_41, 1); -lean_dec(x_79); -x_80 = !lean_is_exclusive(x_76); -if (x_80 == 0) +lean_object* x_76; uint8_t x_77; +x_76 = lean_ctor_get(x_38, 1); +lean_dec(x_76); +x_77 = !lean_is_exclusive(x_73); +if (x_77 == 0) { -lean_object* x_81; uint8_t x_82; -x_81 = lean_ctor_get(x_76, 2); -lean_dec(x_81); -x_82 = !lean_is_exclusive(x_77); -if (x_82 == 0) +lean_object* x_78; uint8_t x_79; +x_78 = lean_ctor_get(x_73, 2); +lean_dec(x_78); +x_79 = !lean_is_exclusive(x_74); +if (x_79 == 0) { -lean_object* x_83; -x_83 = lean_ctor_get(x_77, 2); -lean_dec(x_83); -lean_ctor_set(x_77, 2, x_35); -return x_41; +lean_object* x_80; +x_80 = lean_ctor_get(x_74, 2); +lean_dec(x_80); +lean_ctor_set(x_74, 2, x_32); +return x_38; } else { -lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_84 = lean_ctor_get(x_77, 0); -x_85 = lean_ctor_get(x_77, 1); -lean_inc(x_85); -lean_inc(x_84); -lean_dec(x_77); -x_86 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_86, 0, x_84); -lean_ctor_set(x_86, 1, x_85); -lean_ctor_set(x_86, 2, x_35); -lean_ctor_set(x_76, 2, x_86); -return x_41; +lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_81 = lean_ctor_get(x_74, 0); +x_82 = lean_ctor_get(x_74, 1); +lean_inc(x_82); +lean_inc(x_81); +lean_dec(x_74); +x_83 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_83, 0, x_81); +lean_ctor_set(x_83, 1, x_82); +lean_ctor_set(x_83, 2, x_32); +lean_ctor_set(x_73, 2, x_83); +return x_38; } } else { -lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_87 = lean_ctor_get(x_76, 0); -x_88 = lean_ctor_get(x_76, 1); -x_89 = lean_ctor_get(x_76, 3); -x_90 = lean_ctor_get(x_76, 4); -x_91 = lean_ctor_get(x_76, 5); -lean_inc(x_91); -lean_inc(x_90); -lean_inc(x_89); +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; +x_84 = lean_ctor_get(x_73, 0); +x_85 = lean_ctor_get(x_73, 1); +x_86 = lean_ctor_get(x_73, 3); +x_87 = lean_ctor_get(x_73, 4); +x_88 = lean_ctor_get(x_73, 5); lean_inc(x_88); lean_inc(x_87); -lean_dec(x_76); -x_92 = lean_ctor_get(x_77, 0); -lean_inc(x_92); -x_93 = lean_ctor_get(x_77, 1); -lean_inc(x_93); -if (lean_is_exclusive(x_77)) { - lean_ctor_release(x_77, 0); - lean_ctor_release(x_77, 1); - lean_ctor_release(x_77, 2); - x_94 = x_77; +lean_inc(x_86); +lean_inc(x_85); +lean_inc(x_84); +lean_dec(x_73); +x_89 = lean_ctor_get(x_74, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_74, 1); +lean_inc(x_90); +if (lean_is_exclusive(x_74)) { + lean_ctor_release(x_74, 0); + lean_ctor_release(x_74, 1); + lean_ctor_release(x_74, 2); + x_91 = x_74; } else { - lean_dec_ref(x_77); - x_94 = lean_box(0); + lean_dec_ref(x_74); + x_91 = lean_box(0); } -if (lean_is_scalar(x_94)) { - x_95 = lean_alloc_ctor(0, 3, 0); +if (lean_is_scalar(x_91)) { + x_92 = lean_alloc_ctor(0, 3, 0); } else { - x_95 = x_94; + x_92 = x_91; } -lean_ctor_set(x_95, 0, x_92); -lean_ctor_set(x_95, 1, x_93); -lean_ctor_set(x_95, 2, x_35); -x_96 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_96, 0, x_87); -lean_ctor_set(x_96, 1, x_88); -lean_ctor_set(x_96, 2, x_95); -lean_ctor_set(x_96, 3, x_89); -lean_ctor_set(x_96, 4, x_90); -lean_ctor_set(x_96, 5, x_91); -lean_ctor_set(x_41, 1, x_96); -return x_41; +lean_ctor_set(x_92, 0, x_89); +lean_ctor_set(x_92, 1, x_90); +lean_ctor_set(x_92, 2, x_32); +x_93 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_93, 0, x_84); +lean_ctor_set(x_93, 1, x_85); +lean_ctor_set(x_93, 2, x_92); +lean_ctor_set(x_93, 3, x_86); +lean_ctor_set(x_93, 4, x_87); +lean_ctor_set(x_93, 5, x_88); +lean_ctor_set(x_38, 1, x_93); +return x_38; } } else { -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; -x_97 = lean_ctor_get(x_41, 0); +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; +x_94 = lean_ctor_get(x_38, 0); +lean_inc(x_94); +lean_dec(x_38); +x_95 = lean_ctor_get(x_73, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_73, 1); +lean_inc(x_96); +x_97 = lean_ctor_get(x_73, 3); lean_inc(x_97); -lean_dec(x_41); -x_98 = lean_ctor_get(x_76, 0); +x_98 = lean_ctor_get(x_73, 4); lean_inc(x_98); -x_99 = lean_ctor_get(x_76, 1); +x_99 = lean_ctor_get(x_73, 5); lean_inc(x_99); -x_100 = lean_ctor_get(x_76, 3); -lean_inc(x_100); -x_101 = lean_ctor_get(x_76, 4); -lean_inc(x_101); -x_102 = lean_ctor_get(x_76, 5); -lean_inc(x_102); -if (lean_is_exclusive(x_76)) { - lean_ctor_release(x_76, 0); - lean_ctor_release(x_76, 1); - lean_ctor_release(x_76, 2); - lean_ctor_release(x_76, 3); - lean_ctor_release(x_76, 4); - lean_ctor_release(x_76, 5); - x_103 = x_76; +if (lean_is_exclusive(x_73)) { + lean_ctor_release(x_73, 0); + lean_ctor_release(x_73, 1); + lean_ctor_release(x_73, 2); + lean_ctor_release(x_73, 3); + lean_ctor_release(x_73, 4); + lean_ctor_release(x_73, 5); + x_100 = x_73; } else { - lean_dec_ref(x_76); + lean_dec_ref(x_73); + x_100 = lean_box(0); +} +x_101 = lean_ctor_get(x_74, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_74, 1); +lean_inc(x_102); +if (lean_is_exclusive(x_74)) { + lean_ctor_release(x_74, 0); + lean_ctor_release(x_74, 1); + lean_ctor_release(x_74, 2); + x_103 = x_74; +} else { + lean_dec_ref(x_74); x_103 = lean_box(0); } -x_104 = lean_ctor_get(x_77, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_77, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_77)) { - lean_ctor_release(x_77, 0); - lean_ctor_release(x_77, 1); - lean_ctor_release(x_77, 2); - x_106 = x_77; -} else { - lean_dec_ref(x_77); - x_106 = lean_box(0); -} -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(0, 3, 0); -} else { - x_107 = x_106; -} -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_105); -lean_ctor_set(x_107, 2, x_35); if (lean_is_scalar(x_103)) { - x_108 = lean_alloc_ctor(0, 6, 0); + x_104 = lean_alloc_ctor(0, 3, 0); } else { - x_108 = x_103; + x_104 = x_103; } -lean_ctor_set(x_108, 0, x_98); -lean_ctor_set(x_108, 1, x_99); -lean_ctor_set(x_108, 2, x_107); -lean_ctor_set(x_108, 3, x_100); -lean_ctor_set(x_108, 4, x_101); -lean_ctor_set(x_108, 5, x_102); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_97); -lean_ctor_set(x_109, 1, x_108); -return x_109; +lean_ctor_set(x_104, 0, x_101); +lean_ctor_set(x_104, 1, x_102); +lean_ctor_set(x_104, 2, x_32); +if (lean_is_scalar(x_100)) { + x_105 = lean_alloc_ctor(0, 6, 0); +} else { + x_105 = x_100; +} +lean_ctor_set(x_105, 0, x_95); +lean_ctor_set(x_105, 1, x_96); +lean_ctor_set(x_105, 2, x_104); +lean_ctor_set(x_105, 3, x_97); +lean_ctor_set(x_105, 4, x_98); +lean_ctor_set(x_105, 5, x_99); +x_106 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_106, 0, x_94); +lean_ctor_set(x_106, 1, x_105); +return x_106; } } } else { -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; -x_110 = lean_ctor_get(x_8, 0); -x_111 = lean_ctor_get(x_8, 1); -x_112 = lean_ctor_get(x_8, 2); -lean_inc(x_112); -lean_inc(x_111); -lean_inc(x_110); -lean_dec(x_8); -x_113 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_113, 0, x_29); -lean_ctor_set(x_113, 1, x_17); -x_114 = lean_array_push(x_112, x_113); -x_115 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_115, 0, x_110); -lean_ctor_set(x_115, 1, x_111); -lean_ctor_set(x_115, 2, x_114); -x_116 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__4___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_31, x_115, x_28); -if (lean_obj_tag(x_116) == 0) +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; +x_107 = lean_ctor_get(x_7, 0); +x_108 = lean_ctor_get(x_7, 1); +x_109 = lean_ctor_get(x_7, 2); +lean_inc(x_109); +lean_inc(x_108); +lean_inc(x_107); +lean_dec(x_7); +x_110 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_110, 0, x_26); +lean_ctor_set(x_110, 1, x_14); +x_111 = lean_array_push(x_109, x_110); +x_112 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_112, 0, x_107); +lean_ctor_set(x_112, 1, x_108); +lean_ctor_set(x_112, 2, x_111); +x_113 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__4___rarg(x_1, x_2, x_3, x_4, x_5, x_28, x_112, x_25); +if (lean_obj_tag(x_113) == 0) { -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; -x_117 = lean_ctor_get(x_116, 1); -lean_inc(x_117); -x_118 = lean_ctor_get(x_117, 2); -lean_inc(x_118); -x_119 = lean_ctor_get(x_116, 0); -lean_inc(x_119); -if (lean_is_exclusive(x_116)) { - lean_ctor_release(x_116, 0); - lean_ctor_release(x_116, 1); - x_120 = x_116; +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; +x_114 = lean_ctor_get(x_113, 1); +lean_inc(x_114); +x_115 = lean_ctor_get(x_114, 2); +lean_inc(x_115); +x_116 = lean_ctor_get(x_113, 0); +lean_inc(x_116); +if (lean_is_exclusive(x_113)) { + lean_ctor_release(x_113, 0); + lean_ctor_release(x_113, 1); + x_117 = x_113; } else { - lean_dec_ref(x_116); - x_120 = lean_box(0); + lean_dec_ref(x_113); + x_117 = lean_box(0); } -x_121 = lean_ctor_get(x_117, 0); +x_118 = lean_ctor_get(x_114, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_114, 1); +lean_inc(x_119); +x_120 = lean_ctor_get(x_114, 3); +lean_inc(x_120); +x_121 = lean_ctor_get(x_114, 4); lean_inc(x_121); -x_122 = lean_ctor_get(x_117, 1); +x_122 = lean_ctor_get(x_114, 5); lean_inc(x_122); -x_123 = lean_ctor_get(x_117, 3); -lean_inc(x_123); -x_124 = lean_ctor_get(x_117, 4); -lean_inc(x_124); -x_125 = lean_ctor_get(x_117, 5); -lean_inc(x_125); -if (lean_is_exclusive(x_117)) { - lean_ctor_release(x_117, 0); - lean_ctor_release(x_117, 1); - lean_ctor_release(x_117, 2); - lean_ctor_release(x_117, 3); - lean_ctor_release(x_117, 4); - lean_ctor_release(x_117, 5); - x_126 = x_117; +if (lean_is_exclusive(x_114)) { + lean_ctor_release(x_114, 0); + lean_ctor_release(x_114, 1); + lean_ctor_release(x_114, 2); + lean_ctor_release(x_114, 3); + lean_ctor_release(x_114, 4); + lean_ctor_release(x_114, 5); + x_123 = x_114; } else { - lean_dec_ref(x_117); + lean_dec_ref(x_114); + x_123 = lean_box(0); +} +x_124 = lean_ctor_get(x_115, 0); +lean_inc(x_124); +x_125 = lean_ctor_get(x_115, 1); +lean_inc(x_125); +if (lean_is_exclusive(x_115)) { + lean_ctor_release(x_115, 0); + lean_ctor_release(x_115, 1); + lean_ctor_release(x_115, 2); + x_126 = x_115; +} else { + lean_dec_ref(x_115); x_126 = lean_box(0); } -x_127 = lean_ctor_get(x_118, 0); -lean_inc(x_127); -x_128 = lean_ctor_get(x_118, 1); -lean_inc(x_128); -if (lean_is_exclusive(x_118)) { - lean_ctor_release(x_118, 0); - lean_ctor_release(x_118, 1); - lean_ctor_release(x_118, 2); - x_129 = x_118; -} else { - lean_dec_ref(x_118); - x_129 = lean_box(0); -} -if (lean_is_scalar(x_129)) { - x_130 = lean_alloc_ctor(0, 3, 0); -} else { - x_130 = x_129; -} -lean_ctor_set(x_130, 0, x_127); -lean_ctor_set(x_130, 1, x_128); -lean_ctor_set(x_130, 2, x_35); if (lean_is_scalar(x_126)) { - x_131 = lean_alloc_ctor(0, 6, 0); + x_127 = lean_alloc_ctor(0, 3, 0); } else { - x_131 = x_126; + x_127 = x_126; } -lean_ctor_set(x_131, 0, x_121); -lean_ctor_set(x_131, 1, x_122); -lean_ctor_set(x_131, 2, x_130); -lean_ctor_set(x_131, 3, x_123); -lean_ctor_set(x_131, 4, x_124); -lean_ctor_set(x_131, 5, x_125); -if (lean_is_scalar(x_120)) { - x_132 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_127, 0, x_124); +lean_ctor_set(x_127, 1, x_125); +lean_ctor_set(x_127, 2, x_32); +if (lean_is_scalar(x_123)) { + x_128 = lean_alloc_ctor(0, 6, 0); } else { - x_132 = x_120; + x_128 = x_123; } -lean_ctor_set(x_132, 0, x_119); -lean_ctor_set(x_132, 1, x_131); -return x_132; +lean_ctor_set(x_128, 0, x_118); +lean_ctor_set(x_128, 1, x_119); +lean_ctor_set(x_128, 2, x_127); +lean_ctor_set(x_128, 3, x_120); +lean_ctor_set(x_128, 4, x_121); +lean_ctor_set(x_128, 5, x_122); +if (lean_is_scalar(x_117)) { + x_129 = lean_alloc_ctor(0, 2, 0); +} else { + x_129 = x_117; +} +lean_ctor_set(x_129, 0, x_116); +lean_ctor_set(x_129, 1, x_128); +return x_129; } else { -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; lean_object* x_146; lean_object* x_147; lean_object* x_148; -x_133 = lean_ctor_get(x_116, 1); -lean_inc(x_133); -x_134 = lean_ctor_get(x_133, 2); -lean_inc(x_134); -x_135 = lean_ctor_get(x_116, 0); -lean_inc(x_135); -if (lean_is_exclusive(x_116)) { - lean_ctor_release(x_116, 0); - lean_ctor_release(x_116, 1); - x_136 = x_116; +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_130 = lean_ctor_get(x_113, 1); +lean_inc(x_130); +x_131 = lean_ctor_get(x_130, 2); +lean_inc(x_131); +x_132 = lean_ctor_get(x_113, 0); +lean_inc(x_132); +if (lean_is_exclusive(x_113)) { + lean_ctor_release(x_113, 0); + lean_ctor_release(x_113, 1); + x_133 = x_113; } else { - lean_dec_ref(x_116); - x_136 = lean_box(0); + lean_dec_ref(x_113); + x_133 = lean_box(0); } -x_137 = lean_ctor_get(x_133, 0); +x_134 = lean_ctor_get(x_130, 0); +lean_inc(x_134); +x_135 = lean_ctor_get(x_130, 1); +lean_inc(x_135); +x_136 = lean_ctor_get(x_130, 3); +lean_inc(x_136); +x_137 = lean_ctor_get(x_130, 4); lean_inc(x_137); -x_138 = lean_ctor_get(x_133, 1); +x_138 = lean_ctor_get(x_130, 5); lean_inc(x_138); -x_139 = lean_ctor_get(x_133, 3); -lean_inc(x_139); -x_140 = lean_ctor_get(x_133, 4); -lean_inc(x_140); -x_141 = lean_ctor_get(x_133, 5); -lean_inc(x_141); -if (lean_is_exclusive(x_133)) { - lean_ctor_release(x_133, 0); - lean_ctor_release(x_133, 1); - lean_ctor_release(x_133, 2); - lean_ctor_release(x_133, 3); - lean_ctor_release(x_133, 4); - lean_ctor_release(x_133, 5); - x_142 = x_133; +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + lean_ctor_release(x_130, 2); + lean_ctor_release(x_130, 3); + lean_ctor_release(x_130, 4); + lean_ctor_release(x_130, 5); + x_139 = x_130; } else { - lean_dec_ref(x_133); + lean_dec_ref(x_130); + x_139 = lean_box(0); +} +x_140 = lean_ctor_get(x_131, 0); +lean_inc(x_140); +x_141 = lean_ctor_get(x_131, 1); +lean_inc(x_141); +if (lean_is_exclusive(x_131)) { + lean_ctor_release(x_131, 0); + lean_ctor_release(x_131, 1); + lean_ctor_release(x_131, 2); + x_142 = x_131; +} else { + lean_dec_ref(x_131); x_142 = lean_box(0); } -x_143 = lean_ctor_get(x_134, 0); -lean_inc(x_143); -x_144 = lean_ctor_get(x_134, 1); -lean_inc(x_144); -if (lean_is_exclusive(x_134)) { - lean_ctor_release(x_134, 0); - lean_ctor_release(x_134, 1); - lean_ctor_release(x_134, 2); - x_145 = x_134; -} else { - lean_dec_ref(x_134); - x_145 = lean_box(0); -} -if (lean_is_scalar(x_145)) { - x_146 = lean_alloc_ctor(0, 3, 0); -} else { - x_146 = x_145; -} -lean_ctor_set(x_146, 0, x_143); -lean_ctor_set(x_146, 1, x_144); -lean_ctor_set(x_146, 2, x_35); if (lean_is_scalar(x_142)) { - x_147 = lean_alloc_ctor(0, 6, 0); + x_143 = lean_alloc_ctor(0, 3, 0); } else { - x_147 = x_142; + x_143 = x_142; } -lean_ctor_set(x_147, 0, x_137); -lean_ctor_set(x_147, 1, x_138); -lean_ctor_set(x_147, 2, x_146); -lean_ctor_set(x_147, 3, x_139); -lean_ctor_set(x_147, 4, x_140); -lean_ctor_set(x_147, 5, x_141); -if (lean_is_scalar(x_136)) { - x_148 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_143, 0, x_140); +lean_ctor_set(x_143, 1, x_141); +lean_ctor_set(x_143, 2, x_32); +if (lean_is_scalar(x_139)) { + x_144 = lean_alloc_ctor(0, 6, 0); } else { - x_148 = x_136; + x_144 = x_139; } -lean_ctor_set(x_148, 0, x_135); -lean_ctor_set(x_148, 1, x_147); -return x_148; +lean_ctor_set(x_144, 0, x_134); +lean_ctor_set(x_144, 1, x_135); +lean_ctor_set(x_144, 2, x_143); +lean_ctor_set(x_144, 3, x_136); +lean_ctor_set(x_144, 4, x_137); +lean_ctor_set(x_144, 5, x_138); +if (lean_is_scalar(x_133)) { + x_145 = lean_alloc_ctor(1, 2, 0); +} else { + x_145 = x_133; +} +lean_ctor_set(x_145, 0, x_132); +lean_ctor_set(x_145, 1, x_144); +return x_145; } } } else { -lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; -x_149 = lean_ctor_get(x_33, 0); -x_150 = lean_ctor_get(x_33, 1); -x_151 = lean_ctor_get(x_33, 2); +lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; +x_146 = lean_ctor_get(x_30, 0); +x_147 = lean_ctor_get(x_30, 1); +x_148 = lean_ctor_get(x_30, 2); +lean_inc(x_148); +lean_inc(x_147); +lean_inc(x_146); +lean_dec(x_30); +x_149 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +x_150 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_150, 0, x_146); +lean_ctor_set(x_150, 1, x_147); +lean_ctor_set(x_150, 2, x_149); +lean_ctor_set(x_25, 2, x_150); +x_151 = lean_ctor_get(x_7, 0); lean_inc(x_151); -lean_inc(x_150); -lean_inc(x_149); -lean_dec(x_33); -x_152 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; -x_153 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_153, 0, x_149); -lean_ctor_set(x_153, 1, x_150); -lean_ctor_set(x_153, 2, x_152); -lean_ctor_set(x_28, 2, x_153); -x_154 = lean_ctor_get(x_8, 0); -lean_inc(x_154); -x_155 = lean_ctor_get(x_8, 1); -lean_inc(x_155); -x_156 = lean_ctor_get(x_8, 2); -lean_inc(x_156); -if (lean_is_exclusive(x_8)) { - lean_ctor_release(x_8, 0); - lean_ctor_release(x_8, 1); - lean_ctor_release(x_8, 2); - x_157 = x_8; +x_152 = lean_ctor_get(x_7, 1); +lean_inc(x_152); +x_153 = lean_ctor_get(x_7, 2); +lean_inc(x_153); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + lean_ctor_release(x_7, 2); + x_154 = x_7; } else { - lean_dec_ref(x_8); - x_157 = lean_box(0); + lean_dec_ref(x_7); + x_154 = lean_box(0); } -x_158 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_158, 0, x_29); -lean_ctor_set(x_158, 1, x_17); -x_159 = lean_array_push(x_156, x_158); -if (lean_is_scalar(x_157)) { - x_160 = lean_alloc_ctor(0, 3, 0); +x_155 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_155, 0, x_26); +lean_ctor_set(x_155, 1, x_14); +x_156 = lean_array_push(x_153, x_155); +if (lean_is_scalar(x_154)) { + x_157 = lean_alloc_ctor(0, 3, 0); } else { - x_160 = x_157; + x_157 = x_154; } -lean_ctor_set(x_160, 0, x_154); -lean_ctor_set(x_160, 1, x_155); -lean_ctor_set(x_160, 2, x_159); -x_161 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__4___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_31, x_160, x_28); -if (lean_obj_tag(x_161) == 0) +lean_ctor_set(x_157, 0, x_151); +lean_ctor_set(x_157, 1, x_152); +lean_ctor_set(x_157, 2, x_156); +x_158 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__4___rarg(x_1, x_2, x_3, x_4, x_5, x_28, x_157, x_25); +if (lean_obj_tag(x_158) == 0) { -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_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; -x_162 = lean_ctor_get(x_161, 1); -lean_inc(x_162); -x_163 = lean_ctor_get(x_162, 2); -lean_inc(x_163); -x_164 = lean_ctor_get(x_161, 0); -lean_inc(x_164); -if (lean_is_exclusive(x_161)) { - lean_ctor_release(x_161, 0); - lean_ctor_release(x_161, 1); - x_165 = x_161; +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_object* x_173; lean_object* x_174; +x_159 = lean_ctor_get(x_158, 1); +lean_inc(x_159); +x_160 = lean_ctor_get(x_159, 2); +lean_inc(x_160); +x_161 = lean_ctor_get(x_158, 0); +lean_inc(x_161); +if (lean_is_exclusive(x_158)) { + lean_ctor_release(x_158, 0); + lean_ctor_release(x_158, 1); + x_162 = x_158; } else { - lean_dec_ref(x_161); - x_165 = lean_box(0); + lean_dec_ref(x_158); + x_162 = lean_box(0); } -x_166 = lean_ctor_get(x_162, 0); +x_163 = lean_ctor_get(x_159, 0); +lean_inc(x_163); +x_164 = lean_ctor_get(x_159, 1); +lean_inc(x_164); +x_165 = lean_ctor_get(x_159, 3); +lean_inc(x_165); +x_166 = lean_ctor_get(x_159, 4); lean_inc(x_166); -x_167 = lean_ctor_get(x_162, 1); +x_167 = lean_ctor_get(x_159, 5); lean_inc(x_167); -x_168 = lean_ctor_get(x_162, 3); -lean_inc(x_168); -x_169 = lean_ctor_get(x_162, 4); -lean_inc(x_169); -x_170 = lean_ctor_get(x_162, 5); -lean_inc(x_170); -if (lean_is_exclusive(x_162)) { - lean_ctor_release(x_162, 0); - lean_ctor_release(x_162, 1); - lean_ctor_release(x_162, 2); - lean_ctor_release(x_162, 3); - lean_ctor_release(x_162, 4); - lean_ctor_release(x_162, 5); - x_171 = x_162; +if (lean_is_exclusive(x_159)) { + lean_ctor_release(x_159, 0); + lean_ctor_release(x_159, 1); + lean_ctor_release(x_159, 2); + lean_ctor_release(x_159, 3); + lean_ctor_release(x_159, 4); + lean_ctor_release(x_159, 5); + x_168 = x_159; } else { - lean_dec_ref(x_162); + lean_dec_ref(x_159); + x_168 = lean_box(0); +} +x_169 = lean_ctor_get(x_160, 0); +lean_inc(x_169); +x_170 = lean_ctor_get(x_160, 1); +lean_inc(x_170); +if (lean_is_exclusive(x_160)) { + lean_ctor_release(x_160, 0); + lean_ctor_release(x_160, 1); + lean_ctor_release(x_160, 2); + x_171 = x_160; +} else { + lean_dec_ref(x_160); x_171 = lean_box(0); } -x_172 = lean_ctor_get(x_163, 0); -lean_inc(x_172); -x_173 = lean_ctor_get(x_163, 1); -lean_inc(x_173); -if (lean_is_exclusive(x_163)) { - lean_ctor_release(x_163, 0); - lean_ctor_release(x_163, 1); - lean_ctor_release(x_163, 2); - x_174 = x_163; -} else { - lean_dec_ref(x_163); - x_174 = lean_box(0); -} -if (lean_is_scalar(x_174)) { - x_175 = lean_alloc_ctor(0, 3, 0); -} else { - x_175 = x_174; -} -lean_ctor_set(x_175, 0, x_172); -lean_ctor_set(x_175, 1, x_173); -lean_ctor_set(x_175, 2, x_151); if (lean_is_scalar(x_171)) { - x_176 = lean_alloc_ctor(0, 6, 0); + x_172 = lean_alloc_ctor(0, 3, 0); } else { - x_176 = x_171; + x_172 = x_171; } -lean_ctor_set(x_176, 0, x_166); -lean_ctor_set(x_176, 1, x_167); -lean_ctor_set(x_176, 2, x_175); -lean_ctor_set(x_176, 3, x_168); -lean_ctor_set(x_176, 4, x_169); -lean_ctor_set(x_176, 5, x_170); -if (lean_is_scalar(x_165)) { - x_177 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_172, 0, x_169); +lean_ctor_set(x_172, 1, x_170); +lean_ctor_set(x_172, 2, x_148); +if (lean_is_scalar(x_168)) { + x_173 = lean_alloc_ctor(0, 6, 0); } else { - x_177 = x_165; + x_173 = x_168; } -lean_ctor_set(x_177, 0, x_164); -lean_ctor_set(x_177, 1, x_176); -return x_177; +lean_ctor_set(x_173, 0, x_163); +lean_ctor_set(x_173, 1, x_164); +lean_ctor_set(x_173, 2, x_172); +lean_ctor_set(x_173, 3, x_165); +lean_ctor_set(x_173, 4, x_166); +lean_ctor_set(x_173, 5, x_167); +if (lean_is_scalar(x_162)) { + x_174 = lean_alloc_ctor(0, 2, 0); +} else { + x_174 = x_162; +} +lean_ctor_set(x_174, 0, x_161); +lean_ctor_set(x_174, 1, x_173); +return x_174; } else { -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; -x_178 = lean_ctor_get(x_161, 1); -lean_inc(x_178); -x_179 = lean_ctor_get(x_178, 2); -lean_inc(x_179); -x_180 = lean_ctor_get(x_161, 0); -lean_inc(x_180); -if (lean_is_exclusive(x_161)) { - lean_ctor_release(x_161, 0); - lean_ctor_release(x_161, 1); - x_181 = x_161; +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; +x_175 = lean_ctor_get(x_158, 1); +lean_inc(x_175); +x_176 = lean_ctor_get(x_175, 2); +lean_inc(x_176); +x_177 = lean_ctor_get(x_158, 0); +lean_inc(x_177); +if (lean_is_exclusive(x_158)) { + lean_ctor_release(x_158, 0); + lean_ctor_release(x_158, 1); + x_178 = x_158; } else { - lean_dec_ref(x_161); - x_181 = lean_box(0); + lean_dec_ref(x_158); + x_178 = lean_box(0); } -x_182 = lean_ctor_get(x_178, 0); +x_179 = lean_ctor_get(x_175, 0); +lean_inc(x_179); +x_180 = lean_ctor_get(x_175, 1); +lean_inc(x_180); +x_181 = lean_ctor_get(x_175, 3); +lean_inc(x_181); +x_182 = lean_ctor_get(x_175, 4); lean_inc(x_182); -x_183 = lean_ctor_get(x_178, 1); +x_183 = lean_ctor_get(x_175, 5); lean_inc(x_183); -x_184 = lean_ctor_get(x_178, 3); -lean_inc(x_184); -x_185 = lean_ctor_get(x_178, 4); -lean_inc(x_185); -x_186 = lean_ctor_get(x_178, 5); -lean_inc(x_186); -if (lean_is_exclusive(x_178)) { - lean_ctor_release(x_178, 0); - lean_ctor_release(x_178, 1); - lean_ctor_release(x_178, 2); - lean_ctor_release(x_178, 3); - lean_ctor_release(x_178, 4); - lean_ctor_release(x_178, 5); - x_187 = x_178; +if (lean_is_exclusive(x_175)) { + lean_ctor_release(x_175, 0); + lean_ctor_release(x_175, 1); + lean_ctor_release(x_175, 2); + lean_ctor_release(x_175, 3); + lean_ctor_release(x_175, 4); + lean_ctor_release(x_175, 5); + x_184 = x_175; } else { - lean_dec_ref(x_178); + lean_dec_ref(x_175); + x_184 = lean_box(0); +} +x_185 = lean_ctor_get(x_176, 0); +lean_inc(x_185); +x_186 = lean_ctor_get(x_176, 1); +lean_inc(x_186); +if (lean_is_exclusive(x_176)) { + lean_ctor_release(x_176, 0); + lean_ctor_release(x_176, 1); + lean_ctor_release(x_176, 2); + x_187 = x_176; +} else { + lean_dec_ref(x_176); x_187 = lean_box(0); } -x_188 = lean_ctor_get(x_179, 0); -lean_inc(x_188); -x_189 = lean_ctor_get(x_179, 1); -lean_inc(x_189); -if (lean_is_exclusive(x_179)) { - lean_ctor_release(x_179, 0); - lean_ctor_release(x_179, 1); - lean_ctor_release(x_179, 2); - x_190 = x_179; -} else { - lean_dec_ref(x_179); - x_190 = lean_box(0); -} -if (lean_is_scalar(x_190)) { - x_191 = lean_alloc_ctor(0, 3, 0); -} else { - x_191 = x_190; -} -lean_ctor_set(x_191, 0, x_188); -lean_ctor_set(x_191, 1, x_189); -lean_ctor_set(x_191, 2, x_151); if (lean_is_scalar(x_187)) { - x_192 = lean_alloc_ctor(0, 6, 0); + x_188 = lean_alloc_ctor(0, 3, 0); } else { - x_192 = x_187; + x_188 = x_187; } -lean_ctor_set(x_192, 0, x_182); -lean_ctor_set(x_192, 1, x_183); -lean_ctor_set(x_192, 2, x_191); -lean_ctor_set(x_192, 3, x_184); -lean_ctor_set(x_192, 4, x_185); -lean_ctor_set(x_192, 5, x_186); -if (lean_is_scalar(x_181)) { - x_193 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_188, 0, x_185); +lean_ctor_set(x_188, 1, x_186); +lean_ctor_set(x_188, 2, x_148); +if (lean_is_scalar(x_184)) { + x_189 = lean_alloc_ctor(0, 6, 0); } else { - x_193 = x_181; + x_189 = x_184; } -lean_ctor_set(x_193, 0, x_180); -lean_ctor_set(x_193, 1, x_192); -return x_193; +lean_ctor_set(x_189, 0, x_179); +lean_ctor_set(x_189, 1, x_180); +lean_ctor_set(x_189, 2, x_188); +lean_ctor_set(x_189, 3, x_181); +lean_ctor_set(x_189, 4, x_182); +lean_ctor_set(x_189, 5, x_183); +if (lean_is_scalar(x_178)) { + x_190 = lean_alloc_ctor(1, 2, 0); +} else { + x_190 = x_178; +} +lean_ctor_set(x_190, 0, x_177); +lean_ctor_set(x_190, 1, x_189); +return x_190; } } } else { -lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; -x_194 = lean_ctor_get(x_28, 2); -x_195 = lean_ctor_get(x_28, 0); -x_196 = lean_ctor_get(x_28, 1); -x_197 = lean_ctor_get(x_28, 3); -x_198 = lean_ctor_get(x_28, 4); -x_199 = lean_ctor_get(x_28, 5); -lean_inc(x_199); -lean_inc(x_198); -lean_inc(x_197); -lean_inc(x_194); +lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; +x_191 = lean_ctor_get(x_25, 2); +x_192 = lean_ctor_get(x_25, 0); +x_193 = lean_ctor_get(x_25, 1); +x_194 = lean_ctor_get(x_25, 3); +x_195 = lean_ctor_get(x_25, 4); +x_196 = lean_ctor_get(x_25, 5); lean_inc(x_196); lean_inc(x_195); -lean_dec(x_28); -x_200 = lean_ctor_get(x_194, 0); -lean_inc(x_200); -x_201 = lean_ctor_get(x_194, 1); -lean_inc(x_201); -x_202 = lean_ctor_get(x_194, 2); -lean_inc(x_202); -if (lean_is_exclusive(x_194)) { - lean_ctor_release(x_194, 0); - lean_ctor_release(x_194, 1); - lean_ctor_release(x_194, 2); - x_203 = x_194; +lean_inc(x_194); +lean_inc(x_191); +lean_inc(x_193); +lean_inc(x_192); +lean_dec(x_25); +x_197 = lean_ctor_get(x_191, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_191, 1); +lean_inc(x_198); +x_199 = lean_ctor_get(x_191, 2); +lean_inc(x_199); +if (lean_is_exclusive(x_191)) { + lean_ctor_release(x_191, 0); + lean_ctor_release(x_191, 1); + lean_ctor_release(x_191, 2); + x_200 = x_191; } else { - lean_dec_ref(x_194); - x_203 = lean_box(0); + lean_dec_ref(x_191); + x_200 = lean_box(0); } -x_204 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; -if (lean_is_scalar(x_203)) { - x_205 = lean_alloc_ctor(0, 3, 0); +x_201 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +if (lean_is_scalar(x_200)) { + x_202 = lean_alloc_ctor(0, 3, 0); } else { - x_205 = x_203; + x_202 = x_200; } -lean_ctor_set(x_205, 0, x_200); -lean_ctor_set(x_205, 1, x_201); -lean_ctor_set(x_205, 2, x_204); -x_206 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_206, 0, x_195); -lean_ctor_set(x_206, 1, x_196); -lean_ctor_set(x_206, 2, x_205); -lean_ctor_set(x_206, 3, x_197); -lean_ctor_set(x_206, 4, x_198); -lean_ctor_set(x_206, 5, x_199); -x_207 = lean_ctor_get(x_8, 0); -lean_inc(x_207); -x_208 = lean_ctor_get(x_8, 1); -lean_inc(x_208); -x_209 = lean_ctor_get(x_8, 2); -lean_inc(x_209); -if (lean_is_exclusive(x_8)) { - lean_ctor_release(x_8, 0); - lean_ctor_release(x_8, 1); - lean_ctor_release(x_8, 2); - x_210 = x_8; +lean_ctor_set(x_202, 0, x_197); +lean_ctor_set(x_202, 1, x_198); +lean_ctor_set(x_202, 2, x_201); +x_203 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_203, 0, x_192); +lean_ctor_set(x_203, 1, x_193); +lean_ctor_set(x_203, 2, x_202); +lean_ctor_set(x_203, 3, x_194); +lean_ctor_set(x_203, 4, x_195); +lean_ctor_set(x_203, 5, x_196); +x_204 = lean_ctor_get(x_7, 0); +lean_inc(x_204); +x_205 = lean_ctor_get(x_7, 1); +lean_inc(x_205); +x_206 = lean_ctor_get(x_7, 2); +lean_inc(x_206); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + lean_ctor_release(x_7, 2); + x_207 = x_7; } else { - lean_dec_ref(x_8); - x_210 = lean_box(0); + lean_dec_ref(x_7); + x_207 = lean_box(0); } -x_211 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_211, 0, x_29); -lean_ctor_set(x_211, 1, x_17); -x_212 = lean_array_push(x_209, x_211); -if (lean_is_scalar(x_210)) { - x_213 = lean_alloc_ctor(0, 3, 0); +x_208 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_208, 0, x_26); +lean_ctor_set(x_208, 1, x_14); +x_209 = lean_array_push(x_206, x_208); +if (lean_is_scalar(x_207)) { + x_210 = lean_alloc_ctor(0, 3, 0); } else { - x_213 = x_210; + x_210 = x_207; } -lean_ctor_set(x_213, 0, x_207); -lean_ctor_set(x_213, 1, x_208); -lean_ctor_set(x_213, 2, x_212); -x_214 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__4___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_31, x_213, x_206); -if (lean_obj_tag(x_214) == 0) +lean_ctor_set(x_210, 0, x_204); +lean_ctor_set(x_210, 1, x_205); +lean_ctor_set(x_210, 2, x_209); +x_211 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__4___rarg(x_1, x_2, x_3, x_4, x_5, x_28, x_210, x_203); +if (lean_obj_tag(x_211) == 0) { -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; -x_215 = lean_ctor_get(x_214, 1); -lean_inc(x_215); -x_216 = lean_ctor_get(x_215, 2); -lean_inc(x_216); -x_217 = lean_ctor_get(x_214, 0); -lean_inc(x_217); -if (lean_is_exclusive(x_214)) { - lean_ctor_release(x_214, 0); - lean_ctor_release(x_214, 1); - x_218 = x_214; +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; +x_212 = lean_ctor_get(x_211, 1); +lean_inc(x_212); +x_213 = lean_ctor_get(x_212, 2); +lean_inc(x_213); +x_214 = lean_ctor_get(x_211, 0); +lean_inc(x_214); +if (lean_is_exclusive(x_211)) { + lean_ctor_release(x_211, 0); + lean_ctor_release(x_211, 1); + x_215 = x_211; } else { - lean_dec_ref(x_214); - x_218 = lean_box(0); + lean_dec_ref(x_211); + x_215 = lean_box(0); } -x_219 = lean_ctor_get(x_215, 0); +x_216 = lean_ctor_get(x_212, 0); +lean_inc(x_216); +x_217 = lean_ctor_get(x_212, 1); +lean_inc(x_217); +x_218 = lean_ctor_get(x_212, 3); +lean_inc(x_218); +x_219 = lean_ctor_get(x_212, 4); lean_inc(x_219); -x_220 = lean_ctor_get(x_215, 1); +x_220 = lean_ctor_get(x_212, 5); lean_inc(x_220); -x_221 = lean_ctor_get(x_215, 3); -lean_inc(x_221); -x_222 = lean_ctor_get(x_215, 4); -lean_inc(x_222); -x_223 = lean_ctor_get(x_215, 5); -lean_inc(x_223); -if (lean_is_exclusive(x_215)) { - lean_ctor_release(x_215, 0); - lean_ctor_release(x_215, 1); - lean_ctor_release(x_215, 2); - lean_ctor_release(x_215, 3); - lean_ctor_release(x_215, 4); - lean_ctor_release(x_215, 5); - x_224 = x_215; +if (lean_is_exclusive(x_212)) { + lean_ctor_release(x_212, 0); + lean_ctor_release(x_212, 1); + lean_ctor_release(x_212, 2); + lean_ctor_release(x_212, 3); + lean_ctor_release(x_212, 4); + lean_ctor_release(x_212, 5); + x_221 = x_212; } else { - lean_dec_ref(x_215); + lean_dec_ref(x_212); + x_221 = lean_box(0); +} +x_222 = lean_ctor_get(x_213, 0); +lean_inc(x_222); +x_223 = lean_ctor_get(x_213, 1); +lean_inc(x_223); +if (lean_is_exclusive(x_213)) { + lean_ctor_release(x_213, 0); + lean_ctor_release(x_213, 1); + lean_ctor_release(x_213, 2); + x_224 = x_213; +} else { + lean_dec_ref(x_213); x_224 = lean_box(0); } -x_225 = lean_ctor_get(x_216, 0); -lean_inc(x_225); -x_226 = lean_ctor_get(x_216, 1); -lean_inc(x_226); -if (lean_is_exclusive(x_216)) { - lean_ctor_release(x_216, 0); - lean_ctor_release(x_216, 1); - lean_ctor_release(x_216, 2); - x_227 = x_216; -} else { - lean_dec_ref(x_216); - x_227 = lean_box(0); -} -if (lean_is_scalar(x_227)) { - x_228 = lean_alloc_ctor(0, 3, 0); -} else { - x_228 = x_227; -} -lean_ctor_set(x_228, 0, x_225); -lean_ctor_set(x_228, 1, x_226); -lean_ctor_set(x_228, 2, x_202); if (lean_is_scalar(x_224)) { - x_229 = lean_alloc_ctor(0, 6, 0); + x_225 = lean_alloc_ctor(0, 3, 0); } else { - x_229 = x_224; + x_225 = x_224; } -lean_ctor_set(x_229, 0, x_219); -lean_ctor_set(x_229, 1, x_220); -lean_ctor_set(x_229, 2, x_228); -lean_ctor_set(x_229, 3, x_221); -lean_ctor_set(x_229, 4, x_222); -lean_ctor_set(x_229, 5, x_223); -if (lean_is_scalar(x_218)) { - x_230 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_225, 0, x_222); +lean_ctor_set(x_225, 1, x_223); +lean_ctor_set(x_225, 2, x_199); +if (lean_is_scalar(x_221)) { + x_226 = lean_alloc_ctor(0, 6, 0); } else { - x_230 = x_218; + x_226 = x_221; } -lean_ctor_set(x_230, 0, x_217); -lean_ctor_set(x_230, 1, x_229); -return x_230; +lean_ctor_set(x_226, 0, x_216); +lean_ctor_set(x_226, 1, x_217); +lean_ctor_set(x_226, 2, x_225); +lean_ctor_set(x_226, 3, x_218); +lean_ctor_set(x_226, 4, x_219); +lean_ctor_set(x_226, 5, x_220); +if (lean_is_scalar(x_215)) { + x_227 = lean_alloc_ctor(0, 2, 0); +} else { + x_227 = x_215; +} +lean_ctor_set(x_227, 0, x_214); +lean_ctor_set(x_227, 1, x_226); +return x_227; } else { -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; -x_231 = lean_ctor_get(x_214, 1); -lean_inc(x_231); -x_232 = lean_ctor_get(x_231, 2); -lean_inc(x_232); -x_233 = lean_ctor_get(x_214, 0); -lean_inc(x_233); -if (lean_is_exclusive(x_214)) { - lean_ctor_release(x_214, 0); - lean_ctor_release(x_214, 1); - x_234 = x_214; +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; +x_228 = lean_ctor_get(x_211, 1); +lean_inc(x_228); +x_229 = lean_ctor_get(x_228, 2); +lean_inc(x_229); +x_230 = lean_ctor_get(x_211, 0); +lean_inc(x_230); +if (lean_is_exclusive(x_211)) { + lean_ctor_release(x_211, 0); + lean_ctor_release(x_211, 1); + x_231 = x_211; } else { - lean_dec_ref(x_214); - x_234 = lean_box(0); + lean_dec_ref(x_211); + x_231 = lean_box(0); } -x_235 = lean_ctor_get(x_231, 0); +x_232 = lean_ctor_get(x_228, 0); +lean_inc(x_232); +x_233 = lean_ctor_get(x_228, 1); +lean_inc(x_233); +x_234 = lean_ctor_get(x_228, 3); +lean_inc(x_234); +x_235 = lean_ctor_get(x_228, 4); lean_inc(x_235); -x_236 = lean_ctor_get(x_231, 1); +x_236 = lean_ctor_get(x_228, 5); lean_inc(x_236); -x_237 = lean_ctor_get(x_231, 3); -lean_inc(x_237); -x_238 = lean_ctor_get(x_231, 4); -lean_inc(x_238); -x_239 = lean_ctor_get(x_231, 5); -lean_inc(x_239); -if (lean_is_exclusive(x_231)) { - lean_ctor_release(x_231, 0); - lean_ctor_release(x_231, 1); - lean_ctor_release(x_231, 2); - lean_ctor_release(x_231, 3); - lean_ctor_release(x_231, 4); - lean_ctor_release(x_231, 5); - x_240 = x_231; +if (lean_is_exclusive(x_228)) { + lean_ctor_release(x_228, 0); + lean_ctor_release(x_228, 1); + lean_ctor_release(x_228, 2); + lean_ctor_release(x_228, 3); + lean_ctor_release(x_228, 4); + lean_ctor_release(x_228, 5); + x_237 = x_228; } else { - lean_dec_ref(x_231); + lean_dec_ref(x_228); + x_237 = lean_box(0); +} +x_238 = lean_ctor_get(x_229, 0); +lean_inc(x_238); +x_239 = lean_ctor_get(x_229, 1); +lean_inc(x_239); +if (lean_is_exclusive(x_229)) { + lean_ctor_release(x_229, 0); + lean_ctor_release(x_229, 1); + lean_ctor_release(x_229, 2); + x_240 = x_229; +} else { + lean_dec_ref(x_229); x_240 = lean_box(0); } -x_241 = lean_ctor_get(x_232, 0); -lean_inc(x_241); -x_242 = lean_ctor_get(x_232, 1); -lean_inc(x_242); -if (lean_is_exclusive(x_232)) { - lean_ctor_release(x_232, 0); - lean_ctor_release(x_232, 1); - lean_ctor_release(x_232, 2); - x_243 = x_232; -} else { - lean_dec_ref(x_232); - x_243 = lean_box(0); -} -if (lean_is_scalar(x_243)) { - x_244 = lean_alloc_ctor(0, 3, 0); -} else { - x_244 = x_243; -} -lean_ctor_set(x_244, 0, x_241); -lean_ctor_set(x_244, 1, x_242); -lean_ctor_set(x_244, 2, x_202); if (lean_is_scalar(x_240)) { - x_245 = lean_alloc_ctor(0, 6, 0); + x_241 = lean_alloc_ctor(0, 3, 0); } else { - x_245 = x_240; + x_241 = x_240; } -lean_ctor_set(x_245, 0, x_235); -lean_ctor_set(x_245, 1, x_236); -lean_ctor_set(x_245, 2, x_244); -lean_ctor_set(x_245, 3, x_237); -lean_ctor_set(x_245, 4, x_238); -lean_ctor_set(x_245, 5, x_239); -if (lean_is_scalar(x_234)) { - x_246 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_241, 0, x_238); +lean_ctor_set(x_241, 1, x_239); +lean_ctor_set(x_241, 2, x_199); +if (lean_is_scalar(x_237)) { + x_242 = lean_alloc_ctor(0, 6, 0); } else { - x_246 = x_234; + x_242 = x_237; } -lean_ctor_set(x_246, 0, x_233); -lean_ctor_set(x_246, 1, x_245); -return x_246; +lean_ctor_set(x_242, 0, x_232); +lean_ctor_set(x_242, 1, x_233); +lean_ctor_set(x_242, 2, x_241); +lean_ctor_set(x_242, 3, x_234); +lean_ctor_set(x_242, 4, x_235); +lean_ctor_set(x_242, 5, x_236); +if (lean_is_scalar(x_231)) { + x_243 = lean_alloc_ctor(1, 2, 0); +} else { + x_243 = x_231; +} +lean_ctor_set(x_243, 0, x_230); +lean_ctor_set(x_243, 1, x_242); +return x_243; } } } default: { -lean_object* x_247; lean_object* x_248; -x_247 = lean_ctor_get(x_22, 1); +lean_object* x_244; lean_object* x_245; +x_244 = lean_ctor_get(x_19, 1); +lean_inc(x_244); +lean_dec(x_19); +lean_inc(x_7); +x_245 = l_Lean_Meta_isClassExpensive___main(x_18, x_7, x_244); +if (lean_obj_tag(x_245) == 0) +{ +lean_object* x_246; +x_246 = lean_ctor_get(x_245, 0); +lean_inc(x_246); +if (lean_obj_tag(x_246) == 0) +{ +lean_object* x_247; lean_object* x_248; lean_object* x_249; +lean_dec(x_14); +x_247 = lean_ctor_get(x_245, 1); lean_inc(x_247); -lean_dec(x_22); -lean_inc(x_8); -x_248 = l_Lean_Meta_isClassExpensive___main(x_21, x_8, x_247); -if (lean_obj_tag(x_248) == 0) -{ -lean_object* x_249; -x_249 = lean_ctor_get(x_248, 0); -lean_inc(x_249); -if (lean_obj_tag(x_249) == 0) -{ -lean_object* x_250; lean_object* x_251; lean_object* x_252; -lean_dec(x_17); -x_250 = lean_ctor_get(x_248, 1); -lean_inc(x_250); -lean_dec(x_248); -x_251 = lean_unsigned_to_nat(1u); -x_252 = lean_nat_add(x_7, x_251); -lean_dec(x_7); -x_7 = x_252; -x_9 = x_250; +lean_dec(x_245); +x_248 = lean_unsigned_to_nat(1u); +x_249 = lean_nat_add(x_6, x_248); +lean_dec(x_6); +x_6 = x_249; +x_8 = x_247; goto _start; } else { -lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; uint8_t x_258; -x_254 = lean_ctor_get(x_248, 1); -lean_inc(x_254); -lean_dec(x_248); -x_255 = lean_ctor_get(x_249, 0); -lean_inc(x_255); -lean_dec(x_249); -x_256 = lean_unsigned_to_nat(1u); -x_257 = lean_nat_add(x_7, x_256); -lean_dec(x_7); -x_258 = !lean_is_exclusive(x_254); -if (x_258 == 0) +lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; uint8_t x_255; +x_251 = lean_ctor_get(x_245, 1); +lean_inc(x_251); +lean_dec(x_245); +x_252 = lean_ctor_get(x_246, 0); +lean_inc(x_252); +lean_dec(x_246); +x_253 = lean_unsigned_to_nat(1u); +x_254 = lean_nat_add(x_6, x_253); +lean_dec(x_6); +x_255 = !lean_is_exclusive(x_251); +if (x_255 == 0) { -lean_object* x_259; uint8_t x_260; -x_259 = lean_ctor_get(x_254, 2); -x_260 = !lean_is_exclusive(x_259); +lean_object* x_256; uint8_t x_257; +x_256 = lean_ctor_get(x_251, 2); +x_257 = !lean_is_exclusive(x_256); +if (x_257 == 0) +{ +lean_object* x_258; lean_object* x_259; uint8_t x_260; +x_258 = lean_ctor_get(x_256, 2); +x_259 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +lean_ctor_set(x_256, 2, x_259); +x_260 = !lean_is_exclusive(x_7); if (x_260 == 0) { -lean_object* x_261; lean_object* x_262; uint8_t x_263; -x_261 = lean_ctor_get(x_259, 2); -x_262 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; -lean_ctor_set(x_259, 2, x_262); -x_263 = !lean_is_exclusive(x_8); -if (x_263 == 0) +lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; +x_261 = lean_ctor_get(x_7, 2); +x_262 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_262, 0, x_252); +lean_ctor_set(x_262, 1, x_14); +x_263 = lean_array_push(x_261, x_262); +lean_ctor_set(x_7, 2, x_263); +x_264 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__4___rarg(x_1, x_2, x_3, x_4, x_5, x_254, x_7, x_251); +if (lean_obj_tag(x_264) == 0) { -lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; -x_264 = lean_ctor_get(x_8, 2); -x_265 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_265, 0, x_255); -lean_ctor_set(x_265, 1, x_17); -x_266 = lean_array_push(x_264, x_265); -lean_ctor_set(x_8, 2, x_266); -x_267 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__4___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_257, x_8, x_254); -if (lean_obj_tag(x_267) == 0) +lean_object* x_265; lean_object* x_266; uint8_t x_267; +x_265 = lean_ctor_get(x_264, 1); +lean_inc(x_265); +x_266 = lean_ctor_get(x_265, 2); +lean_inc(x_266); +x_267 = !lean_is_exclusive(x_264); +if (x_267 == 0) { -lean_object* x_268; lean_object* x_269; uint8_t x_270; -x_268 = lean_ctor_get(x_267, 1); -lean_inc(x_268); -x_269 = lean_ctor_get(x_268, 2); -lean_inc(x_269); -x_270 = !lean_is_exclusive(x_267); -if (x_270 == 0) +lean_object* x_268; uint8_t x_269; +x_268 = lean_ctor_get(x_264, 1); +lean_dec(x_268); +x_269 = !lean_is_exclusive(x_265); +if (x_269 == 0) { -lean_object* x_271; uint8_t x_272; -x_271 = lean_ctor_get(x_267, 1); -lean_dec(x_271); -x_272 = !lean_is_exclusive(x_268); -if (x_272 == 0) +lean_object* x_270; uint8_t x_271; +x_270 = lean_ctor_get(x_265, 2); +lean_dec(x_270); +x_271 = !lean_is_exclusive(x_266); +if (x_271 == 0) { -lean_object* x_273; uint8_t x_274; -x_273 = lean_ctor_get(x_268, 2); -lean_dec(x_273); -x_274 = !lean_is_exclusive(x_269); -if (x_274 == 0) -{ -lean_object* x_275; -x_275 = lean_ctor_get(x_269, 2); -lean_dec(x_275); -lean_ctor_set(x_269, 2, x_261); -return x_267; +lean_object* x_272; +x_272 = lean_ctor_get(x_266, 2); +lean_dec(x_272); +lean_ctor_set(x_266, 2, x_258); +return x_264; } else { -lean_object* x_276; lean_object* x_277; lean_object* x_278; -x_276 = lean_ctor_get(x_269, 0); -x_277 = lean_ctor_get(x_269, 1); -lean_inc(x_277); -lean_inc(x_276); -lean_dec(x_269); -x_278 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_278, 0, x_276); -lean_ctor_set(x_278, 1, x_277); -lean_ctor_set(x_278, 2, x_261); -lean_ctor_set(x_268, 2, x_278); -return x_267; +lean_object* x_273; lean_object* x_274; lean_object* x_275; +x_273 = lean_ctor_get(x_266, 0); +x_274 = lean_ctor_get(x_266, 1); +lean_inc(x_274); +lean_inc(x_273); +lean_dec(x_266); +x_275 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_275, 0, x_273); +lean_ctor_set(x_275, 1, x_274); +lean_ctor_set(x_275, 2, x_258); +lean_ctor_set(x_265, 2, x_275); +return x_264; } } else { -lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; -x_279 = lean_ctor_get(x_268, 0); -x_280 = lean_ctor_get(x_268, 1); -x_281 = lean_ctor_get(x_268, 3); -x_282 = lean_ctor_get(x_268, 4); -x_283 = lean_ctor_get(x_268, 5); -lean_inc(x_283); -lean_inc(x_282); -lean_inc(x_281); +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; +x_276 = lean_ctor_get(x_265, 0); +x_277 = lean_ctor_get(x_265, 1); +x_278 = lean_ctor_get(x_265, 3); +x_279 = lean_ctor_get(x_265, 4); +x_280 = lean_ctor_get(x_265, 5); lean_inc(x_280); lean_inc(x_279); -lean_dec(x_268); -x_284 = lean_ctor_get(x_269, 0); -lean_inc(x_284); -x_285 = lean_ctor_get(x_269, 1); -lean_inc(x_285); -if (lean_is_exclusive(x_269)) { - lean_ctor_release(x_269, 0); - lean_ctor_release(x_269, 1); - lean_ctor_release(x_269, 2); - x_286 = x_269; +lean_inc(x_278); +lean_inc(x_277); +lean_inc(x_276); +lean_dec(x_265); +x_281 = lean_ctor_get(x_266, 0); +lean_inc(x_281); +x_282 = lean_ctor_get(x_266, 1); +lean_inc(x_282); +if (lean_is_exclusive(x_266)) { + lean_ctor_release(x_266, 0); + lean_ctor_release(x_266, 1); + lean_ctor_release(x_266, 2); + x_283 = x_266; } else { - lean_dec_ref(x_269); - x_286 = lean_box(0); + lean_dec_ref(x_266); + x_283 = lean_box(0); } -if (lean_is_scalar(x_286)) { - x_287 = lean_alloc_ctor(0, 3, 0); +if (lean_is_scalar(x_283)) { + x_284 = lean_alloc_ctor(0, 3, 0); } else { - x_287 = x_286; + x_284 = x_283; } -lean_ctor_set(x_287, 0, x_284); -lean_ctor_set(x_287, 1, x_285); -lean_ctor_set(x_287, 2, x_261); -x_288 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_288, 0, x_279); -lean_ctor_set(x_288, 1, x_280); -lean_ctor_set(x_288, 2, x_287); -lean_ctor_set(x_288, 3, x_281); -lean_ctor_set(x_288, 4, x_282); -lean_ctor_set(x_288, 5, x_283); -lean_ctor_set(x_267, 1, x_288); -return x_267; +lean_ctor_set(x_284, 0, x_281); +lean_ctor_set(x_284, 1, x_282); +lean_ctor_set(x_284, 2, x_258); +x_285 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_285, 0, x_276); +lean_ctor_set(x_285, 1, x_277); +lean_ctor_set(x_285, 2, x_284); +lean_ctor_set(x_285, 3, x_278); +lean_ctor_set(x_285, 4, x_279); +lean_ctor_set(x_285, 5, x_280); +lean_ctor_set(x_264, 1, x_285); +return x_264; } } else { -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; -x_289 = lean_ctor_get(x_267, 0); +lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; 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_286 = lean_ctor_get(x_264, 0); +lean_inc(x_286); +lean_dec(x_264); +x_287 = lean_ctor_get(x_265, 0); +lean_inc(x_287); +x_288 = lean_ctor_get(x_265, 1); +lean_inc(x_288); +x_289 = lean_ctor_get(x_265, 3); lean_inc(x_289); -lean_dec(x_267); -x_290 = lean_ctor_get(x_268, 0); +x_290 = lean_ctor_get(x_265, 4); lean_inc(x_290); -x_291 = lean_ctor_get(x_268, 1); +x_291 = lean_ctor_get(x_265, 5); lean_inc(x_291); -x_292 = lean_ctor_get(x_268, 3); -lean_inc(x_292); -x_293 = lean_ctor_get(x_268, 4); -lean_inc(x_293); -x_294 = lean_ctor_get(x_268, 5); -lean_inc(x_294); -if (lean_is_exclusive(x_268)) { - lean_ctor_release(x_268, 0); - lean_ctor_release(x_268, 1); - lean_ctor_release(x_268, 2); - lean_ctor_release(x_268, 3); - lean_ctor_release(x_268, 4); - lean_ctor_release(x_268, 5); - x_295 = x_268; +if (lean_is_exclusive(x_265)) { + lean_ctor_release(x_265, 0); + lean_ctor_release(x_265, 1); + lean_ctor_release(x_265, 2); + lean_ctor_release(x_265, 3); + lean_ctor_release(x_265, 4); + lean_ctor_release(x_265, 5); + x_292 = x_265; } else { - lean_dec_ref(x_268); + lean_dec_ref(x_265); + x_292 = lean_box(0); +} +x_293 = lean_ctor_get(x_266, 0); +lean_inc(x_293); +x_294 = lean_ctor_get(x_266, 1); +lean_inc(x_294); +if (lean_is_exclusive(x_266)) { + lean_ctor_release(x_266, 0); + lean_ctor_release(x_266, 1); + lean_ctor_release(x_266, 2); + x_295 = x_266; +} else { + lean_dec_ref(x_266); x_295 = lean_box(0); } -x_296 = lean_ctor_get(x_269, 0); -lean_inc(x_296); -x_297 = lean_ctor_get(x_269, 1); -lean_inc(x_297); -if (lean_is_exclusive(x_269)) { - lean_ctor_release(x_269, 0); - lean_ctor_release(x_269, 1); - lean_ctor_release(x_269, 2); - x_298 = x_269; -} else { - lean_dec_ref(x_269); - x_298 = lean_box(0); -} -if (lean_is_scalar(x_298)) { - x_299 = lean_alloc_ctor(0, 3, 0); -} else { - x_299 = x_298; -} -lean_ctor_set(x_299, 0, x_296); -lean_ctor_set(x_299, 1, x_297); -lean_ctor_set(x_299, 2, x_261); if (lean_is_scalar(x_295)) { - x_300 = lean_alloc_ctor(0, 6, 0); + x_296 = lean_alloc_ctor(0, 3, 0); } else { - x_300 = x_295; + x_296 = x_295; } -lean_ctor_set(x_300, 0, x_290); -lean_ctor_set(x_300, 1, x_291); -lean_ctor_set(x_300, 2, x_299); -lean_ctor_set(x_300, 3, x_292); -lean_ctor_set(x_300, 4, x_293); -lean_ctor_set(x_300, 5, x_294); -x_301 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_301, 0, x_289); -lean_ctor_set(x_301, 1, x_300); -return x_301; +lean_ctor_set(x_296, 0, x_293); +lean_ctor_set(x_296, 1, x_294); +lean_ctor_set(x_296, 2, x_258); +if (lean_is_scalar(x_292)) { + x_297 = lean_alloc_ctor(0, 6, 0); +} else { + x_297 = x_292; +} +lean_ctor_set(x_297, 0, x_287); +lean_ctor_set(x_297, 1, x_288); +lean_ctor_set(x_297, 2, x_296); +lean_ctor_set(x_297, 3, x_289); +lean_ctor_set(x_297, 4, x_290); +lean_ctor_set(x_297, 5, x_291); +x_298 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_298, 0, x_286); +lean_ctor_set(x_298, 1, x_297); +return x_298; } } else { -lean_object* x_302; lean_object* x_303; uint8_t x_304; -x_302 = lean_ctor_get(x_267, 1); -lean_inc(x_302); -x_303 = lean_ctor_get(x_302, 2); -lean_inc(x_303); -x_304 = !lean_is_exclusive(x_267); -if (x_304 == 0) +lean_object* x_299; lean_object* x_300; uint8_t x_301; +x_299 = lean_ctor_get(x_264, 1); +lean_inc(x_299); +x_300 = lean_ctor_get(x_299, 2); +lean_inc(x_300); +x_301 = !lean_is_exclusive(x_264); +if (x_301 == 0) { -lean_object* x_305; uint8_t x_306; -x_305 = lean_ctor_get(x_267, 1); -lean_dec(x_305); -x_306 = !lean_is_exclusive(x_302); -if (x_306 == 0) +lean_object* x_302; uint8_t x_303; +x_302 = lean_ctor_get(x_264, 1); +lean_dec(x_302); +x_303 = !lean_is_exclusive(x_299); +if (x_303 == 0) { -lean_object* x_307; uint8_t x_308; -x_307 = lean_ctor_get(x_302, 2); -lean_dec(x_307); -x_308 = !lean_is_exclusive(x_303); -if (x_308 == 0) +lean_object* x_304; uint8_t x_305; +x_304 = lean_ctor_get(x_299, 2); +lean_dec(x_304); +x_305 = !lean_is_exclusive(x_300); +if (x_305 == 0) { -lean_object* x_309; -x_309 = lean_ctor_get(x_303, 2); -lean_dec(x_309); -lean_ctor_set(x_303, 2, x_261); -return x_267; +lean_object* x_306; +x_306 = lean_ctor_get(x_300, 2); +lean_dec(x_306); +lean_ctor_set(x_300, 2, x_258); +return x_264; } else { -lean_object* x_310; lean_object* x_311; lean_object* x_312; -x_310 = lean_ctor_get(x_303, 0); -x_311 = lean_ctor_get(x_303, 1); -lean_inc(x_311); -lean_inc(x_310); -lean_dec(x_303); -x_312 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_312, 0, x_310); -lean_ctor_set(x_312, 1, x_311); -lean_ctor_set(x_312, 2, x_261); -lean_ctor_set(x_302, 2, x_312); -return x_267; +lean_object* x_307; lean_object* x_308; lean_object* x_309; +x_307 = lean_ctor_get(x_300, 0); +x_308 = lean_ctor_get(x_300, 1); +lean_inc(x_308); +lean_inc(x_307); +lean_dec(x_300); +x_309 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_309, 0, x_307); +lean_ctor_set(x_309, 1, x_308); +lean_ctor_set(x_309, 2, x_258); +lean_ctor_set(x_299, 2, x_309); +return x_264; } } else { -lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; -x_313 = lean_ctor_get(x_302, 0); -x_314 = lean_ctor_get(x_302, 1); -x_315 = lean_ctor_get(x_302, 3); -x_316 = lean_ctor_get(x_302, 4); -x_317 = lean_ctor_get(x_302, 5); -lean_inc(x_317); -lean_inc(x_316); -lean_inc(x_315); +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; +x_310 = lean_ctor_get(x_299, 0); +x_311 = lean_ctor_get(x_299, 1); +x_312 = lean_ctor_get(x_299, 3); +x_313 = lean_ctor_get(x_299, 4); +x_314 = lean_ctor_get(x_299, 5); lean_inc(x_314); lean_inc(x_313); -lean_dec(x_302); -x_318 = lean_ctor_get(x_303, 0); -lean_inc(x_318); -x_319 = lean_ctor_get(x_303, 1); -lean_inc(x_319); -if (lean_is_exclusive(x_303)) { - lean_ctor_release(x_303, 0); - lean_ctor_release(x_303, 1); - lean_ctor_release(x_303, 2); - x_320 = x_303; +lean_inc(x_312); +lean_inc(x_311); +lean_inc(x_310); +lean_dec(x_299); +x_315 = lean_ctor_get(x_300, 0); +lean_inc(x_315); +x_316 = lean_ctor_get(x_300, 1); +lean_inc(x_316); +if (lean_is_exclusive(x_300)) { + lean_ctor_release(x_300, 0); + lean_ctor_release(x_300, 1); + lean_ctor_release(x_300, 2); + x_317 = x_300; } else { - lean_dec_ref(x_303); - x_320 = lean_box(0); + lean_dec_ref(x_300); + x_317 = lean_box(0); } -if (lean_is_scalar(x_320)) { - x_321 = lean_alloc_ctor(0, 3, 0); +if (lean_is_scalar(x_317)) { + x_318 = lean_alloc_ctor(0, 3, 0); } else { - x_321 = x_320; + x_318 = x_317; } -lean_ctor_set(x_321, 0, x_318); -lean_ctor_set(x_321, 1, x_319); -lean_ctor_set(x_321, 2, x_261); -x_322 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_322, 0, x_313); -lean_ctor_set(x_322, 1, x_314); -lean_ctor_set(x_322, 2, x_321); -lean_ctor_set(x_322, 3, x_315); -lean_ctor_set(x_322, 4, x_316); -lean_ctor_set(x_322, 5, x_317); -lean_ctor_set(x_267, 1, x_322); -return x_267; +lean_ctor_set(x_318, 0, x_315); +lean_ctor_set(x_318, 1, x_316); +lean_ctor_set(x_318, 2, x_258); +x_319 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_319, 0, x_310); +lean_ctor_set(x_319, 1, x_311); +lean_ctor_set(x_319, 2, x_318); +lean_ctor_set(x_319, 3, x_312); +lean_ctor_set(x_319, 4, x_313); +lean_ctor_set(x_319, 5, x_314); +lean_ctor_set(x_264, 1, x_319); +return x_264; } } else { -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; -x_323 = lean_ctor_get(x_267, 0); +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_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; +x_320 = lean_ctor_get(x_264, 0); +lean_inc(x_320); +lean_dec(x_264); +x_321 = lean_ctor_get(x_299, 0); +lean_inc(x_321); +x_322 = lean_ctor_get(x_299, 1); +lean_inc(x_322); +x_323 = lean_ctor_get(x_299, 3); lean_inc(x_323); -lean_dec(x_267); -x_324 = lean_ctor_get(x_302, 0); +x_324 = lean_ctor_get(x_299, 4); lean_inc(x_324); -x_325 = lean_ctor_get(x_302, 1); +x_325 = lean_ctor_get(x_299, 5); lean_inc(x_325); -x_326 = lean_ctor_get(x_302, 3); -lean_inc(x_326); -x_327 = lean_ctor_get(x_302, 4); -lean_inc(x_327); -x_328 = lean_ctor_get(x_302, 5); -lean_inc(x_328); -if (lean_is_exclusive(x_302)) { - lean_ctor_release(x_302, 0); - lean_ctor_release(x_302, 1); - lean_ctor_release(x_302, 2); - lean_ctor_release(x_302, 3); - lean_ctor_release(x_302, 4); - lean_ctor_release(x_302, 5); - x_329 = x_302; +if (lean_is_exclusive(x_299)) { + lean_ctor_release(x_299, 0); + lean_ctor_release(x_299, 1); + lean_ctor_release(x_299, 2); + lean_ctor_release(x_299, 3); + lean_ctor_release(x_299, 4); + lean_ctor_release(x_299, 5); + x_326 = x_299; } else { - lean_dec_ref(x_302); + lean_dec_ref(x_299); + x_326 = lean_box(0); +} +x_327 = lean_ctor_get(x_300, 0); +lean_inc(x_327); +x_328 = lean_ctor_get(x_300, 1); +lean_inc(x_328); +if (lean_is_exclusive(x_300)) { + lean_ctor_release(x_300, 0); + lean_ctor_release(x_300, 1); + lean_ctor_release(x_300, 2); + x_329 = x_300; +} else { + lean_dec_ref(x_300); x_329 = lean_box(0); } -x_330 = lean_ctor_get(x_303, 0); -lean_inc(x_330); -x_331 = lean_ctor_get(x_303, 1); -lean_inc(x_331); -if (lean_is_exclusive(x_303)) { - lean_ctor_release(x_303, 0); - lean_ctor_release(x_303, 1); - lean_ctor_release(x_303, 2); - x_332 = x_303; -} else { - lean_dec_ref(x_303); - x_332 = lean_box(0); -} -if (lean_is_scalar(x_332)) { - x_333 = lean_alloc_ctor(0, 3, 0); -} else { - x_333 = x_332; -} -lean_ctor_set(x_333, 0, x_330); -lean_ctor_set(x_333, 1, x_331); -lean_ctor_set(x_333, 2, x_261); if (lean_is_scalar(x_329)) { - x_334 = lean_alloc_ctor(0, 6, 0); + x_330 = lean_alloc_ctor(0, 3, 0); } else { - x_334 = x_329; + x_330 = x_329; } -lean_ctor_set(x_334, 0, x_324); -lean_ctor_set(x_334, 1, x_325); -lean_ctor_set(x_334, 2, x_333); -lean_ctor_set(x_334, 3, x_326); -lean_ctor_set(x_334, 4, x_327); -lean_ctor_set(x_334, 5, x_328); -x_335 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_335, 0, x_323); -lean_ctor_set(x_335, 1, x_334); -return x_335; +lean_ctor_set(x_330, 0, x_327); +lean_ctor_set(x_330, 1, x_328); +lean_ctor_set(x_330, 2, x_258); +if (lean_is_scalar(x_326)) { + x_331 = lean_alloc_ctor(0, 6, 0); +} else { + x_331 = x_326; +} +lean_ctor_set(x_331, 0, x_321); +lean_ctor_set(x_331, 1, x_322); +lean_ctor_set(x_331, 2, x_330); +lean_ctor_set(x_331, 3, x_323); +lean_ctor_set(x_331, 4, x_324); +lean_ctor_set(x_331, 5, x_325); +x_332 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_332, 0, x_320); +lean_ctor_set(x_332, 1, x_331); +return x_332; } } } else { -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; -x_336 = lean_ctor_get(x_8, 0); -x_337 = lean_ctor_get(x_8, 1); -x_338 = lean_ctor_get(x_8, 2); -lean_inc(x_338); -lean_inc(x_337); -lean_inc(x_336); -lean_dec(x_8); -x_339 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_339, 0, x_255); -lean_ctor_set(x_339, 1, x_17); -x_340 = lean_array_push(x_338, x_339); -x_341 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_341, 0, x_336); -lean_ctor_set(x_341, 1, x_337); -lean_ctor_set(x_341, 2, x_340); -x_342 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__4___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_257, x_341, x_254); -if (lean_obj_tag(x_342) == 0) +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; +x_333 = lean_ctor_get(x_7, 0); +x_334 = lean_ctor_get(x_7, 1); +x_335 = lean_ctor_get(x_7, 2); +lean_inc(x_335); +lean_inc(x_334); +lean_inc(x_333); +lean_dec(x_7); +x_336 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_336, 0, x_252); +lean_ctor_set(x_336, 1, x_14); +x_337 = lean_array_push(x_335, x_336); +x_338 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_338, 0, x_333); +lean_ctor_set(x_338, 1, x_334); +lean_ctor_set(x_338, 2, x_337); +x_339 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__4___rarg(x_1, x_2, x_3, x_4, x_5, x_254, x_338, x_251); +if (lean_obj_tag(x_339) == 0) { -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; -x_343 = lean_ctor_get(x_342, 1); -lean_inc(x_343); -x_344 = lean_ctor_get(x_343, 2); -lean_inc(x_344); -x_345 = lean_ctor_get(x_342, 0); -lean_inc(x_345); -if (lean_is_exclusive(x_342)) { - lean_ctor_release(x_342, 0); - lean_ctor_release(x_342, 1); - x_346 = x_342; +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; +x_340 = lean_ctor_get(x_339, 1); +lean_inc(x_340); +x_341 = lean_ctor_get(x_340, 2); +lean_inc(x_341); +x_342 = lean_ctor_get(x_339, 0); +lean_inc(x_342); +if (lean_is_exclusive(x_339)) { + lean_ctor_release(x_339, 0); + lean_ctor_release(x_339, 1); + x_343 = x_339; } else { - lean_dec_ref(x_342); - x_346 = lean_box(0); + lean_dec_ref(x_339); + x_343 = lean_box(0); } -x_347 = lean_ctor_get(x_343, 0); +x_344 = lean_ctor_get(x_340, 0); +lean_inc(x_344); +x_345 = lean_ctor_get(x_340, 1); +lean_inc(x_345); +x_346 = lean_ctor_get(x_340, 3); +lean_inc(x_346); +x_347 = lean_ctor_get(x_340, 4); lean_inc(x_347); -x_348 = lean_ctor_get(x_343, 1); +x_348 = lean_ctor_get(x_340, 5); lean_inc(x_348); -x_349 = lean_ctor_get(x_343, 3); -lean_inc(x_349); -x_350 = lean_ctor_get(x_343, 4); -lean_inc(x_350); -x_351 = lean_ctor_get(x_343, 5); -lean_inc(x_351); -if (lean_is_exclusive(x_343)) { - lean_ctor_release(x_343, 0); - lean_ctor_release(x_343, 1); - lean_ctor_release(x_343, 2); - lean_ctor_release(x_343, 3); - lean_ctor_release(x_343, 4); - lean_ctor_release(x_343, 5); - x_352 = x_343; +if (lean_is_exclusive(x_340)) { + lean_ctor_release(x_340, 0); + lean_ctor_release(x_340, 1); + lean_ctor_release(x_340, 2); + lean_ctor_release(x_340, 3); + lean_ctor_release(x_340, 4); + lean_ctor_release(x_340, 5); + x_349 = x_340; } else { - lean_dec_ref(x_343); + lean_dec_ref(x_340); + x_349 = lean_box(0); +} +x_350 = lean_ctor_get(x_341, 0); +lean_inc(x_350); +x_351 = lean_ctor_get(x_341, 1); +lean_inc(x_351); +if (lean_is_exclusive(x_341)) { + lean_ctor_release(x_341, 0); + lean_ctor_release(x_341, 1); + lean_ctor_release(x_341, 2); + x_352 = x_341; +} else { + lean_dec_ref(x_341); x_352 = lean_box(0); } -x_353 = lean_ctor_get(x_344, 0); -lean_inc(x_353); -x_354 = lean_ctor_get(x_344, 1); -lean_inc(x_354); -if (lean_is_exclusive(x_344)) { - lean_ctor_release(x_344, 0); - lean_ctor_release(x_344, 1); - lean_ctor_release(x_344, 2); - x_355 = x_344; -} else { - lean_dec_ref(x_344); - x_355 = lean_box(0); -} -if (lean_is_scalar(x_355)) { - x_356 = lean_alloc_ctor(0, 3, 0); -} else { - x_356 = x_355; -} -lean_ctor_set(x_356, 0, x_353); -lean_ctor_set(x_356, 1, x_354); -lean_ctor_set(x_356, 2, x_261); if (lean_is_scalar(x_352)) { - x_357 = lean_alloc_ctor(0, 6, 0); + x_353 = lean_alloc_ctor(0, 3, 0); } else { - x_357 = x_352; + x_353 = x_352; } -lean_ctor_set(x_357, 0, x_347); -lean_ctor_set(x_357, 1, x_348); -lean_ctor_set(x_357, 2, x_356); -lean_ctor_set(x_357, 3, x_349); -lean_ctor_set(x_357, 4, x_350); -lean_ctor_set(x_357, 5, x_351); -if (lean_is_scalar(x_346)) { - x_358 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_353, 0, x_350); +lean_ctor_set(x_353, 1, x_351); +lean_ctor_set(x_353, 2, x_258); +if (lean_is_scalar(x_349)) { + x_354 = lean_alloc_ctor(0, 6, 0); } else { - x_358 = x_346; + x_354 = x_349; } -lean_ctor_set(x_358, 0, x_345); -lean_ctor_set(x_358, 1, x_357); -return x_358; +lean_ctor_set(x_354, 0, x_344); +lean_ctor_set(x_354, 1, x_345); +lean_ctor_set(x_354, 2, x_353); +lean_ctor_set(x_354, 3, x_346); +lean_ctor_set(x_354, 4, x_347); +lean_ctor_set(x_354, 5, x_348); +if (lean_is_scalar(x_343)) { + x_355 = lean_alloc_ctor(0, 2, 0); +} else { + x_355 = x_343; +} +lean_ctor_set(x_355, 0, x_342); +lean_ctor_set(x_355, 1, x_354); +return x_355; } else { -lean_object* x_359; lean_object* x_360; 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; -x_359 = lean_ctor_get(x_342, 1); -lean_inc(x_359); -x_360 = lean_ctor_get(x_359, 2); -lean_inc(x_360); -x_361 = lean_ctor_get(x_342, 0); -lean_inc(x_361); -if (lean_is_exclusive(x_342)) { - lean_ctor_release(x_342, 0); - lean_ctor_release(x_342, 1); - x_362 = x_342; +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_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; +x_356 = lean_ctor_get(x_339, 1); +lean_inc(x_356); +x_357 = lean_ctor_get(x_356, 2); +lean_inc(x_357); +x_358 = lean_ctor_get(x_339, 0); +lean_inc(x_358); +if (lean_is_exclusive(x_339)) { + lean_ctor_release(x_339, 0); + lean_ctor_release(x_339, 1); + x_359 = x_339; } else { - lean_dec_ref(x_342); - x_362 = lean_box(0); + lean_dec_ref(x_339); + x_359 = lean_box(0); } -x_363 = lean_ctor_get(x_359, 0); +x_360 = lean_ctor_get(x_356, 0); +lean_inc(x_360); +x_361 = lean_ctor_get(x_356, 1); +lean_inc(x_361); +x_362 = lean_ctor_get(x_356, 3); +lean_inc(x_362); +x_363 = lean_ctor_get(x_356, 4); lean_inc(x_363); -x_364 = lean_ctor_get(x_359, 1); +x_364 = lean_ctor_get(x_356, 5); lean_inc(x_364); -x_365 = lean_ctor_get(x_359, 3); -lean_inc(x_365); -x_366 = lean_ctor_get(x_359, 4); -lean_inc(x_366); -x_367 = lean_ctor_get(x_359, 5); -lean_inc(x_367); -if (lean_is_exclusive(x_359)) { - lean_ctor_release(x_359, 0); - lean_ctor_release(x_359, 1); - lean_ctor_release(x_359, 2); - lean_ctor_release(x_359, 3); - lean_ctor_release(x_359, 4); - lean_ctor_release(x_359, 5); - x_368 = x_359; +if (lean_is_exclusive(x_356)) { + lean_ctor_release(x_356, 0); + lean_ctor_release(x_356, 1); + lean_ctor_release(x_356, 2); + lean_ctor_release(x_356, 3); + lean_ctor_release(x_356, 4); + lean_ctor_release(x_356, 5); + x_365 = x_356; } else { - lean_dec_ref(x_359); + lean_dec_ref(x_356); + x_365 = lean_box(0); +} +x_366 = lean_ctor_get(x_357, 0); +lean_inc(x_366); +x_367 = lean_ctor_get(x_357, 1); +lean_inc(x_367); +if (lean_is_exclusive(x_357)) { + lean_ctor_release(x_357, 0); + lean_ctor_release(x_357, 1); + lean_ctor_release(x_357, 2); + x_368 = x_357; +} else { + lean_dec_ref(x_357); x_368 = lean_box(0); } -x_369 = lean_ctor_get(x_360, 0); -lean_inc(x_369); -x_370 = lean_ctor_get(x_360, 1); -lean_inc(x_370); -if (lean_is_exclusive(x_360)) { - lean_ctor_release(x_360, 0); - lean_ctor_release(x_360, 1); - lean_ctor_release(x_360, 2); - x_371 = x_360; -} else { - lean_dec_ref(x_360); - x_371 = lean_box(0); -} -if (lean_is_scalar(x_371)) { - x_372 = lean_alloc_ctor(0, 3, 0); -} else { - x_372 = x_371; -} -lean_ctor_set(x_372, 0, x_369); -lean_ctor_set(x_372, 1, x_370); -lean_ctor_set(x_372, 2, x_261); if (lean_is_scalar(x_368)) { - x_373 = lean_alloc_ctor(0, 6, 0); + x_369 = lean_alloc_ctor(0, 3, 0); } else { - x_373 = x_368; + x_369 = x_368; } -lean_ctor_set(x_373, 0, x_363); -lean_ctor_set(x_373, 1, x_364); -lean_ctor_set(x_373, 2, x_372); -lean_ctor_set(x_373, 3, x_365); -lean_ctor_set(x_373, 4, x_366); -lean_ctor_set(x_373, 5, x_367); -if (lean_is_scalar(x_362)) { - x_374 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_369, 0, x_366); +lean_ctor_set(x_369, 1, x_367); +lean_ctor_set(x_369, 2, x_258); +if (lean_is_scalar(x_365)) { + x_370 = lean_alloc_ctor(0, 6, 0); } else { - x_374 = x_362; + x_370 = x_365; } -lean_ctor_set(x_374, 0, x_361); -lean_ctor_set(x_374, 1, x_373); -return x_374; +lean_ctor_set(x_370, 0, x_360); +lean_ctor_set(x_370, 1, x_361); +lean_ctor_set(x_370, 2, x_369); +lean_ctor_set(x_370, 3, x_362); +lean_ctor_set(x_370, 4, x_363); +lean_ctor_set(x_370, 5, x_364); +if (lean_is_scalar(x_359)) { + x_371 = lean_alloc_ctor(1, 2, 0); +} else { + x_371 = x_359; +} +lean_ctor_set(x_371, 0, x_358); +lean_ctor_set(x_371, 1, x_370); +return x_371; } } } else { -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; -x_375 = lean_ctor_get(x_259, 0); -x_376 = lean_ctor_get(x_259, 1); -x_377 = lean_ctor_get(x_259, 2); +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; +x_372 = lean_ctor_get(x_256, 0); +x_373 = lean_ctor_get(x_256, 1); +x_374 = lean_ctor_get(x_256, 2); +lean_inc(x_374); +lean_inc(x_373); +lean_inc(x_372); +lean_dec(x_256); +x_375 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +x_376 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_376, 0, x_372); +lean_ctor_set(x_376, 1, x_373); +lean_ctor_set(x_376, 2, x_375); +lean_ctor_set(x_251, 2, x_376); +x_377 = lean_ctor_get(x_7, 0); lean_inc(x_377); -lean_inc(x_376); -lean_inc(x_375); -lean_dec(x_259); -x_378 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; -x_379 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_379, 0, x_375); -lean_ctor_set(x_379, 1, x_376); -lean_ctor_set(x_379, 2, x_378); -lean_ctor_set(x_254, 2, x_379); -x_380 = lean_ctor_get(x_8, 0); -lean_inc(x_380); -x_381 = lean_ctor_get(x_8, 1); -lean_inc(x_381); -x_382 = lean_ctor_get(x_8, 2); -lean_inc(x_382); -if (lean_is_exclusive(x_8)) { - lean_ctor_release(x_8, 0); - lean_ctor_release(x_8, 1); - lean_ctor_release(x_8, 2); - x_383 = x_8; +x_378 = lean_ctor_get(x_7, 1); +lean_inc(x_378); +x_379 = lean_ctor_get(x_7, 2); +lean_inc(x_379); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + lean_ctor_release(x_7, 2); + x_380 = x_7; } else { - lean_dec_ref(x_8); - x_383 = lean_box(0); + lean_dec_ref(x_7); + x_380 = lean_box(0); } -x_384 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_384, 0, x_255); -lean_ctor_set(x_384, 1, x_17); -x_385 = lean_array_push(x_382, x_384); -if (lean_is_scalar(x_383)) { - x_386 = lean_alloc_ctor(0, 3, 0); +x_381 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_381, 0, x_252); +lean_ctor_set(x_381, 1, x_14); +x_382 = lean_array_push(x_379, x_381); +if (lean_is_scalar(x_380)) { + x_383 = lean_alloc_ctor(0, 3, 0); } else { - x_386 = x_383; + x_383 = x_380; } -lean_ctor_set(x_386, 0, x_380); -lean_ctor_set(x_386, 1, x_381); -lean_ctor_set(x_386, 2, x_385); -x_387 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__4___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_257, x_386, x_254); -if (lean_obj_tag(x_387) == 0) +lean_ctor_set(x_383, 0, x_377); +lean_ctor_set(x_383, 1, x_378); +lean_ctor_set(x_383, 2, x_382); +x_384 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__4___rarg(x_1, x_2, x_3, x_4, x_5, x_254, x_383, x_251); +if (lean_obj_tag(x_384) == 0) { -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; -x_388 = lean_ctor_get(x_387, 1); -lean_inc(x_388); -x_389 = lean_ctor_get(x_388, 2); -lean_inc(x_389); -x_390 = lean_ctor_get(x_387, 0); -lean_inc(x_390); -if (lean_is_exclusive(x_387)) { - lean_ctor_release(x_387, 0); - lean_ctor_release(x_387, 1); - x_391 = x_387; +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; +x_385 = lean_ctor_get(x_384, 1); +lean_inc(x_385); +x_386 = lean_ctor_get(x_385, 2); +lean_inc(x_386); +x_387 = lean_ctor_get(x_384, 0); +lean_inc(x_387); +if (lean_is_exclusive(x_384)) { + lean_ctor_release(x_384, 0); + lean_ctor_release(x_384, 1); + x_388 = x_384; } else { - lean_dec_ref(x_387); - x_391 = lean_box(0); + lean_dec_ref(x_384); + x_388 = lean_box(0); } -x_392 = lean_ctor_get(x_388, 0); +x_389 = lean_ctor_get(x_385, 0); +lean_inc(x_389); +x_390 = lean_ctor_get(x_385, 1); +lean_inc(x_390); +x_391 = lean_ctor_get(x_385, 3); +lean_inc(x_391); +x_392 = lean_ctor_get(x_385, 4); lean_inc(x_392); -x_393 = lean_ctor_get(x_388, 1); +x_393 = lean_ctor_get(x_385, 5); lean_inc(x_393); -x_394 = lean_ctor_get(x_388, 3); -lean_inc(x_394); -x_395 = lean_ctor_get(x_388, 4); -lean_inc(x_395); -x_396 = lean_ctor_get(x_388, 5); -lean_inc(x_396); -if (lean_is_exclusive(x_388)) { - lean_ctor_release(x_388, 0); - lean_ctor_release(x_388, 1); - lean_ctor_release(x_388, 2); - lean_ctor_release(x_388, 3); - lean_ctor_release(x_388, 4); - lean_ctor_release(x_388, 5); - x_397 = x_388; +if (lean_is_exclusive(x_385)) { + lean_ctor_release(x_385, 0); + lean_ctor_release(x_385, 1); + lean_ctor_release(x_385, 2); + lean_ctor_release(x_385, 3); + lean_ctor_release(x_385, 4); + lean_ctor_release(x_385, 5); + x_394 = x_385; } else { - lean_dec_ref(x_388); + lean_dec_ref(x_385); + x_394 = lean_box(0); +} +x_395 = lean_ctor_get(x_386, 0); +lean_inc(x_395); +x_396 = lean_ctor_get(x_386, 1); +lean_inc(x_396); +if (lean_is_exclusive(x_386)) { + lean_ctor_release(x_386, 0); + lean_ctor_release(x_386, 1); + lean_ctor_release(x_386, 2); + x_397 = x_386; +} else { + lean_dec_ref(x_386); x_397 = lean_box(0); } -x_398 = lean_ctor_get(x_389, 0); -lean_inc(x_398); -x_399 = lean_ctor_get(x_389, 1); -lean_inc(x_399); -if (lean_is_exclusive(x_389)) { - lean_ctor_release(x_389, 0); - lean_ctor_release(x_389, 1); - lean_ctor_release(x_389, 2); - x_400 = x_389; -} else { - lean_dec_ref(x_389); - x_400 = lean_box(0); -} -if (lean_is_scalar(x_400)) { - x_401 = lean_alloc_ctor(0, 3, 0); -} else { - x_401 = x_400; -} -lean_ctor_set(x_401, 0, x_398); -lean_ctor_set(x_401, 1, x_399); -lean_ctor_set(x_401, 2, x_377); if (lean_is_scalar(x_397)) { - x_402 = lean_alloc_ctor(0, 6, 0); + x_398 = lean_alloc_ctor(0, 3, 0); } else { - x_402 = x_397; + x_398 = x_397; } -lean_ctor_set(x_402, 0, x_392); -lean_ctor_set(x_402, 1, x_393); -lean_ctor_set(x_402, 2, x_401); -lean_ctor_set(x_402, 3, x_394); -lean_ctor_set(x_402, 4, x_395); -lean_ctor_set(x_402, 5, x_396); -if (lean_is_scalar(x_391)) { - x_403 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_398, 0, x_395); +lean_ctor_set(x_398, 1, x_396); +lean_ctor_set(x_398, 2, x_374); +if (lean_is_scalar(x_394)) { + x_399 = lean_alloc_ctor(0, 6, 0); } else { - x_403 = x_391; + x_399 = x_394; } -lean_ctor_set(x_403, 0, x_390); -lean_ctor_set(x_403, 1, x_402); -return x_403; +lean_ctor_set(x_399, 0, x_389); +lean_ctor_set(x_399, 1, x_390); +lean_ctor_set(x_399, 2, x_398); +lean_ctor_set(x_399, 3, x_391); +lean_ctor_set(x_399, 4, x_392); +lean_ctor_set(x_399, 5, x_393); +if (lean_is_scalar(x_388)) { + x_400 = lean_alloc_ctor(0, 2, 0); +} else { + x_400 = x_388; +} +lean_ctor_set(x_400, 0, x_387); +lean_ctor_set(x_400, 1, x_399); +return x_400; } else { -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; -x_404 = lean_ctor_get(x_387, 1); -lean_inc(x_404); -x_405 = lean_ctor_get(x_404, 2); -lean_inc(x_405); -x_406 = lean_ctor_get(x_387, 0); -lean_inc(x_406); -if (lean_is_exclusive(x_387)) { - lean_ctor_release(x_387, 0); - lean_ctor_release(x_387, 1); - x_407 = x_387; +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; +x_401 = lean_ctor_get(x_384, 1); +lean_inc(x_401); +x_402 = lean_ctor_get(x_401, 2); +lean_inc(x_402); +x_403 = lean_ctor_get(x_384, 0); +lean_inc(x_403); +if (lean_is_exclusive(x_384)) { + lean_ctor_release(x_384, 0); + lean_ctor_release(x_384, 1); + x_404 = x_384; } else { - lean_dec_ref(x_387); - x_407 = lean_box(0); + lean_dec_ref(x_384); + x_404 = lean_box(0); } -x_408 = lean_ctor_get(x_404, 0); +x_405 = lean_ctor_get(x_401, 0); +lean_inc(x_405); +x_406 = lean_ctor_get(x_401, 1); +lean_inc(x_406); +x_407 = lean_ctor_get(x_401, 3); +lean_inc(x_407); +x_408 = lean_ctor_get(x_401, 4); lean_inc(x_408); -x_409 = lean_ctor_get(x_404, 1); +x_409 = lean_ctor_get(x_401, 5); lean_inc(x_409); -x_410 = lean_ctor_get(x_404, 3); -lean_inc(x_410); -x_411 = lean_ctor_get(x_404, 4); -lean_inc(x_411); -x_412 = lean_ctor_get(x_404, 5); -lean_inc(x_412); -if (lean_is_exclusive(x_404)) { - lean_ctor_release(x_404, 0); - lean_ctor_release(x_404, 1); - lean_ctor_release(x_404, 2); - lean_ctor_release(x_404, 3); - lean_ctor_release(x_404, 4); - lean_ctor_release(x_404, 5); - x_413 = x_404; +if (lean_is_exclusive(x_401)) { + lean_ctor_release(x_401, 0); + lean_ctor_release(x_401, 1); + lean_ctor_release(x_401, 2); + lean_ctor_release(x_401, 3); + lean_ctor_release(x_401, 4); + lean_ctor_release(x_401, 5); + x_410 = x_401; } else { - lean_dec_ref(x_404); + lean_dec_ref(x_401); + x_410 = lean_box(0); +} +x_411 = lean_ctor_get(x_402, 0); +lean_inc(x_411); +x_412 = lean_ctor_get(x_402, 1); +lean_inc(x_412); +if (lean_is_exclusive(x_402)) { + lean_ctor_release(x_402, 0); + lean_ctor_release(x_402, 1); + lean_ctor_release(x_402, 2); + x_413 = x_402; +} else { + lean_dec_ref(x_402); x_413 = lean_box(0); } -x_414 = lean_ctor_get(x_405, 0); -lean_inc(x_414); -x_415 = lean_ctor_get(x_405, 1); -lean_inc(x_415); -if (lean_is_exclusive(x_405)) { - lean_ctor_release(x_405, 0); - lean_ctor_release(x_405, 1); - lean_ctor_release(x_405, 2); - x_416 = x_405; -} else { - lean_dec_ref(x_405); - x_416 = lean_box(0); -} -if (lean_is_scalar(x_416)) { - x_417 = lean_alloc_ctor(0, 3, 0); -} else { - x_417 = x_416; -} -lean_ctor_set(x_417, 0, x_414); -lean_ctor_set(x_417, 1, x_415); -lean_ctor_set(x_417, 2, x_377); if (lean_is_scalar(x_413)) { - x_418 = lean_alloc_ctor(0, 6, 0); + x_414 = lean_alloc_ctor(0, 3, 0); } else { - x_418 = x_413; + x_414 = x_413; } -lean_ctor_set(x_418, 0, x_408); -lean_ctor_set(x_418, 1, x_409); -lean_ctor_set(x_418, 2, x_417); -lean_ctor_set(x_418, 3, x_410); -lean_ctor_set(x_418, 4, x_411); -lean_ctor_set(x_418, 5, x_412); -if (lean_is_scalar(x_407)) { - x_419 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_414, 0, x_411); +lean_ctor_set(x_414, 1, x_412); +lean_ctor_set(x_414, 2, x_374); +if (lean_is_scalar(x_410)) { + x_415 = lean_alloc_ctor(0, 6, 0); } else { - x_419 = x_407; + x_415 = x_410; } -lean_ctor_set(x_419, 0, x_406); -lean_ctor_set(x_419, 1, x_418); -return x_419; +lean_ctor_set(x_415, 0, x_405); +lean_ctor_set(x_415, 1, x_406); +lean_ctor_set(x_415, 2, x_414); +lean_ctor_set(x_415, 3, x_407); +lean_ctor_set(x_415, 4, x_408); +lean_ctor_set(x_415, 5, x_409); +if (lean_is_scalar(x_404)) { + x_416 = lean_alloc_ctor(1, 2, 0); +} else { + x_416 = x_404; +} +lean_ctor_set(x_416, 0, x_403); +lean_ctor_set(x_416, 1, x_415); +return x_416; } } } else { -lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_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; -x_420 = lean_ctor_get(x_254, 2); -x_421 = lean_ctor_get(x_254, 0); -x_422 = lean_ctor_get(x_254, 1); -x_423 = lean_ctor_get(x_254, 3); -x_424 = lean_ctor_get(x_254, 4); -x_425 = lean_ctor_get(x_254, 5); -lean_inc(x_425); -lean_inc(x_424); -lean_inc(x_423); -lean_inc(x_420); +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; +x_417 = lean_ctor_get(x_251, 2); +x_418 = lean_ctor_get(x_251, 0); +x_419 = lean_ctor_get(x_251, 1); +x_420 = lean_ctor_get(x_251, 3); +x_421 = lean_ctor_get(x_251, 4); +x_422 = lean_ctor_get(x_251, 5); lean_inc(x_422); lean_inc(x_421); -lean_dec(x_254); -x_426 = lean_ctor_get(x_420, 0); -lean_inc(x_426); -x_427 = lean_ctor_get(x_420, 1); -lean_inc(x_427); -x_428 = lean_ctor_get(x_420, 2); -lean_inc(x_428); -if (lean_is_exclusive(x_420)) { - lean_ctor_release(x_420, 0); - lean_ctor_release(x_420, 1); - lean_ctor_release(x_420, 2); - x_429 = x_420; +lean_inc(x_420); +lean_inc(x_417); +lean_inc(x_419); +lean_inc(x_418); +lean_dec(x_251); +x_423 = lean_ctor_get(x_417, 0); +lean_inc(x_423); +x_424 = lean_ctor_get(x_417, 1); +lean_inc(x_424); +x_425 = lean_ctor_get(x_417, 2); +lean_inc(x_425); +if (lean_is_exclusive(x_417)) { + lean_ctor_release(x_417, 0); + lean_ctor_release(x_417, 1); + lean_ctor_release(x_417, 2); + x_426 = x_417; } else { - lean_dec_ref(x_420); - x_429 = lean_box(0); + lean_dec_ref(x_417); + x_426 = lean_box(0); } -x_430 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; -if (lean_is_scalar(x_429)) { - x_431 = lean_alloc_ctor(0, 3, 0); +x_427 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +if (lean_is_scalar(x_426)) { + x_428 = lean_alloc_ctor(0, 3, 0); } else { - x_431 = x_429; + x_428 = x_426; } -lean_ctor_set(x_431, 0, x_426); -lean_ctor_set(x_431, 1, x_427); -lean_ctor_set(x_431, 2, x_430); -x_432 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_432, 0, x_421); -lean_ctor_set(x_432, 1, x_422); -lean_ctor_set(x_432, 2, x_431); -lean_ctor_set(x_432, 3, x_423); -lean_ctor_set(x_432, 4, x_424); -lean_ctor_set(x_432, 5, x_425); -x_433 = lean_ctor_get(x_8, 0); -lean_inc(x_433); -x_434 = lean_ctor_get(x_8, 1); -lean_inc(x_434); -x_435 = lean_ctor_get(x_8, 2); -lean_inc(x_435); -if (lean_is_exclusive(x_8)) { - lean_ctor_release(x_8, 0); - lean_ctor_release(x_8, 1); - lean_ctor_release(x_8, 2); - x_436 = x_8; +lean_ctor_set(x_428, 0, x_423); +lean_ctor_set(x_428, 1, x_424); +lean_ctor_set(x_428, 2, x_427); +x_429 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_429, 0, x_418); +lean_ctor_set(x_429, 1, x_419); +lean_ctor_set(x_429, 2, x_428); +lean_ctor_set(x_429, 3, x_420); +lean_ctor_set(x_429, 4, x_421); +lean_ctor_set(x_429, 5, x_422); +x_430 = lean_ctor_get(x_7, 0); +lean_inc(x_430); +x_431 = lean_ctor_get(x_7, 1); +lean_inc(x_431); +x_432 = lean_ctor_get(x_7, 2); +lean_inc(x_432); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + lean_ctor_release(x_7, 2); + x_433 = x_7; } else { - lean_dec_ref(x_8); - x_436 = lean_box(0); + lean_dec_ref(x_7); + x_433 = lean_box(0); } -x_437 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_437, 0, x_255); -lean_ctor_set(x_437, 1, x_17); -x_438 = lean_array_push(x_435, x_437); -if (lean_is_scalar(x_436)) { - x_439 = lean_alloc_ctor(0, 3, 0); +x_434 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_434, 0, x_252); +lean_ctor_set(x_434, 1, x_14); +x_435 = lean_array_push(x_432, x_434); +if (lean_is_scalar(x_433)) { + x_436 = lean_alloc_ctor(0, 3, 0); } else { - x_439 = x_436; + x_436 = x_433; } -lean_ctor_set(x_439, 0, x_433); -lean_ctor_set(x_439, 1, x_434); -lean_ctor_set(x_439, 2, x_438); -x_440 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__4___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_257, x_439, x_432); -if (lean_obj_tag(x_440) == 0) +lean_ctor_set(x_436, 0, x_430); +lean_ctor_set(x_436, 1, x_431); +lean_ctor_set(x_436, 2, x_435); +x_437 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__4___rarg(x_1, x_2, x_3, x_4, x_5, x_254, x_436, x_429); +if (lean_obj_tag(x_437) == 0) { -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; -x_441 = lean_ctor_get(x_440, 1); -lean_inc(x_441); -x_442 = lean_ctor_get(x_441, 2); -lean_inc(x_442); -x_443 = lean_ctor_get(x_440, 0); -lean_inc(x_443); -if (lean_is_exclusive(x_440)) { - lean_ctor_release(x_440, 0); - lean_ctor_release(x_440, 1); - x_444 = x_440; +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; +x_438 = lean_ctor_get(x_437, 1); +lean_inc(x_438); +x_439 = lean_ctor_get(x_438, 2); +lean_inc(x_439); +x_440 = lean_ctor_get(x_437, 0); +lean_inc(x_440); +if (lean_is_exclusive(x_437)) { + lean_ctor_release(x_437, 0); + lean_ctor_release(x_437, 1); + x_441 = x_437; } else { - lean_dec_ref(x_440); - x_444 = lean_box(0); + lean_dec_ref(x_437); + x_441 = lean_box(0); } -x_445 = lean_ctor_get(x_441, 0); +x_442 = lean_ctor_get(x_438, 0); +lean_inc(x_442); +x_443 = lean_ctor_get(x_438, 1); +lean_inc(x_443); +x_444 = lean_ctor_get(x_438, 3); +lean_inc(x_444); +x_445 = lean_ctor_get(x_438, 4); lean_inc(x_445); -x_446 = lean_ctor_get(x_441, 1); +x_446 = lean_ctor_get(x_438, 5); lean_inc(x_446); -x_447 = lean_ctor_get(x_441, 3); -lean_inc(x_447); -x_448 = lean_ctor_get(x_441, 4); -lean_inc(x_448); -x_449 = lean_ctor_get(x_441, 5); -lean_inc(x_449); -if (lean_is_exclusive(x_441)) { - lean_ctor_release(x_441, 0); - lean_ctor_release(x_441, 1); - lean_ctor_release(x_441, 2); - lean_ctor_release(x_441, 3); - lean_ctor_release(x_441, 4); - lean_ctor_release(x_441, 5); - x_450 = x_441; +if (lean_is_exclusive(x_438)) { + lean_ctor_release(x_438, 0); + lean_ctor_release(x_438, 1); + lean_ctor_release(x_438, 2); + lean_ctor_release(x_438, 3); + lean_ctor_release(x_438, 4); + lean_ctor_release(x_438, 5); + x_447 = x_438; } else { - lean_dec_ref(x_441); + lean_dec_ref(x_438); + x_447 = lean_box(0); +} +x_448 = lean_ctor_get(x_439, 0); +lean_inc(x_448); +x_449 = lean_ctor_get(x_439, 1); +lean_inc(x_449); +if (lean_is_exclusive(x_439)) { + lean_ctor_release(x_439, 0); + lean_ctor_release(x_439, 1); + lean_ctor_release(x_439, 2); + x_450 = x_439; +} else { + lean_dec_ref(x_439); x_450 = lean_box(0); } -x_451 = lean_ctor_get(x_442, 0); -lean_inc(x_451); -x_452 = lean_ctor_get(x_442, 1); -lean_inc(x_452); -if (lean_is_exclusive(x_442)) { - lean_ctor_release(x_442, 0); - lean_ctor_release(x_442, 1); - lean_ctor_release(x_442, 2); - x_453 = x_442; -} else { - lean_dec_ref(x_442); - x_453 = lean_box(0); -} -if (lean_is_scalar(x_453)) { - x_454 = lean_alloc_ctor(0, 3, 0); -} else { - x_454 = x_453; -} -lean_ctor_set(x_454, 0, x_451); -lean_ctor_set(x_454, 1, x_452); -lean_ctor_set(x_454, 2, x_428); if (lean_is_scalar(x_450)) { - x_455 = lean_alloc_ctor(0, 6, 0); + x_451 = lean_alloc_ctor(0, 3, 0); } else { - x_455 = x_450; + x_451 = x_450; } -lean_ctor_set(x_455, 0, x_445); -lean_ctor_set(x_455, 1, x_446); -lean_ctor_set(x_455, 2, x_454); -lean_ctor_set(x_455, 3, x_447); -lean_ctor_set(x_455, 4, x_448); -lean_ctor_set(x_455, 5, x_449); -if (lean_is_scalar(x_444)) { - x_456 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_451, 0, x_448); +lean_ctor_set(x_451, 1, x_449); +lean_ctor_set(x_451, 2, x_425); +if (lean_is_scalar(x_447)) { + x_452 = lean_alloc_ctor(0, 6, 0); } else { - x_456 = x_444; + x_452 = x_447; } -lean_ctor_set(x_456, 0, x_443); -lean_ctor_set(x_456, 1, x_455); -return x_456; +lean_ctor_set(x_452, 0, x_442); +lean_ctor_set(x_452, 1, x_443); +lean_ctor_set(x_452, 2, x_451); +lean_ctor_set(x_452, 3, x_444); +lean_ctor_set(x_452, 4, x_445); +lean_ctor_set(x_452, 5, x_446); +if (lean_is_scalar(x_441)) { + x_453 = lean_alloc_ctor(0, 2, 0); +} else { + x_453 = x_441; +} +lean_ctor_set(x_453, 0, x_440); +lean_ctor_set(x_453, 1, x_452); +return x_453; } else { -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; -x_457 = lean_ctor_get(x_440, 1); -lean_inc(x_457); -x_458 = lean_ctor_get(x_457, 2); -lean_inc(x_458); -x_459 = lean_ctor_get(x_440, 0); -lean_inc(x_459); -if (lean_is_exclusive(x_440)) { - lean_ctor_release(x_440, 0); - lean_ctor_release(x_440, 1); - x_460 = x_440; +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; +x_454 = lean_ctor_get(x_437, 1); +lean_inc(x_454); +x_455 = lean_ctor_get(x_454, 2); +lean_inc(x_455); +x_456 = lean_ctor_get(x_437, 0); +lean_inc(x_456); +if (lean_is_exclusive(x_437)) { + lean_ctor_release(x_437, 0); + lean_ctor_release(x_437, 1); + x_457 = x_437; } else { - lean_dec_ref(x_440); - x_460 = lean_box(0); + lean_dec_ref(x_437); + x_457 = lean_box(0); } -x_461 = lean_ctor_get(x_457, 0); +x_458 = lean_ctor_get(x_454, 0); +lean_inc(x_458); +x_459 = lean_ctor_get(x_454, 1); +lean_inc(x_459); +x_460 = lean_ctor_get(x_454, 3); +lean_inc(x_460); +x_461 = lean_ctor_get(x_454, 4); lean_inc(x_461); -x_462 = lean_ctor_get(x_457, 1); +x_462 = lean_ctor_get(x_454, 5); lean_inc(x_462); -x_463 = lean_ctor_get(x_457, 3); -lean_inc(x_463); -x_464 = lean_ctor_get(x_457, 4); -lean_inc(x_464); -x_465 = lean_ctor_get(x_457, 5); -lean_inc(x_465); -if (lean_is_exclusive(x_457)) { - lean_ctor_release(x_457, 0); - lean_ctor_release(x_457, 1); - lean_ctor_release(x_457, 2); - lean_ctor_release(x_457, 3); - lean_ctor_release(x_457, 4); - lean_ctor_release(x_457, 5); - x_466 = x_457; +if (lean_is_exclusive(x_454)) { + lean_ctor_release(x_454, 0); + lean_ctor_release(x_454, 1); + lean_ctor_release(x_454, 2); + lean_ctor_release(x_454, 3); + lean_ctor_release(x_454, 4); + lean_ctor_release(x_454, 5); + x_463 = x_454; } else { - lean_dec_ref(x_457); + lean_dec_ref(x_454); + x_463 = lean_box(0); +} +x_464 = lean_ctor_get(x_455, 0); +lean_inc(x_464); +x_465 = lean_ctor_get(x_455, 1); +lean_inc(x_465); +if (lean_is_exclusive(x_455)) { + lean_ctor_release(x_455, 0); + lean_ctor_release(x_455, 1); + lean_ctor_release(x_455, 2); + x_466 = x_455; +} else { + lean_dec_ref(x_455); x_466 = lean_box(0); } -x_467 = lean_ctor_get(x_458, 0); -lean_inc(x_467); -x_468 = lean_ctor_get(x_458, 1); -lean_inc(x_468); -if (lean_is_exclusive(x_458)) { - lean_ctor_release(x_458, 0); - lean_ctor_release(x_458, 1); - lean_ctor_release(x_458, 2); - x_469 = x_458; -} else { - lean_dec_ref(x_458); - x_469 = lean_box(0); -} -if (lean_is_scalar(x_469)) { - x_470 = lean_alloc_ctor(0, 3, 0); -} else { - x_470 = x_469; -} -lean_ctor_set(x_470, 0, x_467); -lean_ctor_set(x_470, 1, x_468); -lean_ctor_set(x_470, 2, x_428); if (lean_is_scalar(x_466)) { - x_471 = lean_alloc_ctor(0, 6, 0); + x_467 = lean_alloc_ctor(0, 3, 0); } else { - x_471 = x_466; + x_467 = x_466; } -lean_ctor_set(x_471, 0, x_461); -lean_ctor_set(x_471, 1, x_462); -lean_ctor_set(x_471, 2, x_470); -lean_ctor_set(x_471, 3, x_463); -lean_ctor_set(x_471, 4, x_464); -lean_ctor_set(x_471, 5, x_465); -if (lean_is_scalar(x_460)) { - x_472 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_467, 0, x_464); +lean_ctor_set(x_467, 1, x_465); +lean_ctor_set(x_467, 2, x_425); +if (lean_is_scalar(x_463)) { + x_468 = lean_alloc_ctor(0, 6, 0); } else { - x_472 = x_460; + x_468 = x_463; } -lean_ctor_set(x_472, 0, x_459); -lean_ctor_set(x_472, 1, x_471); -return x_472; +lean_ctor_set(x_468, 0, x_458); +lean_ctor_set(x_468, 1, x_459); +lean_ctor_set(x_468, 2, x_467); +lean_ctor_set(x_468, 3, x_460); +lean_ctor_set(x_468, 4, x_461); +lean_ctor_set(x_468, 5, x_462); +if (lean_is_scalar(x_457)) { + x_469 = lean_alloc_ctor(1, 2, 0); +} else { + x_469 = x_457; +} +lean_ctor_set(x_469, 0, x_456); +lean_ctor_set(x_469, 1, x_468); +return x_469; } } } } else { -uint8_t x_473; -lean_dec(x_17); -lean_dec(x_8); +uint8_t x_470; +lean_dec(x_14); lean_dec(x_7); -lean_dec(x_5); +lean_dec(x_6); lean_dec(x_2); lean_dec(x_1); -x_473 = !lean_is_exclusive(x_248); -if (x_473 == 0) +x_470 = !lean_is_exclusive(x_245); +if (x_470 == 0) { -return x_248; +return x_245; } else { -lean_object* x_474; lean_object* x_475; lean_object* x_476; -x_474 = lean_ctor_get(x_248, 0); -x_475 = lean_ctor_get(x_248, 1); -lean_inc(x_475); -lean_inc(x_474); -lean_dec(x_248); -x_476 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_476, 0, x_474); -lean_ctor_set(x_476, 1, x_475); -return x_476; +lean_object* x_471; lean_object* x_472; lean_object* x_473; +x_471 = lean_ctor_get(x_245, 0); +x_472 = lean_ctor_get(x_245, 1); +lean_inc(x_472); +lean_inc(x_471); +lean_dec(x_245); +x_473 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_473, 0, x_471); +lean_ctor_set(x_473, 1, x_472); +return x_473; } } } @@ -23326,60 +23370,58 @@ return x_476; } else { -uint8_t x_477; -lean_dec(x_21); -lean_dec(x_17); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -x_477 = !lean_is_exclusive(x_22); -if (x_477 == 0) -{ -return x_22; -} -else -{ -lean_object* x_478; lean_object* x_479; lean_object* x_480; -x_478 = lean_ctor_get(x_22, 0); -x_479 = lean_ctor_get(x_22, 1); -lean_inc(x_479); -lean_inc(x_478); -lean_dec(x_22); -x_480 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_480, 0, x_478); -lean_ctor_set(x_480, 1, x_479); -return x_480; -} -} -} -else -{ -uint8_t x_481; -lean_dec(x_17); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -x_481 = !lean_is_exclusive(x_18); -if (x_481 == 0) -{ -return x_18; -} -else -{ -lean_object* x_482; lean_object* x_483; lean_object* x_484; -x_482 = lean_ctor_get(x_18, 0); -x_483 = lean_ctor_get(x_18, 1); -lean_inc(x_483); -lean_inc(x_482); +uint8_t x_474; lean_dec(x_18); -x_484 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_484, 0, x_482); -lean_ctor_set(x_484, 1, x_483); -return x_484; +lean_dec(x_14); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_474 = !lean_is_exclusive(x_19); +if (x_474 == 0) +{ +return x_19; +} +else +{ +lean_object* x_475; lean_object* x_476; lean_object* x_477; +x_475 = lean_ctor_get(x_19, 0); +x_476 = lean_ctor_get(x_19, 1); +lean_inc(x_476); +lean_inc(x_475); +lean_dec(x_19); +x_477 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_477, 0, x_475); +lean_ctor_set(x_477, 1, x_476); +return x_477; +} +} +} +else +{ +uint8_t x_478; +lean_dec(x_14); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_478 = !lean_is_exclusive(x_15); +if (x_478 == 0) +{ +return x_15; +} +else +{ +lean_object* x_479; lean_object* x_480; lean_object* x_481; +x_479 = lean_ctor_get(x_15, 0); +x_480 = lean_ctor_get(x_15, 1); +lean_inc(x_480); +lean_inc(x_479); +lean_dec(x_15); +x_481 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_481, 0, x_479); +lean_ctor_set(x_481, 1, x_480); +return x_481; } } } @@ -23389,7 +23431,7 @@ lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTeles _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__4___rarg___boxed), 9, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__4___rarg___boxed), 8, 0); return x_2; } } @@ -23399,6 +23441,8 @@ _start: lean_object* x_10; if (lean_obj_tag(x_7) == 7) { +if (lean_obj_tag(x_3) == 0) +{ lean_object* x_23; lean_object* x_24; lean_object* x_25; uint64_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; x_23 = lean_ctor_get(x_7, 0); lean_inc(x_23); @@ -23422,14 +23466,8 @@ lean_dec(x_29); x_32 = (uint8_t)((x_26 << 24) >> 61); lean_inc(x_30); x_33 = lean_local_ctx_mk_local_decl(x_4, x_30, x_23, x_28, x_32); -lean_inc(x_30); x_34 = l_Lean_mkFVar(x_30); -lean_inc(x_5); x_35 = lean_array_push(x_5, x_34); -if (lean_obj_tag(x_3) == 0) -{ -lean_dec(x_30); -lean_dec(x_5); x_4 = x_33; x_5 = x_35; x_7 = x_25; @@ -23438,68 +23476,95 @@ goto _start; } else { -lean_object* x_37; lean_object* x_38; uint8_t x_39; -x_37 = lean_ctor_get(x_3, 0); +lean_object* x_37; lean_object* x_38; lean_object* x_39; uint64_t x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_37 = lean_ctor_get(x_7, 0); lean_inc(x_37); -x_38 = lean_array_get_size(x_35); -x_39 = lean_nat_dec_lt(x_38, x_37); -lean_dec(x_37); -lean_dec(x_38); -if (x_39 == 0) -{ -uint8_t x_40; -lean_dec(x_3); -x_40 = !lean_is_exclusive(x_8); -if (x_40 == 0) -{ -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_8, 1); +x_38 = lean_ctor_get(x_7, 1); +lean_inc(x_38); +x_39 = lean_ctor_get(x_7, 2); +lean_inc(x_39); +x_40 = lean_ctor_get_uint64(x_7, sizeof(void*)*3); +x_41 = lean_ctor_get(x_3, 0); +lean_inc(x_41); +x_42 = lean_array_get_size(x_5); +x_43 = lean_nat_dec_lt(x_42, x_41); lean_dec(x_41); -lean_ctor_set(x_8, 1, x_33); -lean_inc(x_6); -x_42 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__4___rarg(x_1, x_5, x_6, x_25, x_30, x_35, x_6, x_8, x_31); -lean_dec(x_35); -lean_dec(x_25); -lean_dec(x_6); -return x_42; -} -else +if (x_43 == 0) { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_43 = lean_ctor_get(x_8, 0); -x_44 = lean_ctor_get(x_8, 2); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_8); -x_45 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_33); -lean_ctor_set(x_45, 2, x_44); +uint8_t x_44; +lean_dec(x_42); +lean_dec(x_39); +lean_dec(x_38); +lean_dec(x_37); +lean_dec(x_3); +x_44 = !lean_is_exclusive(x_8); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; +x_45 = lean_ctor_get(x_8, 1); +lean_dec(x_45); +lean_ctor_set(x_8, 1, x_4); lean_inc(x_6); -x_46 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__4___rarg(x_1, x_5, x_6, x_25, x_30, x_35, x_6, x_45, x_31); -lean_dec(x_35); -lean_dec(x_25); +lean_inc(x_5); +x_46 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__4___rarg(x_1, x_5, x_6, x_7, x_5, x_6, x_8, x_9); +lean_dec(x_7); lean_dec(x_6); +lean_dec(x_5); return x_46; } +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_47 = lean_ctor_get(x_8, 0); +x_48 = lean_ctor_get(x_8, 2); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_8); +x_49 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_4); +lean_ctor_set(x_49, 2, x_48); +lean_inc(x_6); +lean_inc(x_5); +x_50 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__4___rarg(x_1, x_5, x_6, x_7, x_5, x_6, x_49, x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_50; +} } else { -lean_dec(x_30); -lean_dec(x_5); -x_4 = x_33; -x_5 = x_35; -x_7 = x_25; -x_9 = x_31; +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +lean_dec(x_7); +lean_inc(x_5); +x_51 = lean_expr_instantiate_rev_range(x_38, x_6, x_42, x_5); +lean_dec(x_42); +lean_dec(x_38); +x_52 = l_Lean_Meta_mkFreshId___rarg(x_9); +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); +x_55 = (uint8_t)((x_40 << 24) >> 61); +lean_inc(x_53); +x_56 = lean_local_ctx_mk_local_decl(x_4, x_53, x_37, x_51, x_55); +x_57 = l_Lean_mkFVar(x_53); +x_58 = lean_array_push(x_5, x_57); +x_4 = x_56; +x_5 = x_58; +x_7 = x_39; +x_9 = x_54; goto _start; } } } else { -lean_object* x_48; -x_48 = lean_box(0); -x_10 = x_48; +lean_object* x_60; +x_60 = lean_box(0); +x_10 = x_60; goto block_22; } block_22: @@ -23651,15 +23716,15 @@ lean_dec(x_6); return x_15; } } -lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__4___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__4___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -lean_object* x_10; -x_10 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__4___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_6); +lean_object* x_9; +x_9 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__4___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_10; +return x_9; } } lean_object* l___private_Init_Lean_Meta_Basic_5__forallTelescopeReducingAuxAux___main___at_Lean_Meta_forallTelescope___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { @@ -27987,2071 +28052,2063 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withNewLocalInstances___main___at_L return x_2; } } -lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescopeReducing___spec__5___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescopeReducing___spec__5___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -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_inc(x_5); -x_10 = l_Lean_mkFVar(x_5); +lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_9 = lean_array_get_size(x_2); lean_inc(x_2); -x_11 = lean_array_push(x_2, x_10); -x_12 = lean_array_get_size(x_11); -lean_inc(x_11); -x_13 = lean_expr_instantiate_rev_range(x_4, x_3, x_12, x_11); -lean_dec(x_12); -x_14 = lean_array_get_size(x_6); -x_15 = lean_nat_dec_lt(x_7, x_14); -lean_dec(x_14); -if (x_15 == 0) +x_10 = lean_expr_instantiate_rev_range(x_4, x_3, x_9, x_2); +lean_dec(x_9); +x_11 = lean_array_get_size(x_5); +x_12 = lean_nat_dec_lt(x_6, x_11); +lean_dec(x_11); +if (x_12 == 0) { -lean_object* x_16; -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_2); -x_16 = lean_apply_4(x_1, x_11, x_13, x_8, x_9); -return x_16; +lean_object* x_13; +lean_dec(x_6); +x_13 = lean_apply_4(x_1, x_2, x_10, x_7, x_8); +return x_13; } else { -lean_object* x_17; lean_object* x_18; -lean_dec(x_13); -lean_dec(x_11); -x_17 = lean_array_fget(x_6, x_7); -lean_inc(x_8); -x_18 = l_Lean_Meta_getFVarLocalDecl(x_17, x_8, x_9); -if (lean_obj_tag(x_18) == 0) +lean_object* x_14; lean_object* x_15; +lean_dec(x_10); +x_14 = lean_array_fget(x_5, x_6); +lean_inc(x_7); +x_15 = l_Lean_Meta_getFVarLocalDecl(x_14, x_7, x_8); +if (lean_obj_tag(x_15) == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +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 = l_Lean_LocalDecl_type(x_16); +lean_dec(x_16); +lean_inc(x_7); +lean_inc(x_18); +x_19 = l_Lean_Meta_isClassQuick___main(x_18, x_7, x_17); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; +x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); -lean_dec(x_18); -x_21 = l_Lean_LocalDecl_type(x_19); -lean_dec(x_19); -lean_inc(x_8); -lean_inc(x_21); -x_22 = l_Lean_Meta_isClassQuick___main(x_21, x_8, x_20); -if (lean_obj_tag(x_22) == 0) -{ -lean_object* x_23; -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -switch (lean_obj_tag(x_23)) { +switch (lean_obj_tag(x_20)) { case 0: { -lean_object* x_24; lean_object* x_25; lean_object* x_26; -lean_dec(x_21); -lean_dec(x_17); -x_24 = lean_ctor_get(x_22, 1); -lean_inc(x_24); -lean_dec(x_22); -x_25 = lean_unsigned_to_nat(1u); -x_26 = lean_nat_add(x_7, x_25); -lean_dec(x_7); -x_7 = x_26; -x_9 = x_24; +lean_object* x_21; lean_object* x_22; lean_object* x_23; +lean_dec(x_18); +lean_dec(x_14); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = lean_unsigned_to_nat(1u); +x_23 = lean_nat_add(x_6, x_22); +lean_dec(x_6); +x_6 = x_23; +x_8 = x_21; goto _start; } case 1: { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; -lean_dec(x_21); -x_28 = lean_ctor_get(x_22, 1); -lean_inc(x_28); -lean_dec(x_22); -x_29 = lean_ctor_get(x_23, 0); -lean_inc(x_29); -lean_dec(x_23); -x_30 = lean_unsigned_to_nat(1u); -x_31 = lean_nat_add(x_7, x_30); -lean_dec(x_7); -x_32 = !lean_is_exclusive(x_28); -if (x_32 == 0) +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; +lean_dec(x_18); +x_25 = lean_ctor_get(x_19, 1); +lean_inc(x_25); +lean_dec(x_19); +x_26 = lean_ctor_get(x_20, 0); +lean_inc(x_26); +lean_dec(x_20); +x_27 = lean_unsigned_to_nat(1u); +x_28 = lean_nat_add(x_6, x_27); +lean_dec(x_6); +x_29 = !lean_is_exclusive(x_25); +if (x_29 == 0) { -lean_object* x_33; uint8_t x_34; -x_33 = lean_ctor_get(x_28, 2); -x_34 = !lean_is_exclusive(x_33); +lean_object* x_30; uint8_t x_31; +x_30 = lean_ctor_get(x_25, 2); +x_31 = !lean_is_exclusive(x_30); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_32 = lean_ctor_get(x_30, 2); +x_33 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +lean_ctor_set(x_30, 2, x_33); +x_34 = !lean_is_exclusive(x_7); if (x_34 == 0) { -lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_35 = lean_ctor_get(x_33, 2); -x_36 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; -lean_ctor_set(x_33, 2, x_36); -x_37 = !lean_is_exclusive(x_8); -if (x_37 == 0) +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_35 = lean_ctor_get(x_7, 2); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_26); +lean_ctor_set(x_36, 1, x_14); +x_37 = lean_array_push(x_35, x_36); +lean_ctor_set(x_7, 2, x_37); +x_38 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescopeReducing___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_28, x_7, x_25); +if (lean_obj_tag(x_38) == 0) { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_38 = lean_ctor_get(x_8, 2); -x_39 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_39, 0, x_29); -lean_ctor_set(x_39, 1, x_17); -x_40 = lean_array_push(x_38, x_39); -lean_ctor_set(x_8, 2, x_40); -x_41 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescopeReducing___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_31, x_8, x_28); -if (lean_obj_tag(x_41) == 0) +lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +x_40 = lean_ctor_get(x_39, 2); +lean_inc(x_40); +x_41 = !lean_is_exclusive(x_38); +if (x_41 == 0) { -lean_object* x_42; lean_object* x_43; uint8_t x_44; -x_42 = lean_ctor_get(x_41, 1); -lean_inc(x_42); -x_43 = lean_ctor_get(x_42, 2); -lean_inc(x_43); -x_44 = !lean_is_exclusive(x_41); -if (x_44 == 0) +lean_object* x_42; uint8_t x_43; +x_42 = lean_ctor_get(x_38, 1); +lean_dec(x_42); +x_43 = !lean_is_exclusive(x_39); +if (x_43 == 0) { -lean_object* x_45; uint8_t x_46; -x_45 = lean_ctor_get(x_41, 1); -lean_dec(x_45); -x_46 = !lean_is_exclusive(x_42); -if (x_46 == 0) +lean_object* x_44; uint8_t x_45; +x_44 = lean_ctor_get(x_39, 2); +lean_dec(x_44); +x_45 = !lean_is_exclusive(x_40); +if (x_45 == 0) { -lean_object* x_47; uint8_t x_48; -x_47 = lean_ctor_get(x_42, 2); -lean_dec(x_47); -x_48 = !lean_is_exclusive(x_43); -if (x_48 == 0) -{ -lean_object* x_49; -x_49 = lean_ctor_get(x_43, 2); -lean_dec(x_49); -lean_ctor_set(x_43, 2, x_35); -return x_41; +lean_object* x_46; +x_46 = lean_ctor_get(x_40, 2); +lean_dec(x_46); +lean_ctor_set(x_40, 2, x_32); +return x_38; } else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_43, 0); -x_51 = lean_ctor_get(x_43, 1); -lean_inc(x_51); -lean_inc(x_50); -lean_dec(x_43); -x_52 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -lean_ctor_set(x_52, 2, x_35); -lean_ctor_set(x_42, 2, x_52); -return x_41; +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_40, 0); +x_48 = lean_ctor_get(x_40, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_40); +x_49 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +lean_ctor_set(x_49, 2, x_32); +lean_ctor_set(x_39, 2, x_49); +return x_38; } } else { -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_53 = lean_ctor_get(x_42, 0); -x_54 = lean_ctor_get(x_42, 1); -x_55 = lean_ctor_get(x_42, 3); -x_56 = lean_ctor_get(x_42, 4); -x_57 = lean_ctor_get(x_42, 5); -lean_inc(x_57); -lean_inc(x_56); -lean_inc(x_55); +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; +x_50 = lean_ctor_get(x_39, 0); +x_51 = lean_ctor_get(x_39, 1); +x_52 = lean_ctor_get(x_39, 3); +x_53 = lean_ctor_get(x_39, 4); +x_54 = lean_ctor_get(x_39, 5); lean_inc(x_54); lean_inc(x_53); -lean_dec(x_42); -x_58 = lean_ctor_get(x_43, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_43, 1); -lean_inc(x_59); -if (lean_is_exclusive(x_43)) { - lean_ctor_release(x_43, 0); - lean_ctor_release(x_43, 1); - lean_ctor_release(x_43, 2); - x_60 = x_43; +lean_inc(x_52); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_39); +x_55 = lean_ctor_get(x_40, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_40, 1); +lean_inc(x_56); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + lean_ctor_release(x_40, 2); + x_57 = x_40; } else { - lean_dec_ref(x_43); - x_60 = lean_box(0); + lean_dec_ref(x_40); + x_57 = lean_box(0); } -if (lean_is_scalar(x_60)) { - x_61 = lean_alloc_ctor(0, 3, 0); +if (lean_is_scalar(x_57)) { + x_58 = lean_alloc_ctor(0, 3, 0); } else { - x_61 = x_60; + x_58 = x_57; } -lean_ctor_set(x_61, 0, x_58); -lean_ctor_set(x_61, 1, x_59); -lean_ctor_set(x_61, 2, x_35); -x_62 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_62, 0, x_53); -lean_ctor_set(x_62, 1, x_54); -lean_ctor_set(x_62, 2, x_61); -lean_ctor_set(x_62, 3, x_55); -lean_ctor_set(x_62, 4, x_56); -lean_ctor_set(x_62, 5, x_57); -lean_ctor_set(x_41, 1, x_62); -return x_41; +lean_ctor_set(x_58, 0, x_55); +lean_ctor_set(x_58, 1, x_56); +lean_ctor_set(x_58, 2, x_32); +x_59 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_59, 0, x_50); +lean_ctor_set(x_59, 1, x_51); +lean_ctor_set(x_59, 2, x_58); +lean_ctor_set(x_59, 3, x_52); +lean_ctor_set(x_59, 4, x_53); +lean_ctor_set(x_59, 5, x_54); +lean_ctor_set(x_38, 1, x_59); +return x_38; } } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_63 = lean_ctor_get(x_41, 0); +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_60 = lean_ctor_get(x_38, 0); +lean_inc(x_60); +lean_dec(x_38); +x_61 = lean_ctor_get(x_39, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_39, 1); +lean_inc(x_62); +x_63 = lean_ctor_get(x_39, 3); lean_inc(x_63); -lean_dec(x_41); -x_64 = lean_ctor_get(x_42, 0); +x_64 = lean_ctor_get(x_39, 4); lean_inc(x_64); -x_65 = lean_ctor_get(x_42, 1); +x_65 = lean_ctor_get(x_39, 5); lean_inc(x_65); -x_66 = lean_ctor_get(x_42, 3); -lean_inc(x_66); -x_67 = lean_ctor_get(x_42, 4); -lean_inc(x_67); -x_68 = lean_ctor_get(x_42, 5); -lean_inc(x_68); -if (lean_is_exclusive(x_42)) { - lean_ctor_release(x_42, 0); - lean_ctor_release(x_42, 1); - lean_ctor_release(x_42, 2); - lean_ctor_release(x_42, 3); - lean_ctor_release(x_42, 4); - lean_ctor_release(x_42, 5); - x_69 = x_42; +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + lean_ctor_release(x_39, 2); + lean_ctor_release(x_39, 3); + lean_ctor_release(x_39, 4); + lean_ctor_release(x_39, 5); + x_66 = x_39; } else { - lean_dec_ref(x_42); + lean_dec_ref(x_39); + x_66 = lean_box(0); +} +x_67 = lean_ctor_get(x_40, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_40, 1); +lean_inc(x_68); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + lean_ctor_release(x_40, 2); + x_69 = x_40; +} else { + lean_dec_ref(x_40); x_69 = lean_box(0); } -x_70 = lean_ctor_get(x_43, 0); -lean_inc(x_70); -x_71 = lean_ctor_get(x_43, 1); -lean_inc(x_71); -if (lean_is_exclusive(x_43)) { - lean_ctor_release(x_43, 0); - lean_ctor_release(x_43, 1); - lean_ctor_release(x_43, 2); - x_72 = x_43; -} else { - lean_dec_ref(x_43); - x_72 = lean_box(0); -} -if (lean_is_scalar(x_72)) { - x_73 = lean_alloc_ctor(0, 3, 0); -} else { - x_73 = x_72; -} -lean_ctor_set(x_73, 0, x_70); -lean_ctor_set(x_73, 1, x_71); -lean_ctor_set(x_73, 2, x_35); if (lean_is_scalar(x_69)) { - x_74 = lean_alloc_ctor(0, 6, 0); + x_70 = lean_alloc_ctor(0, 3, 0); } else { - x_74 = x_69; + x_70 = x_69; } -lean_ctor_set(x_74, 0, x_64); -lean_ctor_set(x_74, 1, x_65); -lean_ctor_set(x_74, 2, x_73); -lean_ctor_set(x_74, 3, x_66); -lean_ctor_set(x_74, 4, x_67); -lean_ctor_set(x_74, 5, x_68); -x_75 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_75, 0, x_63); -lean_ctor_set(x_75, 1, x_74); -return x_75; +lean_ctor_set(x_70, 0, x_67); +lean_ctor_set(x_70, 1, x_68); +lean_ctor_set(x_70, 2, x_32); +if (lean_is_scalar(x_66)) { + x_71 = lean_alloc_ctor(0, 6, 0); +} else { + x_71 = x_66; +} +lean_ctor_set(x_71, 0, x_61); +lean_ctor_set(x_71, 1, x_62); +lean_ctor_set(x_71, 2, x_70); +lean_ctor_set(x_71, 3, x_63); +lean_ctor_set(x_71, 4, x_64); +lean_ctor_set(x_71, 5, x_65); +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_60); +lean_ctor_set(x_72, 1, x_71); +return x_72; } } else { -lean_object* x_76; lean_object* x_77; uint8_t x_78; -x_76 = lean_ctor_get(x_41, 1); -lean_inc(x_76); -x_77 = lean_ctor_get(x_76, 2); -lean_inc(x_77); -x_78 = !lean_is_exclusive(x_41); -if (x_78 == 0) +lean_object* x_73; lean_object* x_74; uint8_t x_75; +x_73 = lean_ctor_get(x_38, 1); +lean_inc(x_73); +x_74 = lean_ctor_get(x_73, 2); +lean_inc(x_74); +x_75 = !lean_is_exclusive(x_38); +if (x_75 == 0) { -lean_object* x_79; uint8_t x_80; -x_79 = lean_ctor_get(x_41, 1); -lean_dec(x_79); -x_80 = !lean_is_exclusive(x_76); -if (x_80 == 0) +lean_object* x_76; uint8_t x_77; +x_76 = lean_ctor_get(x_38, 1); +lean_dec(x_76); +x_77 = !lean_is_exclusive(x_73); +if (x_77 == 0) { -lean_object* x_81; uint8_t x_82; -x_81 = lean_ctor_get(x_76, 2); -lean_dec(x_81); -x_82 = !lean_is_exclusive(x_77); -if (x_82 == 0) +lean_object* x_78; uint8_t x_79; +x_78 = lean_ctor_get(x_73, 2); +lean_dec(x_78); +x_79 = !lean_is_exclusive(x_74); +if (x_79 == 0) { -lean_object* x_83; -x_83 = lean_ctor_get(x_77, 2); -lean_dec(x_83); -lean_ctor_set(x_77, 2, x_35); -return x_41; +lean_object* x_80; +x_80 = lean_ctor_get(x_74, 2); +lean_dec(x_80); +lean_ctor_set(x_74, 2, x_32); +return x_38; } else { -lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_84 = lean_ctor_get(x_77, 0); -x_85 = lean_ctor_get(x_77, 1); -lean_inc(x_85); -lean_inc(x_84); -lean_dec(x_77); -x_86 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_86, 0, x_84); -lean_ctor_set(x_86, 1, x_85); -lean_ctor_set(x_86, 2, x_35); -lean_ctor_set(x_76, 2, x_86); -return x_41; +lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_81 = lean_ctor_get(x_74, 0); +x_82 = lean_ctor_get(x_74, 1); +lean_inc(x_82); +lean_inc(x_81); +lean_dec(x_74); +x_83 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_83, 0, x_81); +lean_ctor_set(x_83, 1, x_82); +lean_ctor_set(x_83, 2, x_32); +lean_ctor_set(x_73, 2, x_83); +return x_38; } } else { -lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_87 = lean_ctor_get(x_76, 0); -x_88 = lean_ctor_get(x_76, 1); -x_89 = lean_ctor_get(x_76, 3); -x_90 = lean_ctor_get(x_76, 4); -x_91 = lean_ctor_get(x_76, 5); -lean_inc(x_91); -lean_inc(x_90); -lean_inc(x_89); +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; +x_84 = lean_ctor_get(x_73, 0); +x_85 = lean_ctor_get(x_73, 1); +x_86 = lean_ctor_get(x_73, 3); +x_87 = lean_ctor_get(x_73, 4); +x_88 = lean_ctor_get(x_73, 5); lean_inc(x_88); lean_inc(x_87); -lean_dec(x_76); -x_92 = lean_ctor_get(x_77, 0); -lean_inc(x_92); -x_93 = lean_ctor_get(x_77, 1); -lean_inc(x_93); -if (lean_is_exclusive(x_77)) { - lean_ctor_release(x_77, 0); - lean_ctor_release(x_77, 1); - lean_ctor_release(x_77, 2); - x_94 = x_77; +lean_inc(x_86); +lean_inc(x_85); +lean_inc(x_84); +lean_dec(x_73); +x_89 = lean_ctor_get(x_74, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_74, 1); +lean_inc(x_90); +if (lean_is_exclusive(x_74)) { + lean_ctor_release(x_74, 0); + lean_ctor_release(x_74, 1); + lean_ctor_release(x_74, 2); + x_91 = x_74; } else { - lean_dec_ref(x_77); - x_94 = lean_box(0); + lean_dec_ref(x_74); + x_91 = lean_box(0); } -if (lean_is_scalar(x_94)) { - x_95 = lean_alloc_ctor(0, 3, 0); +if (lean_is_scalar(x_91)) { + x_92 = lean_alloc_ctor(0, 3, 0); } else { - x_95 = x_94; + x_92 = x_91; } -lean_ctor_set(x_95, 0, x_92); -lean_ctor_set(x_95, 1, x_93); -lean_ctor_set(x_95, 2, x_35); -x_96 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_96, 0, x_87); -lean_ctor_set(x_96, 1, x_88); -lean_ctor_set(x_96, 2, x_95); -lean_ctor_set(x_96, 3, x_89); -lean_ctor_set(x_96, 4, x_90); -lean_ctor_set(x_96, 5, x_91); -lean_ctor_set(x_41, 1, x_96); -return x_41; +lean_ctor_set(x_92, 0, x_89); +lean_ctor_set(x_92, 1, x_90); +lean_ctor_set(x_92, 2, x_32); +x_93 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_93, 0, x_84); +lean_ctor_set(x_93, 1, x_85); +lean_ctor_set(x_93, 2, x_92); +lean_ctor_set(x_93, 3, x_86); +lean_ctor_set(x_93, 4, x_87); +lean_ctor_set(x_93, 5, x_88); +lean_ctor_set(x_38, 1, x_93); +return x_38; } } else { -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; -x_97 = lean_ctor_get(x_41, 0); +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; +x_94 = lean_ctor_get(x_38, 0); +lean_inc(x_94); +lean_dec(x_38); +x_95 = lean_ctor_get(x_73, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_73, 1); +lean_inc(x_96); +x_97 = lean_ctor_get(x_73, 3); lean_inc(x_97); -lean_dec(x_41); -x_98 = lean_ctor_get(x_76, 0); +x_98 = lean_ctor_get(x_73, 4); lean_inc(x_98); -x_99 = lean_ctor_get(x_76, 1); +x_99 = lean_ctor_get(x_73, 5); lean_inc(x_99); -x_100 = lean_ctor_get(x_76, 3); -lean_inc(x_100); -x_101 = lean_ctor_get(x_76, 4); -lean_inc(x_101); -x_102 = lean_ctor_get(x_76, 5); -lean_inc(x_102); -if (lean_is_exclusive(x_76)) { - lean_ctor_release(x_76, 0); - lean_ctor_release(x_76, 1); - lean_ctor_release(x_76, 2); - lean_ctor_release(x_76, 3); - lean_ctor_release(x_76, 4); - lean_ctor_release(x_76, 5); - x_103 = x_76; +if (lean_is_exclusive(x_73)) { + lean_ctor_release(x_73, 0); + lean_ctor_release(x_73, 1); + lean_ctor_release(x_73, 2); + lean_ctor_release(x_73, 3); + lean_ctor_release(x_73, 4); + lean_ctor_release(x_73, 5); + x_100 = x_73; } else { - lean_dec_ref(x_76); + lean_dec_ref(x_73); + x_100 = lean_box(0); +} +x_101 = lean_ctor_get(x_74, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_74, 1); +lean_inc(x_102); +if (lean_is_exclusive(x_74)) { + lean_ctor_release(x_74, 0); + lean_ctor_release(x_74, 1); + lean_ctor_release(x_74, 2); + x_103 = x_74; +} else { + lean_dec_ref(x_74); x_103 = lean_box(0); } -x_104 = lean_ctor_get(x_77, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_77, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_77)) { - lean_ctor_release(x_77, 0); - lean_ctor_release(x_77, 1); - lean_ctor_release(x_77, 2); - x_106 = x_77; -} else { - lean_dec_ref(x_77); - x_106 = lean_box(0); -} -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(0, 3, 0); -} else { - x_107 = x_106; -} -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_105); -lean_ctor_set(x_107, 2, x_35); if (lean_is_scalar(x_103)) { - x_108 = lean_alloc_ctor(0, 6, 0); + x_104 = lean_alloc_ctor(0, 3, 0); } else { - x_108 = x_103; + x_104 = x_103; } -lean_ctor_set(x_108, 0, x_98); -lean_ctor_set(x_108, 1, x_99); -lean_ctor_set(x_108, 2, x_107); -lean_ctor_set(x_108, 3, x_100); -lean_ctor_set(x_108, 4, x_101); -lean_ctor_set(x_108, 5, x_102); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_97); -lean_ctor_set(x_109, 1, x_108); -return x_109; +lean_ctor_set(x_104, 0, x_101); +lean_ctor_set(x_104, 1, x_102); +lean_ctor_set(x_104, 2, x_32); +if (lean_is_scalar(x_100)) { + x_105 = lean_alloc_ctor(0, 6, 0); +} else { + x_105 = x_100; +} +lean_ctor_set(x_105, 0, x_95); +lean_ctor_set(x_105, 1, x_96); +lean_ctor_set(x_105, 2, x_104); +lean_ctor_set(x_105, 3, x_97); +lean_ctor_set(x_105, 4, x_98); +lean_ctor_set(x_105, 5, x_99); +x_106 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_106, 0, x_94); +lean_ctor_set(x_106, 1, x_105); +return x_106; } } } else { -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; -x_110 = lean_ctor_get(x_8, 0); -x_111 = lean_ctor_get(x_8, 1); -x_112 = lean_ctor_get(x_8, 2); -lean_inc(x_112); -lean_inc(x_111); -lean_inc(x_110); -lean_dec(x_8); -x_113 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_113, 0, x_29); -lean_ctor_set(x_113, 1, x_17); -x_114 = lean_array_push(x_112, x_113); -x_115 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_115, 0, x_110); -lean_ctor_set(x_115, 1, x_111); -lean_ctor_set(x_115, 2, x_114); -x_116 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescopeReducing___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_31, x_115, x_28); -if (lean_obj_tag(x_116) == 0) +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; +x_107 = lean_ctor_get(x_7, 0); +x_108 = lean_ctor_get(x_7, 1); +x_109 = lean_ctor_get(x_7, 2); +lean_inc(x_109); +lean_inc(x_108); +lean_inc(x_107); +lean_dec(x_7); +x_110 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_110, 0, x_26); +lean_ctor_set(x_110, 1, x_14); +x_111 = lean_array_push(x_109, x_110); +x_112 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_112, 0, x_107); +lean_ctor_set(x_112, 1, x_108); +lean_ctor_set(x_112, 2, x_111); +x_113 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescopeReducing___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_28, x_112, x_25); +if (lean_obj_tag(x_113) == 0) { -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; -x_117 = lean_ctor_get(x_116, 1); -lean_inc(x_117); -x_118 = lean_ctor_get(x_117, 2); -lean_inc(x_118); -x_119 = lean_ctor_get(x_116, 0); -lean_inc(x_119); -if (lean_is_exclusive(x_116)) { - lean_ctor_release(x_116, 0); - lean_ctor_release(x_116, 1); - x_120 = x_116; +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; +x_114 = lean_ctor_get(x_113, 1); +lean_inc(x_114); +x_115 = lean_ctor_get(x_114, 2); +lean_inc(x_115); +x_116 = lean_ctor_get(x_113, 0); +lean_inc(x_116); +if (lean_is_exclusive(x_113)) { + lean_ctor_release(x_113, 0); + lean_ctor_release(x_113, 1); + x_117 = x_113; } else { - lean_dec_ref(x_116); - x_120 = lean_box(0); + lean_dec_ref(x_113); + x_117 = lean_box(0); } -x_121 = lean_ctor_get(x_117, 0); +x_118 = lean_ctor_get(x_114, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_114, 1); +lean_inc(x_119); +x_120 = lean_ctor_get(x_114, 3); +lean_inc(x_120); +x_121 = lean_ctor_get(x_114, 4); lean_inc(x_121); -x_122 = lean_ctor_get(x_117, 1); +x_122 = lean_ctor_get(x_114, 5); lean_inc(x_122); -x_123 = lean_ctor_get(x_117, 3); -lean_inc(x_123); -x_124 = lean_ctor_get(x_117, 4); -lean_inc(x_124); -x_125 = lean_ctor_get(x_117, 5); -lean_inc(x_125); -if (lean_is_exclusive(x_117)) { - lean_ctor_release(x_117, 0); - lean_ctor_release(x_117, 1); - lean_ctor_release(x_117, 2); - lean_ctor_release(x_117, 3); - lean_ctor_release(x_117, 4); - lean_ctor_release(x_117, 5); - x_126 = x_117; +if (lean_is_exclusive(x_114)) { + lean_ctor_release(x_114, 0); + lean_ctor_release(x_114, 1); + lean_ctor_release(x_114, 2); + lean_ctor_release(x_114, 3); + lean_ctor_release(x_114, 4); + lean_ctor_release(x_114, 5); + x_123 = x_114; } else { - lean_dec_ref(x_117); + lean_dec_ref(x_114); + x_123 = lean_box(0); +} +x_124 = lean_ctor_get(x_115, 0); +lean_inc(x_124); +x_125 = lean_ctor_get(x_115, 1); +lean_inc(x_125); +if (lean_is_exclusive(x_115)) { + lean_ctor_release(x_115, 0); + lean_ctor_release(x_115, 1); + lean_ctor_release(x_115, 2); + x_126 = x_115; +} else { + lean_dec_ref(x_115); x_126 = lean_box(0); } -x_127 = lean_ctor_get(x_118, 0); -lean_inc(x_127); -x_128 = lean_ctor_get(x_118, 1); -lean_inc(x_128); -if (lean_is_exclusive(x_118)) { - lean_ctor_release(x_118, 0); - lean_ctor_release(x_118, 1); - lean_ctor_release(x_118, 2); - x_129 = x_118; -} else { - lean_dec_ref(x_118); - x_129 = lean_box(0); -} -if (lean_is_scalar(x_129)) { - x_130 = lean_alloc_ctor(0, 3, 0); -} else { - x_130 = x_129; -} -lean_ctor_set(x_130, 0, x_127); -lean_ctor_set(x_130, 1, x_128); -lean_ctor_set(x_130, 2, x_35); if (lean_is_scalar(x_126)) { - x_131 = lean_alloc_ctor(0, 6, 0); + x_127 = lean_alloc_ctor(0, 3, 0); } else { - x_131 = x_126; + x_127 = x_126; } -lean_ctor_set(x_131, 0, x_121); -lean_ctor_set(x_131, 1, x_122); -lean_ctor_set(x_131, 2, x_130); -lean_ctor_set(x_131, 3, x_123); -lean_ctor_set(x_131, 4, x_124); -lean_ctor_set(x_131, 5, x_125); -if (lean_is_scalar(x_120)) { - x_132 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_127, 0, x_124); +lean_ctor_set(x_127, 1, x_125); +lean_ctor_set(x_127, 2, x_32); +if (lean_is_scalar(x_123)) { + x_128 = lean_alloc_ctor(0, 6, 0); } else { - x_132 = x_120; + x_128 = x_123; } -lean_ctor_set(x_132, 0, x_119); -lean_ctor_set(x_132, 1, x_131); -return x_132; +lean_ctor_set(x_128, 0, x_118); +lean_ctor_set(x_128, 1, x_119); +lean_ctor_set(x_128, 2, x_127); +lean_ctor_set(x_128, 3, x_120); +lean_ctor_set(x_128, 4, x_121); +lean_ctor_set(x_128, 5, x_122); +if (lean_is_scalar(x_117)) { + x_129 = lean_alloc_ctor(0, 2, 0); +} else { + x_129 = x_117; +} +lean_ctor_set(x_129, 0, x_116); +lean_ctor_set(x_129, 1, x_128); +return x_129; } else { -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; lean_object* x_146; lean_object* x_147; lean_object* x_148; -x_133 = lean_ctor_get(x_116, 1); -lean_inc(x_133); -x_134 = lean_ctor_get(x_133, 2); -lean_inc(x_134); -x_135 = lean_ctor_get(x_116, 0); -lean_inc(x_135); -if (lean_is_exclusive(x_116)) { - lean_ctor_release(x_116, 0); - lean_ctor_release(x_116, 1); - x_136 = x_116; +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_130 = lean_ctor_get(x_113, 1); +lean_inc(x_130); +x_131 = lean_ctor_get(x_130, 2); +lean_inc(x_131); +x_132 = lean_ctor_get(x_113, 0); +lean_inc(x_132); +if (lean_is_exclusive(x_113)) { + lean_ctor_release(x_113, 0); + lean_ctor_release(x_113, 1); + x_133 = x_113; } else { - lean_dec_ref(x_116); - x_136 = lean_box(0); + lean_dec_ref(x_113); + x_133 = lean_box(0); } -x_137 = lean_ctor_get(x_133, 0); +x_134 = lean_ctor_get(x_130, 0); +lean_inc(x_134); +x_135 = lean_ctor_get(x_130, 1); +lean_inc(x_135); +x_136 = lean_ctor_get(x_130, 3); +lean_inc(x_136); +x_137 = lean_ctor_get(x_130, 4); lean_inc(x_137); -x_138 = lean_ctor_get(x_133, 1); +x_138 = lean_ctor_get(x_130, 5); lean_inc(x_138); -x_139 = lean_ctor_get(x_133, 3); -lean_inc(x_139); -x_140 = lean_ctor_get(x_133, 4); -lean_inc(x_140); -x_141 = lean_ctor_get(x_133, 5); -lean_inc(x_141); -if (lean_is_exclusive(x_133)) { - lean_ctor_release(x_133, 0); - lean_ctor_release(x_133, 1); - lean_ctor_release(x_133, 2); - lean_ctor_release(x_133, 3); - lean_ctor_release(x_133, 4); - lean_ctor_release(x_133, 5); - x_142 = x_133; +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + lean_ctor_release(x_130, 2); + lean_ctor_release(x_130, 3); + lean_ctor_release(x_130, 4); + lean_ctor_release(x_130, 5); + x_139 = x_130; } else { - lean_dec_ref(x_133); + lean_dec_ref(x_130); + x_139 = lean_box(0); +} +x_140 = lean_ctor_get(x_131, 0); +lean_inc(x_140); +x_141 = lean_ctor_get(x_131, 1); +lean_inc(x_141); +if (lean_is_exclusive(x_131)) { + lean_ctor_release(x_131, 0); + lean_ctor_release(x_131, 1); + lean_ctor_release(x_131, 2); + x_142 = x_131; +} else { + lean_dec_ref(x_131); x_142 = lean_box(0); } -x_143 = lean_ctor_get(x_134, 0); -lean_inc(x_143); -x_144 = lean_ctor_get(x_134, 1); -lean_inc(x_144); -if (lean_is_exclusive(x_134)) { - lean_ctor_release(x_134, 0); - lean_ctor_release(x_134, 1); - lean_ctor_release(x_134, 2); - x_145 = x_134; -} else { - lean_dec_ref(x_134); - x_145 = lean_box(0); -} -if (lean_is_scalar(x_145)) { - x_146 = lean_alloc_ctor(0, 3, 0); -} else { - x_146 = x_145; -} -lean_ctor_set(x_146, 0, x_143); -lean_ctor_set(x_146, 1, x_144); -lean_ctor_set(x_146, 2, x_35); if (lean_is_scalar(x_142)) { - x_147 = lean_alloc_ctor(0, 6, 0); + x_143 = lean_alloc_ctor(0, 3, 0); } else { - x_147 = x_142; + x_143 = x_142; } -lean_ctor_set(x_147, 0, x_137); -lean_ctor_set(x_147, 1, x_138); -lean_ctor_set(x_147, 2, x_146); -lean_ctor_set(x_147, 3, x_139); -lean_ctor_set(x_147, 4, x_140); -lean_ctor_set(x_147, 5, x_141); -if (lean_is_scalar(x_136)) { - x_148 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_143, 0, x_140); +lean_ctor_set(x_143, 1, x_141); +lean_ctor_set(x_143, 2, x_32); +if (lean_is_scalar(x_139)) { + x_144 = lean_alloc_ctor(0, 6, 0); } else { - x_148 = x_136; + x_144 = x_139; } -lean_ctor_set(x_148, 0, x_135); -lean_ctor_set(x_148, 1, x_147); -return x_148; +lean_ctor_set(x_144, 0, x_134); +lean_ctor_set(x_144, 1, x_135); +lean_ctor_set(x_144, 2, x_143); +lean_ctor_set(x_144, 3, x_136); +lean_ctor_set(x_144, 4, x_137); +lean_ctor_set(x_144, 5, x_138); +if (lean_is_scalar(x_133)) { + x_145 = lean_alloc_ctor(1, 2, 0); +} else { + x_145 = x_133; +} +lean_ctor_set(x_145, 0, x_132); +lean_ctor_set(x_145, 1, x_144); +return x_145; } } } else { -lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; -x_149 = lean_ctor_get(x_33, 0); -x_150 = lean_ctor_get(x_33, 1); -x_151 = lean_ctor_get(x_33, 2); +lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; +x_146 = lean_ctor_get(x_30, 0); +x_147 = lean_ctor_get(x_30, 1); +x_148 = lean_ctor_get(x_30, 2); +lean_inc(x_148); +lean_inc(x_147); +lean_inc(x_146); +lean_dec(x_30); +x_149 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +x_150 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_150, 0, x_146); +lean_ctor_set(x_150, 1, x_147); +lean_ctor_set(x_150, 2, x_149); +lean_ctor_set(x_25, 2, x_150); +x_151 = lean_ctor_get(x_7, 0); lean_inc(x_151); -lean_inc(x_150); -lean_inc(x_149); -lean_dec(x_33); -x_152 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; -x_153 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_153, 0, x_149); -lean_ctor_set(x_153, 1, x_150); -lean_ctor_set(x_153, 2, x_152); -lean_ctor_set(x_28, 2, x_153); -x_154 = lean_ctor_get(x_8, 0); -lean_inc(x_154); -x_155 = lean_ctor_get(x_8, 1); -lean_inc(x_155); -x_156 = lean_ctor_get(x_8, 2); -lean_inc(x_156); -if (lean_is_exclusive(x_8)) { - lean_ctor_release(x_8, 0); - lean_ctor_release(x_8, 1); - lean_ctor_release(x_8, 2); - x_157 = x_8; +x_152 = lean_ctor_get(x_7, 1); +lean_inc(x_152); +x_153 = lean_ctor_get(x_7, 2); +lean_inc(x_153); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + lean_ctor_release(x_7, 2); + x_154 = x_7; } else { - lean_dec_ref(x_8); - x_157 = lean_box(0); + lean_dec_ref(x_7); + x_154 = lean_box(0); } -x_158 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_158, 0, x_29); -lean_ctor_set(x_158, 1, x_17); -x_159 = lean_array_push(x_156, x_158); -if (lean_is_scalar(x_157)) { - x_160 = lean_alloc_ctor(0, 3, 0); +x_155 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_155, 0, x_26); +lean_ctor_set(x_155, 1, x_14); +x_156 = lean_array_push(x_153, x_155); +if (lean_is_scalar(x_154)) { + x_157 = lean_alloc_ctor(0, 3, 0); } else { - x_160 = x_157; + x_157 = x_154; } -lean_ctor_set(x_160, 0, x_154); -lean_ctor_set(x_160, 1, x_155); -lean_ctor_set(x_160, 2, x_159); -x_161 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescopeReducing___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_31, x_160, x_28); -if (lean_obj_tag(x_161) == 0) +lean_ctor_set(x_157, 0, x_151); +lean_ctor_set(x_157, 1, x_152); +lean_ctor_set(x_157, 2, x_156); +x_158 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescopeReducing___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_28, x_157, x_25); +if (lean_obj_tag(x_158) == 0) { -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_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; -x_162 = lean_ctor_get(x_161, 1); -lean_inc(x_162); -x_163 = lean_ctor_get(x_162, 2); -lean_inc(x_163); -x_164 = lean_ctor_get(x_161, 0); -lean_inc(x_164); -if (lean_is_exclusive(x_161)) { - lean_ctor_release(x_161, 0); - lean_ctor_release(x_161, 1); - x_165 = x_161; +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_object* x_173; lean_object* x_174; +x_159 = lean_ctor_get(x_158, 1); +lean_inc(x_159); +x_160 = lean_ctor_get(x_159, 2); +lean_inc(x_160); +x_161 = lean_ctor_get(x_158, 0); +lean_inc(x_161); +if (lean_is_exclusive(x_158)) { + lean_ctor_release(x_158, 0); + lean_ctor_release(x_158, 1); + x_162 = x_158; } else { - lean_dec_ref(x_161); - x_165 = lean_box(0); + lean_dec_ref(x_158); + x_162 = lean_box(0); } -x_166 = lean_ctor_get(x_162, 0); +x_163 = lean_ctor_get(x_159, 0); +lean_inc(x_163); +x_164 = lean_ctor_get(x_159, 1); +lean_inc(x_164); +x_165 = lean_ctor_get(x_159, 3); +lean_inc(x_165); +x_166 = lean_ctor_get(x_159, 4); lean_inc(x_166); -x_167 = lean_ctor_get(x_162, 1); +x_167 = lean_ctor_get(x_159, 5); lean_inc(x_167); -x_168 = lean_ctor_get(x_162, 3); -lean_inc(x_168); -x_169 = lean_ctor_get(x_162, 4); -lean_inc(x_169); -x_170 = lean_ctor_get(x_162, 5); -lean_inc(x_170); -if (lean_is_exclusive(x_162)) { - lean_ctor_release(x_162, 0); - lean_ctor_release(x_162, 1); - lean_ctor_release(x_162, 2); - lean_ctor_release(x_162, 3); - lean_ctor_release(x_162, 4); - lean_ctor_release(x_162, 5); - x_171 = x_162; +if (lean_is_exclusive(x_159)) { + lean_ctor_release(x_159, 0); + lean_ctor_release(x_159, 1); + lean_ctor_release(x_159, 2); + lean_ctor_release(x_159, 3); + lean_ctor_release(x_159, 4); + lean_ctor_release(x_159, 5); + x_168 = x_159; } else { - lean_dec_ref(x_162); + lean_dec_ref(x_159); + x_168 = lean_box(0); +} +x_169 = lean_ctor_get(x_160, 0); +lean_inc(x_169); +x_170 = lean_ctor_get(x_160, 1); +lean_inc(x_170); +if (lean_is_exclusive(x_160)) { + lean_ctor_release(x_160, 0); + lean_ctor_release(x_160, 1); + lean_ctor_release(x_160, 2); + x_171 = x_160; +} else { + lean_dec_ref(x_160); x_171 = lean_box(0); } -x_172 = lean_ctor_get(x_163, 0); -lean_inc(x_172); -x_173 = lean_ctor_get(x_163, 1); -lean_inc(x_173); -if (lean_is_exclusive(x_163)) { - lean_ctor_release(x_163, 0); - lean_ctor_release(x_163, 1); - lean_ctor_release(x_163, 2); - x_174 = x_163; -} else { - lean_dec_ref(x_163); - x_174 = lean_box(0); -} -if (lean_is_scalar(x_174)) { - x_175 = lean_alloc_ctor(0, 3, 0); -} else { - x_175 = x_174; -} -lean_ctor_set(x_175, 0, x_172); -lean_ctor_set(x_175, 1, x_173); -lean_ctor_set(x_175, 2, x_151); if (lean_is_scalar(x_171)) { - x_176 = lean_alloc_ctor(0, 6, 0); + x_172 = lean_alloc_ctor(0, 3, 0); } else { - x_176 = x_171; + x_172 = x_171; } -lean_ctor_set(x_176, 0, x_166); -lean_ctor_set(x_176, 1, x_167); -lean_ctor_set(x_176, 2, x_175); -lean_ctor_set(x_176, 3, x_168); -lean_ctor_set(x_176, 4, x_169); -lean_ctor_set(x_176, 5, x_170); -if (lean_is_scalar(x_165)) { - x_177 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_172, 0, x_169); +lean_ctor_set(x_172, 1, x_170); +lean_ctor_set(x_172, 2, x_148); +if (lean_is_scalar(x_168)) { + x_173 = lean_alloc_ctor(0, 6, 0); } else { - x_177 = x_165; + x_173 = x_168; } -lean_ctor_set(x_177, 0, x_164); -lean_ctor_set(x_177, 1, x_176); -return x_177; +lean_ctor_set(x_173, 0, x_163); +lean_ctor_set(x_173, 1, x_164); +lean_ctor_set(x_173, 2, x_172); +lean_ctor_set(x_173, 3, x_165); +lean_ctor_set(x_173, 4, x_166); +lean_ctor_set(x_173, 5, x_167); +if (lean_is_scalar(x_162)) { + x_174 = lean_alloc_ctor(0, 2, 0); +} else { + x_174 = x_162; +} +lean_ctor_set(x_174, 0, x_161); +lean_ctor_set(x_174, 1, x_173); +return x_174; } else { -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; -x_178 = lean_ctor_get(x_161, 1); -lean_inc(x_178); -x_179 = lean_ctor_get(x_178, 2); -lean_inc(x_179); -x_180 = lean_ctor_get(x_161, 0); -lean_inc(x_180); -if (lean_is_exclusive(x_161)) { - lean_ctor_release(x_161, 0); - lean_ctor_release(x_161, 1); - x_181 = x_161; +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; +x_175 = lean_ctor_get(x_158, 1); +lean_inc(x_175); +x_176 = lean_ctor_get(x_175, 2); +lean_inc(x_176); +x_177 = lean_ctor_get(x_158, 0); +lean_inc(x_177); +if (lean_is_exclusive(x_158)) { + lean_ctor_release(x_158, 0); + lean_ctor_release(x_158, 1); + x_178 = x_158; } else { - lean_dec_ref(x_161); - x_181 = lean_box(0); + lean_dec_ref(x_158); + x_178 = lean_box(0); } -x_182 = lean_ctor_get(x_178, 0); +x_179 = lean_ctor_get(x_175, 0); +lean_inc(x_179); +x_180 = lean_ctor_get(x_175, 1); +lean_inc(x_180); +x_181 = lean_ctor_get(x_175, 3); +lean_inc(x_181); +x_182 = lean_ctor_get(x_175, 4); lean_inc(x_182); -x_183 = lean_ctor_get(x_178, 1); +x_183 = lean_ctor_get(x_175, 5); lean_inc(x_183); -x_184 = lean_ctor_get(x_178, 3); -lean_inc(x_184); -x_185 = lean_ctor_get(x_178, 4); -lean_inc(x_185); -x_186 = lean_ctor_get(x_178, 5); -lean_inc(x_186); -if (lean_is_exclusive(x_178)) { - lean_ctor_release(x_178, 0); - lean_ctor_release(x_178, 1); - lean_ctor_release(x_178, 2); - lean_ctor_release(x_178, 3); - lean_ctor_release(x_178, 4); - lean_ctor_release(x_178, 5); - x_187 = x_178; +if (lean_is_exclusive(x_175)) { + lean_ctor_release(x_175, 0); + lean_ctor_release(x_175, 1); + lean_ctor_release(x_175, 2); + lean_ctor_release(x_175, 3); + lean_ctor_release(x_175, 4); + lean_ctor_release(x_175, 5); + x_184 = x_175; } else { - lean_dec_ref(x_178); + lean_dec_ref(x_175); + x_184 = lean_box(0); +} +x_185 = lean_ctor_get(x_176, 0); +lean_inc(x_185); +x_186 = lean_ctor_get(x_176, 1); +lean_inc(x_186); +if (lean_is_exclusive(x_176)) { + lean_ctor_release(x_176, 0); + lean_ctor_release(x_176, 1); + lean_ctor_release(x_176, 2); + x_187 = x_176; +} else { + lean_dec_ref(x_176); x_187 = lean_box(0); } -x_188 = lean_ctor_get(x_179, 0); -lean_inc(x_188); -x_189 = lean_ctor_get(x_179, 1); -lean_inc(x_189); -if (lean_is_exclusive(x_179)) { - lean_ctor_release(x_179, 0); - lean_ctor_release(x_179, 1); - lean_ctor_release(x_179, 2); - x_190 = x_179; -} else { - lean_dec_ref(x_179); - x_190 = lean_box(0); -} -if (lean_is_scalar(x_190)) { - x_191 = lean_alloc_ctor(0, 3, 0); -} else { - x_191 = x_190; -} -lean_ctor_set(x_191, 0, x_188); -lean_ctor_set(x_191, 1, x_189); -lean_ctor_set(x_191, 2, x_151); if (lean_is_scalar(x_187)) { - x_192 = lean_alloc_ctor(0, 6, 0); + x_188 = lean_alloc_ctor(0, 3, 0); } else { - x_192 = x_187; + x_188 = x_187; } -lean_ctor_set(x_192, 0, x_182); -lean_ctor_set(x_192, 1, x_183); -lean_ctor_set(x_192, 2, x_191); -lean_ctor_set(x_192, 3, x_184); -lean_ctor_set(x_192, 4, x_185); -lean_ctor_set(x_192, 5, x_186); -if (lean_is_scalar(x_181)) { - x_193 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_188, 0, x_185); +lean_ctor_set(x_188, 1, x_186); +lean_ctor_set(x_188, 2, x_148); +if (lean_is_scalar(x_184)) { + x_189 = lean_alloc_ctor(0, 6, 0); } else { - x_193 = x_181; + x_189 = x_184; } -lean_ctor_set(x_193, 0, x_180); -lean_ctor_set(x_193, 1, x_192); -return x_193; +lean_ctor_set(x_189, 0, x_179); +lean_ctor_set(x_189, 1, x_180); +lean_ctor_set(x_189, 2, x_188); +lean_ctor_set(x_189, 3, x_181); +lean_ctor_set(x_189, 4, x_182); +lean_ctor_set(x_189, 5, x_183); +if (lean_is_scalar(x_178)) { + x_190 = lean_alloc_ctor(1, 2, 0); +} else { + x_190 = x_178; +} +lean_ctor_set(x_190, 0, x_177); +lean_ctor_set(x_190, 1, x_189); +return x_190; } } } else { -lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; -x_194 = lean_ctor_get(x_28, 2); -x_195 = lean_ctor_get(x_28, 0); -x_196 = lean_ctor_get(x_28, 1); -x_197 = lean_ctor_get(x_28, 3); -x_198 = lean_ctor_get(x_28, 4); -x_199 = lean_ctor_get(x_28, 5); -lean_inc(x_199); -lean_inc(x_198); -lean_inc(x_197); -lean_inc(x_194); +lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; +x_191 = lean_ctor_get(x_25, 2); +x_192 = lean_ctor_get(x_25, 0); +x_193 = lean_ctor_get(x_25, 1); +x_194 = lean_ctor_get(x_25, 3); +x_195 = lean_ctor_get(x_25, 4); +x_196 = lean_ctor_get(x_25, 5); lean_inc(x_196); lean_inc(x_195); -lean_dec(x_28); -x_200 = lean_ctor_get(x_194, 0); -lean_inc(x_200); -x_201 = lean_ctor_get(x_194, 1); -lean_inc(x_201); -x_202 = lean_ctor_get(x_194, 2); -lean_inc(x_202); -if (lean_is_exclusive(x_194)) { - lean_ctor_release(x_194, 0); - lean_ctor_release(x_194, 1); - lean_ctor_release(x_194, 2); - x_203 = x_194; +lean_inc(x_194); +lean_inc(x_191); +lean_inc(x_193); +lean_inc(x_192); +lean_dec(x_25); +x_197 = lean_ctor_get(x_191, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_191, 1); +lean_inc(x_198); +x_199 = lean_ctor_get(x_191, 2); +lean_inc(x_199); +if (lean_is_exclusive(x_191)) { + lean_ctor_release(x_191, 0); + lean_ctor_release(x_191, 1); + lean_ctor_release(x_191, 2); + x_200 = x_191; } else { - lean_dec_ref(x_194); - x_203 = lean_box(0); + lean_dec_ref(x_191); + x_200 = lean_box(0); } -x_204 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; -if (lean_is_scalar(x_203)) { - x_205 = lean_alloc_ctor(0, 3, 0); +x_201 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +if (lean_is_scalar(x_200)) { + x_202 = lean_alloc_ctor(0, 3, 0); } else { - x_205 = x_203; + x_202 = x_200; } -lean_ctor_set(x_205, 0, x_200); -lean_ctor_set(x_205, 1, x_201); -lean_ctor_set(x_205, 2, x_204); -x_206 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_206, 0, x_195); -lean_ctor_set(x_206, 1, x_196); -lean_ctor_set(x_206, 2, x_205); -lean_ctor_set(x_206, 3, x_197); -lean_ctor_set(x_206, 4, x_198); -lean_ctor_set(x_206, 5, x_199); -x_207 = lean_ctor_get(x_8, 0); -lean_inc(x_207); -x_208 = lean_ctor_get(x_8, 1); -lean_inc(x_208); -x_209 = lean_ctor_get(x_8, 2); -lean_inc(x_209); -if (lean_is_exclusive(x_8)) { - lean_ctor_release(x_8, 0); - lean_ctor_release(x_8, 1); - lean_ctor_release(x_8, 2); - x_210 = x_8; +lean_ctor_set(x_202, 0, x_197); +lean_ctor_set(x_202, 1, x_198); +lean_ctor_set(x_202, 2, x_201); +x_203 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_203, 0, x_192); +lean_ctor_set(x_203, 1, x_193); +lean_ctor_set(x_203, 2, x_202); +lean_ctor_set(x_203, 3, x_194); +lean_ctor_set(x_203, 4, x_195); +lean_ctor_set(x_203, 5, x_196); +x_204 = lean_ctor_get(x_7, 0); +lean_inc(x_204); +x_205 = lean_ctor_get(x_7, 1); +lean_inc(x_205); +x_206 = lean_ctor_get(x_7, 2); +lean_inc(x_206); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + lean_ctor_release(x_7, 2); + x_207 = x_7; } else { - lean_dec_ref(x_8); - x_210 = lean_box(0); + lean_dec_ref(x_7); + x_207 = lean_box(0); } -x_211 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_211, 0, x_29); -lean_ctor_set(x_211, 1, x_17); -x_212 = lean_array_push(x_209, x_211); -if (lean_is_scalar(x_210)) { - x_213 = lean_alloc_ctor(0, 3, 0); +x_208 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_208, 0, x_26); +lean_ctor_set(x_208, 1, x_14); +x_209 = lean_array_push(x_206, x_208); +if (lean_is_scalar(x_207)) { + x_210 = lean_alloc_ctor(0, 3, 0); } else { - x_213 = x_210; + x_210 = x_207; } -lean_ctor_set(x_213, 0, x_207); -lean_ctor_set(x_213, 1, x_208); -lean_ctor_set(x_213, 2, x_212); -x_214 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescopeReducing___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_31, x_213, x_206); -if (lean_obj_tag(x_214) == 0) +lean_ctor_set(x_210, 0, x_204); +lean_ctor_set(x_210, 1, x_205); +lean_ctor_set(x_210, 2, x_209); +x_211 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescopeReducing___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_28, x_210, x_203); +if (lean_obj_tag(x_211) == 0) { -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; -x_215 = lean_ctor_get(x_214, 1); -lean_inc(x_215); -x_216 = lean_ctor_get(x_215, 2); -lean_inc(x_216); -x_217 = lean_ctor_get(x_214, 0); -lean_inc(x_217); -if (lean_is_exclusive(x_214)) { - lean_ctor_release(x_214, 0); - lean_ctor_release(x_214, 1); - x_218 = x_214; +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; +x_212 = lean_ctor_get(x_211, 1); +lean_inc(x_212); +x_213 = lean_ctor_get(x_212, 2); +lean_inc(x_213); +x_214 = lean_ctor_get(x_211, 0); +lean_inc(x_214); +if (lean_is_exclusive(x_211)) { + lean_ctor_release(x_211, 0); + lean_ctor_release(x_211, 1); + x_215 = x_211; } else { - lean_dec_ref(x_214); - x_218 = lean_box(0); + lean_dec_ref(x_211); + x_215 = lean_box(0); } -x_219 = lean_ctor_get(x_215, 0); +x_216 = lean_ctor_get(x_212, 0); +lean_inc(x_216); +x_217 = lean_ctor_get(x_212, 1); +lean_inc(x_217); +x_218 = lean_ctor_get(x_212, 3); +lean_inc(x_218); +x_219 = lean_ctor_get(x_212, 4); lean_inc(x_219); -x_220 = lean_ctor_get(x_215, 1); +x_220 = lean_ctor_get(x_212, 5); lean_inc(x_220); -x_221 = lean_ctor_get(x_215, 3); -lean_inc(x_221); -x_222 = lean_ctor_get(x_215, 4); -lean_inc(x_222); -x_223 = lean_ctor_get(x_215, 5); -lean_inc(x_223); -if (lean_is_exclusive(x_215)) { - lean_ctor_release(x_215, 0); - lean_ctor_release(x_215, 1); - lean_ctor_release(x_215, 2); - lean_ctor_release(x_215, 3); - lean_ctor_release(x_215, 4); - lean_ctor_release(x_215, 5); - x_224 = x_215; +if (lean_is_exclusive(x_212)) { + lean_ctor_release(x_212, 0); + lean_ctor_release(x_212, 1); + lean_ctor_release(x_212, 2); + lean_ctor_release(x_212, 3); + lean_ctor_release(x_212, 4); + lean_ctor_release(x_212, 5); + x_221 = x_212; } else { - lean_dec_ref(x_215); + lean_dec_ref(x_212); + x_221 = lean_box(0); +} +x_222 = lean_ctor_get(x_213, 0); +lean_inc(x_222); +x_223 = lean_ctor_get(x_213, 1); +lean_inc(x_223); +if (lean_is_exclusive(x_213)) { + lean_ctor_release(x_213, 0); + lean_ctor_release(x_213, 1); + lean_ctor_release(x_213, 2); + x_224 = x_213; +} else { + lean_dec_ref(x_213); x_224 = lean_box(0); } -x_225 = lean_ctor_get(x_216, 0); -lean_inc(x_225); -x_226 = lean_ctor_get(x_216, 1); -lean_inc(x_226); -if (lean_is_exclusive(x_216)) { - lean_ctor_release(x_216, 0); - lean_ctor_release(x_216, 1); - lean_ctor_release(x_216, 2); - x_227 = x_216; -} else { - lean_dec_ref(x_216); - x_227 = lean_box(0); -} -if (lean_is_scalar(x_227)) { - x_228 = lean_alloc_ctor(0, 3, 0); -} else { - x_228 = x_227; -} -lean_ctor_set(x_228, 0, x_225); -lean_ctor_set(x_228, 1, x_226); -lean_ctor_set(x_228, 2, x_202); if (lean_is_scalar(x_224)) { - x_229 = lean_alloc_ctor(0, 6, 0); + x_225 = lean_alloc_ctor(0, 3, 0); } else { - x_229 = x_224; + x_225 = x_224; } -lean_ctor_set(x_229, 0, x_219); -lean_ctor_set(x_229, 1, x_220); -lean_ctor_set(x_229, 2, x_228); -lean_ctor_set(x_229, 3, x_221); -lean_ctor_set(x_229, 4, x_222); -lean_ctor_set(x_229, 5, x_223); -if (lean_is_scalar(x_218)) { - x_230 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_225, 0, x_222); +lean_ctor_set(x_225, 1, x_223); +lean_ctor_set(x_225, 2, x_199); +if (lean_is_scalar(x_221)) { + x_226 = lean_alloc_ctor(0, 6, 0); } else { - x_230 = x_218; + x_226 = x_221; } -lean_ctor_set(x_230, 0, x_217); -lean_ctor_set(x_230, 1, x_229); -return x_230; +lean_ctor_set(x_226, 0, x_216); +lean_ctor_set(x_226, 1, x_217); +lean_ctor_set(x_226, 2, x_225); +lean_ctor_set(x_226, 3, x_218); +lean_ctor_set(x_226, 4, x_219); +lean_ctor_set(x_226, 5, x_220); +if (lean_is_scalar(x_215)) { + x_227 = lean_alloc_ctor(0, 2, 0); +} else { + x_227 = x_215; +} +lean_ctor_set(x_227, 0, x_214); +lean_ctor_set(x_227, 1, x_226); +return x_227; } else { -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; -x_231 = lean_ctor_get(x_214, 1); -lean_inc(x_231); -x_232 = lean_ctor_get(x_231, 2); -lean_inc(x_232); -x_233 = lean_ctor_get(x_214, 0); -lean_inc(x_233); -if (lean_is_exclusive(x_214)) { - lean_ctor_release(x_214, 0); - lean_ctor_release(x_214, 1); - x_234 = x_214; +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; +x_228 = lean_ctor_get(x_211, 1); +lean_inc(x_228); +x_229 = lean_ctor_get(x_228, 2); +lean_inc(x_229); +x_230 = lean_ctor_get(x_211, 0); +lean_inc(x_230); +if (lean_is_exclusive(x_211)) { + lean_ctor_release(x_211, 0); + lean_ctor_release(x_211, 1); + x_231 = x_211; } else { - lean_dec_ref(x_214); - x_234 = lean_box(0); + lean_dec_ref(x_211); + x_231 = lean_box(0); } -x_235 = lean_ctor_get(x_231, 0); +x_232 = lean_ctor_get(x_228, 0); +lean_inc(x_232); +x_233 = lean_ctor_get(x_228, 1); +lean_inc(x_233); +x_234 = lean_ctor_get(x_228, 3); +lean_inc(x_234); +x_235 = lean_ctor_get(x_228, 4); lean_inc(x_235); -x_236 = lean_ctor_get(x_231, 1); +x_236 = lean_ctor_get(x_228, 5); lean_inc(x_236); -x_237 = lean_ctor_get(x_231, 3); -lean_inc(x_237); -x_238 = lean_ctor_get(x_231, 4); -lean_inc(x_238); -x_239 = lean_ctor_get(x_231, 5); -lean_inc(x_239); -if (lean_is_exclusive(x_231)) { - lean_ctor_release(x_231, 0); - lean_ctor_release(x_231, 1); - lean_ctor_release(x_231, 2); - lean_ctor_release(x_231, 3); - lean_ctor_release(x_231, 4); - lean_ctor_release(x_231, 5); - x_240 = x_231; +if (lean_is_exclusive(x_228)) { + lean_ctor_release(x_228, 0); + lean_ctor_release(x_228, 1); + lean_ctor_release(x_228, 2); + lean_ctor_release(x_228, 3); + lean_ctor_release(x_228, 4); + lean_ctor_release(x_228, 5); + x_237 = x_228; } else { - lean_dec_ref(x_231); + lean_dec_ref(x_228); + x_237 = lean_box(0); +} +x_238 = lean_ctor_get(x_229, 0); +lean_inc(x_238); +x_239 = lean_ctor_get(x_229, 1); +lean_inc(x_239); +if (lean_is_exclusive(x_229)) { + lean_ctor_release(x_229, 0); + lean_ctor_release(x_229, 1); + lean_ctor_release(x_229, 2); + x_240 = x_229; +} else { + lean_dec_ref(x_229); x_240 = lean_box(0); } -x_241 = lean_ctor_get(x_232, 0); -lean_inc(x_241); -x_242 = lean_ctor_get(x_232, 1); -lean_inc(x_242); -if (lean_is_exclusive(x_232)) { - lean_ctor_release(x_232, 0); - lean_ctor_release(x_232, 1); - lean_ctor_release(x_232, 2); - x_243 = x_232; -} else { - lean_dec_ref(x_232); - x_243 = lean_box(0); -} -if (lean_is_scalar(x_243)) { - x_244 = lean_alloc_ctor(0, 3, 0); -} else { - x_244 = x_243; -} -lean_ctor_set(x_244, 0, x_241); -lean_ctor_set(x_244, 1, x_242); -lean_ctor_set(x_244, 2, x_202); if (lean_is_scalar(x_240)) { - x_245 = lean_alloc_ctor(0, 6, 0); + x_241 = lean_alloc_ctor(0, 3, 0); } else { - x_245 = x_240; + x_241 = x_240; } -lean_ctor_set(x_245, 0, x_235); -lean_ctor_set(x_245, 1, x_236); -lean_ctor_set(x_245, 2, x_244); -lean_ctor_set(x_245, 3, x_237); -lean_ctor_set(x_245, 4, x_238); -lean_ctor_set(x_245, 5, x_239); -if (lean_is_scalar(x_234)) { - x_246 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_241, 0, x_238); +lean_ctor_set(x_241, 1, x_239); +lean_ctor_set(x_241, 2, x_199); +if (lean_is_scalar(x_237)) { + x_242 = lean_alloc_ctor(0, 6, 0); } else { - x_246 = x_234; + x_242 = x_237; } -lean_ctor_set(x_246, 0, x_233); -lean_ctor_set(x_246, 1, x_245); -return x_246; +lean_ctor_set(x_242, 0, x_232); +lean_ctor_set(x_242, 1, x_233); +lean_ctor_set(x_242, 2, x_241); +lean_ctor_set(x_242, 3, x_234); +lean_ctor_set(x_242, 4, x_235); +lean_ctor_set(x_242, 5, x_236); +if (lean_is_scalar(x_231)) { + x_243 = lean_alloc_ctor(1, 2, 0); +} else { + x_243 = x_231; +} +lean_ctor_set(x_243, 0, x_230); +lean_ctor_set(x_243, 1, x_242); +return x_243; } } } default: { -lean_object* x_247; lean_object* x_248; -x_247 = lean_ctor_get(x_22, 1); +lean_object* x_244; lean_object* x_245; +x_244 = lean_ctor_get(x_19, 1); +lean_inc(x_244); +lean_dec(x_19); +lean_inc(x_7); +x_245 = l_Lean_Meta_isClassExpensive___main(x_18, x_7, x_244); +if (lean_obj_tag(x_245) == 0) +{ +lean_object* x_246; +x_246 = lean_ctor_get(x_245, 0); +lean_inc(x_246); +if (lean_obj_tag(x_246) == 0) +{ +lean_object* x_247; lean_object* x_248; lean_object* x_249; +lean_dec(x_14); +x_247 = lean_ctor_get(x_245, 1); lean_inc(x_247); -lean_dec(x_22); -lean_inc(x_8); -x_248 = l_Lean_Meta_isClassExpensive___main(x_21, x_8, x_247); -if (lean_obj_tag(x_248) == 0) -{ -lean_object* x_249; -x_249 = lean_ctor_get(x_248, 0); -lean_inc(x_249); -if (lean_obj_tag(x_249) == 0) -{ -lean_object* x_250; lean_object* x_251; lean_object* x_252; -lean_dec(x_17); -x_250 = lean_ctor_get(x_248, 1); -lean_inc(x_250); -lean_dec(x_248); -x_251 = lean_unsigned_to_nat(1u); -x_252 = lean_nat_add(x_7, x_251); -lean_dec(x_7); -x_7 = x_252; -x_9 = x_250; +lean_dec(x_245); +x_248 = lean_unsigned_to_nat(1u); +x_249 = lean_nat_add(x_6, x_248); +lean_dec(x_6); +x_6 = x_249; +x_8 = x_247; goto _start; } else { -lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; uint8_t x_258; -x_254 = lean_ctor_get(x_248, 1); -lean_inc(x_254); -lean_dec(x_248); -x_255 = lean_ctor_get(x_249, 0); -lean_inc(x_255); -lean_dec(x_249); -x_256 = lean_unsigned_to_nat(1u); -x_257 = lean_nat_add(x_7, x_256); -lean_dec(x_7); -x_258 = !lean_is_exclusive(x_254); -if (x_258 == 0) +lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; uint8_t x_255; +x_251 = lean_ctor_get(x_245, 1); +lean_inc(x_251); +lean_dec(x_245); +x_252 = lean_ctor_get(x_246, 0); +lean_inc(x_252); +lean_dec(x_246); +x_253 = lean_unsigned_to_nat(1u); +x_254 = lean_nat_add(x_6, x_253); +lean_dec(x_6); +x_255 = !lean_is_exclusive(x_251); +if (x_255 == 0) { -lean_object* x_259; uint8_t x_260; -x_259 = lean_ctor_get(x_254, 2); -x_260 = !lean_is_exclusive(x_259); +lean_object* x_256; uint8_t x_257; +x_256 = lean_ctor_get(x_251, 2); +x_257 = !lean_is_exclusive(x_256); +if (x_257 == 0) +{ +lean_object* x_258; lean_object* x_259; uint8_t x_260; +x_258 = lean_ctor_get(x_256, 2); +x_259 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +lean_ctor_set(x_256, 2, x_259); +x_260 = !lean_is_exclusive(x_7); if (x_260 == 0) { -lean_object* x_261; lean_object* x_262; uint8_t x_263; -x_261 = lean_ctor_get(x_259, 2); -x_262 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; -lean_ctor_set(x_259, 2, x_262); -x_263 = !lean_is_exclusive(x_8); -if (x_263 == 0) +lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; +x_261 = lean_ctor_get(x_7, 2); +x_262 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_262, 0, x_252); +lean_ctor_set(x_262, 1, x_14); +x_263 = lean_array_push(x_261, x_262); +lean_ctor_set(x_7, 2, x_263); +x_264 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescopeReducing___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_254, x_7, x_251); +if (lean_obj_tag(x_264) == 0) { -lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; -x_264 = lean_ctor_get(x_8, 2); -x_265 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_265, 0, x_255); -lean_ctor_set(x_265, 1, x_17); -x_266 = lean_array_push(x_264, x_265); -lean_ctor_set(x_8, 2, x_266); -x_267 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescopeReducing___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_257, x_8, x_254); -if (lean_obj_tag(x_267) == 0) +lean_object* x_265; lean_object* x_266; uint8_t x_267; +x_265 = lean_ctor_get(x_264, 1); +lean_inc(x_265); +x_266 = lean_ctor_get(x_265, 2); +lean_inc(x_266); +x_267 = !lean_is_exclusive(x_264); +if (x_267 == 0) { -lean_object* x_268; lean_object* x_269; uint8_t x_270; -x_268 = lean_ctor_get(x_267, 1); -lean_inc(x_268); -x_269 = lean_ctor_get(x_268, 2); -lean_inc(x_269); -x_270 = !lean_is_exclusive(x_267); -if (x_270 == 0) +lean_object* x_268; uint8_t x_269; +x_268 = lean_ctor_get(x_264, 1); +lean_dec(x_268); +x_269 = !lean_is_exclusive(x_265); +if (x_269 == 0) { -lean_object* x_271; uint8_t x_272; -x_271 = lean_ctor_get(x_267, 1); -lean_dec(x_271); -x_272 = !lean_is_exclusive(x_268); -if (x_272 == 0) +lean_object* x_270; uint8_t x_271; +x_270 = lean_ctor_get(x_265, 2); +lean_dec(x_270); +x_271 = !lean_is_exclusive(x_266); +if (x_271 == 0) { -lean_object* x_273; uint8_t x_274; -x_273 = lean_ctor_get(x_268, 2); -lean_dec(x_273); -x_274 = !lean_is_exclusive(x_269); -if (x_274 == 0) -{ -lean_object* x_275; -x_275 = lean_ctor_get(x_269, 2); -lean_dec(x_275); -lean_ctor_set(x_269, 2, x_261); -return x_267; +lean_object* x_272; +x_272 = lean_ctor_get(x_266, 2); +lean_dec(x_272); +lean_ctor_set(x_266, 2, x_258); +return x_264; } else { -lean_object* x_276; lean_object* x_277; lean_object* x_278; -x_276 = lean_ctor_get(x_269, 0); -x_277 = lean_ctor_get(x_269, 1); -lean_inc(x_277); -lean_inc(x_276); -lean_dec(x_269); -x_278 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_278, 0, x_276); -lean_ctor_set(x_278, 1, x_277); -lean_ctor_set(x_278, 2, x_261); -lean_ctor_set(x_268, 2, x_278); -return x_267; +lean_object* x_273; lean_object* x_274; lean_object* x_275; +x_273 = lean_ctor_get(x_266, 0); +x_274 = lean_ctor_get(x_266, 1); +lean_inc(x_274); +lean_inc(x_273); +lean_dec(x_266); +x_275 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_275, 0, x_273); +lean_ctor_set(x_275, 1, x_274); +lean_ctor_set(x_275, 2, x_258); +lean_ctor_set(x_265, 2, x_275); +return x_264; } } else { -lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; -x_279 = lean_ctor_get(x_268, 0); -x_280 = lean_ctor_get(x_268, 1); -x_281 = lean_ctor_get(x_268, 3); -x_282 = lean_ctor_get(x_268, 4); -x_283 = lean_ctor_get(x_268, 5); -lean_inc(x_283); -lean_inc(x_282); -lean_inc(x_281); +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; +x_276 = lean_ctor_get(x_265, 0); +x_277 = lean_ctor_get(x_265, 1); +x_278 = lean_ctor_get(x_265, 3); +x_279 = lean_ctor_get(x_265, 4); +x_280 = lean_ctor_get(x_265, 5); lean_inc(x_280); lean_inc(x_279); -lean_dec(x_268); -x_284 = lean_ctor_get(x_269, 0); -lean_inc(x_284); -x_285 = lean_ctor_get(x_269, 1); -lean_inc(x_285); -if (lean_is_exclusive(x_269)) { - lean_ctor_release(x_269, 0); - lean_ctor_release(x_269, 1); - lean_ctor_release(x_269, 2); - x_286 = x_269; +lean_inc(x_278); +lean_inc(x_277); +lean_inc(x_276); +lean_dec(x_265); +x_281 = lean_ctor_get(x_266, 0); +lean_inc(x_281); +x_282 = lean_ctor_get(x_266, 1); +lean_inc(x_282); +if (lean_is_exclusive(x_266)) { + lean_ctor_release(x_266, 0); + lean_ctor_release(x_266, 1); + lean_ctor_release(x_266, 2); + x_283 = x_266; } else { - lean_dec_ref(x_269); - x_286 = lean_box(0); + lean_dec_ref(x_266); + x_283 = lean_box(0); } -if (lean_is_scalar(x_286)) { - x_287 = lean_alloc_ctor(0, 3, 0); +if (lean_is_scalar(x_283)) { + x_284 = lean_alloc_ctor(0, 3, 0); } else { - x_287 = x_286; + x_284 = x_283; } -lean_ctor_set(x_287, 0, x_284); -lean_ctor_set(x_287, 1, x_285); -lean_ctor_set(x_287, 2, x_261); -x_288 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_288, 0, x_279); -lean_ctor_set(x_288, 1, x_280); -lean_ctor_set(x_288, 2, x_287); -lean_ctor_set(x_288, 3, x_281); -lean_ctor_set(x_288, 4, x_282); -lean_ctor_set(x_288, 5, x_283); -lean_ctor_set(x_267, 1, x_288); -return x_267; +lean_ctor_set(x_284, 0, x_281); +lean_ctor_set(x_284, 1, x_282); +lean_ctor_set(x_284, 2, x_258); +x_285 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_285, 0, x_276); +lean_ctor_set(x_285, 1, x_277); +lean_ctor_set(x_285, 2, x_284); +lean_ctor_set(x_285, 3, x_278); +lean_ctor_set(x_285, 4, x_279); +lean_ctor_set(x_285, 5, x_280); +lean_ctor_set(x_264, 1, x_285); +return x_264; } } else { -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; -x_289 = lean_ctor_get(x_267, 0); +lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; 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_286 = lean_ctor_get(x_264, 0); +lean_inc(x_286); +lean_dec(x_264); +x_287 = lean_ctor_get(x_265, 0); +lean_inc(x_287); +x_288 = lean_ctor_get(x_265, 1); +lean_inc(x_288); +x_289 = lean_ctor_get(x_265, 3); lean_inc(x_289); -lean_dec(x_267); -x_290 = lean_ctor_get(x_268, 0); +x_290 = lean_ctor_get(x_265, 4); lean_inc(x_290); -x_291 = lean_ctor_get(x_268, 1); +x_291 = lean_ctor_get(x_265, 5); lean_inc(x_291); -x_292 = lean_ctor_get(x_268, 3); -lean_inc(x_292); -x_293 = lean_ctor_get(x_268, 4); -lean_inc(x_293); -x_294 = lean_ctor_get(x_268, 5); -lean_inc(x_294); -if (lean_is_exclusive(x_268)) { - lean_ctor_release(x_268, 0); - lean_ctor_release(x_268, 1); - lean_ctor_release(x_268, 2); - lean_ctor_release(x_268, 3); - lean_ctor_release(x_268, 4); - lean_ctor_release(x_268, 5); - x_295 = x_268; +if (lean_is_exclusive(x_265)) { + lean_ctor_release(x_265, 0); + lean_ctor_release(x_265, 1); + lean_ctor_release(x_265, 2); + lean_ctor_release(x_265, 3); + lean_ctor_release(x_265, 4); + lean_ctor_release(x_265, 5); + x_292 = x_265; } else { - lean_dec_ref(x_268); + lean_dec_ref(x_265); + x_292 = lean_box(0); +} +x_293 = lean_ctor_get(x_266, 0); +lean_inc(x_293); +x_294 = lean_ctor_get(x_266, 1); +lean_inc(x_294); +if (lean_is_exclusive(x_266)) { + lean_ctor_release(x_266, 0); + lean_ctor_release(x_266, 1); + lean_ctor_release(x_266, 2); + x_295 = x_266; +} else { + lean_dec_ref(x_266); x_295 = lean_box(0); } -x_296 = lean_ctor_get(x_269, 0); -lean_inc(x_296); -x_297 = lean_ctor_get(x_269, 1); -lean_inc(x_297); -if (lean_is_exclusive(x_269)) { - lean_ctor_release(x_269, 0); - lean_ctor_release(x_269, 1); - lean_ctor_release(x_269, 2); - x_298 = x_269; -} else { - lean_dec_ref(x_269); - x_298 = lean_box(0); -} -if (lean_is_scalar(x_298)) { - x_299 = lean_alloc_ctor(0, 3, 0); -} else { - x_299 = x_298; -} -lean_ctor_set(x_299, 0, x_296); -lean_ctor_set(x_299, 1, x_297); -lean_ctor_set(x_299, 2, x_261); if (lean_is_scalar(x_295)) { - x_300 = lean_alloc_ctor(0, 6, 0); + x_296 = lean_alloc_ctor(0, 3, 0); } else { - x_300 = x_295; + x_296 = x_295; } -lean_ctor_set(x_300, 0, x_290); -lean_ctor_set(x_300, 1, x_291); -lean_ctor_set(x_300, 2, x_299); -lean_ctor_set(x_300, 3, x_292); -lean_ctor_set(x_300, 4, x_293); -lean_ctor_set(x_300, 5, x_294); -x_301 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_301, 0, x_289); -lean_ctor_set(x_301, 1, x_300); -return x_301; +lean_ctor_set(x_296, 0, x_293); +lean_ctor_set(x_296, 1, x_294); +lean_ctor_set(x_296, 2, x_258); +if (lean_is_scalar(x_292)) { + x_297 = lean_alloc_ctor(0, 6, 0); +} else { + x_297 = x_292; +} +lean_ctor_set(x_297, 0, x_287); +lean_ctor_set(x_297, 1, x_288); +lean_ctor_set(x_297, 2, x_296); +lean_ctor_set(x_297, 3, x_289); +lean_ctor_set(x_297, 4, x_290); +lean_ctor_set(x_297, 5, x_291); +x_298 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_298, 0, x_286); +lean_ctor_set(x_298, 1, x_297); +return x_298; } } else { -lean_object* x_302; lean_object* x_303; uint8_t x_304; -x_302 = lean_ctor_get(x_267, 1); -lean_inc(x_302); -x_303 = lean_ctor_get(x_302, 2); -lean_inc(x_303); -x_304 = !lean_is_exclusive(x_267); -if (x_304 == 0) +lean_object* x_299; lean_object* x_300; uint8_t x_301; +x_299 = lean_ctor_get(x_264, 1); +lean_inc(x_299); +x_300 = lean_ctor_get(x_299, 2); +lean_inc(x_300); +x_301 = !lean_is_exclusive(x_264); +if (x_301 == 0) { -lean_object* x_305; uint8_t x_306; -x_305 = lean_ctor_get(x_267, 1); -lean_dec(x_305); -x_306 = !lean_is_exclusive(x_302); -if (x_306 == 0) +lean_object* x_302; uint8_t x_303; +x_302 = lean_ctor_get(x_264, 1); +lean_dec(x_302); +x_303 = !lean_is_exclusive(x_299); +if (x_303 == 0) { -lean_object* x_307; uint8_t x_308; -x_307 = lean_ctor_get(x_302, 2); -lean_dec(x_307); -x_308 = !lean_is_exclusive(x_303); -if (x_308 == 0) +lean_object* x_304; uint8_t x_305; +x_304 = lean_ctor_get(x_299, 2); +lean_dec(x_304); +x_305 = !lean_is_exclusive(x_300); +if (x_305 == 0) { -lean_object* x_309; -x_309 = lean_ctor_get(x_303, 2); -lean_dec(x_309); -lean_ctor_set(x_303, 2, x_261); -return x_267; +lean_object* x_306; +x_306 = lean_ctor_get(x_300, 2); +lean_dec(x_306); +lean_ctor_set(x_300, 2, x_258); +return x_264; } else { -lean_object* x_310; lean_object* x_311; lean_object* x_312; -x_310 = lean_ctor_get(x_303, 0); -x_311 = lean_ctor_get(x_303, 1); -lean_inc(x_311); -lean_inc(x_310); -lean_dec(x_303); -x_312 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_312, 0, x_310); -lean_ctor_set(x_312, 1, x_311); -lean_ctor_set(x_312, 2, x_261); -lean_ctor_set(x_302, 2, x_312); -return x_267; +lean_object* x_307; lean_object* x_308; lean_object* x_309; +x_307 = lean_ctor_get(x_300, 0); +x_308 = lean_ctor_get(x_300, 1); +lean_inc(x_308); +lean_inc(x_307); +lean_dec(x_300); +x_309 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_309, 0, x_307); +lean_ctor_set(x_309, 1, x_308); +lean_ctor_set(x_309, 2, x_258); +lean_ctor_set(x_299, 2, x_309); +return x_264; } } else { -lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; -x_313 = lean_ctor_get(x_302, 0); -x_314 = lean_ctor_get(x_302, 1); -x_315 = lean_ctor_get(x_302, 3); -x_316 = lean_ctor_get(x_302, 4); -x_317 = lean_ctor_get(x_302, 5); -lean_inc(x_317); -lean_inc(x_316); -lean_inc(x_315); +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; +x_310 = lean_ctor_get(x_299, 0); +x_311 = lean_ctor_get(x_299, 1); +x_312 = lean_ctor_get(x_299, 3); +x_313 = lean_ctor_get(x_299, 4); +x_314 = lean_ctor_get(x_299, 5); lean_inc(x_314); lean_inc(x_313); -lean_dec(x_302); -x_318 = lean_ctor_get(x_303, 0); -lean_inc(x_318); -x_319 = lean_ctor_get(x_303, 1); -lean_inc(x_319); -if (lean_is_exclusive(x_303)) { - lean_ctor_release(x_303, 0); - lean_ctor_release(x_303, 1); - lean_ctor_release(x_303, 2); - x_320 = x_303; +lean_inc(x_312); +lean_inc(x_311); +lean_inc(x_310); +lean_dec(x_299); +x_315 = lean_ctor_get(x_300, 0); +lean_inc(x_315); +x_316 = lean_ctor_get(x_300, 1); +lean_inc(x_316); +if (lean_is_exclusive(x_300)) { + lean_ctor_release(x_300, 0); + lean_ctor_release(x_300, 1); + lean_ctor_release(x_300, 2); + x_317 = x_300; } else { - lean_dec_ref(x_303); - x_320 = lean_box(0); + lean_dec_ref(x_300); + x_317 = lean_box(0); } -if (lean_is_scalar(x_320)) { - x_321 = lean_alloc_ctor(0, 3, 0); +if (lean_is_scalar(x_317)) { + x_318 = lean_alloc_ctor(0, 3, 0); } else { - x_321 = x_320; + x_318 = x_317; } -lean_ctor_set(x_321, 0, x_318); -lean_ctor_set(x_321, 1, x_319); -lean_ctor_set(x_321, 2, x_261); -x_322 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_322, 0, x_313); -lean_ctor_set(x_322, 1, x_314); -lean_ctor_set(x_322, 2, x_321); -lean_ctor_set(x_322, 3, x_315); -lean_ctor_set(x_322, 4, x_316); -lean_ctor_set(x_322, 5, x_317); -lean_ctor_set(x_267, 1, x_322); -return x_267; +lean_ctor_set(x_318, 0, x_315); +lean_ctor_set(x_318, 1, x_316); +lean_ctor_set(x_318, 2, x_258); +x_319 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_319, 0, x_310); +lean_ctor_set(x_319, 1, x_311); +lean_ctor_set(x_319, 2, x_318); +lean_ctor_set(x_319, 3, x_312); +lean_ctor_set(x_319, 4, x_313); +lean_ctor_set(x_319, 5, x_314); +lean_ctor_set(x_264, 1, x_319); +return x_264; } } else { -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; -x_323 = lean_ctor_get(x_267, 0); +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_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; +x_320 = lean_ctor_get(x_264, 0); +lean_inc(x_320); +lean_dec(x_264); +x_321 = lean_ctor_get(x_299, 0); +lean_inc(x_321); +x_322 = lean_ctor_get(x_299, 1); +lean_inc(x_322); +x_323 = lean_ctor_get(x_299, 3); lean_inc(x_323); -lean_dec(x_267); -x_324 = lean_ctor_get(x_302, 0); +x_324 = lean_ctor_get(x_299, 4); lean_inc(x_324); -x_325 = lean_ctor_get(x_302, 1); +x_325 = lean_ctor_get(x_299, 5); lean_inc(x_325); -x_326 = lean_ctor_get(x_302, 3); -lean_inc(x_326); -x_327 = lean_ctor_get(x_302, 4); -lean_inc(x_327); -x_328 = lean_ctor_get(x_302, 5); -lean_inc(x_328); -if (lean_is_exclusive(x_302)) { - lean_ctor_release(x_302, 0); - lean_ctor_release(x_302, 1); - lean_ctor_release(x_302, 2); - lean_ctor_release(x_302, 3); - lean_ctor_release(x_302, 4); - lean_ctor_release(x_302, 5); - x_329 = x_302; +if (lean_is_exclusive(x_299)) { + lean_ctor_release(x_299, 0); + lean_ctor_release(x_299, 1); + lean_ctor_release(x_299, 2); + lean_ctor_release(x_299, 3); + lean_ctor_release(x_299, 4); + lean_ctor_release(x_299, 5); + x_326 = x_299; } else { - lean_dec_ref(x_302); + lean_dec_ref(x_299); + x_326 = lean_box(0); +} +x_327 = lean_ctor_get(x_300, 0); +lean_inc(x_327); +x_328 = lean_ctor_get(x_300, 1); +lean_inc(x_328); +if (lean_is_exclusive(x_300)) { + lean_ctor_release(x_300, 0); + lean_ctor_release(x_300, 1); + lean_ctor_release(x_300, 2); + x_329 = x_300; +} else { + lean_dec_ref(x_300); x_329 = lean_box(0); } -x_330 = lean_ctor_get(x_303, 0); -lean_inc(x_330); -x_331 = lean_ctor_get(x_303, 1); -lean_inc(x_331); -if (lean_is_exclusive(x_303)) { - lean_ctor_release(x_303, 0); - lean_ctor_release(x_303, 1); - lean_ctor_release(x_303, 2); - x_332 = x_303; -} else { - lean_dec_ref(x_303); - x_332 = lean_box(0); -} -if (lean_is_scalar(x_332)) { - x_333 = lean_alloc_ctor(0, 3, 0); -} else { - x_333 = x_332; -} -lean_ctor_set(x_333, 0, x_330); -lean_ctor_set(x_333, 1, x_331); -lean_ctor_set(x_333, 2, x_261); if (lean_is_scalar(x_329)) { - x_334 = lean_alloc_ctor(0, 6, 0); + x_330 = lean_alloc_ctor(0, 3, 0); } else { - x_334 = x_329; + x_330 = x_329; } -lean_ctor_set(x_334, 0, x_324); -lean_ctor_set(x_334, 1, x_325); -lean_ctor_set(x_334, 2, x_333); -lean_ctor_set(x_334, 3, x_326); -lean_ctor_set(x_334, 4, x_327); -lean_ctor_set(x_334, 5, x_328); -x_335 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_335, 0, x_323); -lean_ctor_set(x_335, 1, x_334); -return x_335; +lean_ctor_set(x_330, 0, x_327); +lean_ctor_set(x_330, 1, x_328); +lean_ctor_set(x_330, 2, x_258); +if (lean_is_scalar(x_326)) { + x_331 = lean_alloc_ctor(0, 6, 0); +} else { + x_331 = x_326; +} +lean_ctor_set(x_331, 0, x_321); +lean_ctor_set(x_331, 1, x_322); +lean_ctor_set(x_331, 2, x_330); +lean_ctor_set(x_331, 3, x_323); +lean_ctor_set(x_331, 4, x_324); +lean_ctor_set(x_331, 5, x_325); +x_332 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_332, 0, x_320); +lean_ctor_set(x_332, 1, x_331); +return x_332; } } } else { -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; -x_336 = lean_ctor_get(x_8, 0); -x_337 = lean_ctor_get(x_8, 1); -x_338 = lean_ctor_get(x_8, 2); -lean_inc(x_338); -lean_inc(x_337); -lean_inc(x_336); -lean_dec(x_8); -x_339 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_339, 0, x_255); -lean_ctor_set(x_339, 1, x_17); -x_340 = lean_array_push(x_338, x_339); -x_341 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_341, 0, x_336); -lean_ctor_set(x_341, 1, x_337); -lean_ctor_set(x_341, 2, x_340); -x_342 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescopeReducing___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_257, x_341, x_254); -if (lean_obj_tag(x_342) == 0) +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; +x_333 = lean_ctor_get(x_7, 0); +x_334 = lean_ctor_get(x_7, 1); +x_335 = lean_ctor_get(x_7, 2); +lean_inc(x_335); +lean_inc(x_334); +lean_inc(x_333); +lean_dec(x_7); +x_336 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_336, 0, x_252); +lean_ctor_set(x_336, 1, x_14); +x_337 = lean_array_push(x_335, x_336); +x_338 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_338, 0, x_333); +lean_ctor_set(x_338, 1, x_334); +lean_ctor_set(x_338, 2, x_337); +x_339 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescopeReducing___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_254, x_338, x_251); +if (lean_obj_tag(x_339) == 0) { -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; -x_343 = lean_ctor_get(x_342, 1); -lean_inc(x_343); -x_344 = lean_ctor_get(x_343, 2); -lean_inc(x_344); -x_345 = lean_ctor_get(x_342, 0); -lean_inc(x_345); -if (lean_is_exclusive(x_342)) { - lean_ctor_release(x_342, 0); - lean_ctor_release(x_342, 1); - x_346 = x_342; +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; +x_340 = lean_ctor_get(x_339, 1); +lean_inc(x_340); +x_341 = lean_ctor_get(x_340, 2); +lean_inc(x_341); +x_342 = lean_ctor_get(x_339, 0); +lean_inc(x_342); +if (lean_is_exclusive(x_339)) { + lean_ctor_release(x_339, 0); + lean_ctor_release(x_339, 1); + x_343 = x_339; } else { - lean_dec_ref(x_342); - x_346 = lean_box(0); + lean_dec_ref(x_339); + x_343 = lean_box(0); } -x_347 = lean_ctor_get(x_343, 0); +x_344 = lean_ctor_get(x_340, 0); +lean_inc(x_344); +x_345 = lean_ctor_get(x_340, 1); +lean_inc(x_345); +x_346 = lean_ctor_get(x_340, 3); +lean_inc(x_346); +x_347 = lean_ctor_get(x_340, 4); lean_inc(x_347); -x_348 = lean_ctor_get(x_343, 1); +x_348 = lean_ctor_get(x_340, 5); lean_inc(x_348); -x_349 = lean_ctor_get(x_343, 3); -lean_inc(x_349); -x_350 = lean_ctor_get(x_343, 4); -lean_inc(x_350); -x_351 = lean_ctor_get(x_343, 5); -lean_inc(x_351); -if (lean_is_exclusive(x_343)) { - lean_ctor_release(x_343, 0); - lean_ctor_release(x_343, 1); - lean_ctor_release(x_343, 2); - lean_ctor_release(x_343, 3); - lean_ctor_release(x_343, 4); - lean_ctor_release(x_343, 5); - x_352 = x_343; +if (lean_is_exclusive(x_340)) { + lean_ctor_release(x_340, 0); + lean_ctor_release(x_340, 1); + lean_ctor_release(x_340, 2); + lean_ctor_release(x_340, 3); + lean_ctor_release(x_340, 4); + lean_ctor_release(x_340, 5); + x_349 = x_340; } else { - lean_dec_ref(x_343); + lean_dec_ref(x_340); + x_349 = lean_box(0); +} +x_350 = lean_ctor_get(x_341, 0); +lean_inc(x_350); +x_351 = lean_ctor_get(x_341, 1); +lean_inc(x_351); +if (lean_is_exclusive(x_341)) { + lean_ctor_release(x_341, 0); + lean_ctor_release(x_341, 1); + lean_ctor_release(x_341, 2); + x_352 = x_341; +} else { + lean_dec_ref(x_341); x_352 = lean_box(0); } -x_353 = lean_ctor_get(x_344, 0); -lean_inc(x_353); -x_354 = lean_ctor_get(x_344, 1); -lean_inc(x_354); -if (lean_is_exclusive(x_344)) { - lean_ctor_release(x_344, 0); - lean_ctor_release(x_344, 1); - lean_ctor_release(x_344, 2); - x_355 = x_344; -} else { - lean_dec_ref(x_344); - x_355 = lean_box(0); -} -if (lean_is_scalar(x_355)) { - x_356 = lean_alloc_ctor(0, 3, 0); -} else { - x_356 = x_355; -} -lean_ctor_set(x_356, 0, x_353); -lean_ctor_set(x_356, 1, x_354); -lean_ctor_set(x_356, 2, x_261); if (lean_is_scalar(x_352)) { - x_357 = lean_alloc_ctor(0, 6, 0); + x_353 = lean_alloc_ctor(0, 3, 0); } else { - x_357 = x_352; + x_353 = x_352; } -lean_ctor_set(x_357, 0, x_347); -lean_ctor_set(x_357, 1, x_348); -lean_ctor_set(x_357, 2, x_356); -lean_ctor_set(x_357, 3, x_349); -lean_ctor_set(x_357, 4, x_350); -lean_ctor_set(x_357, 5, x_351); -if (lean_is_scalar(x_346)) { - x_358 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_353, 0, x_350); +lean_ctor_set(x_353, 1, x_351); +lean_ctor_set(x_353, 2, x_258); +if (lean_is_scalar(x_349)) { + x_354 = lean_alloc_ctor(0, 6, 0); } else { - x_358 = x_346; + x_354 = x_349; } -lean_ctor_set(x_358, 0, x_345); -lean_ctor_set(x_358, 1, x_357); -return x_358; +lean_ctor_set(x_354, 0, x_344); +lean_ctor_set(x_354, 1, x_345); +lean_ctor_set(x_354, 2, x_353); +lean_ctor_set(x_354, 3, x_346); +lean_ctor_set(x_354, 4, x_347); +lean_ctor_set(x_354, 5, x_348); +if (lean_is_scalar(x_343)) { + x_355 = lean_alloc_ctor(0, 2, 0); +} else { + x_355 = x_343; +} +lean_ctor_set(x_355, 0, x_342); +lean_ctor_set(x_355, 1, x_354); +return x_355; } else { -lean_object* x_359; lean_object* x_360; 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; -x_359 = lean_ctor_get(x_342, 1); -lean_inc(x_359); -x_360 = lean_ctor_get(x_359, 2); -lean_inc(x_360); -x_361 = lean_ctor_get(x_342, 0); -lean_inc(x_361); -if (lean_is_exclusive(x_342)) { - lean_ctor_release(x_342, 0); - lean_ctor_release(x_342, 1); - x_362 = x_342; +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_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; +x_356 = lean_ctor_get(x_339, 1); +lean_inc(x_356); +x_357 = lean_ctor_get(x_356, 2); +lean_inc(x_357); +x_358 = lean_ctor_get(x_339, 0); +lean_inc(x_358); +if (lean_is_exclusive(x_339)) { + lean_ctor_release(x_339, 0); + lean_ctor_release(x_339, 1); + x_359 = x_339; } else { - lean_dec_ref(x_342); - x_362 = lean_box(0); + lean_dec_ref(x_339); + x_359 = lean_box(0); } -x_363 = lean_ctor_get(x_359, 0); +x_360 = lean_ctor_get(x_356, 0); +lean_inc(x_360); +x_361 = lean_ctor_get(x_356, 1); +lean_inc(x_361); +x_362 = lean_ctor_get(x_356, 3); +lean_inc(x_362); +x_363 = lean_ctor_get(x_356, 4); lean_inc(x_363); -x_364 = lean_ctor_get(x_359, 1); +x_364 = lean_ctor_get(x_356, 5); lean_inc(x_364); -x_365 = lean_ctor_get(x_359, 3); -lean_inc(x_365); -x_366 = lean_ctor_get(x_359, 4); -lean_inc(x_366); -x_367 = lean_ctor_get(x_359, 5); -lean_inc(x_367); -if (lean_is_exclusive(x_359)) { - lean_ctor_release(x_359, 0); - lean_ctor_release(x_359, 1); - lean_ctor_release(x_359, 2); - lean_ctor_release(x_359, 3); - lean_ctor_release(x_359, 4); - lean_ctor_release(x_359, 5); - x_368 = x_359; +if (lean_is_exclusive(x_356)) { + lean_ctor_release(x_356, 0); + lean_ctor_release(x_356, 1); + lean_ctor_release(x_356, 2); + lean_ctor_release(x_356, 3); + lean_ctor_release(x_356, 4); + lean_ctor_release(x_356, 5); + x_365 = x_356; } else { - lean_dec_ref(x_359); + lean_dec_ref(x_356); + x_365 = lean_box(0); +} +x_366 = lean_ctor_get(x_357, 0); +lean_inc(x_366); +x_367 = lean_ctor_get(x_357, 1); +lean_inc(x_367); +if (lean_is_exclusive(x_357)) { + lean_ctor_release(x_357, 0); + lean_ctor_release(x_357, 1); + lean_ctor_release(x_357, 2); + x_368 = x_357; +} else { + lean_dec_ref(x_357); x_368 = lean_box(0); } -x_369 = lean_ctor_get(x_360, 0); -lean_inc(x_369); -x_370 = lean_ctor_get(x_360, 1); -lean_inc(x_370); -if (lean_is_exclusive(x_360)) { - lean_ctor_release(x_360, 0); - lean_ctor_release(x_360, 1); - lean_ctor_release(x_360, 2); - x_371 = x_360; -} else { - lean_dec_ref(x_360); - x_371 = lean_box(0); -} -if (lean_is_scalar(x_371)) { - x_372 = lean_alloc_ctor(0, 3, 0); -} else { - x_372 = x_371; -} -lean_ctor_set(x_372, 0, x_369); -lean_ctor_set(x_372, 1, x_370); -lean_ctor_set(x_372, 2, x_261); if (lean_is_scalar(x_368)) { - x_373 = lean_alloc_ctor(0, 6, 0); + x_369 = lean_alloc_ctor(0, 3, 0); } else { - x_373 = x_368; + x_369 = x_368; } -lean_ctor_set(x_373, 0, x_363); -lean_ctor_set(x_373, 1, x_364); -lean_ctor_set(x_373, 2, x_372); -lean_ctor_set(x_373, 3, x_365); -lean_ctor_set(x_373, 4, x_366); -lean_ctor_set(x_373, 5, x_367); -if (lean_is_scalar(x_362)) { - x_374 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_369, 0, x_366); +lean_ctor_set(x_369, 1, x_367); +lean_ctor_set(x_369, 2, x_258); +if (lean_is_scalar(x_365)) { + x_370 = lean_alloc_ctor(0, 6, 0); } else { - x_374 = x_362; + x_370 = x_365; } -lean_ctor_set(x_374, 0, x_361); -lean_ctor_set(x_374, 1, x_373); -return x_374; +lean_ctor_set(x_370, 0, x_360); +lean_ctor_set(x_370, 1, x_361); +lean_ctor_set(x_370, 2, x_369); +lean_ctor_set(x_370, 3, x_362); +lean_ctor_set(x_370, 4, x_363); +lean_ctor_set(x_370, 5, x_364); +if (lean_is_scalar(x_359)) { + x_371 = lean_alloc_ctor(1, 2, 0); +} else { + x_371 = x_359; +} +lean_ctor_set(x_371, 0, x_358); +lean_ctor_set(x_371, 1, x_370); +return x_371; } } } else { -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; -x_375 = lean_ctor_get(x_259, 0); -x_376 = lean_ctor_get(x_259, 1); -x_377 = lean_ctor_get(x_259, 2); +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; +x_372 = lean_ctor_get(x_256, 0); +x_373 = lean_ctor_get(x_256, 1); +x_374 = lean_ctor_get(x_256, 2); +lean_inc(x_374); +lean_inc(x_373); +lean_inc(x_372); +lean_dec(x_256); +x_375 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +x_376 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_376, 0, x_372); +lean_ctor_set(x_376, 1, x_373); +lean_ctor_set(x_376, 2, x_375); +lean_ctor_set(x_251, 2, x_376); +x_377 = lean_ctor_get(x_7, 0); lean_inc(x_377); -lean_inc(x_376); -lean_inc(x_375); -lean_dec(x_259); -x_378 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; -x_379 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_379, 0, x_375); -lean_ctor_set(x_379, 1, x_376); -lean_ctor_set(x_379, 2, x_378); -lean_ctor_set(x_254, 2, x_379); -x_380 = lean_ctor_get(x_8, 0); -lean_inc(x_380); -x_381 = lean_ctor_get(x_8, 1); -lean_inc(x_381); -x_382 = lean_ctor_get(x_8, 2); -lean_inc(x_382); -if (lean_is_exclusive(x_8)) { - lean_ctor_release(x_8, 0); - lean_ctor_release(x_8, 1); - lean_ctor_release(x_8, 2); - x_383 = x_8; +x_378 = lean_ctor_get(x_7, 1); +lean_inc(x_378); +x_379 = lean_ctor_get(x_7, 2); +lean_inc(x_379); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + lean_ctor_release(x_7, 2); + x_380 = x_7; } else { - lean_dec_ref(x_8); - x_383 = lean_box(0); + lean_dec_ref(x_7); + x_380 = lean_box(0); } -x_384 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_384, 0, x_255); -lean_ctor_set(x_384, 1, x_17); -x_385 = lean_array_push(x_382, x_384); -if (lean_is_scalar(x_383)) { - x_386 = lean_alloc_ctor(0, 3, 0); +x_381 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_381, 0, x_252); +lean_ctor_set(x_381, 1, x_14); +x_382 = lean_array_push(x_379, x_381); +if (lean_is_scalar(x_380)) { + x_383 = lean_alloc_ctor(0, 3, 0); } else { - x_386 = x_383; + x_383 = x_380; } -lean_ctor_set(x_386, 0, x_380); -lean_ctor_set(x_386, 1, x_381); -lean_ctor_set(x_386, 2, x_385); -x_387 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescopeReducing___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_257, x_386, x_254); -if (lean_obj_tag(x_387) == 0) +lean_ctor_set(x_383, 0, x_377); +lean_ctor_set(x_383, 1, x_378); +lean_ctor_set(x_383, 2, x_382); +x_384 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescopeReducing___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_254, x_383, x_251); +if (lean_obj_tag(x_384) == 0) { -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; -x_388 = lean_ctor_get(x_387, 1); -lean_inc(x_388); -x_389 = lean_ctor_get(x_388, 2); -lean_inc(x_389); -x_390 = lean_ctor_get(x_387, 0); -lean_inc(x_390); -if (lean_is_exclusive(x_387)) { - lean_ctor_release(x_387, 0); - lean_ctor_release(x_387, 1); - x_391 = x_387; +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; +x_385 = lean_ctor_get(x_384, 1); +lean_inc(x_385); +x_386 = lean_ctor_get(x_385, 2); +lean_inc(x_386); +x_387 = lean_ctor_get(x_384, 0); +lean_inc(x_387); +if (lean_is_exclusive(x_384)) { + lean_ctor_release(x_384, 0); + lean_ctor_release(x_384, 1); + x_388 = x_384; } else { - lean_dec_ref(x_387); - x_391 = lean_box(0); + lean_dec_ref(x_384); + x_388 = lean_box(0); } -x_392 = lean_ctor_get(x_388, 0); +x_389 = lean_ctor_get(x_385, 0); +lean_inc(x_389); +x_390 = lean_ctor_get(x_385, 1); +lean_inc(x_390); +x_391 = lean_ctor_get(x_385, 3); +lean_inc(x_391); +x_392 = lean_ctor_get(x_385, 4); lean_inc(x_392); -x_393 = lean_ctor_get(x_388, 1); +x_393 = lean_ctor_get(x_385, 5); lean_inc(x_393); -x_394 = lean_ctor_get(x_388, 3); -lean_inc(x_394); -x_395 = lean_ctor_get(x_388, 4); -lean_inc(x_395); -x_396 = lean_ctor_get(x_388, 5); -lean_inc(x_396); -if (lean_is_exclusive(x_388)) { - lean_ctor_release(x_388, 0); - lean_ctor_release(x_388, 1); - lean_ctor_release(x_388, 2); - lean_ctor_release(x_388, 3); - lean_ctor_release(x_388, 4); - lean_ctor_release(x_388, 5); - x_397 = x_388; +if (lean_is_exclusive(x_385)) { + lean_ctor_release(x_385, 0); + lean_ctor_release(x_385, 1); + lean_ctor_release(x_385, 2); + lean_ctor_release(x_385, 3); + lean_ctor_release(x_385, 4); + lean_ctor_release(x_385, 5); + x_394 = x_385; } else { - lean_dec_ref(x_388); + lean_dec_ref(x_385); + x_394 = lean_box(0); +} +x_395 = lean_ctor_get(x_386, 0); +lean_inc(x_395); +x_396 = lean_ctor_get(x_386, 1); +lean_inc(x_396); +if (lean_is_exclusive(x_386)) { + lean_ctor_release(x_386, 0); + lean_ctor_release(x_386, 1); + lean_ctor_release(x_386, 2); + x_397 = x_386; +} else { + lean_dec_ref(x_386); x_397 = lean_box(0); } -x_398 = lean_ctor_get(x_389, 0); -lean_inc(x_398); -x_399 = lean_ctor_get(x_389, 1); -lean_inc(x_399); -if (lean_is_exclusive(x_389)) { - lean_ctor_release(x_389, 0); - lean_ctor_release(x_389, 1); - lean_ctor_release(x_389, 2); - x_400 = x_389; -} else { - lean_dec_ref(x_389); - x_400 = lean_box(0); -} -if (lean_is_scalar(x_400)) { - x_401 = lean_alloc_ctor(0, 3, 0); -} else { - x_401 = x_400; -} -lean_ctor_set(x_401, 0, x_398); -lean_ctor_set(x_401, 1, x_399); -lean_ctor_set(x_401, 2, x_377); if (lean_is_scalar(x_397)) { - x_402 = lean_alloc_ctor(0, 6, 0); + x_398 = lean_alloc_ctor(0, 3, 0); } else { - x_402 = x_397; + x_398 = x_397; } -lean_ctor_set(x_402, 0, x_392); -lean_ctor_set(x_402, 1, x_393); -lean_ctor_set(x_402, 2, x_401); -lean_ctor_set(x_402, 3, x_394); -lean_ctor_set(x_402, 4, x_395); -lean_ctor_set(x_402, 5, x_396); -if (lean_is_scalar(x_391)) { - x_403 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_398, 0, x_395); +lean_ctor_set(x_398, 1, x_396); +lean_ctor_set(x_398, 2, x_374); +if (lean_is_scalar(x_394)) { + x_399 = lean_alloc_ctor(0, 6, 0); } else { - x_403 = x_391; + x_399 = x_394; } -lean_ctor_set(x_403, 0, x_390); -lean_ctor_set(x_403, 1, x_402); -return x_403; +lean_ctor_set(x_399, 0, x_389); +lean_ctor_set(x_399, 1, x_390); +lean_ctor_set(x_399, 2, x_398); +lean_ctor_set(x_399, 3, x_391); +lean_ctor_set(x_399, 4, x_392); +lean_ctor_set(x_399, 5, x_393); +if (lean_is_scalar(x_388)) { + x_400 = lean_alloc_ctor(0, 2, 0); +} else { + x_400 = x_388; +} +lean_ctor_set(x_400, 0, x_387); +lean_ctor_set(x_400, 1, x_399); +return x_400; } else { -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; -x_404 = lean_ctor_get(x_387, 1); -lean_inc(x_404); -x_405 = lean_ctor_get(x_404, 2); -lean_inc(x_405); -x_406 = lean_ctor_get(x_387, 0); -lean_inc(x_406); -if (lean_is_exclusive(x_387)) { - lean_ctor_release(x_387, 0); - lean_ctor_release(x_387, 1); - x_407 = x_387; +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; +x_401 = lean_ctor_get(x_384, 1); +lean_inc(x_401); +x_402 = lean_ctor_get(x_401, 2); +lean_inc(x_402); +x_403 = lean_ctor_get(x_384, 0); +lean_inc(x_403); +if (lean_is_exclusive(x_384)) { + lean_ctor_release(x_384, 0); + lean_ctor_release(x_384, 1); + x_404 = x_384; } else { - lean_dec_ref(x_387); - x_407 = lean_box(0); + lean_dec_ref(x_384); + x_404 = lean_box(0); } -x_408 = lean_ctor_get(x_404, 0); +x_405 = lean_ctor_get(x_401, 0); +lean_inc(x_405); +x_406 = lean_ctor_get(x_401, 1); +lean_inc(x_406); +x_407 = lean_ctor_get(x_401, 3); +lean_inc(x_407); +x_408 = lean_ctor_get(x_401, 4); lean_inc(x_408); -x_409 = lean_ctor_get(x_404, 1); +x_409 = lean_ctor_get(x_401, 5); lean_inc(x_409); -x_410 = lean_ctor_get(x_404, 3); -lean_inc(x_410); -x_411 = lean_ctor_get(x_404, 4); -lean_inc(x_411); -x_412 = lean_ctor_get(x_404, 5); -lean_inc(x_412); -if (lean_is_exclusive(x_404)) { - lean_ctor_release(x_404, 0); - lean_ctor_release(x_404, 1); - lean_ctor_release(x_404, 2); - lean_ctor_release(x_404, 3); - lean_ctor_release(x_404, 4); - lean_ctor_release(x_404, 5); - x_413 = x_404; +if (lean_is_exclusive(x_401)) { + lean_ctor_release(x_401, 0); + lean_ctor_release(x_401, 1); + lean_ctor_release(x_401, 2); + lean_ctor_release(x_401, 3); + lean_ctor_release(x_401, 4); + lean_ctor_release(x_401, 5); + x_410 = x_401; } else { - lean_dec_ref(x_404); + lean_dec_ref(x_401); + x_410 = lean_box(0); +} +x_411 = lean_ctor_get(x_402, 0); +lean_inc(x_411); +x_412 = lean_ctor_get(x_402, 1); +lean_inc(x_412); +if (lean_is_exclusive(x_402)) { + lean_ctor_release(x_402, 0); + lean_ctor_release(x_402, 1); + lean_ctor_release(x_402, 2); + x_413 = x_402; +} else { + lean_dec_ref(x_402); x_413 = lean_box(0); } -x_414 = lean_ctor_get(x_405, 0); -lean_inc(x_414); -x_415 = lean_ctor_get(x_405, 1); -lean_inc(x_415); -if (lean_is_exclusive(x_405)) { - lean_ctor_release(x_405, 0); - lean_ctor_release(x_405, 1); - lean_ctor_release(x_405, 2); - x_416 = x_405; -} else { - lean_dec_ref(x_405); - x_416 = lean_box(0); -} -if (lean_is_scalar(x_416)) { - x_417 = lean_alloc_ctor(0, 3, 0); -} else { - x_417 = x_416; -} -lean_ctor_set(x_417, 0, x_414); -lean_ctor_set(x_417, 1, x_415); -lean_ctor_set(x_417, 2, x_377); if (lean_is_scalar(x_413)) { - x_418 = lean_alloc_ctor(0, 6, 0); + x_414 = lean_alloc_ctor(0, 3, 0); } else { - x_418 = x_413; + x_414 = x_413; } -lean_ctor_set(x_418, 0, x_408); -lean_ctor_set(x_418, 1, x_409); -lean_ctor_set(x_418, 2, x_417); -lean_ctor_set(x_418, 3, x_410); -lean_ctor_set(x_418, 4, x_411); -lean_ctor_set(x_418, 5, x_412); -if (lean_is_scalar(x_407)) { - x_419 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_414, 0, x_411); +lean_ctor_set(x_414, 1, x_412); +lean_ctor_set(x_414, 2, x_374); +if (lean_is_scalar(x_410)) { + x_415 = lean_alloc_ctor(0, 6, 0); } else { - x_419 = x_407; + x_415 = x_410; } -lean_ctor_set(x_419, 0, x_406); -lean_ctor_set(x_419, 1, x_418); -return x_419; +lean_ctor_set(x_415, 0, x_405); +lean_ctor_set(x_415, 1, x_406); +lean_ctor_set(x_415, 2, x_414); +lean_ctor_set(x_415, 3, x_407); +lean_ctor_set(x_415, 4, x_408); +lean_ctor_set(x_415, 5, x_409); +if (lean_is_scalar(x_404)) { + x_416 = lean_alloc_ctor(1, 2, 0); +} else { + x_416 = x_404; +} +lean_ctor_set(x_416, 0, x_403); +lean_ctor_set(x_416, 1, x_415); +return x_416; } } } else { -lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_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; -x_420 = lean_ctor_get(x_254, 2); -x_421 = lean_ctor_get(x_254, 0); -x_422 = lean_ctor_get(x_254, 1); -x_423 = lean_ctor_get(x_254, 3); -x_424 = lean_ctor_get(x_254, 4); -x_425 = lean_ctor_get(x_254, 5); -lean_inc(x_425); -lean_inc(x_424); -lean_inc(x_423); -lean_inc(x_420); +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; +x_417 = lean_ctor_get(x_251, 2); +x_418 = lean_ctor_get(x_251, 0); +x_419 = lean_ctor_get(x_251, 1); +x_420 = lean_ctor_get(x_251, 3); +x_421 = lean_ctor_get(x_251, 4); +x_422 = lean_ctor_get(x_251, 5); lean_inc(x_422); lean_inc(x_421); -lean_dec(x_254); -x_426 = lean_ctor_get(x_420, 0); -lean_inc(x_426); -x_427 = lean_ctor_get(x_420, 1); -lean_inc(x_427); -x_428 = lean_ctor_get(x_420, 2); -lean_inc(x_428); -if (lean_is_exclusive(x_420)) { - lean_ctor_release(x_420, 0); - lean_ctor_release(x_420, 1); - lean_ctor_release(x_420, 2); - x_429 = x_420; +lean_inc(x_420); +lean_inc(x_417); +lean_inc(x_419); +lean_inc(x_418); +lean_dec(x_251); +x_423 = lean_ctor_get(x_417, 0); +lean_inc(x_423); +x_424 = lean_ctor_get(x_417, 1); +lean_inc(x_424); +x_425 = lean_ctor_get(x_417, 2); +lean_inc(x_425); +if (lean_is_exclusive(x_417)) { + lean_ctor_release(x_417, 0); + lean_ctor_release(x_417, 1); + lean_ctor_release(x_417, 2); + x_426 = x_417; } else { - lean_dec_ref(x_420); - x_429 = lean_box(0); + lean_dec_ref(x_417); + x_426 = lean_box(0); } -x_430 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; -if (lean_is_scalar(x_429)) { - x_431 = lean_alloc_ctor(0, 3, 0); +x_427 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +if (lean_is_scalar(x_426)) { + x_428 = lean_alloc_ctor(0, 3, 0); } else { - x_431 = x_429; + x_428 = x_426; } -lean_ctor_set(x_431, 0, x_426); -lean_ctor_set(x_431, 1, x_427); -lean_ctor_set(x_431, 2, x_430); -x_432 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_432, 0, x_421); -lean_ctor_set(x_432, 1, x_422); -lean_ctor_set(x_432, 2, x_431); -lean_ctor_set(x_432, 3, x_423); -lean_ctor_set(x_432, 4, x_424); -lean_ctor_set(x_432, 5, x_425); -x_433 = lean_ctor_get(x_8, 0); -lean_inc(x_433); -x_434 = lean_ctor_get(x_8, 1); -lean_inc(x_434); -x_435 = lean_ctor_get(x_8, 2); -lean_inc(x_435); -if (lean_is_exclusive(x_8)) { - lean_ctor_release(x_8, 0); - lean_ctor_release(x_8, 1); - lean_ctor_release(x_8, 2); - x_436 = x_8; +lean_ctor_set(x_428, 0, x_423); +lean_ctor_set(x_428, 1, x_424); +lean_ctor_set(x_428, 2, x_427); +x_429 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_429, 0, x_418); +lean_ctor_set(x_429, 1, x_419); +lean_ctor_set(x_429, 2, x_428); +lean_ctor_set(x_429, 3, x_420); +lean_ctor_set(x_429, 4, x_421); +lean_ctor_set(x_429, 5, x_422); +x_430 = lean_ctor_get(x_7, 0); +lean_inc(x_430); +x_431 = lean_ctor_get(x_7, 1); +lean_inc(x_431); +x_432 = lean_ctor_get(x_7, 2); +lean_inc(x_432); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + lean_ctor_release(x_7, 2); + x_433 = x_7; } else { - lean_dec_ref(x_8); - x_436 = lean_box(0); + lean_dec_ref(x_7); + x_433 = lean_box(0); } -x_437 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_437, 0, x_255); -lean_ctor_set(x_437, 1, x_17); -x_438 = lean_array_push(x_435, x_437); -if (lean_is_scalar(x_436)) { - x_439 = lean_alloc_ctor(0, 3, 0); +x_434 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_434, 0, x_252); +lean_ctor_set(x_434, 1, x_14); +x_435 = lean_array_push(x_432, x_434); +if (lean_is_scalar(x_433)) { + x_436 = lean_alloc_ctor(0, 3, 0); } else { - x_439 = x_436; + x_436 = x_433; } -lean_ctor_set(x_439, 0, x_433); -lean_ctor_set(x_439, 1, x_434); -lean_ctor_set(x_439, 2, x_438); -x_440 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescopeReducing___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_257, x_439, x_432); -if (lean_obj_tag(x_440) == 0) +lean_ctor_set(x_436, 0, x_430); +lean_ctor_set(x_436, 1, x_431); +lean_ctor_set(x_436, 2, x_435); +x_437 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescopeReducing___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_254, x_436, x_429); +if (lean_obj_tag(x_437) == 0) { -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; -x_441 = lean_ctor_get(x_440, 1); -lean_inc(x_441); -x_442 = lean_ctor_get(x_441, 2); -lean_inc(x_442); -x_443 = lean_ctor_get(x_440, 0); -lean_inc(x_443); -if (lean_is_exclusive(x_440)) { - lean_ctor_release(x_440, 0); - lean_ctor_release(x_440, 1); - x_444 = x_440; +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; +x_438 = lean_ctor_get(x_437, 1); +lean_inc(x_438); +x_439 = lean_ctor_get(x_438, 2); +lean_inc(x_439); +x_440 = lean_ctor_get(x_437, 0); +lean_inc(x_440); +if (lean_is_exclusive(x_437)) { + lean_ctor_release(x_437, 0); + lean_ctor_release(x_437, 1); + x_441 = x_437; } else { - lean_dec_ref(x_440); - x_444 = lean_box(0); + lean_dec_ref(x_437); + x_441 = lean_box(0); } -x_445 = lean_ctor_get(x_441, 0); +x_442 = lean_ctor_get(x_438, 0); +lean_inc(x_442); +x_443 = lean_ctor_get(x_438, 1); +lean_inc(x_443); +x_444 = lean_ctor_get(x_438, 3); +lean_inc(x_444); +x_445 = lean_ctor_get(x_438, 4); lean_inc(x_445); -x_446 = lean_ctor_get(x_441, 1); +x_446 = lean_ctor_get(x_438, 5); lean_inc(x_446); -x_447 = lean_ctor_get(x_441, 3); -lean_inc(x_447); -x_448 = lean_ctor_get(x_441, 4); -lean_inc(x_448); -x_449 = lean_ctor_get(x_441, 5); -lean_inc(x_449); -if (lean_is_exclusive(x_441)) { - lean_ctor_release(x_441, 0); - lean_ctor_release(x_441, 1); - lean_ctor_release(x_441, 2); - lean_ctor_release(x_441, 3); - lean_ctor_release(x_441, 4); - lean_ctor_release(x_441, 5); - x_450 = x_441; +if (lean_is_exclusive(x_438)) { + lean_ctor_release(x_438, 0); + lean_ctor_release(x_438, 1); + lean_ctor_release(x_438, 2); + lean_ctor_release(x_438, 3); + lean_ctor_release(x_438, 4); + lean_ctor_release(x_438, 5); + x_447 = x_438; } else { - lean_dec_ref(x_441); + lean_dec_ref(x_438); + x_447 = lean_box(0); +} +x_448 = lean_ctor_get(x_439, 0); +lean_inc(x_448); +x_449 = lean_ctor_get(x_439, 1); +lean_inc(x_449); +if (lean_is_exclusive(x_439)) { + lean_ctor_release(x_439, 0); + lean_ctor_release(x_439, 1); + lean_ctor_release(x_439, 2); + x_450 = x_439; +} else { + lean_dec_ref(x_439); x_450 = lean_box(0); } -x_451 = lean_ctor_get(x_442, 0); -lean_inc(x_451); -x_452 = lean_ctor_get(x_442, 1); -lean_inc(x_452); -if (lean_is_exclusive(x_442)) { - lean_ctor_release(x_442, 0); - lean_ctor_release(x_442, 1); - lean_ctor_release(x_442, 2); - x_453 = x_442; -} else { - lean_dec_ref(x_442); - x_453 = lean_box(0); -} -if (lean_is_scalar(x_453)) { - x_454 = lean_alloc_ctor(0, 3, 0); -} else { - x_454 = x_453; -} -lean_ctor_set(x_454, 0, x_451); -lean_ctor_set(x_454, 1, x_452); -lean_ctor_set(x_454, 2, x_428); if (lean_is_scalar(x_450)) { - x_455 = lean_alloc_ctor(0, 6, 0); + x_451 = lean_alloc_ctor(0, 3, 0); } else { - x_455 = x_450; + x_451 = x_450; } -lean_ctor_set(x_455, 0, x_445); -lean_ctor_set(x_455, 1, x_446); -lean_ctor_set(x_455, 2, x_454); -lean_ctor_set(x_455, 3, x_447); -lean_ctor_set(x_455, 4, x_448); -lean_ctor_set(x_455, 5, x_449); -if (lean_is_scalar(x_444)) { - x_456 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_451, 0, x_448); +lean_ctor_set(x_451, 1, x_449); +lean_ctor_set(x_451, 2, x_425); +if (lean_is_scalar(x_447)) { + x_452 = lean_alloc_ctor(0, 6, 0); } else { - x_456 = x_444; + x_452 = x_447; } -lean_ctor_set(x_456, 0, x_443); -lean_ctor_set(x_456, 1, x_455); -return x_456; +lean_ctor_set(x_452, 0, x_442); +lean_ctor_set(x_452, 1, x_443); +lean_ctor_set(x_452, 2, x_451); +lean_ctor_set(x_452, 3, x_444); +lean_ctor_set(x_452, 4, x_445); +lean_ctor_set(x_452, 5, x_446); +if (lean_is_scalar(x_441)) { + x_453 = lean_alloc_ctor(0, 2, 0); +} else { + x_453 = x_441; +} +lean_ctor_set(x_453, 0, x_440); +lean_ctor_set(x_453, 1, x_452); +return x_453; } else { -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; -x_457 = lean_ctor_get(x_440, 1); -lean_inc(x_457); -x_458 = lean_ctor_get(x_457, 2); -lean_inc(x_458); -x_459 = lean_ctor_get(x_440, 0); -lean_inc(x_459); -if (lean_is_exclusive(x_440)) { - lean_ctor_release(x_440, 0); - lean_ctor_release(x_440, 1); - x_460 = x_440; +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; +x_454 = lean_ctor_get(x_437, 1); +lean_inc(x_454); +x_455 = lean_ctor_get(x_454, 2); +lean_inc(x_455); +x_456 = lean_ctor_get(x_437, 0); +lean_inc(x_456); +if (lean_is_exclusive(x_437)) { + lean_ctor_release(x_437, 0); + lean_ctor_release(x_437, 1); + x_457 = x_437; } else { - lean_dec_ref(x_440); - x_460 = lean_box(0); + lean_dec_ref(x_437); + x_457 = lean_box(0); } -x_461 = lean_ctor_get(x_457, 0); +x_458 = lean_ctor_get(x_454, 0); +lean_inc(x_458); +x_459 = lean_ctor_get(x_454, 1); +lean_inc(x_459); +x_460 = lean_ctor_get(x_454, 3); +lean_inc(x_460); +x_461 = lean_ctor_get(x_454, 4); lean_inc(x_461); -x_462 = lean_ctor_get(x_457, 1); +x_462 = lean_ctor_get(x_454, 5); lean_inc(x_462); -x_463 = lean_ctor_get(x_457, 3); -lean_inc(x_463); -x_464 = lean_ctor_get(x_457, 4); -lean_inc(x_464); -x_465 = lean_ctor_get(x_457, 5); -lean_inc(x_465); -if (lean_is_exclusive(x_457)) { - lean_ctor_release(x_457, 0); - lean_ctor_release(x_457, 1); - lean_ctor_release(x_457, 2); - lean_ctor_release(x_457, 3); - lean_ctor_release(x_457, 4); - lean_ctor_release(x_457, 5); - x_466 = x_457; +if (lean_is_exclusive(x_454)) { + lean_ctor_release(x_454, 0); + lean_ctor_release(x_454, 1); + lean_ctor_release(x_454, 2); + lean_ctor_release(x_454, 3); + lean_ctor_release(x_454, 4); + lean_ctor_release(x_454, 5); + x_463 = x_454; } else { - lean_dec_ref(x_457); + lean_dec_ref(x_454); + x_463 = lean_box(0); +} +x_464 = lean_ctor_get(x_455, 0); +lean_inc(x_464); +x_465 = lean_ctor_get(x_455, 1); +lean_inc(x_465); +if (lean_is_exclusive(x_455)) { + lean_ctor_release(x_455, 0); + lean_ctor_release(x_455, 1); + lean_ctor_release(x_455, 2); + x_466 = x_455; +} else { + lean_dec_ref(x_455); x_466 = lean_box(0); } -x_467 = lean_ctor_get(x_458, 0); -lean_inc(x_467); -x_468 = lean_ctor_get(x_458, 1); -lean_inc(x_468); -if (lean_is_exclusive(x_458)) { - lean_ctor_release(x_458, 0); - lean_ctor_release(x_458, 1); - lean_ctor_release(x_458, 2); - x_469 = x_458; -} else { - lean_dec_ref(x_458); - x_469 = lean_box(0); -} -if (lean_is_scalar(x_469)) { - x_470 = lean_alloc_ctor(0, 3, 0); -} else { - x_470 = x_469; -} -lean_ctor_set(x_470, 0, x_467); -lean_ctor_set(x_470, 1, x_468); -lean_ctor_set(x_470, 2, x_428); if (lean_is_scalar(x_466)) { - x_471 = lean_alloc_ctor(0, 6, 0); + x_467 = lean_alloc_ctor(0, 3, 0); } else { - x_471 = x_466; + x_467 = x_466; } -lean_ctor_set(x_471, 0, x_461); -lean_ctor_set(x_471, 1, x_462); -lean_ctor_set(x_471, 2, x_470); -lean_ctor_set(x_471, 3, x_463); -lean_ctor_set(x_471, 4, x_464); -lean_ctor_set(x_471, 5, x_465); -if (lean_is_scalar(x_460)) { - x_472 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_467, 0, x_464); +lean_ctor_set(x_467, 1, x_465); +lean_ctor_set(x_467, 2, x_425); +if (lean_is_scalar(x_463)) { + x_468 = lean_alloc_ctor(0, 6, 0); } else { - x_472 = x_460; + x_468 = x_463; } -lean_ctor_set(x_472, 0, x_459); -lean_ctor_set(x_472, 1, x_471); -return x_472; +lean_ctor_set(x_468, 0, x_458); +lean_ctor_set(x_468, 1, x_459); +lean_ctor_set(x_468, 2, x_467); +lean_ctor_set(x_468, 3, x_460); +lean_ctor_set(x_468, 4, x_461); +lean_ctor_set(x_468, 5, x_462); +if (lean_is_scalar(x_457)) { + x_469 = lean_alloc_ctor(1, 2, 0); +} else { + x_469 = x_457; +} +lean_ctor_set(x_469, 0, x_456); +lean_ctor_set(x_469, 1, x_468); +return x_469; } } } } else { -uint8_t x_473; -lean_dec(x_17); -lean_dec(x_8); +uint8_t x_470; +lean_dec(x_14); lean_dec(x_7); -lean_dec(x_5); +lean_dec(x_6); lean_dec(x_2); lean_dec(x_1); -x_473 = !lean_is_exclusive(x_248); -if (x_473 == 0) +x_470 = !lean_is_exclusive(x_245); +if (x_470 == 0) { -return x_248; +return x_245; } else { -lean_object* x_474; lean_object* x_475; lean_object* x_476; -x_474 = lean_ctor_get(x_248, 0); -x_475 = lean_ctor_get(x_248, 1); -lean_inc(x_475); -lean_inc(x_474); -lean_dec(x_248); -x_476 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_476, 0, x_474); -lean_ctor_set(x_476, 1, x_475); -return x_476; +lean_object* x_471; lean_object* x_472; lean_object* x_473; +x_471 = lean_ctor_get(x_245, 0); +x_472 = lean_ctor_get(x_245, 1); +lean_inc(x_472); +lean_inc(x_471); +lean_dec(x_245); +x_473 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_473, 0, x_471); +lean_ctor_set(x_473, 1, x_472); +return x_473; } } } @@ -30059,60 +30116,58 @@ return x_476; } else { -uint8_t x_477; -lean_dec(x_21); -lean_dec(x_17); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -x_477 = !lean_is_exclusive(x_22); -if (x_477 == 0) -{ -return x_22; -} -else -{ -lean_object* x_478; lean_object* x_479; lean_object* x_480; -x_478 = lean_ctor_get(x_22, 0); -x_479 = lean_ctor_get(x_22, 1); -lean_inc(x_479); -lean_inc(x_478); -lean_dec(x_22); -x_480 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_480, 0, x_478); -lean_ctor_set(x_480, 1, x_479); -return x_480; -} -} -} -else -{ -uint8_t x_481; -lean_dec(x_17); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -x_481 = !lean_is_exclusive(x_18); -if (x_481 == 0) -{ -return x_18; -} -else -{ -lean_object* x_482; lean_object* x_483; lean_object* x_484; -x_482 = lean_ctor_get(x_18, 0); -x_483 = lean_ctor_get(x_18, 1); -lean_inc(x_483); -lean_inc(x_482); +uint8_t x_474; lean_dec(x_18); -x_484 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_484, 0, x_482); -lean_ctor_set(x_484, 1, x_483); -return x_484; +lean_dec(x_14); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_474 = !lean_is_exclusive(x_19); +if (x_474 == 0) +{ +return x_19; +} +else +{ +lean_object* x_475; lean_object* x_476; lean_object* x_477; +x_475 = lean_ctor_get(x_19, 0); +x_476 = lean_ctor_get(x_19, 1); +lean_inc(x_476); +lean_inc(x_475); +lean_dec(x_19); +x_477 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_477, 0, x_475); +lean_ctor_set(x_477, 1, x_476); +return x_477; +} +} +} +else +{ +uint8_t x_478; +lean_dec(x_14); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_478 = !lean_is_exclusive(x_15); +if (x_478 == 0) +{ +return x_15; +} +else +{ +lean_object* x_479; lean_object* x_480; lean_object* x_481; +x_479 = lean_ctor_get(x_15, 0); +x_480 = lean_ctor_get(x_15, 1); +lean_inc(x_480); +lean_inc(x_479); +lean_dec(x_15); +x_481 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_481, 0, x_479); +lean_ctor_set(x_481, 1, x_480); +return x_481; } } } @@ -30122,7 +30177,7 @@ lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTeles _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescopeReducing___spec__5___rarg___boxed), 9, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescopeReducing___spec__5___rarg___boxed), 8, 0); return x_2; } } @@ -30132,6 +30187,8 @@ _start: lean_object* x_10; if (lean_obj_tag(x_7) == 7) { +if (lean_obj_tag(x_3) == 0) +{ lean_object* x_23; lean_object* x_24; lean_object* x_25; uint64_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; x_23 = lean_ctor_get(x_7, 0); lean_inc(x_23); @@ -30155,14 +30212,8 @@ lean_dec(x_29); x_32 = (uint8_t)((x_26 << 24) >> 61); lean_inc(x_30); x_33 = lean_local_ctx_mk_local_decl(x_4, x_30, x_23, x_28, x_32); -lean_inc(x_30); x_34 = l_Lean_mkFVar(x_30); -lean_inc(x_5); x_35 = lean_array_push(x_5, x_34); -if (lean_obj_tag(x_3) == 0) -{ -lean_dec(x_30); -lean_dec(x_5); x_4 = x_33; x_5 = x_35; x_7 = x_25; @@ -30171,68 +30222,95 @@ goto _start; } else { -lean_object* x_37; lean_object* x_38; uint8_t x_39; -x_37 = lean_ctor_get(x_3, 0); +lean_object* x_37; lean_object* x_38; lean_object* x_39; uint64_t x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_37 = lean_ctor_get(x_7, 0); lean_inc(x_37); -x_38 = lean_array_get_size(x_35); -x_39 = lean_nat_dec_lt(x_38, x_37); -lean_dec(x_37); -lean_dec(x_38); -if (x_39 == 0) -{ -uint8_t x_40; -lean_dec(x_3); -x_40 = !lean_is_exclusive(x_8); -if (x_40 == 0) -{ -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_8, 1); +x_38 = lean_ctor_get(x_7, 1); +lean_inc(x_38); +x_39 = lean_ctor_get(x_7, 2); +lean_inc(x_39); +x_40 = lean_ctor_get_uint64(x_7, sizeof(void*)*3); +x_41 = lean_ctor_get(x_3, 0); +lean_inc(x_41); +x_42 = lean_array_get_size(x_5); +x_43 = lean_nat_dec_lt(x_42, x_41); lean_dec(x_41); -lean_ctor_set(x_8, 1, x_33); -lean_inc(x_6); -x_42 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescopeReducing___spec__5___rarg(x_1, x_5, x_6, x_25, x_30, x_35, x_6, x_8, x_31); -lean_dec(x_35); -lean_dec(x_25); -lean_dec(x_6); -return x_42; -} -else +if (x_43 == 0) { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_43 = lean_ctor_get(x_8, 0); -x_44 = lean_ctor_get(x_8, 2); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_8); -x_45 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_33); -lean_ctor_set(x_45, 2, x_44); +uint8_t x_44; +lean_dec(x_42); +lean_dec(x_39); +lean_dec(x_38); +lean_dec(x_37); +lean_dec(x_3); +x_44 = !lean_is_exclusive(x_8); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; +x_45 = lean_ctor_get(x_8, 1); +lean_dec(x_45); +lean_ctor_set(x_8, 1, x_4); lean_inc(x_6); -x_46 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescopeReducing___spec__5___rarg(x_1, x_5, x_6, x_25, x_30, x_35, x_6, x_45, x_31); -lean_dec(x_35); -lean_dec(x_25); +lean_inc(x_5); +x_46 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescopeReducing___spec__5___rarg(x_1, x_5, x_6, x_7, x_5, x_6, x_8, x_9); +lean_dec(x_7); lean_dec(x_6); +lean_dec(x_5); return x_46; } +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_47 = lean_ctor_get(x_8, 0); +x_48 = lean_ctor_get(x_8, 2); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_8); +x_49 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_4); +lean_ctor_set(x_49, 2, x_48); +lean_inc(x_6); +lean_inc(x_5); +x_50 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescopeReducing___spec__5___rarg(x_1, x_5, x_6, x_7, x_5, x_6, x_49, x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_50; +} } else { -lean_dec(x_30); -lean_dec(x_5); -x_4 = x_33; -x_5 = x_35; -x_7 = x_25; -x_9 = x_31; +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +lean_dec(x_7); +lean_inc(x_5); +x_51 = lean_expr_instantiate_rev_range(x_38, x_6, x_42, x_5); +lean_dec(x_42); +lean_dec(x_38); +x_52 = l_Lean_Meta_mkFreshId___rarg(x_9); +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); +x_55 = (uint8_t)((x_40 << 24) >> 61); +lean_inc(x_53); +x_56 = lean_local_ctx_mk_local_decl(x_4, x_53, x_37, x_51, x_55); +x_57 = l_Lean_mkFVar(x_53); +x_58 = lean_array_push(x_5, x_57); +x_4 = x_56; +x_5 = x_58; +x_7 = x_39; +x_9 = x_54; goto _start; } } } else { -lean_object* x_48; -x_48 = lean_box(0); -x_10 = x_48; +lean_object* x_60; +x_60 = lean_box(0); +x_10 = x_60; goto block_22; } block_22: @@ -30453,15 +30531,15 @@ lean_dec(x_6); return x_15; } } -lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescopeReducing___spec__5___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescopeReducing___spec__5___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -lean_object* x_10; -x_10 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescopeReducing___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_6); +lean_object* x_9; +x_9 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescopeReducing___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_10; +return x_9; } } lean_object* l___private_Init_Lean_Meta_Basic_5__forallTelescopeReducingAuxAux___main___at_Lean_Meta_forallTelescopeReducing___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { @@ -34789,2071 +34867,2063 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withNewLocalInstances___main___at_L return x_2; } } -lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallBoundedTelescope___spec__5___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallBoundedTelescope___spec__5___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -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_inc(x_5); -x_10 = l_Lean_mkFVar(x_5); +lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_9 = lean_array_get_size(x_2); lean_inc(x_2); -x_11 = lean_array_push(x_2, x_10); -x_12 = lean_array_get_size(x_11); -lean_inc(x_11); -x_13 = lean_expr_instantiate_rev_range(x_4, x_3, x_12, x_11); -lean_dec(x_12); -x_14 = lean_array_get_size(x_6); -x_15 = lean_nat_dec_lt(x_7, x_14); -lean_dec(x_14); -if (x_15 == 0) +x_10 = lean_expr_instantiate_rev_range(x_4, x_3, x_9, x_2); +lean_dec(x_9); +x_11 = lean_array_get_size(x_5); +x_12 = lean_nat_dec_lt(x_6, x_11); +lean_dec(x_11); +if (x_12 == 0) { -lean_object* x_16; -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_2); -x_16 = lean_apply_4(x_1, x_11, x_13, x_8, x_9); -return x_16; +lean_object* x_13; +lean_dec(x_6); +x_13 = lean_apply_4(x_1, x_2, x_10, x_7, x_8); +return x_13; } else { -lean_object* x_17; lean_object* x_18; -lean_dec(x_13); -lean_dec(x_11); -x_17 = lean_array_fget(x_6, x_7); -lean_inc(x_8); -x_18 = l_Lean_Meta_getFVarLocalDecl(x_17, x_8, x_9); -if (lean_obj_tag(x_18) == 0) +lean_object* x_14; lean_object* x_15; +lean_dec(x_10); +x_14 = lean_array_fget(x_5, x_6); +lean_inc(x_7); +x_15 = l_Lean_Meta_getFVarLocalDecl(x_14, x_7, x_8); +if (lean_obj_tag(x_15) == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +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 = l_Lean_LocalDecl_type(x_16); +lean_dec(x_16); +lean_inc(x_7); +lean_inc(x_18); +x_19 = l_Lean_Meta_isClassQuick___main(x_18, x_7, x_17); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; +x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); -lean_dec(x_18); -x_21 = l_Lean_LocalDecl_type(x_19); -lean_dec(x_19); -lean_inc(x_8); -lean_inc(x_21); -x_22 = l_Lean_Meta_isClassQuick___main(x_21, x_8, x_20); -if (lean_obj_tag(x_22) == 0) -{ -lean_object* x_23; -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -switch (lean_obj_tag(x_23)) { +switch (lean_obj_tag(x_20)) { case 0: { -lean_object* x_24; lean_object* x_25; lean_object* x_26; -lean_dec(x_21); -lean_dec(x_17); -x_24 = lean_ctor_get(x_22, 1); -lean_inc(x_24); -lean_dec(x_22); -x_25 = lean_unsigned_to_nat(1u); -x_26 = lean_nat_add(x_7, x_25); -lean_dec(x_7); -x_7 = x_26; -x_9 = x_24; +lean_object* x_21; lean_object* x_22; lean_object* x_23; +lean_dec(x_18); +lean_dec(x_14); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = lean_unsigned_to_nat(1u); +x_23 = lean_nat_add(x_6, x_22); +lean_dec(x_6); +x_6 = x_23; +x_8 = x_21; goto _start; } case 1: { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; -lean_dec(x_21); -x_28 = lean_ctor_get(x_22, 1); -lean_inc(x_28); -lean_dec(x_22); -x_29 = lean_ctor_get(x_23, 0); -lean_inc(x_29); -lean_dec(x_23); -x_30 = lean_unsigned_to_nat(1u); -x_31 = lean_nat_add(x_7, x_30); -lean_dec(x_7); -x_32 = !lean_is_exclusive(x_28); -if (x_32 == 0) +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; +lean_dec(x_18); +x_25 = lean_ctor_get(x_19, 1); +lean_inc(x_25); +lean_dec(x_19); +x_26 = lean_ctor_get(x_20, 0); +lean_inc(x_26); +lean_dec(x_20); +x_27 = lean_unsigned_to_nat(1u); +x_28 = lean_nat_add(x_6, x_27); +lean_dec(x_6); +x_29 = !lean_is_exclusive(x_25); +if (x_29 == 0) { -lean_object* x_33; uint8_t x_34; -x_33 = lean_ctor_get(x_28, 2); -x_34 = !lean_is_exclusive(x_33); +lean_object* x_30; uint8_t x_31; +x_30 = lean_ctor_get(x_25, 2); +x_31 = !lean_is_exclusive(x_30); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_32 = lean_ctor_get(x_30, 2); +x_33 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +lean_ctor_set(x_30, 2, x_33); +x_34 = !lean_is_exclusive(x_7); if (x_34 == 0) { -lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_35 = lean_ctor_get(x_33, 2); -x_36 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; -lean_ctor_set(x_33, 2, x_36); -x_37 = !lean_is_exclusive(x_8); -if (x_37 == 0) +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_35 = lean_ctor_get(x_7, 2); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_26); +lean_ctor_set(x_36, 1, x_14); +x_37 = lean_array_push(x_35, x_36); +lean_ctor_set(x_7, 2, x_37); +x_38 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallBoundedTelescope___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_28, x_7, x_25); +if (lean_obj_tag(x_38) == 0) { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_38 = lean_ctor_get(x_8, 2); -x_39 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_39, 0, x_29); -lean_ctor_set(x_39, 1, x_17); -x_40 = lean_array_push(x_38, x_39); -lean_ctor_set(x_8, 2, x_40); -x_41 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallBoundedTelescope___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_31, x_8, x_28); -if (lean_obj_tag(x_41) == 0) +lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +x_40 = lean_ctor_get(x_39, 2); +lean_inc(x_40); +x_41 = !lean_is_exclusive(x_38); +if (x_41 == 0) { -lean_object* x_42; lean_object* x_43; uint8_t x_44; -x_42 = lean_ctor_get(x_41, 1); -lean_inc(x_42); -x_43 = lean_ctor_get(x_42, 2); -lean_inc(x_43); -x_44 = !lean_is_exclusive(x_41); -if (x_44 == 0) +lean_object* x_42; uint8_t x_43; +x_42 = lean_ctor_get(x_38, 1); +lean_dec(x_42); +x_43 = !lean_is_exclusive(x_39); +if (x_43 == 0) { -lean_object* x_45; uint8_t x_46; -x_45 = lean_ctor_get(x_41, 1); -lean_dec(x_45); -x_46 = !lean_is_exclusive(x_42); -if (x_46 == 0) +lean_object* x_44; uint8_t x_45; +x_44 = lean_ctor_get(x_39, 2); +lean_dec(x_44); +x_45 = !lean_is_exclusive(x_40); +if (x_45 == 0) { -lean_object* x_47; uint8_t x_48; -x_47 = lean_ctor_get(x_42, 2); -lean_dec(x_47); -x_48 = !lean_is_exclusive(x_43); -if (x_48 == 0) -{ -lean_object* x_49; -x_49 = lean_ctor_get(x_43, 2); -lean_dec(x_49); -lean_ctor_set(x_43, 2, x_35); -return x_41; +lean_object* x_46; +x_46 = lean_ctor_get(x_40, 2); +lean_dec(x_46); +lean_ctor_set(x_40, 2, x_32); +return x_38; } else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_43, 0); -x_51 = lean_ctor_get(x_43, 1); -lean_inc(x_51); -lean_inc(x_50); -lean_dec(x_43); -x_52 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -lean_ctor_set(x_52, 2, x_35); -lean_ctor_set(x_42, 2, x_52); -return x_41; +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_40, 0); +x_48 = lean_ctor_get(x_40, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_40); +x_49 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +lean_ctor_set(x_49, 2, x_32); +lean_ctor_set(x_39, 2, x_49); +return x_38; } } else { -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_53 = lean_ctor_get(x_42, 0); -x_54 = lean_ctor_get(x_42, 1); -x_55 = lean_ctor_get(x_42, 3); -x_56 = lean_ctor_get(x_42, 4); -x_57 = lean_ctor_get(x_42, 5); -lean_inc(x_57); -lean_inc(x_56); -lean_inc(x_55); +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; +x_50 = lean_ctor_get(x_39, 0); +x_51 = lean_ctor_get(x_39, 1); +x_52 = lean_ctor_get(x_39, 3); +x_53 = lean_ctor_get(x_39, 4); +x_54 = lean_ctor_get(x_39, 5); lean_inc(x_54); lean_inc(x_53); -lean_dec(x_42); -x_58 = lean_ctor_get(x_43, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_43, 1); -lean_inc(x_59); -if (lean_is_exclusive(x_43)) { - lean_ctor_release(x_43, 0); - lean_ctor_release(x_43, 1); - lean_ctor_release(x_43, 2); - x_60 = x_43; +lean_inc(x_52); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_39); +x_55 = lean_ctor_get(x_40, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_40, 1); +lean_inc(x_56); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + lean_ctor_release(x_40, 2); + x_57 = x_40; } else { - lean_dec_ref(x_43); - x_60 = lean_box(0); + lean_dec_ref(x_40); + x_57 = lean_box(0); } -if (lean_is_scalar(x_60)) { - x_61 = lean_alloc_ctor(0, 3, 0); +if (lean_is_scalar(x_57)) { + x_58 = lean_alloc_ctor(0, 3, 0); } else { - x_61 = x_60; + x_58 = x_57; } -lean_ctor_set(x_61, 0, x_58); -lean_ctor_set(x_61, 1, x_59); -lean_ctor_set(x_61, 2, x_35); -x_62 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_62, 0, x_53); -lean_ctor_set(x_62, 1, x_54); -lean_ctor_set(x_62, 2, x_61); -lean_ctor_set(x_62, 3, x_55); -lean_ctor_set(x_62, 4, x_56); -lean_ctor_set(x_62, 5, x_57); -lean_ctor_set(x_41, 1, x_62); -return x_41; +lean_ctor_set(x_58, 0, x_55); +lean_ctor_set(x_58, 1, x_56); +lean_ctor_set(x_58, 2, x_32); +x_59 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_59, 0, x_50); +lean_ctor_set(x_59, 1, x_51); +lean_ctor_set(x_59, 2, x_58); +lean_ctor_set(x_59, 3, x_52); +lean_ctor_set(x_59, 4, x_53); +lean_ctor_set(x_59, 5, x_54); +lean_ctor_set(x_38, 1, x_59); +return x_38; } } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_63 = lean_ctor_get(x_41, 0); +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_60 = lean_ctor_get(x_38, 0); +lean_inc(x_60); +lean_dec(x_38); +x_61 = lean_ctor_get(x_39, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_39, 1); +lean_inc(x_62); +x_63 = lean_ctor_get(x_39, 3); lean_inc(x_63); -lean_dec(x_41); -x_64 = lean_ctor_get(x_42, 0); +x_64 = lean_ctor_get(x_39, 4); lean_inc(x_64); -x_65 = lean_ctor_get(x_42, 1); +x_65 = lean_ctor_get(x_39, 5); lean_inc(x_65); -x_66 = lean_ctor_get(x_42, 3); -lean_inc(x_66); -x_67 = lean_ctor_get(x_42, 4); -lean_inc(x_67); -x_68 = lean_ctor_get(x_42, 5); -lean_inc(x_68); -if (lean_is_exclusive(x_42)) { - lean_ctor_release(x_42, 0); - lean_ctor_release(x_42, 1); - lean_ctor_release(x_42, 2); - lean_ctor_release(x_42, 3); - lean_ctor_release(x_42, 4); - lean_ctor_release(x_42, 5); - x_69 = x_42; +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + lean_ctor_release(x_39, 2); + lean_ctor_release(x_39, 3); + lean_ctor_release(x_39, 4); + lean_ctor_release(x_39, 5); + x_66 = x_39; } else { - lean_dec_ref(x_42); + lean_dec_ref(x_39); + x_66 = lean_box(0); +} +x_67 = lean_ctor_get(x_40, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_40, 1); +lean_inc(x_68); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + lean_ctor_release(x_40, 2); + x_69 = x_40; +} else { + lean_dec_ref(x_40); x_69 = lean_box(0); } -x_70 = lean_ctor_get(x_43, 0); -lean_inc(x_70); -x_71 = lean_ctor_get(x_43, 1); -lean_inc(x_71); -if (lean_is_exclusive(x_43)) { - lean_ctor_release(x_43, 0); - lean_ctor_release(x_43, 1); - lean_ctor_release(x_43, 2); - x_72 = x_43; -} else { - lean_dec_ref(x_43); - x_72 = lean_box(0); -} -if (lean_is_scalar(x_72)) { - x_73 = lean_alloc_ctor(0, 3, 0); -} else { - x_73 = x_72; -} -lean_ctor_set(x_73, 0, x_70); -lean_ctor_set(x_73, 1, x_71); -lean_ctor_set(x_73, 2, x_35); if (lean_is_scalar(x_69)) { - x_74 = lean_alloc_ctor(0, 6, 0); + x_70 = lean_alloc_ctor(0, 3, 0); } else { - x_74 = x_69; + x_70 = x_69; } -lean_ctor_set(x_74, 0, x_64); -lean_ctor_set(x_74, 1, x_65); -lean_ctor_set(x_74, 2, x_73); -lean_ctor_set(x_74, 3, x_66); -lean_ctor_set(x_74, 4, x_67); -lean_ctor_set(x_74, 5, x_68); -x_75 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_75, 0, x_63); -lean_ctor_set(x_75, 1, x_74); -return x_75; +lean_ctor_set(x_70, 0, x_67); +lean_ctor_set(x_70, 1, x_68); +lean_ctor_set(x_70, 2, x_32); +if (lean_is_scalar(x_66)) { + x_71 = lean_alloc_ctor(0, 6, 0); +} else { + x_71 = x_66; +} +lean_ctor_set(x_71, 0, x_61); +lean_ctor_set(x_71, 1, x_62); +lean_ctor_set(x_71, 2, x_70); +lean_ctor_set(x_71, 3, x_63); +lean_ctor_set(x_71, 4, x_64); +lean_ctor_set(x_71, 5, x_65); +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_60); +lean_ctor_set(x_72, 1, x_71); +return x_72; } } else { -lean_object* x_76; lean_object* x_77; uint8_t x_78; -x_76 = lean_ctor_get(x_41, 1); -lean_inc(x_76); -x_77 = lean_ctor_get(x_76, 2); -lean_inc(x_77); -x_78 = !lean_is_exclusive(x_41); -if (x_78 == 0) +lean_object* x_73; lean_object* x_74; uint8_t x_75; +x_73 = lean_ctor_get(x_38, 1); +lean_inc(x_73); +x_74 = lean_ctor_get(x_73, 2); +lean_inc(x_74); +x_75 = !lean_is_exclusive(x_38); +if (x_75 == 0) { -lean_object* x_79; uint8_t x_80; -x_79 = lean_ctor_get(x_41, 1); -lean_dec(x_79); -x_80 = !lean_is_exclusive(x_76); -if (x_80 == 0) +lean_object* x_76; uint8_t x_77; +x_76 = lean_ctor_get(x_38, 1); +lean_dec(x_76); +x_77 = !lean_is_exclusive(x_73); +if (x_77 == 0) { -lean_object* x_81; uint8_t x_82; -x_81 = lean_ctor_get(x_76, 2); -lean_dec(x_81); -x_82 = !lean_is_exclusive(x_77); -if (x_82 == 0) +lean_object* x_78; uint8_t x_79; +x_78 = lean_ctor_get(x_73, 2); +lean_dec(x_78); +x_79 = !lean_is_exclusive(x_74); +if (x_79 == 0) { -lean_object* x_83; -x_83 = lean_ctor_get(x_77, 2); -lean_dec(x_83); -lean_ctor_set(x_77, 2, x_35); -return x_41; +lean_object* x_80; +x_80 = lean_ctor_get(x_74, 2); +lean_dec(x_80); +lean_ctor_set(x_74, 2, x_32); +return x_38; } else { -lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_84 = lean_ctor_get(x_77, 0); -x_85 = lean_ctor_get(x_77, 1); -lean_inc(x_85); -lean_inc(x_84); -lean_dec(x_77); -x_86 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_86, 0, x_84); -lean_ctor_set(x_86, 1, x_85); -lean_ctor_set(x_86, 2, x_35); -lean_ctor_set(x_76, 2, x_86); -return x_41; +lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_81 = lean_ctor_get(x_74, 0); +x_82 = lean_ctor_get(x_74, 1); +lean_inc(x_82); +lean_inc(x_81); +lean_dec(x_74); +x_83 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_83, 0, x_81); +lean_ctor_set(x_83, 1, x_82); +lean_ctor_set(x_83, 2, x_32); +lean_ctor_set(x_73, 2, x_83); +return x_38; } } else { -lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_87 = lean_ctor_get(x_76, 0); -x_88 = lean_ctor_get(x_76, 1); -x_89 = lean_ctor_get(x_76, 3); -x_90 = lean_ctor_get(x_76, 4); -x_91 = lean_ctor_get(x_76, 5); -lean_inc(x_91); -lean_inc(x_90); -lean_inc(x_89); +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; +x_84 = lean_ctor_get(x_73, 0); +x_85 = lean_ctor_get(x_73, 1); +x_86 = lean_ctor_get(x_73, 3); +x_87 = lean_ctor_get(x_73, 4); +x_88 = lean_ctor_get(x_73, 5); lean_inc(x_88); lean_inc(x_87); -lean_dec(x_76); -x_92 = lean_ctor_get(x_77, 0); -lean_inc(x_92); -x_93 = lean_ctor_get(x_77, 1); -lean_inc(x_93); -if (lean_is_exclusive(x_77)) { - lean_ctor_release(x_77, 0); - lean_ctor_release(x_77, 1); - lean_ctor_release(x_77, 2); - x_94 = x_77; +lean_inc(x_86); +lean_inc(x_85); +lean_inc(x_84); +lean_dec(x_73); +x_89 = lean_ctor_get(x_74, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_74, 1); +lean_inc(x_90); +if (lean_is_exclusive(x_74)) { + lean_ctor_release(x_74, 0); + lean_ctor_release(x_74, 1); + lean_ctor_release(x_74, 2); + x_91 = x_74; } else { - lean_dec_ref(x_77); - x_94 = lean_box(0); + lean_dec_ref(x_74); + x_91 = lean_box(0); } -if (lean_is_scalar(x_94)) { - x_95 = lean_alloc_ctor(0, 3, 0); +if (lean_is_scalar(x_91)) { + x_92 = lean_alloc_ctor(0, 3, 0); } else { - x_95 = x_94; + x_92 = x_91; } -lean_ctor_set(x_95, 0, x_92); -lean_ctor_set(x_95, 1, x_93); -lean_ctor_set(x_95, 2, x_35); -x_96 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_96, 0, x_87); -lean_ctor_set(x_96, 1, x_88); -lean_ctor_set(x_96, 2, x_95); -lean_ctor_set(x_96, 3, x_89); -lean_ctor_set(x_96, 4, x_90); -lean_ctor_set(x_96, 5, x_91); -lean_ctor_set(x_41, 1, x_96); -return x_41; +lean_ctor_set(x_92, 0, x_89); +lean_ctor_set(x_92, 1, x_90); +lean_ctor_set(x_92, 2, x_32); +x_93 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_93, 0, x_84); +lean_ctor_set(x_93, 1, x_85); +lean_ctor_set(x_93, 2, x_92); +lean_ctor_set(x_93, 3, x_86); +lean_ctor_set(x_93, 4, x_87); +lean_ctor_set(x_93, 5, x_88); +lean_ctor_set(x_38, 1, x_93); +return x_38; } } else { -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; -x_97 = lean_ctor_get(x_41, 0); +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; +x_94 = lean_ctor_get(x_38, 0); +lean_inc(x_94); +lean_dec(x_38); +x_95 = lean_ctor_get(x_73, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_73, 1); +lean_inc(x_96); +x_97 = lean_ctor_get(x_73, 3); lean_inc(x_97); -lean_dec(x_41); -x_98 = lean_ctor_get(x_76, 0); +x_98 = lean_ctor_get(x_73, 4); lean_inc(x_98); -x_99 = lean_ctor_get(x_76, 1); +x_99 = lean_ctor_get(x_73, 5); lean_inc(x_99); -x_100 = lean_ctor_get(x_76, 3); -lean_inc(x_100); -x_101 = lean_ctor_get(x_76, 4); -lean_inc(x_101); -x_102 = lean_ctor_get(x_76, 5); -lean_inc(x_102); -if (lean_is_exclusive(x_76)) { - lean_ctor_release(x_76, 0); - lean_ctor_release(x_76, 1); - lean_ctor_release(x_76, 2); - lean_ctor_release(x_76, 3); - lean_ctor_release(x_76, 4); - lean_ctor_release(x_76, 5); - x_103 = x_76; +if (lean_is_exclusive(x_73)) { + lean_ctor_release(x_73, 0); + lean_ctor_release(x_73, 1); + lean_ctor_release(x_73, 2); + lean_ctor_release(x_73, 3); + lean_ctor_release(x_73, 4); + lean_ctor_release(x_73, 5); + x_100 = x_73; } else { - lean_dec_ref(x_76); + lean_dec_ref(x_73); + x_100 = lean_box(0); +} +x_101 = lean_ctor_get(x_74, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_74, 1); +lean_inc(x_102); +if (lean_is_exclusive(x_74)) { + lean_ctor_release(x_74, 0); + lean_ctor_release(x_74, 1); + lean_ctor_release(x_74, 2); + x_103 = x_74; +} else { + lean_dec_ref(x_74); x_103 = lean_box(0); } -x_104 = lean_ctor_get(x_77, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_77, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_77)) { - lean_ctor_release(x_77, 0); - lean_ctor_release(x_77, 1); - lean_ctor_release(x_77, 2); - x_106 = x_77; -} else { - lean_dec_ref(x_77); - x_106 = lean_box(0); -} -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(0, 3, 0); -} else { - x_107 = x_106; -} -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_105); -lean_ctor_set(x_107, 2, x_35); if (lean_is_scalar(x_103)) { - x_108 = lean_alloc_ctor(0, 6, 0); + x_104 = lean_alloc_ctor(0, 3, 0); } else { - x_108 = x_103; + x_104 = x_103; } -lean_ctor_set(x_108, 0, x_98); -lean_ctor_set(x_108, 1, x_99); -lean_ctor_set(x_108, 2, x_107); -lean_ctor_set(x_108, 3, x_100); -lean_ctor_set(x_108, 4, x_101); -lean_ctor_set(x_108, 5, x_102); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_97); -lean_ctor_set(x_109, 1, x_108); -return x_109; +lean_ctor_set(x_104, 0, x_101); +lean_ctor_set(x_104, 1, x_102); +lean_ctor_set(x_104, 2, x_32); +if (lean_is_scalar(x_100)) { + x_105 = lean_alloc_ctor(0, 6, 0); +} else { + x_105 = x_100; +} +lean_ctor_set(x_105, 0, x_95); +lean_ctor_set(x_105, 1, x_96); +lean_ctor_set(x_105, 2, x_104); +lean_ctor_set(x_105, 3, x_97); +lean_ctor_set(x_105, 4, x_98); +lean_ctor_set(x_105, 5, x_99); +x_106 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_106, 0, x_94); +lean_ctor_set(x_106, 1, x_105); +return x_106; } } } else { -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; -x_110 = lean_ctor_get(x_8, 0); -x_111 = lean_ctor_get(x_8, 1); -x_112 = lean_ctor_get(x_8, 2); -lean_inc(x_112); -lean_inc(x_111); -lean_inc(x_110); -lean_dec(x_8); -x_113 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_113, 0, x_29); -lean_ctor_set(x_113, 1, x_17); -x_114 = lean_array_push(x_112, x_113); -x_115 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_115, 0, x_110); -lean_ctor_set(x_115, 1, x_111); -lean_ctor_set(x_115, 2, x_114); -x_116 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallBoundedTelescope___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_31, x_115, x_28); -if (lean_obj_tag(x_116) == 0) +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; +x_107 = lean_ctor_get(x_7, 0); +x_108 = lean_ctor_get(x_7, 1); +x_109 = lean_ctor_get(x_7, 2); +lean_inc(x_109); +lean_inc(x_108); +lean_inc(x_107); +lean_dec(x_7); +x_110 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_110, 0, x_26); +lean_ctor_set(x_110, 1, x_14); +x_111 = lean_array_push(x_109, x_110); +x_112 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_112, 0, x_107); +lean_ctor_set(x_112, 1, x_108); +lean_ctor_set(x_112, 2, x_111); +x_113 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallBoundedTelescope___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_28, x_112, x_25); +if (lean_obj_tag(x_113) == 0) { -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; -x_117 = lean_ctor_get(x_116, 1); -lean_inc(x_117); -x_118 = lean_ctor_get(x_117, 2); -lean_inc(x_118); -x_119 = lean_ctor_get(x_116, 0); -lean_inc(x_119); -if (lean_is_exclusive(x_116)) { - lean_ctor_release(x_116, 0); - lean_ctor_release(x_116, 1); - x_120 = x_116; +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; +x_114 = lean_ctor_get(x_113, 1); +lean_inc(x_114); +x_115 = lean_ctor_get(x_114, 2); +lean_inc(x_115); +x_116 = lean_ctor_get(x_113, 0); +lean_inc(x_116); +if (lean_is_exclusive(x_113)) { + lean_ctor_release(x_113, 0); + lean_ctor_release(x_113, 1); + x_117 = x_113; } else { - lean_dec_ref(x_116); - x_120 = lean_box(0); + lean_dec_ref(x_113); + x_117 = lean_box(0); } -x_121 = lean_ctor_get(x_117, 0); +x_118 = lean_ctor_get(x_114, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_114, 1); +lean_inc(x_119); +x_120 = lean_ctor_get(x_114, 3); +lean_inc(x_120); +x_121 = lean_ctor_get(x_114, 4); lean_inc(x_121); -x_122 = lean_ctor_get(x_117, 1); +x_122 = lean_ctor_get(x_114, 5); lean_inc(x_122); -x_123 = lean_ctor_get(x_117, 3); -lean_inc(x_123); -x_124 = lean_ctor_get(x_117, 4); -lean_inc(x_124); -x_125 = lean_ctor_get(x_117, 5); -lean_inc(x_125); -if (lean_is_exclusive(x_117)) { - lean_ctor_release(x_117, 0); - lean_ctor_release(x_117, 1); - lean_ctor_release(x_117, 2); - lean_ctor_release(x_117, 3); - lean_ctor_release(x_117, 4); - lean_ctor_release(x_117, 5); - x_126 = x_117; +if (lean_is_exclusive(x_114)) { + lean_ctor_release(x_114, 0); + lean_ctor_release(x_114, 1); + lean_ctor_release(x_114, 2); + lean_ctor_release(x_114, 3); + lean_ctor_release(x_114, 4); + lean_ctor_release(x_114, 5); + x_123 = x_114; } else { - lean_dec_ref(x_117); + lean_dec_ref(x_114); + x_123 = lean_box(0); +} +x_124 = lean_ctor_get(x_115, 0); +lean_inc(x_124); +x_125 = lean_ctor_get(x_115, 1); +lean_inc(x_125); +if (lean_is_exclusive(x_115)) { + lean_ctor_release(x_115, 0); + lean_ctor_release(x_115, 1); + lean_ctor_release(x_115, 2); + x_126 = x_115; +} else { + lean_dec_ref(x_115); x_126 = lean_box(0); } -x_127 = lean_ctor_get(x_118, 0); -lean_inc(x_127); -x_128 = lean_ctor_get(x_118, 1); -lean_inc(x_128); -if (lean_is_exclusive(x_118)) { - lean_ctor_release(x_118, 0); - lean_ctor_release(x_118, 1); - lean_ctor_release(x_118, 2); - x_129 = x_118; -} else { - lean_dec_ref(x_118); - x_129 = lean_box(0); -} -if (lean_is_scalar(x_129)) { - x_130 = lean_alloc_ctor(0, 3, 0); -} else { - x_130 = x_129; -} -lean_ctor_set(x_130, 0, x_127); -lean_ctor_set(x_130, 1, x_128); -lean_ctor_set(x_130, 2, x_35); if (lean_is_scalar(x_126)) { - x_131 = lean_alloc_ctor(0, 6, 0); + x_127 = lean_alloc_ctor(0, 3, 0); } else { - x_131 = x_126; + x_127 = x_126; } -lean_ctor_set(x_131, 0, x_121); -lean_ctor_set(x_131, 1, x_122); -lean_ctor_set(x_131, 2, x_130); -lean_ctor_set(x_131, 3, x_123); -lean_ctor_set(x_131, 4, x_124); -lean_ctor_set(x_131, 5, x_125); -if (lean_is_scalar(x_120)) { - x_132 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_127, 0, x_124); +lean_ctor_set(x_127, 1, x_125); +lean_ctor_set(x_127, 2, x_32); +if (lean_is_scalar(x_123)) { + x_128 = lean_alloc_ctor(0, 6, 0); } else { - x_132 = x_120; + x_128 = x_123; } -lean_ctor_set(x_132, 0, x_119); -lean_ctor_set(x_132, 1, x_131); -return x_132; +lean_ctor_set(x_128, 0, x_118); +lean_ctor_set(x_128, 1, x_119); +lean_ctor_set(x_128, 2, x_127); +lean_ctor_set(x_128, 3, x_120); +lean_ctor_set(x_128, 4, x_121); +lean_ctor_set(x_128, 5, x_122); +if (lean_is_scalar(x_117)) { + x_129 = lean_alloc_ctor(0, 2, 0); +} else { + x_129 = x_117; +} +lean_ctor_set(x_129, 0, x_116); +lean_ctor_set(x_129, 1, x_128); +return x_129; } else { -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; lean_object* x_146; lean_object* x_147; lean_object* x_148; -x_133 = lean_ctor_get(x_116, 1); -lean_inc(x_133); -x_134 = lean_ctor_get(x_133, 2); -lean_inc(x_134); -x_135 = lean_ctor_get(x_116, 0); -lean_inc(x_135); -if (lean_is_exclusive(x_116)) { - lean_ctor_release(x_116, 0); - lean_ctor_release(x_116, 1); - x_136 = x_116; +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_130 = lean_ctor_get(x_113, 1); +lean_inc(x_130); +x_131 = lean_ctor_get(x_130, 2); +lean_inc(x_131); +x_132 = lean_ctor_get(x_113, 0); +lean_inc(x_132); +if (lean_is_exclusive(x_113)) { + lean_ctor_release(x_113, 0); + lean_ctor_release(x_113, 1); + x_133 = x_113; } else { - lean_dec_ref(x_116); - x_136 = lean_box(0); + lean_dec_ref(x_113); + x_133 = lean_box(0); } -x_137 = lean_ctor_get(x_133, 0); +x_134 = lean_ctor_get(x_130, 0); +lean_inc(x_134); +x_135 = lean_ctor_get(x_130, 1); +lean_inc(x_135); +x_136 = lean_ctor_get(x_130, 3); +lean_inc(x_136); +x_137 = lean_ctor_get(x_130, 4); lean_inc(x_137); -x_138 = lean_ctor_get(x_133, 1); +x_138 = lean_ctor_get(x_130, 5); lean_inc(x_138); -x_139 = lean_ctor_get(x_133, 3); -lean_inc(x_139); -x_140 = lean_ctor_get(x_133, 4); -lean_inc(x_140); -x_141 = lean_ctor_get(x_133, 5); -lean_inc(x_141); -if (lean_is_exclusive(x_133)) { - lean_ctor_release(x_133, 0); - lean_ctor_release(x_133, 1); - lean_ctor_release(x_133, 2); - lean_ctor_release(x_133, 3); - lean_ctor_release(x_133, 4); - lean_ctor_release(x_133, 5); - x_142 = x_133; +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + lean_ctor_release(x_130, 2); + lean_ctor_release(x_130, 3); + lean_ctor_release(x_130, 4); + lean_ctor_release(x_130, 5); + x_139 = x_130; } else { - lean_dec_ref(x_133); + lean_dec_ref(x_130); + x_139 = lean_box(0); +} +x_140 = lean_ctor_get(x_131, 0); +lean_inc(x_140); +x_141 = lean_ctor_get(x_131, 1); +lean_inc(x_141); +if (lean_is_exclusive(x_131)) { + lean_ctor_release(x_131, 0); + lean_ctor_release(x_131, 1); + lean_ctor_release(x_131, 2); + x_142 = x_131; +} else { + lean_dec_ref(x_131); x_142 = lean_box(0); } -x_143 = lean_ctor_get(x_134, 0); -lean_inc(x_143); -x_144 = lean_ctor_get(x_134, 1); -lean_inc(x_144); -if (lean_is_exclusive(x_134)) { - lean_ctor_release(x_134, 0); - lean_ctor_release(x_134, 1); - lean_ctor_release(x_134, 2); - x_145 = x_134; -} else { - lean_dec_ref(x_134); - x_145 = lean_box(0); -} -if (lean_is_scalar(x_145)) { - x_146 = lean_alloc_ctor(0, 3, 0); -} else { - x_146 = x_145; -} -lean_ctor_set(x_146, 0, x_143); -lean_ctor_set(x_146, 1, x_144); -lean_ctor_set(x_146, 2, x_35); if (lean_is_scalar(x_142)) { - x_147 = lean_alloc_ctor(0, 6, 0); + x_143 = lean_alloc_ctor(0, 3, 0); } else { - x_147 = x_142; + x_143 = x_142; } -lean_ctor_set(x_147, 0, x_137); -lean_ctor_set(x_147, 1, x_138); -lean_ctor_set(x_147, 2, x_146); -lean_ctor_set(x_147, 3, x_139); -lean_ctor_set(x_147, 4, x_140); -lean_ctor_set(x_147, 5, x_141); -if (lean_is_scalar(x_136)) { - x_148 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_143, 0, x_140); +lean_ctor_set(x_143, 1, x_141); +lean_ctor_set(x_143, 2, x_32); +if (lean_is_scalar(x_139)) { + x_144 = lean_alloc_ctor(0, 6, 0); } else { - x_148 = x_136; + x_144 = x_139; } -lean_ctor_set(x_148, 0, x_135); -lean_ctor_set(x_148, 1, x_147); -return x_148; +lean_ctor_set(x_144, 0, x_134); +lean_ctor_set(x_144, 1, x_135); +lean_ctor_set(x_144, 2, x_143); +lean_ctor_set(x_144, 3, x_136); +lean_ctor_set(x_144, 4, x_137); +lean_ctor_set(x_144, 5, x_138); +if (lean_is_scalar(x_133)) { + x_145 = lean_alloc_ctor(1, 2, 0); +} else { + x_145 = x_133; +} +lean_ctor_set(x_145, 0, x_132); +lean_ctor_set(x_145, 1, x_144); +return x_145; } } } else { -lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; -x_149 = lean_ctor_get(x_33, 0); -x_150 = lean_ctor_get(x_33, 1); -x_151 = lean_ctor_get(x_33, 2); +lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; +x_146 = lean_ctor_get(x_30, 0); +x_147 = lean_ctor_get(x_30, 1); +x_148 = lean_ctor_get(x_30, 2); +lean_inc(x_148); +lean_inc(x_147); +lean_inc(x_146); +lean_dec(x_30); +x_149 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +x_150 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_150, 0, x_146); +lean_ctor_set(x_150, 1, x_147); +lean_ctor_set(x_150, 2, x_149); +lean_ctor_set(x_25, 2, x_150); +x_151 = lean_ctor_get(x_7, 0); lean_inc(x_151); -lean_inc(x_150); -lean_inc(x_149); -lean_dec(x_33); -x_152 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; -x_153 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_153, 0, x_149); -lean_ctor_set(x_153, 1, x_150); -lean_ctor_set(x_153, 2, x_152); -lean_ctor_set(x_28, 2, x_153); -x_154 = lean_ctor_get(x_8, 0); -lean_inc(x_154); -x_155 = lean_ctor_get(x_8, 1); -lean_inc(x_155); -x_156 = lean_ctor_get(x_8, 2); -lean_inc(x_156); -if (lean_is_exclusive(x_8)) { - lean_ctor_release(x_8, 0); - lean_ctor_release(x_8, 1); - lean_ctor_release(x_8, 2); - x_157 = x_8; +x_152 = lean_ctor_get(x_7, 1); +lean_inc(x_152); +x_153 = lean_ctor_get(x_7, 2); +lean_inc(x_153); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + lean_ctor_release(x_7, 2); + x_154 = x_7; } else { - lean_dec_ref(x_8); - x_157 = lean_box(0); + lean_dec_ref(x_7); + x_154 = lean_box(0); } -x_158 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_158, 0, x_29); -lean_ctor_set(x_158, 1, x_17); -x_159 = lean_array_push(x_156, x_158); -if (lean_is_scalar(x_157)) { - x_160 = lean_alloc_ctor(0, 3, 0); +x_155 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_155, 0, x_26); +lean_ctor_set(x_155, 1, x_14); +x_156 = lean_array_push(x_153, x_155); +if (lean_is_scalar(x_154)) { + x_157 = lean_alloc_ctor(0, 3, 0); } else { - x_160 = x_157; + x_157 = x_154; } -lean_ctor_set(x_160, 0, x_154); -lean_ctor_set(x_160, 1, x_155); -lean_ctor_set(x_160, 2, x_159); -x_161 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallBoundedTelescope___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_31, x_160, x_28); -if (lean_obj_tag(x_161) == 0) +lean_ctor_set(x_157, 0, x_151); +lean_ctor_set(x_157, 1, x_152); +lean_ctor_set(x_157, 2, x_156); +x_158 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallBoundedTelescope___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_28, x_157, x_25); +if (lean_obj_tag(x_158) == 0) { -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_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; -x_162 = lean_ctor_get(x_161, 1); -lean_inc(x_162); -x_163 = lean_ctor_get(x_162, 2); -lean_inc(x_163); -x_164 = lean_ctor_get(x_161, 0); -lean_inc(x_164); -if (lean_is_exclusive(x_161)) { - lean_ctor_release(x_161, 0); - lean_ctor_release(x_161, 1); - x_165 = x_161; +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_object* x_173; lean_object* x_174; +x_159 = lean_ctor_get(x_158, 1); +lean_inc(x_159); +x_160 = lean_ctor_get(x_159, 2); +lean_inc(x_160); +x_161 = lean_ctor_get(x_158, 0); +lean_inc(x_161); +if (lean_is_exclusive(x_158)) { + lean_ctor_release(x_158, 0); + lean_ctor_release(x_158, 1); + x_162 = x_158; } else { - lean_dec_ref(x_161); - x_165 = lean_box(0); + lean_dec_ref(x_158); + x_162 = lean_box(0); } -x_166 = lean_ctor_get(x_162, 0); +x_163 = lean_ctor_get(x_159, 0); +lean_inc(x_163); +x_164 = lean_ctor_get(x_159, 1); +lean_inc(x_164); +x_165 = lean_ctor_get(x_159, 3); +lean_inc(x_165); +x_166 = lean_ctor_get(x_159, 4); lean_inc(x_166); -x_167 = lean_ctor_get(x_162, 1); +x_167 = lean_ctor_get(x_159, 5); lean_inc(x_167); -x_168 = lean_ctor_get(x_162, 3); -lean_inc(x_168); -x_169 = lean_ctor_get(x_162, 4); -lean_inc(x_169); -x_170 = lean_ctor_get(x_162, 5); -lean_inc(x_170); -if (lean_is_exclusive(x_162)) { - lean_ctor_release(x_162, 0); - lean_ctor_release(x_162, 1); - lean_ctor_release(x_162, 2); - lean_ctor_release(x_162, 3); - lean_ctor_release(x_162, 4); - lean_ctor_release(x_162, 5); - x_171 = x_162; +if (lean_is_exclusive(x_159)) { + lean_ctor_release(x_159, 0); + lean_ctor_release(x_159, 1); + lean_ctor_release(x_159, 2); + lean_ctor_release(x_159, 3); + lean_ctor_release(x_159, 4); + lean_ctor_release(x_159, 5); + x_168 = x_159; } else { - lean_dec_ref(x_162); + lean_dec_ref(x_159); + x_168 = lean_box(0); +} +x_169 = lean_ctor_get(x_160, 0); +lean_inc(x_169); +x_170 = lean_ctor_get(x_160, 1); +lean_inc(x_170); +if (lean_is_exclusive(x_160)) { + lean_ctor_release(x_160, 0); + lean_ctor_release(x_160, 1); + lean_ctor_release(x_160, 2); + x_171 = x_160; +} else { + lean_dec_ref(x_160); x_171 = lean_box(0); } -x_172 = lean_ctor_get(x_163, 0); -lean_inc(x_172); -x_173 = lean_ctor_get(x_163, 1); -lean_inc(x_173); -if (lean_is_exclusive(x_163)) { - lean_ctor_release(x_163, 0); - lean_ctor_release(x_163, 1); - lean_ctor_release(x_163, 2); - x_174 = x_163; -} else { - lean_dec_ref(x_163); - x_174 = lean_box(0); -} -if (lean_is_scalar(x_174)) { - x_175 = lean_alloc_ctor(0, 3, 0); -} else { - x_175 = x_174; -} -lean_ctor_set(x_175, 0, x_172); -lean_ctor_set(x_175, 1, x_173); -lean_ctor_set(x_175, 2, x_151); if (lean_is_scalar(x_171)) { - x_176 = lean_alloc_ctor(0, 6, 0); + x_172 = lean_alloc_ctor(0, 3, 0); } else { - x_176 = x_171; + x_172 = x_171; } -lean_ctor_set(x_176, 0, x_166); -lean_ctor_set(x_176, 1, x_167); -lean_ctor_set(x_176, 2, x_175); -lean_ctor_set(x_176, 3, x_168); -lean_ctor_set(x_176, 4, x_169); -lean_ctor_set(x_176, 5, x_170); -if (lean_is_scalar(x_165)) { - x_177 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_172, 0, x_169); +lean_ctor_set(x_172, 1, x_170); +lean_ctor_set(x_172, 2, x_148); +if (lean_is_scalar(x_168)) { + x_173 = lean_alloc_ctor(0, 6, 0); } else { - x_177 = x_165; + x_173 = x_168; } -lean_ctor_set(x_177, 0, x_164); -lean_ctor_set(x_177, 1, x_176); -return x_177; +lean_ctor_set(x_173, 0, x_163); +lean_ctor_set(x_173, 1, x_164); +lean_ctor_set(x_173, 2, x_172); +lean_ctor_set(x_173, 3, x_165); +lean_ctor_set(x_173, 4, x_166); +lean_ctor_set(x_173, 5, x_167); +if (lean_is_scalar(x_162)) { + x_174 = lean_alloc_ctor(0, 2, 0); +} else { + x_174 = x_162; +} +lean_ctor_set(x_174, 0, x_161); +lean_ctor_set(x_174, 1, x_173); +return x_174; } else { -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; -x_178 = lean_ctor_get(x_161, 1); -lean_inc(x_178); -x_179 = lean_ctor_get(x_178, 2); -lean_inc(x_179); -x_180 = lean_ctor_get(x_161, 0); -lean_inc(x_180); -if (lean_is_exclusive(x_161)) { - lean_ctor_release(x_161, 0); - lean_ctor_release(x_161, 1); - x_181 = x_161; +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; +x_175 = lean_ctor_get(x_158, 1); +lean_inc(x_175); +x_176 = lean_ctor_get(x_175, 2); +lean_inc(x_176); +x_177 = lean_ctor_get(x_158, 0); +lean_inc(x_177); +if (lean_is_exclusive(x_158)) { + lean_ctor_release(x_158, 0); + lean_ctor_release(x_158, 1); + x_178 = x_158; } else { - lean_dec_ref(x_161); - x_181 = lean_box(0); + lean_dec_ref(x_158); + x_178 = lean_box(0); } -x_182 = lean_ctor_get(x_178, 0); +x_179 = lean_ctor_get(x_175, 0); +lean_inc(x_179); +x_180 = lean_ctor_get(x_175, 1); +lean_inc(x_180); +x_181 = lean_ctor_get(x_175, 3); +lean_inc(x_181); +x_182 = lean_ctor_get(x_175, 4); lean_inc(x_182); -x_183 = lean_ctor_get(x_178, 1); +x_183 = lean_ctor_get(x_175, 5); lean_inc(x_183); -x_184 = lean_ctor_get(x_178, 3); -lean_inc(x_184); -x_185 = lean_ctor_get(x_178, 4); -lean_inc(x_185); -x_186 = lean_ctor_get(x_178, 5); -lean_inc(x_186); -if (lean_is_exclusive(x_178)) { - lean_ctor_release(x_178, 0); - lean_ctor_release(x_178, 1); - lean_ctor_release(x_178, 2); - lean_ctor_release(x_178, 3); - lean_ctor_release(x_178, 4); - lean_ctor_release(x_178, 5); - x_187 = x_178; +if (lean_is_exclusive(x_175)) { + lean_ctor_release(x_175, 0); + lean_ctor_release(x_175, 1); + lean_ctor_release(x_175, 2); + lean_ctor_release(x_175, 3); + lean_ctor_release(x_175, 4); + lean_ctor_release(x_175, 5); + x_184 = x_175; } else { - lean_dec_ref(x_178); + lean_dec_ref(x_175); + x_184 = lean_box(0); +} +x_185 = lean_ctor_get(x_176, 0); +lean_inc(x_185); +x_186 = lean_ctor_get(x_176, 1); +lean_inc(x_186); +if (lean_is_exclusive(x_176)) { + lean_ctor_release(x_176, 0); + lean_ctor_release(x_176, 1); + lean_ctor_release(x_176, 2); + x_187 = x_176; +} else { + lean_dec_ref(x_176); x_187 = lean_box(0); } -x_188 = lean_ctor_get(x_179, 0); -lean_inc(x_188); -x_189 = lean_ctor_get(x_179, 1); -lean_inc(x_189); -if (lean_is_exclusive(x_179)) { - lean_ctor_release(x_179, 0); - lean_ctor_release(x_179, 1); - lean_ctor_release(x_179, 2); - x_190 = x_179; -} else { - lean_dec_ref(x_179); - x_190 = lean_box(0); -} -if (lean_is_scalar(x_190)) { - x_191 = lean_alloc_ctor(0, 3, 0); -} else { - x_191 = x_190; -} -lean_ctor_set(x_191, 0, x_188); -lean_ctor_set(x_191, 1, x_189); -lean_ctor_set(x_191, 2, x_151); if (lean_is_scalar(x_187)) { - x_192 = lean_alloc_ctor(0, 6, 0); + x_188 = lean_alloc_ctor(0, 3, 0); } else { - x_192 = x_187; + x_188 = x_187; } -lean_ctor_set(x_192, 0, x_182); -lean_ctor_set(x_192, 1, x_183); -lean_ctor_set(x_192, 2, x_191); -lean_ctor_set(x_192, 3, x_184); -lean_ctor_set(x_192, 4, x_185); -lean_ctor_set(x_192, 5, x_186); -if (lean_is_scalar(x_181)) { - x_193 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_188, 0, x_185); +lean_ctor_set(x_188, 1, x_186); +lean_ctor_set(x_188, 2, x_148); +if (lean_is_scalar(x_184)) { + x_189 = lean_alloc_ctor(0, 6, 0); } else { - x_193 = x_181; + x_189 = x_184; } -lean_ctor_set(x_193, 0, x_180); -lean_ctor_set(x_193, 1, x_192); -return x_193; +lean_ctor_set(x_189, 0, x_179); +lean_ctor_set(x_189, 1, x_180); +lean_ctor_set(x_189, 2, x_188); +lean_ctor_set(x_189, 3, x_181); +lean_ctor_set(x_189, 4, x_182); +lean_ctor_set(x_189, 5, x_183); +if (lean_is_scalar(x_178)) { + x_190 = lean_alloc_ctor(1, 2, 0); +} else { + x_190 = x_178; +} +lean_ctor_set(x_190, 0, x_177); +lean_ctor_set(x_190, 1, x_189); +return x_190; } } } else { -lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; -x_194 = lean_ctor_get(x_28, 2); -x_195 = lean_ctor_get(x_28, 0); -x_196 = lean_ctor_get(x_28, 1); -x_197 = lean_ctor_get(x_28, 3); -x_198 = lean_ctor_get(x_28, 4); -x_199 = lean_ctor_get(x_28, 5); -lean_inc(x_199); -lean_inc(x_198); -lean_inc(x_197); -lean_inc(x_194); +lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; +x_191 = lean_ctor_get(x_25, 2); +x_192 = lean_ctor_get(x_25, 0); +x_193 = lean_ctor_get(x_25, 1); +x_194 = lean_ctor_get(x_25, 3); +x_195 = lean_ctor_get(x_25, 4); +x_196 = lean_ctor_get(x_25, 5); lean_inc(x_196); lean_inc(x_195); -lean_dec(x_28); -x_200 = lean_ctor_get(x_194, 0); -lean_inc(x_200); -x_201 = lean_ctor_get(x_194, 1); -lean_inc(x_201); -x_202 = lean_ctor_get(x_194, 2); -lean_inc(x_202); -if (lean_is_exclusive(x_194)) { - lean_ctor_release(x_194, 0); - lean_ctor_release(x_194, 1); - lean_ctor_release(x_194, 2); - x_203 = x_194; +lean_inc(x_194); +lean_inc(x_191); +lean_inc(x_193); +lean_inc(x_192); +lean_dec(x_25); +x_197 = lean_ctor_get(x_191, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_191, 1); +lean_inc(x_198); +x_199 = lean_ctor_get(x_191, 2); +lean_inc(x_199); +if (lean_is_exclusive(x_191)) { + lean_ctor_release(x_191, 0); + lean_ctor_release(x_191, 1); + lean_ctor_release(x_191, 2); + x_200 = x_191; } else { - lean_dec_ref(x_194); - x_203 = lean_box(0); + lean_dec_ref(x_191); + x_200 = lean_box(0); } -x_204 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; -if (lean_is_scalar(x_203)) { - x_205 = lean_alloc_ctor(0, 3, 0); +x_201 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +if (lean_is_scalar(x_200)) { + x_202 = lean_alloc_ctor(0, 3, 0); } else { - x_205 = x_203; + x_202 = x_200; } -lean_ctor_set(x_205, 0, x_200); -lean_ctor_set(x_205, 1, x_201); -lean_ctor_set(x_205, 2, x_204); -x_206 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_206, 0, x_195); -lean_ctor_set(x_206, 1, x_196); -lean_ctor_set(x_206, 2, x_205); -lean_ctor_set(x_206, 3, x_197); -lean_ctor_set(x_206, 4, x_198); -lean_ctor_set(x_206, 5, x_199); -x_207 = lean_ctor_get(x_8, 0); -lean_inc(x_207); -x_208 = lean_ctor_get(x_8, 1); -lean_inc(x_208); -x_209 = lean_ctor_get(x_8, 2); -lean_inc(x_209); -if (lean_is_exclusive(x_8)) { - lean_ctor_release(x_8, 0); - lean_ctor_release(x_8, 1); - lean_ctor_release(x_8, 2); - x_210 = x_8; +lean_ctor_set(x_202, 0, x_197); +lean_ctor_set(x_202, 1, x_198); +lean_ctor_set(x_202, 2, x_201); +x_203 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_203, 0, x_192); +lean_ctor_set(x_203, 1, x_193); +lean_ctor_set(x_203, 2, x_202); +lean_ctor_set(x_203, 3, x_194); +lean_ctor_set(x_203, 4, x_195); +lean_ctor_set(x_203, 5, x_196); +x_204 = lean_ctor_get(x_7, 0); +lean_inc(x_204); +x_205 = lean_ctor_get(x_7, 1); +lean_inc(x_205); +x_206 = lean_ctor_get(x_7, 2); +lean_inc(x_206); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + lean_ctor_release(x_7, 2); + x_207 = x_7; } else { - lean_dec_ref(x_8); - x_210 = lean_box(0); + lean_dec_ref(x_7); + x_207 = lean_box(0); } -x_211 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_211, 0, x_29); -lean_ctor_set(x_211, 1, x_17); -x_212 = lean_array_push(x_209, x_211); -if (lean_is_scalar(x_210)) { - x_213 = lean_alloc_ctor(0, 3, 0); +x_208 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_208, 0, x_26); +lean_ctor_set(x_208, 1, x_14); +x_209 = lean_array_push(x_206, x_208); +if (lean_is_scalar(x_207)) { + x_210 = lean_alloc_ctor(0, 3, 0); } else { - x_213 = x_210; + x_210 = x_207; } -lean_ctor_set(x_213, 0, x_207); -lean_ctor_set(x_213, 1, x_208); -lean_ctor_set(x_213, 2, x_212); -x_214 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallBoundedTelescope___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_31, x_213, x_206); -if (lean_obj_tag(x_214) == 0) +lean_ctor_set(x_210, 0, x_204); +lean_ctor_set(x_210, 1, x_205); +lean_ctor_set(x_210, 2, x_209); +x_211 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallBoundedTelescope___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_28, x_210, x_203); +if (lean_obj_tag(x_211) == 0) { -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; -x_215 = lean_ctor_get(x_214, 1); -lean_inc(x_215); -x_216 = lean_ctor_get(x_215, 2); -lean_inc(x_216); -x_217 = lean_ctor_get(x_214, 0); -lean_inc(x_217); -if (lean_is_exclusive(x_214)) { - lean_ctor_release(x_214, 0); - lean_ctor_release(x_214, 1); - x_218 = x_214; +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; +x_212 = lean_ctor_get(x_211, 1); +lean_inc(x_212); +x_213 = lean_ctor_get(x_212, 2); +lean_inc(x_213); +x_214 = lean_ctor_get(x_211, 0); +lean_inc(x_214); +if (lean_is_exclusive(x_211)) { + lean_ctor_release(x_211, 0); + lean_ctor_release(x_211, 1); + x_215 = x_211; } else { - lean_dec_ref(x_214); - x_218 = lean_box(0); + lean_dec_ref(x_211); + x_215 = lean_box(0); } -x_219 = lean_ctor_get(x_215, 0); +x_216 = lean_ctor_get(x_212, 0); +lean_inc(x_216); +x_217 = lean_ctor_get(x_212, 1); +lean_inc(x_217); +x_218 = lean_ctor_get(x_212, 3); +lean_inc(x_218); +x_219 = lean_ctor_get(x_212, 4); lean_inc(x_219); -x_220 = lean_ctor_get(x_215, 1); +x_220 = lean_ctor_get(x_212, 5); lean_inc(x_220); -x_221 = lean_ctor_get(x_215, 3); -lean_inc(x_221); -x_222 = lean_ctor_get(x_215, 4); -lean_inc(x_222); -x_223 = lean_ctor_get(x_215, 5); -lean_inc(x_223); -if (lean_is_exclusive(x_215)) { - lean_ctor_release(x_215, 0); - lean_ctor_release(x_215, 1); - lean_ctor_release(x_215, 2); - lean_ctor_release(x_215, 3); - lean_ctor_release(x_215, 4); - lean_ctor_release(x_215, 5); - x_224 = x_215; +if (lean_is_exclusive(x_212)) { + lean_ctor_release(x_212, 0); + lean_ctor_release(x_212, 1); + lean_ctor_release(x_212, 2); + lean_ctor_release(x_212, 3); + lean_ctor_release(x_212, 4); + lean_ctor_release(x_212, 5); + x_221 = x_212; } else { - lean_dec_ref(x_215); + lean_dec_ref(x_212); + x_221 = lean_box(0); +} +x_222 = lean_ctor_get(x_213, 0); +lean_inc(x_222); +x_223 = lean_ctor_get(x_213, 1); +lean_inc(x_223); +if (lean_is_exclusive(x_213)) { + lean_ctor_release(x_213, 0); + lean_ctor_release(x_213, 1); + lean_ctor_release(x_213, 2); + x_224 = x_213; +} else { + lean_dec_ref(x_213); x_224 = lean_box(0); } -x_225 = lean_ctor_get(x_216, 0); -lean_inc(x_225); -x_226 = lean_ctor_get(x_216, 1); -lean_inc(x_226); -if (lean_is_exclusive(x_216)) { - lean_ctor_release(x_216, 0); - lean_ctor_release(x_216, 1); - lean_ctor_release(x_216, 2); - x_227 = x_216; -} else { - lean_dec_ref(x_216); - x_227 = lean_box(0); -} -if (lean_is_scalar(x_227)) { - x_228 = lean_alloc_ctor(0, 3, 0); -} else { - x_228 = x_227; -} -lean_ctor_set(x_228, 0, x_225); -lean_ctor_set(x_228, 1, x_226); -lean_ctor_set(x_228, 2, x_202); if (lean_is_scalar(x_224)) { - x_229 = lean_alloc_ctor(0, 6, 0); + x_225 = lean_alloc_ctor(0, 3, 0); } else { - x_229 = x_224; + x_225 = x_224; } -lean_ctor_set(x_229, 0, x_219); -lean_ctor_set(x_229, 1, x_220); -lean_ctor_set(x_229, 2, x_228); -lean_ctor_set(x_229, 3, x_221); -lean_ctor_set(x_229, 4, x_222); -lean_ctor_set(x_229, 5, x_223); -if (lean_is_scalar(x_218)) { - x_230 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_225, 0, x_222); +lean_ctor_set(x_225, 1, x_223); +lean_ctor_set(x_225, 2, x_199); +if (lean_is_scalar(x_221)) { + x_226 = lean_alloc_ctor(0, 6, 0); } else { - x_230 = x_218; + x_226 = x_221; } -lean_ctor_set(x_230, 0, x_217); -lean_ctor_set(x_230, 1, x_229); -return x_230; +lean_ctor_set(x_226, 0, x_216); +lean_ctor_set(x_226, 1, x_217); +lean_ctor_set(x_226, 2, x_225); +lean_ctor_set(x_226, 3, x_218); +lean_ctor_set(x_226, 4, x_219); +lean_ctor_set(x_226, 5, x_220); +if (lean_is_scalar(x_215)) { + x_227 = lean_alloc_ctor(0, 2, 0); +} else { + x_227 = x_215; +} +lean_ctor_set(x_227, 0, x_214); +lean_ctor_set(x_227, 1, x_226); +return x_227; } else { -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; -x_231 = lean_ctor_get(x_214, 1); -lean_inc(x_231); -x_232 = lean_ctor_get(x_231, 2); -lean_inc(x_232); -x_233 = lean_ctor_get(x_214, 0); -lean_inc(x_233); -if (lean_is_exclusive(x_214)) { - lean_ctor_release(x_214, 0); - lean_ctor_release(x_214, 1); - x_234 = x_214; +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; +x_228 = lean_ctor_get(x_211, 1); +lean_inc(x_228); +x_229 = lean_ctor_get(x_228, 2); +lean_inc(x_229); +x_230 = lean_ctor_get(x_211, 0); +lean_inc(x_230); +if (lean_is_exclusive(x_211)) { + lean_ctor_release(x_211, 0); + lean_ctor_release(x_211, 1); + x_231 = x_211; } else { - lean_dec_ref(x_214); - x_234 = lean_box(0); + lean_dec_ref(x_211); + x_231 = lean_box(0); } -x_235 = lean_ctor_get(x_231, 0); +x_232 = lean_ctor_get(x_228, 0); +lean_inc(x_232); +x_233 = lean_ctor_get(x_228, 1); +lean_inc(x_233); +x_234 = lean_ctor_get(x_228, 3); +lean_inc(x_234); +x_235 = lean_ctor_get(x_228, 4); lean_inc(x_235); -x_236 = lean_ctor_get(x_231, 1); +x_236 = lean_ctor_get(x_228, 5); lean_inc(x_236); -x_237 = lean_ctor_get(x_231, 3); -lean_inc(x_237); -x_238 = lean_ctor_get(x_231, 4); -lean_inc(x_238); -x_239 = lean_ctor_get(x_231, 5); -lean_inc(x_239); -if (lean_is_exclusive(x_231)) { - lean_ctor_release(x_231, 0); - lean_ctor_release(x_231, 1); - lean_ctor_release(x_231, 2); - lean_ctor_release(x_231, 3); - lean_ctor_release(x_231, 4); - lean_ctor_release(x_231, 5); - x_240 = x_231; +if (lean_is_exclusive(x_228)) { + lean_ctor_release(x_228, 0); + lean_ctor_release(x_228, 1); + lean_ctor_release(x_228, 2); + lean_ctor_release(x_228, 3); + lean_ctor_release(x_228, 4); + lean_ctor_release(x_228, 5); + x_237 = x_228; } else { - lean_dec_ref(x_231); + lean_dec_ref(x_228); + x_237 = lean_box(0); +} +x_238 = lean_ctor_get(x_229, 0); +lean_inc(x_238); +x_239 = lean_ctor_get(x_229, 1); +lean_inc(x_239); +if (lean_is_exclusive(x_229)) { + lean_ctor_release(x_229, 0); + lean_ctor_release(x_229, 1); + lean_ctor_release(x_229, 2); + x_240 = x_229; +} else { + lean_dec_ref(x_229); x_240 = lean_box(0); } -x_241 = lean_ctor_get(x_232, 0); -lean_inc(x_241); -x_242 = lean_ctor_get(x_232, 1); -lean_inc(x_242); -if (lean_is_exclusive(x_232)) { - lean_ctor_release(x_232, 0); - lean_ctor_release(x_232, 1); - lean_ctor_release(x_232, 2); - x_243 = x_232; -} else { - lean_dec_ref(x_232); - x_243 = lean_box(0); -} -if (lean_is_scalar(x_243)) { - x_244 = lean_alloc_ctor(0, 3, 0); -} else { - x_244 = x_243; -} -lean_ctor_set(x_244, 0, x_241); -lean_ctor_set(x_244, 1, x_242); -lean_ctor_set(x_244, 2, x_202); if (lean_is_scalar(x_240)) { - x_245 = lean_alloc_ctor(0, 6, 0); + x_241 = lean_alloc_ctor(0, 3, 0); } else { - x_245 = x_240; + x_241 = x_240; } -lean_ctor_set(x_245, 0, x_235); -lean_ctor_set(x_245, 1, x_236); -lean_ctor_set(x_245, 2, x_244); -lean_ctor_set(x_245, 3, x_237); -lean_ctor_set(x_245, 4, x_238); -lean_ctor_set(x_245, 5, x_239); -if (lean_is_scalar(x_234)) { - x_246 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_241, 0, x_238); +lean_ctor_set(x_241, 1, x_239); +lean_ctor_set(x_241, 2, x_199); +if (lean_is_scalar(x_237)) { + x_242 = lean_alloc_ctor(0, 6, 0); } else { - x_246 = x_234; + x_242 = x_237; } -lean_ctor_set(x_246, 0, x_233); -lean_ctor_set(x_246, 1, x_245); -return x_246; +lean_ctor_set(x_242, 0, x_232); +lean_ctor_set(x_242, 1, x_233); +lean_ctor_set(x_242, 2, x_241); +lean_ctor_set(x_242, 3, x_234); +lean_ctor_set(x_242, 4, x_235); +lean_ctor_set(x_242, 5, x_236); +if (lean_is_scalar(x_231)) { + x_243 = lean_alloc_ctor(1, 2, 0); +} else { + x_243 = x_231; +} +lean_ctor_set(x_243, 0, x_230); +lean_ctor_set(x_243, 1, x_242); +return x_243; } } } default: { -lean_object* x_247; lean_object* x_248; -x_247 = lean_ctor_get(x_22, 1); +lean_object* x_244; lean_object* x_245; +x_244 = lean_ctor_get(x_19, 1); +lean_inc(x_244); +lean_dec(x_19); +lean_inc(x_7); +x_245 = l_Lean_Meta_isClassExpensive___main(x_18, x_7, x_244); +if (lean_obj_tag(x_245) == 0) +{ +lean_object* x_246; +x_246 = lean_ctor_get(x_245, 0); +lean_inc(x_246); +if (lean_obj_tag(x_246) == 0) +{ +lean_object* x_247; lean_object* x_248; lean_object* x_249; +lean_dec(x_14); +x_247 = lean_ctor_get(x_245, 1); lean_inc(x_247); -lean_dec(x_22); -lean_inc(x_8); -x_248 = l_Lean_Meta_isClassExpensive___main(x_21, x_8, x_247); -if (lean_obj_tag(x_248) == 0) -{ -lean_object* x_249; -x_249 = lean_ctor_get(x_248, 0); -lean_inc(x_249); -if (lean_obj_tag(x_249) == 0) -{ -lean_object* x_250; lean_object* x_251; lean_object* x_252; -lean_dec(x_17); -x_250 = lean_ctor_get(x_248, 1); -lean_inc(x_250); -lean_dec(x_248); -x_251 = lean_unsigned_to_nat(1u); -x_252 = lean_nat_add(x_7, x_251); -lean_dec(x_7); -x_7 = x_252; -x_9 = x_250; +lean_dec(x_245); +x_248 = lean_unsigned_to_nat(1u); +x_249 = lean_nat_add(x_6, x_248); +lean_dec(x_6); +x_6 = x_249; +x_8 = x_247; goto _start; } else { -lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; uint8_t x_258; -x_254 = lean_ctor_get(x_248, 1); -lean_inc(x_254); -lean_dec(x_248); -x_255 = lean_ctor_get(x_249, 0); -lean_inc(x_255); -lean_dec(x_249); -x_256 = lean_unsigned_to_nat(1u); -x_257 = lean_nat_add(x_7, x_256); -lean_dec(x_7); -x_258 = !lean_is_exclusive(x_254); -if (x_258 == 0) +lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; uint8_t x_255; +x_251 = lean_ctor_get(x_245, 1); +lean_inc(x_251); +lean_dec(x_245); +x_252 = lean_ctor_get(x_246, 0); +lean_inc(x_252); +lean_dec(x_246); +x_253 = lean_unsigned_to_nat(1u); +x_254 = lean_nat_add(x_6, x_253); +lean_dec(x_6); +x_255 = !lean_is_exclusive(x_251); +if (x_255 == 0) { -lean_object* x_259; uint8_t x_260; -x_259 = lean_ctor_get(x_254, 2); -x_260 = !lean_is_exclusive(x_259); +lean_object* x_256; uint8_t x_257; +x_256 = lean_ctor_get(x_251, 2); +x_257 = !lean_is_exclusive(x_256); +if (x_257 == 0) +{ +lean_object* x_258; lean_object* x_259; uint8_t x_260; +x_258 = lean_ctor_get(x_256, 2); +x_259 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +lean_ctor_set(x_256, 2, x_259); +x_260 = !lean_is_exclusive(x_7); if (x_260 == 0) { -lean_object* x_261; lean_object* x_262; uint8_t x_263; -x_261 = lean_ctor_get(x_259, 2); -x_262 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; -lean_ctor_set(x_259, 2, x_262); -x_263 = !lean_is_exclusive(x_8); -if (x_263 == 0) +lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; +x_261 = lean_ctor_get(x_7, 2); +x_262 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_262, 0, x_252); +lean_ctor_set(x_262, 1, x_14); +x_263 = lean_array_push(x_261, x_262); +lean_ctor_set(x_7, 2, x_263); +x_264 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallBoundedTelescope___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_254, x_7, x_251); +if (lean_obj_tag(x_264) == 0) { -lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; -x_264 = lean_ctor_get(x_8, 2); -x_265 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_265, 0, x_255); -lean_ctor_set(x_265, 1, x_17); -x_266 = lean_array_push(x_264, x_265); -lean_ctor_set(x_8, 2, x_266); -x_267 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallBoundedTelescope___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_257, x_8, x_254); -if (lean_obj_tag(x_267) == 0) +lean_object* x_265; lean_object* x_266; uint8_t x_267; +x_265 = lean_ctor_get(x_264, 1); +lean_inc(x_265); +x_266 = lean_ctor_get(x_265, 2); +lean_inc(x_266); +x_267 = !lean_is_exclusive(x_264); +if (x_267 == 0) { -lean_object* x_268; lean_object* x_269; uint8_t x_270; -x_268 = lean_ctor_get(x_267, 1); -lean_inc(x_268); -x_269 = lean_ctor_get(x_268, 2); -lean_inc(x_269); -x_270 = !lean_is_exclusive(x_267); -if (x_270 == 0) +lean_object* x_268; uint8_t x_269; +x_268 = lean_ctor_get(x_264, 1); +lean_dec(x_268); +x_269 = !lean_is_exclusive(x_265); +if (x_269 == 0) { -lean_object* x_271; uint8_t x_272; -x_271 = lean_ctor_get(x_267, 1); -lean_dec(x_271); -x_272 = !lean_is_exclusive(x_268); -if (x_272 == 0) +lean_object* x_270; uint8_t x_271; +x_270 = lean_ctor_get(x_265, 2); +lean_dec(x_270); +x_271 = !lean_is_exclusive(x_266); +if (x_271 == 0) { -lean_object* x_273; uint8_t x_274; -x_273 = lean_ctor_get(x_268, 2); -lean_dec(x_273); -x_274 = !lean_is_exclusive(x_269); -if (x_274 == 0) -{ -lean_object* x_275; -x_275 = lean_ctor_get(x_269, 2); -lean_dec(x_275); -lean_ctor_set(x_269, 2, x_261); -return x_267; +lean_object* x_272; +x_272 = lean_ctor_get(x_266, 2); +lean_dec(x_272); +lean_ctor_set(x_266, 2, x_258); +return x_264; } else { -lean_object* x_276; lean_object* x_277; lean_object* x_278; -x_276 = lean_ctor_get(x_269, 0); -x_277 = lean_ctor_get(x_269, 1); -lean_inc(x_277); -lean_inc(x_276); -lean_dec(x_269); -x_278 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_278, 0, x_276); -lean_ctor_set(x_278, 1, x_277); -lean_ctor_set(x_278, 2, x_261); -lean_ctor_set(x_268, 2, x_278); -return x_267; +lean_object* x_273; lean_object* x_274; lean_object* x_275; +x_273 = lean_ctor_get(x_266, 0); +x_274 = lean_ctor_get(x_266, 1); +lean_inc(x_274); +lean_inc(x_273); +lean_dec(x_266); +x_275 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_275, 0, x_273); +lean_ctor_set(x_275, 1, x_274); +lean_ctor_set(x_275, 2, x_258); +lean_ctor_set(x_265, 2, x_275); +return x_264; } } else { -lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; -x_279 = lean_ctor_get(x_268, 0); -x_280 = lean_ctor_get(x_268, 1); -x_281 = lean_ctor_get(x_268, 3); -x_282 = lean_ctor_get(x_268, 4); -x_283 = lean_ctor_get(x_268, 5); -lean_inc(x_283); -lean_inc(x_282); -lean_inc(x_281); +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; +x_276 = lean_ctor_get(x_265, 0); +x_277 = lean_ctor_get(x_265, 1); +x_278 = lean_ctor_get(x_265, 3); +x_279 = lean_ctor_get(x_265, 4); +x_280 = lean_ctor_get(x_265, 5); lean_inc(x_280); lean_inc(x_279); -lean_dec(x_268); -x_284 = lean_ctor_get(x_269, 0); -lean_inc(x_284); -x_285 = lean_ctor_get(x_269, 1); -lean_inc(x_285); -if (lean_is_exclusive(x_269)) { - lean_ctor_release(x_269, 0); - lean_ctor_release(x_269, 1); - lean_ctor_release(x_269, 2); - x_286 = x_269; +lean_inc(x_278); +lean_inc(x_277); +lean_inc(x_276); +lean_dec(x_265); +x_281 = lean_ctor_get(x_266, 0); +lean_inc(x_281); +x_282 = lean_ctor_get(x_266, 1); +lean_inc(x_282); +if (lean_is_exclusive(x_266)) { + lean_ctor_release(x_266, 0); + lean_ctor_release(x_266, 1); + lean_ctor_release(x_266, 2); + x_283 = x_266; } else { - lean_dec_ref(x_269); - x_286 = lean_box(0); + lean_dec_ref(x_266); + x_283 = lean_box(0); } -if (lean_is_scalar(x_286)) { - x_287 = lean_alloc_ctor(0, 3, 0); +if (lean_is_scalar(x_283)) { + x_284 = lean_alloc_ctor(0, 3, 0); } else { - x_287 = x_286; + x_284 = x_283; } -lean_ctor_set(x_287, 0, x_284); -lean_ctor_set(x_287, 1, x_285); -lean_ctor_set(x_287, 2, x_261); -x_288 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_288, 0, x_279); -lean_ctor_set(x_288, 1, x_280); -lean_ctor_set(x_288, 2, x_287); -lean_ctor_set(x_288, 3, x_281); -lean_ctor_set(x_288, 4, x_282); -lean_ctor_set(x_288, 5, x_283); -lean_ctor_set(x_267, 1, x_288); -return x_267; +lean_ctor_set(x_284, 0, x_281); +lean_ctor_set(x_284, 1, x_282); +lean_ctor_set(x_284, 2, x_258); +x_285 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_285, 0, x_276); +lean_ctor_set(x_285, 1, x_277); +lean_ctor_set(x_285, 2, x_284); +lean_ctor_set(x_285, 3, x_278); +lean_ctor_set(x_285, 4, x_279); +lean_ctor_set(x_285, 5, x_280); +lean_ctor_set(x_264, 1, x_285); +return x_264; } } else { -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; -x_289 = lean_ctor_get(x_267, 0); +lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; 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_286 = lean_ctor_get(x_264, 0); +lean_inc(x_286); +lean_dec(x_264); +x_287 = lean_ctor_get(x_265, 0); +lean_inc(x_287); +x_288 = lean_ctor_get(x_265, 1); +lean_inc(x_288); +x_289 = lean_ctor_get(x_265, 3); lean_inc(x_289); -lean_dec(x_267); -x_290 = lean_ctor_get(x_268, 0); +x_290 = lean_ctor_get(x_265, 4); lean_inc(x_290); -x_291 = lean_ctor_get(x_268, 1); +x_291 = lean_ctor_get(x_265, 5); lean_inc(x_291); -x_292 = lean_ctor_get(x_268, 3); -lean_inc(x_292); -x_293 = lean_ctor_get(x_268, 4); -lean_inc(x_293); -x_294 = lean_ctor_get(x_268, 5); -lean_inc(x_294); -if (lean_is_exclusive(x_268)) { - lean_ctor_release(x_268, 0); - lean_ctor_release(x_268, 1); - lean_ctor_release(x_268, 2); - lean_ctor_release(x_268, 3); - lean_ctor_release(x_268, 4); - lean_ctor_release(x_268, 5); - x_295 = x_268; +if (lean_is_exclusive(x_265)) { + lean_ctor_release(x_265, 0); + lean_ctor_release(x_265, 1); + lean_ctor_release(x_265, 2); + lean_ctor_release(x_265, 3); + lean_ctor_release(x_265, 4); + lean_ctor_release(x_265, 5); + x_292 = x_265; } else { - lean_dec_ref(x_268); + lean_dec_ref(x_265); + x_292 = lean_box(0); +} +x_293 = lean_ctor_get(x_266, 0); +lean_inc(x_293); +x_294 = lean_ctor_get(x_266, 1); +lean_inc(x_294); +if (lean_is_exclusive(x_266)) { + lean_ctor_release(x_266, 0); + lean_ctor_release(x_266, 1); + lean_ctor_release(x_266, 2); + x_295 = x_266; +} else { + lean_dec_ref(x_266); x_295 = lean_box(0); } -x_296 = lean_ctor_get(x_269, 0); -lean_inc(x_296); -x_297 = lean_ctor_get(x_269, 1); -lean_inc(x_297); -if (lean_is_exclusive(x_269)) { - lean_ctor_release(x_269, 0); - lean_ctor_release(x_269, 1); - lean_ctor_release(x_269, 2); - x_298 = x_269; -} else { - lean_dec_ref(x_269); - x_298 = lean_box(0); -} -if (lean_is_scalar(x_298)) { - x_299 = lean_alloc_ctor(0, 3, 0); -} else { - x_299 = x_298; -} -lean_ctor_set(x_299, 0, x_296); -lean_ctor_set(x_299, 1, x_297); -lean_ctor_set(x_299, 2, x_261); if (lean_is_scalar(x_295)) { - x_300 = lean_alloc_ctor(0, 6, 0); + x_296 = lean_alloc_ctor(0, 3, 0); } else { - x_300 = x_295; + x_296 = x_295; } -lean_ctor_set(x_300, 0, x_290); -lean_ctor_set(x_300, 1, x_291); -lean_ctor_set(x_300, 2, x_299); -lean_ctor_set(x_300, 3, x_292); -lean_ctor_set(x_300, 4, x_293); -lean_ctor_set(x_300, 5, x_294); -x_301 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_301, 0, x_289); -lean_ctor_set(x_301, 1, x_300); -return x_301; +lean_ctor_set(x_296, 0, x_293); +lean_ctor_set(x_296, 1, x_294); +lean_ctor_set(x_296, 2, x_258); +if (lean_is_scalar(x_292)) { + x_297 = lean_alloc_ctor(0, 6, 0); +} else { + x_297 = x_292; +} +lean_ctor_set(x_297, 0, x_287); +lean_ctor_set(x_297, 1, x_288); +lean_ctor_set(x_297, 2, x_296); +lean_ctor_set(x_297, 3, x_289); +lean_ctor_set(x_297, 4, x_290); +lean_ctor_set(x_297, 5, x_291); +x_298 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_298, 0, x_286); +lean_ctor_set(x_298, 1, x_297); +return x_298; } } else { -lean_object* x_302; lean_object* x_303; uint8_t x_304; -x_302 = lean_ctor_get(x_267, 1); -lean_inc(x_302); -x_303 = lean_ctor_get(x_302, 2); -lean_inc(x_303); -x_304 = !lean_is_exclusive(x_267); -if (x_304 == 0) +lean_object* x_299; lean_object* x_300; uint8_t x_301; +x_299 = lean_ctor_get(x_264, 1); +lean_inc(x_299); +x_300 = lean_ctor_get(x_299, 2); +lean_inc(x_300); +x_301 = !lean_is_exclusive(x_264); +if (x_301 == 0) { -lean_object* x_305; uint8_t x_306; -x_305 = lean_ctor_get(x_267, 1); -lean_dec(x_305); -x_306 = !lean_is_exclusive(x_302); -if (x_306 == 0) +lean_object* x_302; uint8_t x_303; +x_302 = lean_ctor_get(x_264, 1); +lean_dec(x_302); +x_303 = !lean_is_exclusive(x_299); +if (x_303 == 0) { -lean_object* x_307; uint8_t x_308; -x_307 = lean_ctor_get(x_302, 2); -lean_dec(x_307); -x_308 = !lean_is_exclusive(x_303); -if (x_308 == 0) +lean_object* x_304; uint8_t x_305; +x_304 = lean_ctor_get(x_299, 2); +lean_dec(x_304); +x_305 = !lean_is_exclusive(x_300); +if (x_305 == 0) { -lean_object* x_309; -x_309 = lean_ctor_get(x_303, 2); -lean_dec(x_309); -lean_ctor_set(x_303, 2, x_261); -return x_267; +lean_object* x_306; +x_306 = lean_ctor_get(x_300, 2); +lean_dec(x_306); +lean_ctor_set(x_300, 2, x_258); +return x_264; } else { -lean_object* x_310; lean_object* x_311; lean_object* x_312; -x_310 = lean_ctor_get(x_303, 0); -x_311 = lean_ctor_get(x_303, 1); -lean_inc(x_311); -lean_inc(x_310); -lean_dec(x_303); -x_312 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_312, 0, x_310); -lean_ctor_set(x_312, 1, x_311); -lean_ctor_set(x_312, 2, x_261); -lean_ctor_set(x_302, 2, x_312); -return x_267; +lean_object* x_307; lean_object* x_308; lean_object* x_309; +x_307 = lean_ctor_get(x_300, 0); +x_308 = lean_ctor_get(x_300, 1); +lean_inc(x_308); +lean_inc(x_307); +lean_dec(x_300); +x_309 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_309, 0, x_307); +lean_ctor_set(x_309, 1, x_308); +lean_ctor_set(x_309, 2, x_258); +lean_ctor_set(x_299, 2, x_309); +return x_264; } } else { -lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; -x_313 = lean_ctor_get(x_302, 0); -x_314 = lean_ctor_get(x_302, 1); -x_315 = lean_ctor_get(x_302, 3); -x_316 = lean_ctor_get(x_302, 4); -x_317 = lean_ctor_get(x_302, 5); -lean_inc(x_317); -lean_inc(x_316); -lean_inc(x_315); +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; +x_310 = lean_ctor_get(x_299, 0); +x_311 = lean_ctor_get(x_299, 1); +x_312 = lean_ctor_get(x_299, 3); +x_313 = lean_ctor_get(x_299, 4); +x_314 = lean_ctor_get(x_299, 5); lean_inc(x_314); lean_inc(x_313); -lean_dec(x_302); -x_318 = lean_ctor_get(x_303, 0); -lean_inc(x_318); -x_319 = lean_ctor_get(x_303, 1); -lean_inc(x_319); -if (lean_is_exclusive(x_303)) { - lean_ctor_release(x_303, 0); - lean_ctor_release(x_303, 1); - lean_ctor_release(x_303, 2); - x_320 = x_303; +lean_inc(x_312); +lean_inc(x_311); +lean_inc(x_310); +lean_dec(x_299); +x_315 = lean_ctor_get(x_300, 0); +lean_inc(x_315); +x_316 = lean_ctor_get(x_300, 1); +lean_inc(x_316); +if (lean_is_exclusive(x_300)) { + lean_ctor_release(x_300, 0); + lean_ctor_release(x_300, 1); + lean_ctor_release(x_300, 2); + x_317 = x_300; } else { - lean_dec_ref(x_303); - x_320 = lean_box(0); + lean_dec_ref(x_300); + x_317 = lean_box(0); } -if (lean_is_scalar(x_320)) { - x_321 = lean_alloc_ctor(0, 3, 0); +if (lean_is_scalar(x_317)) { + x_318 = lean_alloc_ctor(0, 3, 0); } else { - x_321 = x_320; + x_318 = x_317; } -lean_ctor_set(x_321, 0, x_318); -lean_ctor_set(x_321, 1, x_319); -lean_ctor_set(x_321, 2, x_261); -x_322 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_322, 0, x_313); -lean_ctor_set(x_322, 1, x_314); -lean_ctor_set(x_322, 2, x_321); -lean_ctor_set(x_322, 3, x_315); -lean_ctor_set(x_322, 4, x_316); -lean_ctor_set(x_322, 5, x_317); -lean_ctor_set(x_267, 1, x_322); -return x_267; +lean_ctor_set(x_318, 0, x_315); +lean_ctor_set(x_318, 1, x_316); +lean_ctor_set(x_318, 2, x_258); +x_319 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_319, 0, x_310); +lean_ctor_set(x_319, 1, x_311); +lean_ctor_set(x_319, 2, x_318); +lean_ctor_set(x_319, 3, x_312); +lean_ctor_set(x_319, 4, x_313); +lean_ctor_set(x_319, 5, x_314); +lean_ctor_set(x_264, 1, x_319); +return x_264; } } else { -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; -x_323 = lean_ctor_get(x_267, 0); +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_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; +x_320 = lean_ctor_get(x_264, 0); +lean_inc(x_320); +lean_dec(x_264); +x_321 = lean_ctor_get(x_299, 0); +lean_inc(x_321); +x_322 = lean_ctor_get(x_299, 1); +lean_inc(x_322); +x_323 = lean_ctor_get(x_299, 3); lean_inc(x_323); -lean_dec(x_267); -x_324 = lean_ctor_get(x_302, 0); +x_324 = lean_ctor_get(x_299, 4); lean_inc(x_324); -x_325 = lean_ctor_get(x_302, 1); +x_325 = lean_ctor_get(x_299, 5); lean_inc(x_325); -x_326 = lean_ctor_get(x_302, 3); -lean_inc(x_326); -x_327 = lean_ctor_get(x_302, 4); -lean_inc(x_327); -x_328 = lean_ctor_get(x_302, 5); -lean_inc(x_328); -if (lean_is_exclusive(x_302)) { - lean_ctor_release(x_302, 0); - lean_ctor_release(x_302, 1); - lean_ctor_release(x_302, 2); - lean_ctor_release(x_302, 3); - lean_ctor_release(x_302, 4); - lean_ctor_release(x_302, 5); - x_329 = x_302; +if (lean_is_exclusive(x_299)) { + lean_ctor_release(x_299, 0); + lean_ctor_release(x_299, 1); + lean_ctor_release(x_299, 2); + lean_ctor_release(x_299, 3); + lean_ctor_release(x_299, 4); + lean_ctor_release(x_299, 5); + x_326 = x_299; } else { - lean_dec_ref(x_302); + lean_dec_ref(x_299); + x_326 = lean_box(0); +} +x_327 = lean_ctor_get(x_300, 0); +lean_inc(x_327); +x_328 = lean_ctor_get(x_300, 1); +lean_inc(x_328); +if (lean_is_exclusive(x_300)) { + lean_ctor_release(x_300, 0); + lean_ctor_release(x_300, 1); + lean_ctor_release(x_300, 2); + x_329 = x_300; +} else { + lean_dec_ref(x_300); x_329 = lean_box(0); } -x_330 = lean_ctor_get(x_303, 0); -lean_inc(x_330); -x_331 = lean_ctor_get(x_303, 1); -lean_inc(x_331); -if (lean_is_exclusive(x_303)) { - lean_ctor_release(x_303, 0); - lean_ctor_release(x_303, 1); - lean_ctor_release(x_303, 2); - x_332 = x_303; -} else { - lean_dec_ref(x_303); - x_332 = lean_box(0); -} -if (lean_is_scalar(x_332)) { - x_333 = lean_alloc_ctor(0, 3, 0); -} else { - x_333 = x_332; -} -lean_ctor_set(x_333, 0, x_330); -lean_ctor_set(x_333, 1, x_331); -lean_ctor_set(x_333, 2, x_261); if (lean_is_scalar(x_329)) { - x_334 = lean_alloc_ctor(0, 6, 0); + x_330 = lean_alloc_ctor(0, 3, 0); } else { - x_334 = x_329; + x_330 = x_329; } -lean_ctor_set(x_334, 0, x_324); -lean_ctor_set(x_334, 1, x_325); -lean_ctor_set(x_334, 2, x_333); -lean_ctor_set(x_334, 3, x_326); -lean_ctor_set(x_334, 4, x_327); -lean_ctor_set(x_334, 5, x_328); -x_335 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_335, 0, x_323); -lean_ctor_set(x_335, 1, x_334); -return x_335; +lean_ctor_set(x_330, 0, x_327); +lean_ctor_set(x_330, 1, x_328); +lean_ctor_set(x_330, 2, x_258); +if (lean_is_scalar(x_326)) { + x_331 = lean_alloc_ctor(0, 6, 0); +} else { + x_331 = x_326; +} +lean_ctor_set(x_331, 0, x_321); +lean_ctor_set(x_331, 1, x_322); +lean_ctor_set(x_331, 2, x_330); +lean_ctor_set(x_331, 3, x_323); +lean_ctor_set(x_331, 4, x_324); +lean_ctor_set(x_331, 5, x_325); +x_332 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_332, 0, x_320); +lean_ctor_set(x_332, 1, x_331); +return x_332; } } } else { -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; -x_336 = lean_ctor_get(x_8, 0); -x_337 = lean_ctor_get(x_8, 1); -x_338 = lean_ctor_get(x_8, 2); -lean_inc(x_338); -lean_inc(x_337); -lean_inc(x_336); -lean_dec(x_8); -x_339 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_339, 0, x_255); -lean_ctor_set(x_339, 1, x_17); -x_340 = lean_array_push(x_338, x_339); -x_341 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_341, 0, x_336); -lean_ctor_set(x_341, 1, x_337); -lean_ctor_set(x_341, 2, x_340); -x_342 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallBoundedTelescope___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_257, x_341, x_254); -if (lean_obj_tag(x_342) == 0) +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; +x_333 = lean_ctor_get(x_7, 0); +x_334 = lean_ctor_get(x_7, 1); +x_335 = lean_ctor_get(x_7, 2); +lean_inc(x_335); +lean_inc(x_334); +lean_inc(x_333); +lean_dec(x_7); +x_336 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_336, 0, x_252); +lean_ctor_set(x_336, 1, x_14); +x_337 = lean_array_push(x_335, x_336); +x_338 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_338, 0, x_333); +lean_ctor_set(x_338, 1, x_334); +lean_ctor_set(x_338, 2, x_337); +x_339 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallBoundedTelescope___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_254, x_338, x_251); +if (lean_obj_tag(x_339) == 0) { -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; -x_343 = lean_ctor_get(x_342, 1); -lean_inc(x_343); -x_344 = lean_ctor_get(x_343, 2); -lean_inc(x_344); -x_345 = lean_ctor_get(x_342, 0); -lean_inc(x_345); -if (lean_is_exclusive(x_342)) { - lean_ctor_release(x_342, 0); - lean_ctor_release(x_342, 1); - x_346 = x_342; +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; +x_340 = lean_ctor_get(x_339, 1); +lean_inc(x_340); +x_341 = lean_ctor_get(x_340, 2); +lean_inc(x_341); +x_342 = lean_ctor_get(x_339, 0); +lean_inc(x_342); +if (lean_is_exclusive(x_339)) { + lean_ctor_release(x_339, 0); + lean_ctor_release(x_339, 1); + x_343 = x_339; } else { - lean_dec_ref(x_342); - x_346 = lean_box(0); + lean_dec_ref(x_339); + x_343 = lean_box(0); } -x_347 = lean_ctor_get(x_343, 0); +x_344 = lean_ctor_get(x_340, 0); +lean_inc(x_344); +x_345 = lean_ctor_get(x_340, 1); +lean_inc(x_345); +x_346 = lean_ctor_get(x_340, 3); +lean_inc(x_346); +x_347 = lean_ctor_get(x_340, 4); lean_inc(x_347); -x_348 = lean_ctor_get(x_343, 1); +x_348 = lean_ctor_get(x_340, 5); lean_inc(x_348); -x_349 = lean_ctor_get(x_343, 3); -lean_inc(x_349); -x_350 = lean_ctor_get(x_343, 4); -lean_inc(x_350); -x_351 = lean_ctor_get(x_343, 5); -lean_inc(x_351); -if (lean_is_exclusive(x_343)) { - lean_ctor_release(x_343, 0); - lean_ctor_release(x_343, 1); - lean_ctor_release(x_343, 2); - lean_ctor_release(x_343, 3); - lean_ctor_release(x_343, 4); - lean_ctor_release(x_343, 5); - x_352 = x_343; +if (lean_is_exclusive(x_340)) { + lean_ctor_release(x_340, 0); + lean_ctor_release(x_340, 1); + lean_ctor_release(x_340, 2); + lean_ctor_release(x_340, 3); + lean_ctor_release(x_340, 4); + lean_ctor_release(x_340, 5); + x_349 = x_340; } else { - lean_dec_ref(x_343); + lean_dec_ref(x_340); + x_349 = lean_box(0); +} +x_350 = lean_ctor_get(x_341, 0); +lean_inc(x_350); +x_351 = lean_ctor_get(x_341, 1); +lean_inc(x_351); +if (lean_is_exclusive(x_341)) { + lean_ctor_release(x_341, 0); + lean_ctor_release(x_341, 1); + lean_ctor_release(x_341, 2); + x_352 = x_341; +} else { + lean_dec_ref(x_341); x_352 = lean_box(0); } -x_353 = lean_ctor_get(x_344, 0); -lean_inc(x_353); -x_354 = lean_ctor_get(x_344, 1); -lean_inc(x_354); -if (lean_is_exclusive(x_344)) { - lean_ctor_release(x_344, 0); - lean_ctor_release(x_344, 1); - lean_ctor_release(x_344, 2); - x_355 = x_344; -} else { - lean_dec_ref(x_344); - x_355 = lean_box(0); -} -if (lean_is_scalar(x_355)) { - x_356 = lean_alloc_ctor(0, 3, 0); -} else { - x_356 = x_355; -} -lean_ctor_set(x_356, 0, x_353); -lean_ctor_set(x_356, 1, x_354); -lean_ctor_set(x_356, 2, x_261); if (lean_is_scalar(x_352)) { - x_357 = lean_alloc_ctor(0, 6, 0); + x_353 = lean_alloc_ctor(0, 3, 0); } else { - x_357 = x_352; + x_353 = x_352; } -lean_ctor_set(x_357, 0, x_347); -lean_ctor_set(x_357, 1, x_348); -lean_ctor_set(x_357, 2, x_356); -lean_ctor_set(x_357, 3, x_349); -lean_ctor_set(x_357, 4, x_350); -lean_ctor_set(x_357, 5, x_351); -if (lean_is_scalar(x_346)) { - x_358 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_353, 0, x_350); +lean_ctor_set(x_353, 1, x_351); +lean_ctor_set(x_353, 2, x_258); +if (lean_is_scalar(x_349)) { + x_354 = lean_alloc_ctor(0, 6, 0); } else { - x_358 = x_346; + x_354 = x_349; } -lean_ctor_set(x_358, 0, x_345); -lean_ctor_set(x_358, 1, x_357); -return x_358; +lean_ctor_set(x_354, 0, x_344); +lean_ctor_set(x_354, 1, x_345); +lean_ctor_set(x_354, 2, x_353); +lean_ctor_set(x_354, 3, x_346); +lean_ctor_set(x_354, 4, x_347); +lean_ctor_set(x_354, 5, x_348); +if (lean_is_scalar(x_343)) { + x_355 = lean_alloc_ctor(0, 2, 0); +} else { + x_355 = x_343; +} +lean_ctor_set(x_355, 0, x_342); +lean_ctor_set(x_355, 1, x_354); +return x_355; } else { -lean_object* x_359; lean_object* x_360; 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; -x_359 = lean_ctor_get(x_342, 1); -lean_inc(x_359); -x_360 = lean_ctor_get(x_359, 2); -lean_inc(x_360); -x_361 = lean_ctor_get(x_342, 0); -lean_inc(x_361); -if (lean_is_exclusive(x_342)) { - lean_ctor_release(x_342, 0); - lean_ctor_release(x_342, 1); - x_362 = x_342; +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_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; +x_356 = lean_ctor_get(x_339, 1); +lean_inc(x_356); +x_357 = lean_ctor_get(x_356, 2); +lean_inc(x_357); +x_358 = lean_ctor_get(x_339, 0); +lean_inc(x_358); +if (lean_is_exclusive(x_339)) { + lean_ctor_release(x_339, 0); + lean_ctor_release(x_339, 1); + x_359 = x_339; } else { - lean_dec_ref(x_342); - x_362 = lean_box(0); + lean_dec_ref(x_339); + x_359 = lean_box(0); } -x_363 = lean_ctor_get(x_359, 0); +x_360 = lean_ctor_get(x_356, 0); +lean_inc(x_360); +x_361 = lean_ctor_get(x_356, 1); +lean_inc(x_361); +x_362 = lean_ctor_get(x_356, 3); +lean_inc(x_362); +x_363 = lean_ctor_get(x_356, 4); lean_inc(x_363); -x_364 = lean_ctor_get(x_359, 1); +x_364 = lean_ctor_get(x_356, 5); lean_inc(x_364); -x_365 = lean_ctor_get(x_359, 3); -lean_inc(x_365); -x_366 = lean_ctor_get(x_359, 4); -lean_inc(x_366); -x_367 = lean_ctor_get(x_359, 5); -lean_inc(x_367); -if (lean_is_exclusive(x_359)) { - lean_ctor_release(x_359, 0); - lean_ctor_release(x_359, 1); - lean_ctor_release(x_359, 2); - lean_ctor_release(x_359, 3); - lean_ctor_release(x_359, 4); - lean_ctor_release(x_359, 5); - x_368 = x_359; +if (lean_is_exclusive(x_356)) { + lean_ctor_release(x_356, 0); + lean_ctor_release(x_356, 1); + lean_ctor_release(x_356, 2); + lean_ctor_release(x_356, 3); + lean_ctor_release(x_356, 4); + lean_ctor_release(x_356, 5); + x_365 = x_356; } else { - lean_dec_ref(x_359); + lean_dec_ref(x_356); + x_365 = lean_box(0); +} +x_366 = lean_ctor_get(x_357, 0); +lean_inc(x_366); +x_367 = lean_ctor_get(x_357, 1); +lean_inc(x_367); +if (lean_is_exclusive(x_357)) { + lean_ctor_release(x_357, 0); + lean_ctor_release(x_357, 1); + lean_ctor_release(x_357, 2); + x_368 = x_357; +} else { + lean_dec_ref(x_357); x_368 = lean_box(0); } -x_369 = lean_ctor_get(x_360, 0); -lean_inc(x_369); -x_370 = lean_ctor_get(x_360, 1); -lean_inc(x_370); -if (lean_is_exclusive(x_360)) { - lean_ctor_release(x_360, 0); - lean_ctor_release(x_360, 1); - lean_ctor_release(x_360, 2); - x_371 = x_360; -} else { - lean_dec_ref(x_360); - x_371 = lean_box(0); -} -if (lean_is_scalar(x_371)) { - x_372 = lean_alloc_ctor(0, 3, 0); -} else { - x_372 = x_371; -} -lean_ctor_set(x_372, 0, x_369); -lean_ctor_set(x_372, 1, x_370); -lean_ctor_set(x_372, 2, x_261); if (lean_is_scalar(x_368)) { - x_373 = lean_alloc_ctor(0, 6, 0); + x_369 = lean_alloc_ctor(0, 3, 0); } else { - x_373 = x_368; + x_369 = x_368; } -lean_ctor_set(x_373, 0, x_363); -lean_ctor_set(x_373, 1, x_364); -lean_ctor_set(x_373, 2, x_372); -lean_ctor_set(x_373, 3, x_365); -lean_ctor_set(x_373, 4, x_366); -lean_ctor_set(x_373, 5, x_367); -if (lean_is_scalar(x_362)) { - x_374 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_369, 0, x_366); +lean_ctor_set(x_369, 1, x_367); +lean_ctor_set(x_369, 2, x_258); +if (lean_is_scalar(x_365)) { + x_370 = lean_alloc_ctor(0, 6, 0); } else { - x_374 = x_362; + x_370 = x_365; } -lean_ctor_set(x_374, 0, x_361); -lean_ctor_set(x_374, 1, x_373); -return x_374; +lean_ctor_set(x_370, 0, x_360); +lean_ctor_set(x_370, 1, x_361); +lean_ctor_set(x_370, 2, x_369); +lean_ctor_set(x_370, 3, x_362); +lean_ctor_set(x_370, 4, x_363); +lean_ctor_set(x_370, 5, x_364); +if (lean_is_scalar(x_359)) { + x_371 = lean_alloc_ctor(1, 2, 0); +} else { + x_371 = x_359; +} +lean_ctor_set(x_371, 0, x_358); +lean_ctor_set(x_371, 1, x_370); +return x_371; } } } else { -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; -x_375 = lean_ctor_get(x_259, 0); -x_376 = lean_ctor_get(x_259, 1); -x_377 = lean_ctor_get(x_259, 2); +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; +x_372 = lean_ctor_get(x_256, 0); +x_373 = lean_ctor_get(x_256, 1); +x_374 = lean_ctor_get(x_256, 2); +lean_inc(x_374); +lean_inc(x_373); +lean_inc(x_372); +lean_dec(x_256); +x_375 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +x_376 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_376, 0, x_372); +lean_ctor_set(x_376, 1, x_373); +lean_ctor_set(x_376, 2, x_375); +lean_ctor_set(x_251, 2, x_376); +x_377 = lean_ctor_get(x_7, 0); lean_inc(x_377); -lean_inc(x_376); -lean_inc(x_375); -lean_dec(x_259); -x_378 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; -x_379 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_379, 0, x_375); -lean_ctor_set(x_379, 1, x_376); -lean_ctor_set(x_379, 2, x_378); -lean_ctor_set(x_254, 2, x_379); -x_380 = lean_ctor_get(x_8, 0); -lean_inc(x_380); -x_381 = lean_ctor_get(x_8, 1); -lean_inc(x_381); -x_382 = lean_ctor_get(x_8, 2); -lean_inc(x_382); -if (lean_is_exclusive(x_8)) { - lean_ctor_release(x_8, 0); - lean_ctor_release(x_8, 1); - lean_ctor_release(x_8, 2); - x_383 = x_8; +x_378 = lean_ctor_get(x_7, 1); +lean_inc(x_378); +x_379 = lean_ctor_get(x_7, 2); +lean_inc(x_379); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + lean_ctor_release(x_7, 2); + x_380 = x_7; } else { - lean_dec_ref(x_8); - x_383 = lean_box(0); + lean_dec_ref(x_7); + x_380 = lean_box(0); } -x_384 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_384, 0, x_255); -lean_ctor_set(x_384, 1, x_17); -x_385 = lean_array_push(x_382, x_384); -if (lean_is_scalar(x_383)) { - x_386 = lean_alloc_ctor(0, 3, 0); +x_381 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_381, 0, x_252); +lean_ctor_set(x_381, 1, x_14); +x_382 = lean_array_push(x_379, x_381); +if (lean_is_scalar(x_380)) { + x_383 = lean_alloc_ctor(0, 3, 0); } else { - x_386 = x_383; + x_383 = x_380; } -lean_ctor_set(x_386, 0, x_380); -lean_ctor_set(x_386, 1, x_381); -lean_ctor_set(x_386, 2, x_385); -x_387 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallBoundedTelescope___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_257, x_386, x_254); -if (lean_obj_tag(x_387) == 0) +lean_ctor_set(x_383, 0, x_377); +lean_ctor_set(x_383, 1, x_378); +lean_ctor_set(x_383, 2, x_382); +x_384 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallBoundedTelescope___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_254, x_383, x_251); +if (lean_obj_tag(x_384) == 0) { -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; -x_388 = lean_ctor_get(x_387, 1); -lean_inc(x_388); -x_389 = lean_ctor_get(x_388, 2); -lean_inc(x_389); -x_390 = lean_ctor_get(x_387, 0); -lean_inc(x_390); -if (lean_is_exclusive(x_387)) { - lean_ctor_release(x_387, 0); - lean_ctor_release(x_387, 1); - x_391 = x_387; +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; +x_385 = lean_ctor_get(x_384, 1); +lean_inc(x_385); +x_386 = lean_ctor_get(x_385, 2); +lean_inc(x_386); +x_387 = lean_ctor_get(x_384, 0); +lean_inc(x_387); +if (lean_is_exclusive(x_384)) { + lean_ctor_release(x_384, 0); + lean_ctor_release(x_384, 1); + x_388 = x_384; } else { - lean_dec_ref(x_387); - x_391 = lean_box(0); + lean_dec_ref(x_384); + x_388 = lean_box(0); } -x_392 = lean_ctor_get(x_388, 0); +x_389 = lean_ctor_get(x_385, 0); +lean_inc(x_389); +x_390 = lean_ctor_get(x_385, 1); +lean_inc(x_390); +x_391 = lean_ctor_get(x_385, 3); +lean_inc(x_391); +x_392 = lean_ctor_get(x_385, 4); lean_inc(x_392); -x_393 = lean_ctor_get(x_388, 1); +x_393 = lean_ctor_get(x_385, 5); lean_inc(x_393); -x_394 = lean_ctor_get(x_388, 3); -lean_inc(x_394); -x_395 = lean_ctor_get(x_388, 4); -lean_inc(x_395); -x_396 = lean_ctor_get(x_388, 5); -lean_inc(x_396); -if (lean_is_exclusive(x_388)) { - lean_ctor_release(x_388, 0); - lean_ctor_release(x_388, 1); - lean_ctor_release(x_388, 2); - lean_ctor_release(x_388, 3); - lean_ctor_release(x_388, 4); - lean_ctor_release(x_388, 5); - x_397 = x_388; +if (lean_is_exclusive(x_385)) { + lean_ctor_release(x_385, 0); + lean_ctor_release(x_385, 1); + lean_ctor_release(x_385, 2); + lean_ctor_release(x_385, 3); + lean_ctor_release(x_385, 4); + lean_ctor_release(x_385, 5); + x_394 = x_385; } else { - lean_dec_ref(x_388); + lean_dec_ref(x_385); + x_394 = lean_box(0); +} +x_395 = lean_ctor_get(x_386, 0); +lean_inc(x_395); +x_396 = lean_ctor_get(x_386, 1); +lean_inc(x_396); +if (lean_is_exclusive(x_386)) { + lean_ctor_release(x_386, 0); + lean_ctor_release(x_386, 1); + lean_ctor_release(x_386, 2); + x_397 = x_386; +} else { + lean_dec_ref(x_386); x_397 = lean_box(0); } -x_398 = lean_ctor_get(x_389, 0); -lean_inc(x_398); -x_399 = lean_ctor_get(x_389, 1); -lean_inc(x_399); -if (lean_is_exclusive(x_389)) { - lean_ctor_release(x_389, 0); - lean_ctor_release(x_389, 1); - lean_ctor_release(x_389, 2); - x_400 = x_389; -} else { - lean_dec_ref(x_389); - x_400 = lean_box(0); -} -if (lean_is_scalar(x_400)) { - x_401 = lean_alloc_ctor(0, 3, 0); -} else { - x_401 = x_400; -} -lean_ctor_set(x_401, 0, x_398); -lean_ctor_set(x_401, 1, x_399); -lean_ctor_set(x_401, 2, x_377); if (lean_is_scalar(x_397)) { - x_402 = lean_alloc_ctor(0, 6, 0); + x_398 = lean_alloc_ctor(0, 3, 0); } else { - x_402 = x_397; + x_398 = x_397; } -lean_ctor_set(x_402, 0, x_392); -lean_ctor_set(x_402, 1, x_393); -lean_ctor_set(x_402, 2, x_401); -lean_ctor_set(x_402, 3, x_394); -lean_ctor_set(x_402, 4, x_395); -lean_ctor_set(x_402, 5, x_396); -if (lean_is_scalar(x_391)) { - x_403 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_398, 0, x_395); +lean_ctor_set(x_398, 1, x_396); +lean_ctor_set(x_398, 2, x_374); +if (lean_is_scalar(x_394)) { + x_399 = lean_alloc_ctor(0, 6, 0); } else { - x_403 = x_391; + x_399 = x_394; } -lean_ctor_set(x_403, 0, x_390); -lean_ctor_set(x_403, 1, x_402); -return x_403; +lean_ctor_set(x_399, 0, x_389); +lean_ctor_set(x_399, 1, x_390); +lean_ctor_set(x_399, 2, x_398); +lean_ctor_set(x_399, 3, x_391); +lean_ctor_set(x_399, 4, x_392); +lean_ctor_set(x_399, 5, x_393); +if (lean_is_scalar(x_388)) { + x_400 = lean_alloc_ctor(0, 2, 0); +} else { + x_400 = x_388; +} +lean_ctor_set(x_400, 0, x_387); +lean_ctor_set(x_400, 1, x_399); +return x_400; } else { -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; -x_404 = lean_ctor_get(x_387, 1); -lean_inc(x_404); -x_405 = lean_ctor_get(x_404, 2); -lean_inc(x_405); -x_406 = lean_ctor_get(x_387, 0); -lean_inc(x_406); -if (lean_is_exclusive(x_387)) { - lean_ctor_release(x_387, 0); - lean_ctor_release(x_387, 1); - x_407 = x_387; +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; +x_401 = lean_ctor_get(x_384, 1); +lean_inc(x_401); +x_402 = lean_ctor_get(x_401, 2); +lean_inc(x_402); +x_403 = lean_ctor_get(x_384, 0); +lean_inc(x_403); +if (lean_is_exclusive(x_384)) { + lean_ctor_release(x_384, 0); + lean_ctor_release(x_384, 1); + x_404 = x_384; } else { - lean_dec_ref(x_387); - x_407 = lean_box(0); + lean_dec_ref(x_384); + x_404 = lean_box(0); } -x_408 = lean_ctor_get(x_404, 0); +x_405 = lean_ctor_get(x_401, 0); +lean_inc(x_405); +x_406 = lean_ctor_get(x_401, 1); +lean_inc(x_406); +x_407 = lean_ctor_get(x_401, 3); +lean_inc(x_407); +x_408 = lean_ctor_get(x_401, 4); lean_inc(x_408); -x_409 = lean_ctor_get(x_404, 1); +x_409 = lean_ctor_get(x_401, 5); lean_inc(x_409); -x_410 = lean_ctor_get(x_404, 3); -lean_inc(x_410); -x_411 = lean_ctor_get(x_404, 4); -lean_inc(x_411); -x_412 = lean_ctor_get(x_404, 5); -lean_inc(x_412); -if (lean_is_exclusive(x_404)) { - lean_ctor_release(x_404, 0); - lean_ctor_release(x_404, 1); - lean_ctor_release(x_404, 2); - lean_ctor_release(x_404, 3); - lean_ctor_release(x_404, 4); - lean_ctor_release(x_404, 5); - x_413 = x_404; +if (lean_is_exclusive(x_401)) { + lean_ctor_release(x_401, 0); + lean_ctor_release(x_401, 1); + lean_ctor_release(x_401, 2); + lean_ctor_release(x_401, 3); + lean_ctor_release(x_401, 4); + lean_ctor_release(x_401, 5); + x_410 = x_401; } else { - lean_dec_ref(x_404); + lean_dec_ref(x_401); + x_410 = lean_box(0); +} +x_411 = lean_ctor_get(x_402, 0); +lean_inc(x_411); +x_412 = lean_ctor_get(x_402, 1); +lean_inc(x_412); +if (lean_is_exclusive(x_402)) { + lean_ctor_release(x_402, 0); + lean_ctor_release(x_402, 1); + lean_ctor_release(x_402, 2); + x_413 = x_402; +} else { + lean_dec_ref(x_402); x_413 = lean_box(0); } -x_414 = lean_ctor_get(x_405, 0); -lean_inc(x_414); -x_415 = lean_ctor_get(x_405, 1); -lean_inc(x_415); -if (lean_is_exclusive(x_405)) { - lean_ctor_release(x_405, 0); - lean_ctor_release(x_405, 1); - lean_ctor_release(x_405, 2); - x_416 = x_405; -} else { - lean_dec_ref(x_405); - x_416 = lean_box(0); -} -if (lean_is_scalar(x_416)) { - x_417 = lean_alloc_ctor(0, 3, 0); -} else { - x_417 = x_416; -} -lean_ctor_set(x_417, 0, x_414); -lean_ctor_set(x_417, 1, x_415); -lean_ctor_set(x_417, 2, x_377); if (lean_is_scalar(x_413)) { - x_418 = lean_alloc_ctor(0, 6, 0); + x_414 = lean_alloc_ctor(0, 3, 0); } else { - x_418 = x_413; + x_414 = x_413; } -lean_ctor_set(x_418, 0, x_408); -lean_ctor_set(x_418, 1, x_409); -lean_ctor_set(x_418, 2, x_417); -lean_ctor_set(x_418, 3, x_410); -lean_ctor_set(x_418, 4, x_411); -lean_ctor_set(x_418, 5, x_412); -if (lean_is_scalar(x_407)) { - x_419 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_414, 0, x_411); +lean_ctor_set(x_414, 1, x_412); +lean_ctor_set(x_414, 2, x_374); +if (lean_is_scalar(x_410)) { + x_415 = lean_alloc_ctor(0, 6, 0); } else { - x_419 = x_407; + x_415 = x_410; } -lean_ctor_set(x_419, 0, x_406); -lean_ctor_set(x_419, 1, x_418); -return x_419; +lean_ctor_set(x_415, 0, x_405); +lean_ctor_set(x_415, 1, x_406); +lean_ctor_set(x_415, 2, x_414); +lean_ctor_set(x_415, 3, x_407); +lean_ctor_set(x_415, 4, x_408); +lean_ctor_set(x_415, 5, x_409); +if (lean_is_scalar(x_404)) { + x_416 = lean_alloc_ctor(1, 2, 0); +} else { + x_416 = x_404; +} +lean_ctor_set(x_416, 0, x_403); +lean_ctor_set(x_416, 1, x_415); +return x_416; } } } else { -lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_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; -x_420 = lean_ctor_get(x_254, 2); -x_421 = lean_ctor_get(x_254, 0); -x_422 = lean_ctor_get(x_254, 1); -x_423 = lean_ctor_get(x_254, 3); -x_424 = lean_ctor_get(x_254, 4); -x_425 = lean_ctor_get(x_254, 5); -lean_inc(x_425); -lean_inc(x_424); -lean_inc(x_423); -lean_inc(x_420); +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; +x_417 = lean_ctor_get(x_251, 2); +x_418 = lean_ctor_get(x_251, 0); +x_419 = lean_ctor_get(x_251, 1); +x_420 = lean_ctor_get(x_251, 3); +x_421 = lean_ctor_get(x_251, 4); +x_422 = lean_ctor_get(x_251, 5); lean_inc(x_422); lean_inc(x_421); -lean_dec(x_254); -x_426 = lean_ctor_get(x_420, 0); -lean_inc(x_426); -x_427 = lean_ctor_get(x_420, 1); -lean_inc(x_427); -x_428 = lean_ctor_get(x_420, 2); -lean_inc(x_428); -if (lean_is_exclusive(x_420)) { - lean_ctor_release(x_420, 0); - lean_ctor_release(x_420, 1); - lean_ctor_release(x_420, 2); - x_429 = x_420; +lean_inc(x_420); +lean_inc(x_417); +lean_inc(x_419); +lean_inc(x_418); +lean_dec(x_251); +x_423 = lean_ctor_get(x_417, 0); +lean_inc(x_423); +x_424 = lean_ctor_get(x_417, 1); +lean_inc(x_424); +x_425 = lean_ctor_get(x_417, 2); +lean_inc(x_425); +if (lean_is_exclusive(x_417)) { + lean_ctor_release(x_417, 0); + lean_ctor_release(x_417, 1); + lean_ctor_release(x_417, 2); + x_426 = x_417; } else { - lean_dec_ref(x_420); - x_429 = lean_box(0); + lean_dec_ref(x_417); + x_426 = lean_box(0); } -x_430 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; -if (lean_is_scalar(x_429)) { - x_431 = lean_alloc_ctor(0, 3, 0); +x_427 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +if (lean_is_scalar(x_426)) { + x_428 = lean_alloc_ctor(0, 3, 0); } else { - x_431 = x_429; + x_428 = x_426; } -lean_ctor_set(x_431, 0, x_426); -lean_ctor_set(x_431, 1, x_427); -lean_ctor_set(x_431, 2, x_430); -x_432 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_432, 0, x_421); -lean_ctor_set(x_432, 1, x_422); -lean_ctor_set(x_432, 2, x_431); -lean_ctor_set(x_432, 3, x_423); -lean_ctor_set(x_432, 4, x_424); -lean_ctor_set(x_432, 5, x_425); -x_433 = lean_ctor_get(x_8, 0); -lean_inc(x_433); -x_434 = lean_ctor_get(x_8, 1); -lean_inc(x_434); -x_435 = lean_ctor_get(x_8, 2); -lean_inc(x_435); -if (lean_is_exclusive(x_8)) { - lean_ctor_release(x_8, 0); - lean_ctor_release(x_8, 1); - lean_ctor_release(x_8, 2); - x_436 = x_8; +lean_ctor_set(x_428, 0, x_423); +lean_ctor_set(x_428, 1, x_424); +lean_ctor_set(x_428, 2, x_427); +x_429 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_429, 0, x_418); +lean_ctor_set(x_429, 1, x_419); +lean_ctor_set(x_429, 2, x_428); +lean_ctor_set(x_429, 3, x_420); +lean_ctor_set(x_429, 4, x_421); +lean_ctor_set(x_429, 5, x_422); +x_430 = lean_ctor_get(x_7, 0); +lean_inc(x_430); +x_431 = lean_ctor_get(x_7, 1); +lean_inc(x_431); +x_432 = lean_ctor_get(x_7, 2); +lean_inc(x_432); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + lean_ctor_release(x_7, 2); + x_433 = x_7; } else { - lean_dec_ref(x_8); - x_436 = lean_box(0); + lean_dec_ref(x_7); + x_433 = lean_box(0); } -x_437 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_437, 0, x_255); -lean_ctor_set(x_437, 1, x_17); -x_438 = lean_array_push(x_435, x_437); -if (lean_is_scalar(x_436)) { - x_439 = lean_alloc_ctor(0, 3, 0); +x_434 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_434, 0, x_252); +lean_ctor_set(x_434, 1, x_14); +x_435 = lean_array_push(x_432, x_434); +if (lean_is_scalar(x_433)) { + x_436 = lean_alloc_ctor(0, 3, 0); } else { - x_439 = x_436; + x_436 = x_433; } -lean_ctor_set(x_439, 0, x_433); -lean_ctor_set(x_439, 1, x_434); -lean_ctor_set(x_439, 2, x_438); -x_440 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallBoundedTelescope___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_257, x_439, x_432); -if (lean_obj_tag(x_440) == 0) +lean_ctor_set(x_436, 0, x_430); +lean_ctor_set(x_436, 1, x_431); +lean_ctor_set(x_436, 2, x_435); +x_437 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallBoundedTelescope___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_254, x_436, x_429); +if (lean_obj_tag(x_437) == 0) { -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; -x_441 = lean_ctor_get(x_440, 1); -lean_inc(x_441); -x_442 = lean_ctor_get(x_441, 2); -lean_inc(x_442); -x_443 = lean_ctor_get(x_440, 0); -lean_inc(x_443); -if (lean_is_exclusive(x_440)) { - lean_ctor_release(x_440, 0); - lean_ctor_release(x_440, 1); - x_444 = x_440; +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; +x_438 = lean_ctor_get(x_437, 1); +lean_inc(x_438); +x_439 = lean_ctor_get(x_438, 2); +lean_inc(x_439); +x_440 = lean_ctor_get(x_437, 0); +lean_inc(x_440); +if (lean_is_exclusive(x_437)) { + lean_ctor_release(x_437, 0); + lean_ctor_release(x_437, 1); + x_441 = x_437; } else { - lean_dec_ref(x_440); - x_444 = lean_box(0); + lean_dec_ref(x_437); + x_441 = lean_box(0); } -x_445 = lean_ctor_get(x_441, 0); +x_442 = lean_ctor_get(x_438, 0); +lean_inc(x_442); +x_443 = lean_ctor_get(x_438, 1); +lean_inc(x_443); +x_444 = lean_ctor_get(x_438, 3); +lean_inc(x_444); +x_445 = lean_ctor_get(x_438, 4); lean_inc(x_445); -x_446 = lean_ctor_get(x_441, 1); +x_446 = lean_ctor_get(x_438, 5); lean_inc(x_446); -x_447 = lean_ctor_get(x_441, 3); -lean_inc(x_447); -x_448 = lean_ctor_get(x_441, 4); -lean_inc(x_448); -x_449 = lean_ctor_get(x_441, 5); -lean_inc(x_449); -if (lean_is_exclusive(x_441)) { - lean_ctor_release(x_441, 0); - lean_ctor_release(x_441, 1); - lean_ctor_release(x_441, 2); - lean_ctor_release(x_441, 3); - lean_ctor_release(x_441, 4); - lean_ctor_release(x_441, 5); - x_450 = x_441; +if (lean_is_exclusive(x_438)) { + lean_ctor_release(x_438, 0); + lean_ctor_release(x_438, 1); + lean_ctor_release(x_438, 2); + lean_ctor_release(x_438, 3); + lean_ctor_release(x_438, 4); + lean_ctor_release(x_438, 5); + x_447 = x_438; } else { - lean_dec_ref(x_441); + lean_dec_ref(x_438); + x_447 = lean_box(0); +} +x_448 = lean_ctor_get(x_439, 0); +lean_inc(x_448); +x_449 = lean_ctor_get(x_439, 1); +lean_inc(x_449); +if (lean_is_exclusive(x_439)) { + lean_ctor_release(x_439, 0); + lean_ctor_release(x_439, 1); + lean_ctor_release(x_439, 2); + x_450 = x_439; +} else { + lean_dec_ref(x_439); x_450 = lean_box(0); } -x_451 = lean_ctor_get(x_442, 0); -lean_inc(x_451); -x_452 = lean_ctor_get(x_442, 1); -lean_inc(x_452); -if (lean_is_exclusive(x_442)) { - lean_ctor_release(x_442, 0); - lean_ctor_release(x_442, 1); - lean_ctor_release(x_442, 2); - x_453 = x_442; -} else { - lean_dec_ref(x_442); - x_453 = lean_box(0); -} -if (lean_is_scalar(x_453)) { - x_454 = lean_alloc_ctor(0, 3, 0); -} else { - x_454 = x_453; -} -lean_ctor_set(x_454, 0, x_451); -lean_ctor_set(x_454, 1, x_452); -lean_ctor_set(x_454, 2, x_428); if (lean_is_scalar(x_450)) { - x_455 = lean_alloc_ctor(0, 6, 0); + x_451 = lean_alloc_ctor(0, 3, 0); } else { - x_455 = x_450; + x_451 = x_450; } -lean_ctor_set(x_455, 0, x_445); -lean_ctor_set(x_455, 1, x_446); -lean_ctor_set(x_455, 2, x_454); -lean_ctor_set(x_455, 3, x_447); -lean_ctor_set(x_455, 4, x_448); -lean_ctor_set(x_455, 5, x_449); -if (lean_is_scalar(x_444)) { - x_456 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_451, 0, x_448); +lean_ctor_set(x_451, 1, x_449); +lean_ctor_set(x_451, 2, x_425); +if (lean_is_scalar(x_447)) { + x_452 = lean_alloc_ctor(0, 6, 0); } else { - x_456 = x_444; + x_452 = x_447; } -lean_ctor_set(x_456, 0, x_443); -lean_ctor_set(x_456, 1, x_455); -return x_456; +lean_ctor_set(x_452, 0, x_442); +lean_ctor_set(x_452, 1, x_443); +lean_ctor_set(x_452, 2, x_451); +lean_ctor_set(x_452, 3, x_444); +lean_ctor_set(x_452, 4, x_445); +lean_ctor_set(x_452, 5, x_446); +if (lean_is_scalar(x_441)) { + x_453 = lean_alloc_ctor(0, 2, 0); +} else { + x_453 = x_441; +} +lean_ctor_set(x_453, 0, x_440); +lean_ctor_set(x_453, 1, x_452); +return x_453; } else { -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; -x_457 = lean_ctor_get(x_440, 1); -lean_inc(x_457); -x_458 = lean_ctor_get(x_457, 2); -lean_inc(x_458); -x_459 = lean_ctor_get(x_440, 0); -lean_inc(x_459); -if (lean_is_exclusive(x_440)) { - lean_ctor_release(x_440, 0); - lean_ctor_release(x_440, 1); - x_460 = x_440; +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; +x_454 = lean_ctor_get(x_437, 1); +lean_inc(x_454); +x_455 = lean_ctor_get(x_454, 2); +lean_inc(x_455); +x_456 = lean_ctor_get(x_437, 0); +lean_inc(x_456); +if (lean_is_exclusive(x_437)) { + lean_ctor_release(x_437, 0); + lean_ctor_release(x_437, 1); + x_457 = x_437; } else { - lean_dec_ref(x_440); - x_460 = lean_box(0); + lean_dec_ref(x_437); + x_457 = lean_box(0); } -x_461 = lean_ctor_get(x_457, 0); +x_458 = lean_ctor_get(x_454, 0); +lean_inc(x_458); +x_459 = lean_ctor_get(x_454, 1); +lean_inc(x_459); +x_460 = lean_ctor_get(x_454, 3); +lean_inc(x_460); +x_461 = lean_ctor_get(x_454, 4); lean_inc(x_461); -x_462 = lean_ctor_get(x_457, 1); +x_462 = lean_ctor_get(x_454, 5); lean_inc(x_462); -x_463 = lean_ctor_get(x_457, 3); -lean_inc(x_463); -x_464 = lean_ctor_get(x_457, 4); -lean_inc(x_464); -x_465 = lean_ctor_get(x_457, 5); -lean_inc(x_465); -if (lean_is_exclusive(x_457)) { - lean_ctor_release(x_457, 0); - lean_ctor_release(x_457, 1); - lean_ctor_release(x_457, 2); - lean_ctor_release(x_457, 3); - lean_ctor_release(x_457, 4); - lean_ctor_release(x_457, 5); - x_466 = x_457; +if (lean_is_exclusive(x_454)) { + lean_ctor_release(x_454, 0); + lean_ctor_release(x_454, 1); + lean_ctor_release(x_454, 2); + lean_ctor_release(x_454, 3); + lean_ctor_release(x_454, 4); + lean_ctor_release(x_454, 5); + x_463 = x_454; } else { - lean_dec_ref(x_457); + lean_dec_ref(x_454); + x_463 = lean_box(0); +} +x_464 = lean_ctor_get(x_455, 0); +lean_inc(x_464); +x_465 = lean_ctor_get(x_455, 1); +lean_inc(x_465); +if (lean_is_exclusive(x_455)) { + lean_ctor_release(x_455, 0); + lean_ctor_release(x_455, 1); + lean_ctor_release(x_455, 2); + x_466 = x_455; +} else { + lean_dec_ref(x_455); x_466 = lean_box(0); } -x_467 = lean_ctor_get(x_458, 0); -lean_inc(x_467); -x_468 = lean_ctor_get(x_458, 1); -lean_inc(x_468); -if (lean_is_exclusive(x_458)) { - lean_ctor_release(x_458, 0); - lean_ctor_release(x_458, 1); - lean_ctor_release(x_458, 2); - x_469 = x_458; -} else { - lean_dec_ref(x_458); - x_469 = lean_box(0); -} -if (lean_is_scalar(x_469)) { - x_470 = lean_alloc_ctor(0, 3, 0); -} else { - x_470 = x_469; -} -lean_ctor_set(x_470, 0, x_467); -lean_ctor_set(x_470, 1, x_468); -lean_ctor_set(x_470, 2, x_428); if (lean_is_scalar(x_466)) { - x_471 = lean_alloc_ctor(0, 6, 0); + x_467 = lean_alloc_ctor(0, 3, 0); } else { - x_471 = x_466; + x_467 = x_466; } -lean_ctor_set(x_471, 0, x_461); -lean_ctor_set(x_471, 1, x_462); -lean_ctor_set(x_471, 2, x_470); -lean_ctor_set(x_471, 3, x_463); -lean_ctor_set(x_471, 4, x_464); -lean_ctor_set(x_471, 5, x_465); -if (lean_is_scalar(x_460)) { - x_472 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_467, 0, x_464); +lean_ctor_set(x_467, 1, x_465); +lean_ctor_set(x_467, 2, x_425); +if (lean_is_scalar(x_463)) { + x_468 = lean_alloc_ctor(0, 6, 0); } else { - x_472 = x_460; + x_468 = x_463; } -lean_ctor_set(x_472, 0, x_459); -lean_ctor_set(x_472, 1, x_471); -return x_472; +lean_ctor_set(x_468, 0, x_458); +lean_ctor_set(x_468, 1, x_459); +lean_ctor_set(x_468, 2, x_467); +lean_ctor_set(x_468, 3, x_460); +lean_ctor_set(x_468, 4, x_461); +lean_ctor_set(x_468, 5, x_462); +if (lean_is_scalar(x_457)) { + x_469 = lean_alloc_ctor(1, 2, 0); +} else { + x_469 = x_457; +} +lean_ctor_set(x_469, 0, x_456); +lean_ctor_set(x_469, 1, x_468); +return x_469; } } } } else { -uint8_t x_473; -lean_dec(x_17); -lean_dec(x_8); +uint8_t x_470; +lean_dec(x_14); lean_dec(x_7); -lean_dec(x_5); +lean_dec(x_6); lean_dec(x_2); lean_dec(x_1); -x_473 = !lean_is_exclusive(x_248); -if (x_473 == 0) +x_470 = !lean_is_exclusive(x_245); +if (x_470 == 0) { -return x_248; +return x_245; } else { -lean_object* x_474; lean_object* x_475; lean_object* x_476; -x_474 = lean_ctor_get(x_248, 0); -x_475 = lean_ctor_get(x_248, 1); -lean_inc(x_475); -lean_inc(x_474); -lean_dec(x_248); -x_476 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_476, 0, x_474); -lean_ctor_set(x_476, 1, x_475); -return x_476; +lean_object* x_471; lean_object* x_472; lean_object* x_473; +x_471 = lean_ctor_get(x_245, 0); +x_472 = lean_ctor_get(x_245, 1); +lean_inc(x_472); +lean_inc(x_471); +lean_dec(x_245); +x_473 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_473, 0, x_471); +lean_ctor_set(x_473, 1, x_472); +return x_473; } } } @@ -36861,60 +36931,58 @@ return x_476; } else { -uint8_t x_477; -lean_dec(x_21); -lean_dec(x_17); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -x_477 = !lean_is_exclusive(x_22); -if (x_477 == 0) -{ -return x_22; -} -else -{ -lean_object* x_478; lean_object* x_479; lean_object* x_480; -x_478 = lean_ctor_get(x_22, 0); -x_479 = lean_ctor_get(x_22, 1); -lean_inc(x_479); -lean_inc(x_478); -lean_dec(x_22); -x_480 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_480, 0, x_478); -lean_ctor_set(x_480, 1, x_479); -return x_480; -} -} -} -else -{ -uint8_t x_481; -lean_dec(x_17); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -x_481 = !lean_is_exclusive(x_18); -if (x_481 == 0) -{ -return x_18; -} -else -{ -lean_object* x_482; lean_object* x_483; lean_object* x_484; -x_482 = lean_ctor_get(x_18, 0); -x_483 = lean_ctor_get(x_18, 1); -lean_inc(x_483); -lean_inc(x_482); +uint8_t x_474; lean_dec(x_18); -x_484 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_484, 0, x_482); -lean_ctor_set(x_484, 1, x_483); -return x_484; +lean_dec(x_14); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_474 = !lean_is_exclusive(x_19); +if (x_474 == 0) +{ +return x_19; +} +else +{ +lean_object* x_475; lean_object* x_476; lean_object* x_477; +x_475 = lean_ctor_get(x_19, 0); +x_476 = lean_ctor_get(x_19, 1); +lean_inc(x_476); +lean_inc(x_475); +lean_dec(x_19); +x_477 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_477, 0, x_475); +lean_ctor_set(x_477, 1, x_476); +return x_477; +} +} +} +else +{ +uint8_t x_478; +lean_dec(x_14); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_478 = !lean_is_exclusive(x_15); +if (x_478 == 0) +{ +return x_15; +} +else +{ +lean_object* x_479; lean_object* x_480; lean_object* x_481; +x_479 = lean_ctor_get(x_15, 0); +x_480 = lean_ctor_get(x_15, 1); +lean_inc(x_480); +lean_inc(x_479); +lean_dec(x_15); +x_481 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_481, 0, x_479); +lean_ctor_set(x_481, 1, x_480); +return x_481; } } } @@ -36924,7 +36992,7 @@ lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallBound _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallBoundedTelescope___spec__5___rarg___boxed), 9, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallBoundedTelescope___spec__5___rarg___boxed), 8, 0); return x_2; } } @@ -36934,6 +37002,8 @@ _start: lean_object* x_10; if (lean_obj_tag(x_7) == 7) { +if (lean_obj_tag(x_3) == 0) +{ lean_object* x_23; lean_object* x_24; lean_object* x_25; uint64_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; x_23 = lean_ctor_get(x_7, 0); lean_inc(x_23); @@ -36957,14 +37027,8 @@ lean_dec(x_29); x_32 = (uint8_t)((x_26 << 24) >> 61); lean_inc(x_30); x_33 = lean_local_ctx_mk_local_decl(x_4, x_30, x_23, x_28, x_32); -lean_inc(x_30); x_34 = l_Lean_mkFVar(x_30); -lean_inc(x_5); x_35 = lean_array_push(x_5, x_34); -if (lean_obj_tag(x_3) == 0) -{ -lean_dec(x_30); -lean_dec(x_5); x_4 = x_33; x_5 = x_35; x_7 = x_25; @@ -36973,68 +37037,95 @@ goto _start; } else { -lean_object* x_37; lean_object* x_38; uint8_t x_39; -x_37 = lean_ctor_get(x_3, 0); +lean_object* x_37; lean_object* x_38; lean_object* x_39; uint64_t x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_37 = lean_ctor_get(x_7, 0); lean_inc(x_37); -x_38 = lean_array_get_size(x_35); -x_39 = lean_nat_dec_lt(x_38, x_37); -lean_dec(x_37); -lean_dec(x_38); -if (x_39 == 0) -{ -uint8_t x_40; -lean_dec(x_3); -x_40 = !lean_is_exclusive(x_8); -if (x_40 == 0) -{ -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_8, 1); +x_38 = lean_ctor_get(x_7, 1); +lean_inc(x_38); +x_39 = lean_ctor_get(x_7, 2); +lean_inc(x_39); +x_40 = lean_ctor_get_uint64(x_7, sizeof(void*)*3); +x_41 = lean_ctor_get(x_3, 0); +lean_inc(x_41); +x_42 = lean_array_get_size(x_5); +x_43 = lean_nat_dec_lt(x_42, x_41); lean_dec(x_41); -lean_ctor_set(x_8, 1, x_33); -lean_inc(x_6); -x_42 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallBoundedTelescope___spec__5___rarg(x_1, x_5, x_6, x_25, x_30, x_35, x_6, x_8, x_31); -lean_dec(x_35); -lean_dec(x_25); -lean_dec(x_6); -return x_42; -} -else +if (x_43 == 0) { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_43 = lean_ctor_get(x_8, 0); -x_44 = lean_ctor_get(x_8, 2); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_8); -x_45 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_33); -lean_ctor_set(x_45, 2, x_44); +uint8_t x_44; +lean_dec(x_42); +lean_dec(x_39); +lean_dec(x_38); +lean_dec(x_37); +lean_dec(x_3); +x_44 = !lean_is_exclusive(x_8); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; +x_45 = lean_ctor_get(x_8, 1); +lean_dec(x_45); +lean_ctor_set(x_8, 1, x_4); lean_inc(x_6); -x_46 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallBoundedTelescope___spec__5___rarg(x_1, x_5, x_6, x_25, x_30, x_35, x_6, x_45, x_31); -lean_dec(x_35); -lean_dec(x_25); +lean_inc(x_5); +x_46 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallBoundedTelescope___spec__5___rarg(x_1, x_5, x_6, x_7, x_5, x_6, x_8, x_9); +lean_dec(x_7); lean_dec(x_6); +lean_dec(x_5); return x_46; } +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_47 = lean_ctor_get(x_8, 0); +x_48 = lean_ctor_get(x_8, 2); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_8); +x_49 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_4); +lean_ctor_set(x_49, 2, x_48); +lean_inc(x_6); +lean_inc(x_5); +x_50 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallBoundedTelescope___spec__5___rarg(x_1, x_5, x_6, x_7, x_5, x_6, x_49, x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_50; +} } else { -lean_dec(x_30); -lean_dec(x_5); -x_4 = x_33; -x_5 = x_35; -x_7 = x_25; -x_9 = x_31; +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +lean_dec(x_7); +lean_inc(x_5); +x_51 = lean_expr_instantiate_rev_range(x_38, x_6, x_42, x_5); +lean_dec(x_42); +lean_dec(x_38); +x_52 = l_Lean_Meta_mkFreshId___rarg(x_9); +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); +x_55 = (uint8_t)((x_40 << 24) >> 61); +lean_inc(x_53); +x_56 = lean_local_ctx_mk_local_decl(x_4, x_53, x_37, x_51, x_55); +x_57 = l_Lean_mkFVar(x_53); +x_58 = lean_array_push(x_5, x_57); +x_4 = x_56; +x_5 = x_58; +x_7 = x_39; +x_9 = x_54; goto _start; } } } else { -lean_object* x_48; -x_48 = lean_box(0); -x_10 = x_48; +lean_object* x_60; +x_60 = lean_box(0); +x_10 = x_60; goto block_22; } block_22: @@ -37254,15 +37345,15 @@ lean_dec(x_6); return x_15; } } -lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallBoundedTelescope___spec__5___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallBoundedTelescope___spec__5___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -lean_object* x_10; -x_10 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallBoundedTelescope___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_6); +lean_object* x_9; +x_9 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallBoundedTelescope___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_10; +return x_9; } } lean_object* l___private_Init_Lean_Meta_Basic_5__forallTelescopeReducingAuxAux___main___at_Lean_Meta_forallBoundedTelescope___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { @@ -39703,7 +39794,9 @@ _start: lean_object* x_9; if (lean_obj_tag(x_6) == 7) { -lean_object* x_35; lean_object* x_36; uint64_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; uint8_t x_43; +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_35; lean_object* x_36; uint64_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; x_35 = lean_ctor_get(x_6, 1); x_36 = lean_ctor_get(x_6, 2); x_37 = lean_ctor_get_uint64(x_6, sizeof(void*)*3); @@ -39715,122 +39808,81 @@ x_40 = lean_box(0); x_41 = 0; lean_inc(x_7); x_42 = l_Lean_Meta_mkFreshExprMVar(x_39, x_40, x_41, x_7, x_8); -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; -x_44 = lean_ctor_get(x_42, 0); -x_45 = lean_ctor_get(x_42, 1); -x_46 = lean_array_push(x_3, x_44); -x_47 = (uint8_t)((x_37 << 24) >> 61); -x_48 = lean_box(x_47); -x_49 = lean_array_push(x_4, x_48); -if (lean_obj_tag(x_2) == 0) -{ -lean_free_object(x_42); -x_3 = x_46; -x_4 = x_49; -x_6 = x_36; -x_8 = x_45; -goto _start; -} -else -{ -lean_object* x_51; lean_object* x_52; uint8_t x_53; -x_51 = lean_ctor_get(x_2, 0); -x_52 = lean_array_get_size(x_46); -x_53 = lean_nat_dec_lt(x_52, x_51); -if (x_53 == 0) -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; -lean_dec(x_7); -lean_inc(x_46); -x_54 = lean_expr_instantiate_rev_range(x_36, x_5, x_52, x_46); -lean_dec(x_52); -lean_dec(x_5); -x_55 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_55, 0, x_49); -lean_ctor_set(x_55, 1, x_54); -x_56 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_56, 0, x_46); -lean_ctor_set(x_56, 1, x_55); -lean_ctor_set(x_42, 0, x_56); -return x_42; -} -else -{ -lean_dec(x_52); -lean_free_object(x_42); -x_3 = x_46; -x_4 = x_49; -x_6 = x_36; -x_8 = x_45; -goto _start; -} -} -} -else -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; lean_object* x_62; lean_object* x_63; -x_58 = lean_ctor_get(x_42, 0); -x_59 = lean_ctor_get(x_42, 1); -lean_inc(x_59); -lean_inc(x_58); +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); lean_dec(x_42); -x_60 = lean_array_push(x_3, x_58); -x_61 = (uint8_t)((x_37 << 24) >> 61); -x_62 = lean_box(x_61); -x_63 = lean_array_push(x_4, x_62); -if (lean_obj_tag(x_2) == 0) -{ -x_3 = x_60; -x_4 = x_63; +x_45 = lean_array_push(x_3, x_43); +x_46 = (uint8_t)((x_37 << 24) >> 61); +x_47 = lean_box(x_46); +x_48 = lean_array_push(x_4, x_47); +x_3 = x_45; +x_4 = x_48; x_6 = x_36; -x_8 = x_59; +x_8 = x_44; goto _start; } else { -lean_object* x_65; lean_object* x_66; uint8_t x_67; -x_65 = lean_ctor_get(x_2, 0); -x_66 = lean_array_get_size(x_60); -x_67 = lean_nat_dec_lt(x_66, x_65); -if (x_67 == 0) +lean_object* x_50; lean_object* x_51; uint64_t x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; +x_50 = lean_ctor_get(x_6, 1); +x_51 = lean_ctor_get(x_6, 2); +x_52 = lean_ctor_get_uint64(x_6, sizeof(void*)*3); +x_53 = lean_ctor_get(x_2, 0); +x_54 = lean_array_get_size(x_3); +x_55 = lean_nat_dec_lt(x_54, x_53); +if (x_55 == 0) { -lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_dec(x_7); -lean_inc(x_60); -x_68 = lean_expr_instantiate_rev_range(x_36, x_5, x_66, x_60); -lean_dec(x_66); +lean_inc(x_3); +x_56 = lean_expr_instantiate_rev_range(x_6, x_5, x_54, x_3); +lean_dec(x_54); lean_dec(x_5); -x_69 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_69, 0, x_63); -lean_ctor_set(x_69, 1, x_68); -x_70 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_70, 0, x_60); -lean_ctor_set(x_70, 1, x_69); -x_71 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_71, 0, x_70); -lean_ctor_set(x_71, 1, x_59); -return x_71; +x_57 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_57, 0, x_4); +lean_ctor_set(x_57, 1, x_56); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_3); +lean_ctor_set(x_58, 1, x_57); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_8); +return x_59; } else { -lean_dec(x_66); -x_3 = x_60; -x_4 = x_63; -x_6 = x_36; -x_8 = x_59; +lean_object* x_60; lean_object* x_61; uint8_t x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; lean_object* x_68; lean_object* x_69; +lean_inc(x_3); +x_60 = lean_expr_instantiate_rev_range(x_50, x_5, x_54, x_3); +lean_dec(x_54); +x_61 = lean_box(0); +x_62 = 0; +lean_inc(x_7); +x_63 = l_Lean_Meta_mkFreshExprMVar(x_60, x_61, x_62, x_7, x_8); +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +lean_dec(x_63); +x_66 = lean_array_push(x_3, x_64); +x_67 = (uint8_t)((x_52 << 24) >> 61); +x_68 = lean_box(x_67); +x_69 = lean_array_push(x_4, x_68); +x_3 = x_66; +x_4 = x_69; +x_6 = x_51; +x_8 = x_65; goto _start; } } } -} else { -lean_object* x_73; -x_73 = lean_box(0); -x_9 = x_73; +lean_object* x_71; +x_71 = lean_box(0); +x_9 = x_71; goto block_34; } block_34: @@ -40042,158 +40094,132 @@ return x_5; lean_object* l___private_Init_Lean_Meta_Basic_9__lambdaMetaTelescopeAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_8; +if (lean_obj_tag(x_1) == 0) +{ if (lean_obj_tag(x_5) == 6) { -lean_object* x_15; lean_object* x_16; uint64_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; uint8_t x_23; -x_15 = lean_ctor_get(x_5, 1); -x_16 = lean_ctor_get(x_5, 2); -x_17 = lean_ctor_get_uint64(x_5, sizeof(void*)*3); -x_18 = lean_array_get_size(x_2); +lean_object* x_8; lean_object* x_9; uint64_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; +x_8 = lean_ctor_get(x_5, 1); +x_9 = lean_ctor_get(x_5, 2); +x_10 = lean_ctor_get_uint64(x_5, sizeof(void*)*3); +x_11 = lean_array_get_size(x_2); lean_inc(x_2); -x_19 = lean_expr_instantiate_rev_range(x_15, x_4, x_18, x_2); -lean_dec(x_18); -x_20 = lean_box(0); -x_21 = 0; +x_12 = lean_expr_instantiate_rev_range(x_8, x_4, x_11, x_2); +lean_dec(x_11); +x_13 = lean_box(0); +x_14 = 0; lean_inc(x_6); -x_22 = l_Lean_Meta_mkFreshExprMVar(x_19, x_20, x_21, x_6, x_7); -x_23 = !lean_is_exclusive(x_22); -if (x_23 == 0) -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; -x_24 = lean_ctor_get(x_22, 0); -x_25 = lean_ctor_get(x_22, 1); -x_26 = lean_array_push(x_2, x_24); -x_27 = (uint8_t)((x_17 << 24) >> 61); -x_28 = lean_box(x_27); -x_29 = lean_array_push(x_3, x_28); -if (lean_obj_tag(x_1) == 0) -{ -lean_free_object(x_22); -x_2 = x_26; -x_3 = x_29; -x_5 = x_16; -x_7 = x_25; +x_15 = l_Lean_Meta_mkFreshExprMVar(x_12, x_13, x_14, x_6, x_7); +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_array_push(x_2, x_16); +x_19 = (uint8_t)((x_10 << 24) >> 61); +x_20 = lean_box(x_19); +x_21 = lean_array_push(x_3, x_20); +x_2 = x_18; +x_3 = x_21; +x_5 = x_9; +x_7 = x_17; goto _start; } else { -lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_31 = lean_ctor_get(x_1, 0); -x_32 = lean_array_get_size(x_26); -x_33 = lean_nat_dec_lt(x_32, x_31); -if (x_33 == 0) -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_dec(x_6); -lean_inc(x_26); -x_34 = lean_expr_instantiate_rev_range(x_16, x_4, x_32, x_26); -lean_dec(x_32); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_29); -lean_ctor_set(x_35, 1, x_34); -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_26); -lean_ctor_set(x_36, 1, x_35); -lean_ctor_set(x_22, 0, x_36); -return x_22; -} -else -{ -lean_dec(x_32); -lean_free_object(x_22); -x_2 = x_26; -x_3 = x_29; -x_5 = x_16; -x_7 = x_25; -goto _start; -} +x_23 = lean_array_get_size(x_2); +lean_inc(x_2); +x_24 = lean_expr_instantiate_rev_range(x_5, x_4, x_23, x_2); +lean_dec(x_23); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_3); +lean_ctor_set(x_25, 1, x_24); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_2); +lean_ctor_set(x_26, 1, x_25); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_7); +return x_27; } } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; -x_38 = lean_ctor_get(x_22, 0); -x_39 = lean_ctor_get(x_22, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_22); -x_40 = lean_array_push(x_2, x_38); -x_41 = (uint8_t)((x_17 << 24) >> 61); -x_42 = lean_box(x_41); -x_43 = lean_array_push(x_3, x_42); -if (lean_obj_tag(x_1) == 0) +lean_object* x_28; lean_object* x_29; uint8_t x_30; +x_28 = lean_ctor_get(x_1, 0); +x_29 = lean_array_get_size(x_2); +x_30 = lean_nat_dec_lt(x_29, x_28); +if (x_30 == 0) { -x_2 = x_40; -x_3 = x_43; -x_5 = x_16; -x_7 = x_39; -goto _start; -} -else -{ -lean_object* x_45; lean_object* x_46; uint8_t x_47; -x_45 = lean_ctor_get(x_1, 0); -x_46 = lean_array_get_size(x_40); -x_47 = lean_nat_dec_lt(x_46, x_45); -if (x_47 == 0) -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_dec(x_6); -lean_inc(x_40); -x_48 = lean_expr_instantiate_rev_range(x_16, x_4, x_46, x_40); -lean_dec(x_46); -x_49 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_49, 0, x_43); -lean_ctor_set(x_49, 1, x_48); +lean_inc(x_2); +x_31 = lean_expr_instantiate_rev_range(x_5, x_4, x_29, x_2); +lean_dec(x_29); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_3); +lean_ctor_set(x_32, 1, x_31); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_2); +lean_ctor_set(x_33, 1, x_32); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_7); +return x_34; +} +else +{ +if (lean_obj_tag(x_5) == 6) +{ +lean_object* x_35; lean_object* x_36; uint64_t x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; lean_object* x_46; lean_object* x_47; +x_35 = lean_ctor_get(x_5, 1); +x_36 = lean_ctor_get(x_5, 2); +x_37 = lean_ctor_get_uint64(x_5, sizeof(void*)*3); +lean_inc(x_2); +x_38 = lean_expr_instantiate_rev_range(x_35, x_4, x_29, x_2); +lean_dec(x_29); +x_39 = lean_box(0); +x_40 = 0; +lean_inc(x_6); +x_41 = l_Lean_Meta_mkFreshExprMVar(x_38, x_39, x_40, x_6, x_7); +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_41, 1); +lean_inc(x_43); +lean_dec(x_41); +x_44 = lean_array_push(x_2, x_42); +x_45 = (uint8_t)((x_37 << 24) >> 61); +x_46 = lean_box(x_45); +x_47 = lean_array_push(x_3, x_46); +x_2 = x_44; +x_3 = x_47; +x_5 = x_36; +x_7 = x_43; +goto _start; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +lean_dec(x_6); +lean_inc(x_2); +x_49 = lean_expr_instantiate_rev_range(x_5, x_4, x_29, x_2); +lean_dec(x_29); x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_40); +lean_ctor_set(x_50, 0, x_3); lean_ctor_set(x_50, 1, x_49); x_51 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_39); -return x_51; -} -else -{ -lean_dec(x_46); -x_2 = x_40; -x_3 = x_43; -x_5 = x_16; -x_7 = x_39; -goto _start; +lean_ctor_set(x_51, 0, x_2); +lean_ctor_set(x_51, 1, x_50); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_7); +return x_52; } } } } -else -{ -lean_object* x_53; -lean_dec(x_6); -x_53 = lean_box(0); -x_8 = x_53; -goto block_14; -} -block_14: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -lean_dec(x_8); -x_9 = lean_array_get_size(x_2); -lean_inc(x_2); -x_10 = lean_expr_instantiate_rev_range(x_5, x_4, x_9, x_2); -lean_dec(x_9); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_3); -lean_ctor_set(x_11, 1, x_10); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_2); -lean_ctor_set(x_12, 1, 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_7); -return x_13; -} -} } lean_object* l___private_Init_Lean_Meta_Basic_9__lambdaMetaTelescopeAux___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: diff --git a/stage0/stdlib/Init/Lean/Meta/DiscrTree.c b/stage0/stdlib/Init/Lean/Meta/DiscrTree.c index c511f53f5f..73595589ec 100644 --- a/stage0/stdlib/Init/Lean/Meta/DiscrTree.c +++ b/stage0/stdlib/Init/Lean/Meta/DiscrTree.c @@ -5253,372 +5253,408 @@ case 2: lean_dec(x_7); if (x_2 == 0) { -lean_object* x_17; lean_object* x_18; -lean_free_object(x_5); -x_17 = lean_ctor_get(x_9, 0); +lean_object* x_17; uint8_t x_18; +x_17 = lean_ctor_get(x_3, 0); lean_inc(x_17); -lean_dec(x_9); -x_18 = l_Lean_Meta_isReadOnlyOrSyntheticExprMVar(x_17, x_3, x_8); -lean_dec(x_3); -if (lean_obj_tag(x_18) == 0) +x_18 = lean_ctor_get_uint8(x_17, sizeof(void*)*1 + 3); +lean_dec(x_17); +if (x_18 == 0) { -lean_object* x_19; uint8_t x_20; -x_19 = lean_ctor_get(x_18, 0); +lean_object* x_19; lean_object* x_20; +lean_free_object(x_5); +x_19 = lean_ctor_get(x_9, 0); lean_inc(x_19); -x_20 = lean_unbox(x_19); -lean_dec(x_19); -if (x_20 == 0) +lean_dec(x_9); +x_20 = l_Lean_Meta_isReadOnlyOrSyntheticExprMVar(x_19, x_3, x_8); +lean_dec(x_3); +if (lean_obj_tag(x_20) == 0) { -uint8_t x_21; -x_21 = !lean_is_exclusive(x_18); -if (x_21 == 0) +lean_object* x_21; uint8_t x_22; +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_unbox(x_21); +lean_dec(x_21); +if (x_22 == 0) { -lean_object* x_22; lean_object* x_23; -x_22 = lean_ctor_get(x_18, 0); -lean_dec(x_22); -x_23 = l___private_Init_Lean_Meta_DiscrTree_11__getKeyArgs___closed__2; -lean_ctor_set(x_18, 0, x_23); -return x_18; -} -else +uint8_t x_23; +x_23 = !lean_is_exclusive(x_20); +if (x_23 == 0) { -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_18, 1); -lean_inc(x_24); -lean_dec(x_18); +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_20, 0); +lean_dec(x_24); x_25 = l___private_Init_Lean_Meta_DiscrTree_11__getKeyArgs___closed__2; -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_24); -return x_26; +lean_ctor_set(x_20, 0, x_25); +return x_20; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_20, 1); +lean_inc(x_26); +lean_dec(x_20); +x_27 = l___private_Init_Lean_Meta_DiscrTree_11__getKeyArgs___closed__2; +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_26); +return x_28; } } else { -uint8_t x_27; -x_27 = !lean_is_exclusive(x_18); -if (x_27 == 0) +uint8_t x_29; +x_29 = !lean_is_exclusive(x_20); +if (x_29 == 0) { -lean_object* x_28; lean_object* x_29; -x_28 = lean_ctor_get(x_18, 0); -lean_dec(x_28); -x_29 = l___private_Init_Lean_Meta_DiscrTree_11__getKeyArgs___closed__1; -lean_ctor_set(x_18, 0, x_29); -return x_18; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_18, 1); -lean_inc(x_30); -lean_dec(x_18); +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_20, 0); +lean_dec(x_30); x_31 = l___private_Init_Lean_Meta_DiscrTree_11__getKeyArgs___closed__1; -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_30); -return x_32; +lean_ctor_set(x_20, 0, x_31); +return x_20; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_20, 1); +lean_inc(x_32); +lean_dec(x_20); +x_33 = l___private_Init_Lean_Meta_DiscrTree_11__getKeyArgs___closed__1; +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_32); +return x_34; } } } else { -uint8_t x_33; -x_33 = !lean_is_exclusive(x_18); -if (x_33 == 0) +uint8_t x_35; +x_35 = !lean_is_exclusive(x_20); +if (x_35 == 0) { -return x_18; +return x_20; } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_18, 0); -x_35 = lean_ctor_get(x_18, 1); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_18); -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_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_20, 0); +x_37 = lean_ctor_get(x_20, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_20); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; } } } else { -lean_object* x_37; +lean_object* x_39; lean_dec(x_9); lean_dec(x_3); -x_37 = l___private_Init_Lean_Meta_DiscrTree_11__getKeyArgs___closed__1; -lean_ctor_set(x_5, 0, x_37); +x_39 = l___private_Init_Lean_Meta_DiscrTree_11__getKeyArgs___closed__2; +lean_ctor_set(x_5, 0, x_39); +return x_5; +} +} +else +{ +lean_object* x_40; +lean_dec(x_9); +lean_dec(x_3); +x_40 = l___private_Init_Lean_Meta_DiscrTree_11__getKeyArgs___closed__1; +lean_ctor_set(x_5, 0, x_40); return x_5; } } case 4: { -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_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_dec(x_3); -x_38 = lean_ctor_get(x_9, 0); -lean_inc(x_38); +x_41 = lean_ctor_get(x_9, 0); +lean_inc(x_41); lean_dec(x_9); -x_39 = lean_unsigned_to_nat(0u); -x_40 = l_Lean_Expr_getAppNumArgsAux___main(x_7, x_39); -lean_inc(x_40); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_38); -lean_ctor_set(x_41, 1, x_40); -x_42 = lean_mk_empty_array_with_capacity(x_40); -lean_dec(x_40); -x_43 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_7, x_42); +x_42 = lean_unsigned_to_nat(0u); +x_43 = l_Lean_Expr_getAppNumArgsAux___main(x_7, x_42); +lean_inc(x_43); x_44 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_44, 0, x_41); lean_ctor_set(x_44, 1, x_43); -lean_ctor_set(x_5, 0, x_44); +x_45 = lean_mk_empty_array_with_capacity(x_43); +lean_dec(x_43); +x_46 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_7, x_45); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_44); +lean_ctor_set(x_47, 1, x_46); +lean_ctor_set(x_5, 0, x_47); return x_5; } case 9: { -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_dec(x_7); lean_dec(x_3); -x_45 = lean_ctor_get(x_9, 0); -lean_inc(x_45); +x_48 = lean_ctor_get(x_9, 0); +lean_inc(x_48); lean_dec(x_9); -x_46 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_46, 0, x_45); -x_47 = l_Array_empty___closed__1; -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -lean_ctor_set(x_5, 0, x_48); +x_49 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_49, 0, x_48); +x_50 = l_Array_empty___closed__1; +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +lean_ctor_set(x_5, 0, x_51); return x_5; } default: { -lean_object* x_49; +lean_object* x_52; lean_dec(x_9); lean_dec(x_7); lean_dec(x_3); -x_49 = l___private_Init_Lean_Meta_DiscrTree_11__getKeyArgs___closed__1; -lean_ctor_set(x_5, 0, x_49); +x_52 = l___private_Init_Lean_Meta_DiscrTree_11__getKeyArgs___closed__1; +lean_ctor_set(x_5, 0, x_52); return x_5; } } } else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_5, 0); -x_51 = lean_ctor_get(x_5, 1); -lean_inc(x_51); -lean_inc(x_50); +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_5, 0); +x_54 = lean_ctor_get(x_5, 1); +lean_inc(x_54); +lean_inc(x_53); lean_dec(x_5); -x_52 = l_Lean_Expr_getAppFn___main(x_50); -switch (lean_obj_tag(x_52)) { +x_55 = l_Lean_Expr_getAppFn___main(x_53); +switch (lean_obj_tag(x_55)) { case 1: { -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_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_dec(x_3); -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -lean_dec(x_52); -x_54 = lean_unsigned_to_nat(0u); -x_55 = l_Lean_Expr_getAppNumArgsAux___main(x_50, x_54); -lean_inc(x_55); -x_56 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_56, 0, x_53); -lean_ctor_set(x_56, 1, x_55); -x_57 = lean_mk_empty_array_with_capacity(x_55); +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); lean_dec(x_55); -x_58 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_50, x_57); -x_59 = lean_alloc_ctor(0, 2, 0); +x_57 = lean_unsigned_to_nat(0u); +x_58 = l_Lean_Expr_getAppNumArgsAux___main(x_53, x_57); +lean_inc(x_58); +x_59 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_59, 0, x_56); lean_ctor_set(x_59, 1, x_58); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_51); -return x_60; +x_60 = lean_mk_empty_array_with_capacity(x_58); +lean_dec(x_58); +x_61 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_53, x_60); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_59); +lean_ctor_set(x_62, 1, x_61); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_54); +return x_63; } case 2: { -lean_dec(x_50); +lean_dec(x_53); if (x_2 == 0) { -lean_object* x_61; lean_object* x_62; -x_61 = lean_ctor_get(x_52, 0); -lean_inc(x_61); -lean_dec(x_52); -x_62 = l_Lean_Meta_isReadOnlyOrSyntheticExprMVar(x_61, x_3, x_51); +lean_object* x_64; uint8_t x_65; +x_64 = lean_ctor_get(x_3, 0); +lean_inc(x_64); +x_65 = lean_ctor_get_uint8(x_64, sizeof(void*)*1 + 3); +lean_dec(x_64); +if (x_65 == 0) +{ +lean_object* x_66; lean_object* x_67; +x_66 = lean_ctor_get(x_55, 0); +lean_inc(x_66); +lean_dec(x_55); +x_67 = l_Lean_Meta_isReadOnlyOrSyntheticExprMVar(x_66, x_3, x_54); lean_dec(x_3); -if (lean_obj_tag(x_62) == 0) +if (lean_obj_tag(x_67) == 0) { -lean_object* x_63; uint8_t x_64; -x_63 = lean_ctor_get(x_62, 0); -lean_inc(x_63); -x_64 = lean_unbox(x_63); -lean_dec(x_63); -if (x_64 == 0) +lean_object* x_68; uint8_t x_69; +x_68 = lean_ctor_get(x_67, 0); +lean_inc(x_68); +x_69 = lean_unbox(x_68); +lean_dec(x_68); +if (x_69 == 0) { -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_65 = lean_ctor_get(x_62, 1); -lean_inc(x_65); -if (lean_is_exclusive(x_62)) { - lean_ctor_release(x_62, 0); - lean_ctor_release(x_62, 1); - x_66 = x_62; +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_70 = lean_ctor_get(x_67, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_67)) { + lean_ctor_release(x_67, 0); + lean_ctor_release(x_67, 1); + x_71 = x_67; } else { - lean_dec_ref(x_62); - x_66 = lean_box(0); + lean_dec_ref(x_67); + x_71 = lean_box(0); } -x_67 = l___private_Init_Lean_Meta_DiscrTree_11__getKeyArgs___closed__2; -if (lean_is_scalar(x_66)) { - x_68 = lean_alloc_ctor(0, 2, 0); +x_72 = l___private_Init_Lean_Meta_DiscrTree_11__getKeyArgs___closed__2; +if (lean_is_scalar(x_71)) { + x_73 = lean_alloc_ctor(0, 2, 0); } else { - x_68 = x_66; + x_73 = x_71; } -lean_ctor_set(x_68, 0, x_67); -lean_ctor_set(x_68, 1, x_65); -return x_68; +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_70); +return x_73; } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_69 = lean_ctor_get(x_62, 1); -lean_inc(x_69); -if (lean_is_exclusive(x_62)) { - lean_ctor_release(x_62, 0); - lean_ctor_release(x_62, 1); - x_70 = x_62; -} else { - lean_dec_ref(x_62); - x_70 = lean_box(0); -} -x_71 = l___private_Init_Lean_Meta_DiscrTree_11__getKeyArgs___closed__1; -if (lean_is_scalar(x_70)) { - x_72 = lean_alloc_ctor(0, 2, 0); -} else { - x_72 = x_70; -} -lean_ctor_set(x_72, 0, x_71); -lean_ctor_set(x_72, 1, x_69); -return x_72; -} -} -else -{ -lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_73 = lean_ctor_get(x_62, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_62, 1); +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_67, 1); lean_inc(x_74); -if (lean_is_exclusive(x_62)) { - lean_ctor_release(x_62, 0); - lean_ctor_release(x_62, 1); - x_75 = x_62; +if (lean_is_exclusive(x_67)) { + lean_ctor_release(x_67, 0); + lean_ctor_release(x_67, 1); + x_75 = x_67; } else { - lean_dec_ref(x_62); + lean_dec_ref(x_67); x_75 = lean_box(0); } +x_76 = l___private_Init_Lean_Meta_DiscrTree_11__getKeyArgs___closed__1; if (lean_is_scalar(x_75)) { - x_76 = lean_alloc_ctor(1, 2, 0); + x_77 = lean_alloc_ctor(0, 2, 0); } else { - x_76 = x_75; + x_77 = x_75; } -lean_ctor_set(x_76, 0, x_73); -lean_ctor_set(x_76, 1, x_74); -return x_76; +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_74); +return x_77; } } else { -lean_object* x_77; lean_object* x_78; -lean_dec(x_52); +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_78 = lean_ctor_get(x_67, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_67, 1); +lean_inc(x_79); +if (lean_is_exclusive(x_67)) { + lean_ctor_release(x_67, 0); + lean_ctor_release(x_67, 1); + x_80 = x_67; +} else { + lean_dec_ref(x_67); + x_80 = lean_box(0); +} +if (lean_is_scalar(x_80)) { + x_81 = lean_alloc_ctor(1, 2, 0); +} else { + x_81 = x_80; +} +lean_ctor_set(x_81, 0, x_78); +lean_ctor_set(x_81, 1, x_79); +return x_81; +} +} +else +{ +lean_object* x_82; lean_object* x_83; +lean_dec(x_55); lean_dec(x_3); -x_77 = l___private_Init_Lean_Meta_DiscrTree_11__getKeyArgs___closed__1; -x_78 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_78, 0, x_77); -lean_ctor_set(x_78, 1, x_51); -return x_78; +x_82 = l___private_Init_Lean_Meta_DiscrTree_11__getKeyArgs___closed__2; +x_83 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_83, 0, x_82); +lean_ctor_set(x_83, 1, x_54); +return x_83; +} +} +else +{ +lean_object* x_84; lean_object* x_85; +lean_dec(x_55); +lean_dec(x_3); +x_84 = l___private_Init_Lean_Meta_DiscrTree_11__getKeyArgs___closed__1; +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_54); +return x_85; } } case 4: { -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_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_dec(x_3); -x_79 = lean_ctor_get(x_52, 0); -lean_inc(x_79); -lean_dec(x_52); -x_80 = lean_unsigned_to_nat(0u); -x_81 = l_Lean_Expr_getAppNumArgsAux___main(x_50, x_80); -lean_inc(x_81); -x_82 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_82, 0, x_79); -lean_ctor_set(x_82, 1, x_81); -x_83 = lean_mk_empty_array_with_capacity(x_81); -lean_dec(x_81); -x_84 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_50, x_83); -x_85 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_85, 0, x_82); -lean_ctor_set(x_85, 1, x_84); -x_86 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_86, 0, x_85); -lean_ctor_set(x_86, 1, x_51); -return x_86; +x_86 = lean_ctor_get(x_55, 0); +lean_inc(x_86); +lean_dec(x_55); +x_87 = lean_unsigned_to_nat(0u); +x_88 = l_Lean_Expr_getAppNumArgsAux___main(x_53, x_87); +lean_inc(x_88); +x_89 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_89, 0, x_86); +lean_ctor_set(x_89, 1, x_88); +x_90 = lean_mk_empty_array_with_capacity(x_88); +lean_dec(x_88); +x_91 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_53, x_90); +x_92 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_92, 0, x_89); +lean_ctor_set(x_92, 1, x_91); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_54); +return x_93; } case 9: { -lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; -lean_dec(x_50); +lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; +lean_dec(x_53); lean_dec(x_3); -x_87 = lean_ctor_get(x_52, 0); -lean_inc(x_87); -lean_dec(x_52); -x_88 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_88, 0, x_87); -x_89 = l_Array_empty___closed__1; -x_90 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_90, 0, x_88); -lean_ctor_set(x_90, 1, x_89); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_90); -lean_ctor_set(x_91, 1, x_51); -return x_91; +x_94 = lean_ctor_get(x_55, 0); +lean_inc(x_94); +lean_dec(x_55); +x_95 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_95, 0, x_94); +x_96 = l_Array_empty___closed__1; +x_97 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_96); +x_98 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_98, 0, x_97); +lean_ctor_set(x_98, 1, x_54); +return x_98; } default: { -lean_object* x_92; lean_object* x_93; -lean_dec(x_52); -lean_dec(x_50); +lean_object* x_99; lean_object* x_100; +lean_dec(x_55); +lean_dec(x_53); lean_dec(x_3); -x_92 = l___private_Init_Lean_Meta_DiscrTree_11__getKeyArgs___closed__1; -x_93 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_93, 0, x_92); -lean_ctor_set(x_93, 1, x_51); -return x_93; +x_99 = l___private_Init_Lean_Meta_DiscrTree_11__getKeyArgs___closed__1; +x_100 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_54); +return x_100; } } } } else { -uint8_t x_94; +uint8_t x_101; lean_dec(x_3); -x_94 = !lean_is_exclusive(x_5); -if (x_94 == 0) +x_101 = !lean_is_exclusive(x_5); +if (x_101 == 0) { return x_5; } else { -lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_95 = lean_ctor_get(x_5, 0); -x_96 = lean_ctor_get(x_5, 1); -lean_inc(x_96); -lean_inc(x_95); +lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_102 = lean_ctor_get(x_5, 0); +x_103 = lean_ctor_get(x_5, 1); +lean_inc(x_103); +lean_inc(x_102); lean_dec(x_5); -x_97 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_97, 0, x_95); -lean_ctor_set(x_97, 1, x_96); -return x_97; +x_104 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_104, 0, x_102); +lean_ctor_set(x_104, 1, x_103); +return x_104; } } } diff --git a/stage0/stdlib/Init/Lean/Meta/FunInfo.c b/stage0/stdlib/Init/Lean/Meta/FunInfo.c index 7121ac6c80..f79fe3744d 100644 --- a/stage0/stdlib/Init/Lean/Meta/FunInfo.c +++ b/stage0/stdlib/Init/Lean/Meta/FunInfo.c @@ -9168,6 +9168,8 @@ _start: lean_object* x_9; if (lean_obj_tag(x_6) == 7) { +if (lean_obj_tag(x_2) == 0) +{ lean_object* x_22; lean_object* x_23; lean_object* x_24; uint64_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; x_22 = lean_ctor_get(x_6, 0); lean_inc(x_22); @@ -9193,8 +9195,6 @@ lean_inc(x_29); x_32 = lean_local_ctx_mk_local_decl(x_3, x_29, x_22, x_27, x_31); x_33 = l_Lean_mkFVar(x_29); x_34 = lean_array_push(x_4, x_33); -if (lean_obj_tag(x_2) == 0) -{ x_3 = x_32; x_4 = x_34; x_6 = x_24; @@ -9203,65 +9203,91 @@ goto _start; } else { -lean_object* x_36; lean_object* x_37; uint8_t x_38; -x_36 = lean_ctor_get(x_2, 0); +lean_object* x_36; lean_object* x_37; lean_object* x_38; uint64_t x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_36 = lean_ctor_get(x_6, 0); lean_inc(x_36); -x_37 = lean_array_get_size(x_34); -x_38 = lean_nat_dec_lt(x_37, x_36); +x_37 = lean_ctor_get(x_6, 1); +lean_inc(x_37); +x_38 = lean_ctor_get(x_6, 2); +lean_inc(x_38); +x_39 = lean_ctor_get_uint64(x_6, sizeof(void*)*3); +x_40 = lean_ctor_get(x_2, 0); +lean_inc(x_40); +x_41 = lean_array_get_size(x_4); +x_42 = lean_nat_dec_lt(x_41, x_40); +lean_dec(x_40); +if (x_42 == 0) +{ +lean_object* x_43; uint8_t x_44; +lean_dec(x_38); +lean_dec(x_37); lean_dec(x_36); -if (x_38 == 0) -{ -lean_object* x_39; uint8_t x_40; lean_dec(x_2); -lean_inc(x_34); -x_39 = lean_expr_instantiate_rev_range(x_24, x_5, x_37, x_34); -lean_dec(x_24); -x_40 = !lean_is_exclusive(x_7); -if (x_40 == 0) +lean_inc(x_4); +x_43 = lean_expr_instantiate_rev_range(x_6, x_5, x_41, x_4); +lean_dec(x_6); +x_44 = !lean_is_exclusive(x_7); +if (x_44 == 0) { -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_7, 1); -lean_dec(x_41); -lean_ctor_set(x_7, 1, x_32); -x_42 = l_Lean_Meta_withNewLocalInstances___main___at___private_Init_Lean_Meta_FunInfo_6__getFunInfoAux___spec__6(x_34, x_37, x_39, x_34, x_5, x_7, x_30); -lean_dec(x_39); -lean_dec(x_34); -return x_42; -} -else -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_43 = lean_ctor_get(x_7, 0); -x_44 = lean_ctor_get(x_7, 2); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_7); -x_45 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_32); -lean_ctor_set(x_45, 2, x_44); -x_46 = l_Lean_Meta_withNewLocalInstances___main___at___private_Init_Lean_Meta_FunInfo_6__getFunInfoAux___spec__6(x_34, x_37, x_39, x_34, x_5, x_45, x_30); -lean_dec(x_39); -lean_dec(x_34); +lean_object* x_45; lean_object* x_46; +x_45 = lean_ctor_get(x_7, 1); +lean_dec(x_45); +lean_ctor_set(x_7, 1, x_3); +x_46 = l_Lean_Meta_withNewLocalInstances___main___at___private_Init_Lean_Meta_FunInfo_6__getFunInfoAux___spec__6(x_4, x_41, x_43, x_4, x_5, x_7, x_8); +lean_dec(x_43); +lean_dec(x_4); return x_46; } +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_47 = lean_ctor_get(x_7, 0); +x_48 = lean_ctor_get(x_7, 2); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_7); +x_49 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_3); +lean_ctor_set(x_49, 2, x_48); +x_50 = l_Lean_Meta_withNewLocalInstances___main___at___private_Init_Lean_Meta_FunInfo_6__getFunInfoAux___spec__6(x_4, x_41, x_43, x_4, x_5, x_49, x_8); +lean_dec(x_43); +lean_dec(x_4); +return x_50; +} } else { +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +lean_dec(x_6); +lean_inc(x_4); +x_51 = lean_expr_instantiate_rev_range(x_37, x_5, x_41, x_4); +lean_dec(x_41); lean_dec(x_37); -x_3 = x_32; -x_4 = x_34; -x_6 = x_24; -x_8 = x_30; +x_52 = l_Lean_Meta_mkFreshId___rarg(x_8); +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); +x_55 = (uint8_t)((x_39 << 24) >> 61); +lean_inc(x_53); +x_56 = lean_local_ctx_mk_local_decl(x_3, x_53, x_36, x_51, x_55); +x_57 = l_Lean_mkFVar(x_53); +x_58 = lean_array_push(x_4, x_57); +x_3 = x_56; +x_4 = x_58; +x_6 = x_38; +x_8 = x_54; goto _start; } } } else { -lean_object* x_48; -x_48 = lean_box(0); -x_9 = x_48; +lean_object* x_60; +x_60 = lean_box(0); +x_9 = x_60; goto block_21; } block_21: diff --git a/stage0/stdlib/Init/Lean/Structure.c b/stage0/stdlib/Init/Lean/Structure.c new file mode 100644 index 0000000000..bb2bfbccd1 --- /dev/null +++ b/stage0/stdlib/Init/Lean/Structure.c @@ -0,0 +1,1173 @@ +// Lean compiler output +// Module: Init.Lean.Structure +// Imports: Init.Lean.Environment Init.Lean.ProjFns +#include "runtime/lean.h" +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +lean_object* l_Lean_getStructureCtor___closed__1; +lean_object* l_Lean_getStructureCtor___closed__2; +lean_object* l___private_Init_Lean_Structure_4__hasProjFn___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l___private_Init_Lean_Structure_4__hasProjFn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_getStructureCtor___closed__4; +extern lean_object* l_Array_empty___closed__1; +lean_object* l___private_Init_Util_1__mkPanicMessage(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_name_eq(lean_object*, lean_object*); +lean_object* l_Lean_findField_x3f___main___boxed(lean_object*, lean_object*, lean_object*); +lean_object* lean_array_push(lean_object*, lean_object*); +lean_object* lean_array_get_size(lean_object*); +uint8_t l_Lean_isInternalSubobjectFieldName(lean_object*); +lean_object* l___private_Init_Lean_Structure_2__isSubobjectFieldAux___main(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_findMAux___main___at_Lean_findField_x3f___main___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_getAppFn___main(lean_object*); +lean_object* lean_environment_find(lean_object*, lean_object*); +lean_object* l_Array_contains___at_Lean_findField_x3f___main___spec__1___boxed(lean_object*, lean_object*); +uint8_t l_Lean_Environment_isProjectionFn(lean_object*, lean_object*); +lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Structure_2__isSubobjectFieldAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_fget(lean_object*, lean_object*); +lean_object* l_Lean_isStructureLike___boxed(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Structure_1__getStructureFieldsAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Name_appendIndexAfter___closed__1; +lean_object* l_Lean_Name_append___main(lean_object*, lean_object*); +lean_object* l_Lean_getStructureFieldsFlattened(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Structure_3__getStructureFieldsFlattenedAux(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_getStructureCtor___closed__5; +lean_object* l_Lean_getStructureCtor___closed__3; +lean_object* l_Array_findMAux___main___at_Lean_findField_x3f___main___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyRangeMAux___main___at_Lean_findField_x3f___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_name_mk_string(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Structure_1__getStructureFieldsAux___main(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_getStructureFields(lean_object*, lean_object*); +uint32_t lean_string_utf8_get(lean_object*, lean_object*); +uint8_t l_Array_contains___at_Lean_findField_x3f___main___spec__1(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Structure_1__getStructureFieldsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l___private_Init_Lean_Structure_4__hasProjFn___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_getParentStructures___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_UInt32_decEq(uint32_t, uint32_t); +lean_object* l_Lean_getParentStructures(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Structure_2__isSubobjectFieldAux(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkInternalSubobjectFieldName(lean_object*); +lean_object* l___private_Init_Lean_Structure_2__isSubobjectFieldAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Structure_2__isSubobjectFieldAux___main___closed__1; +lean_object* l___private_Init_Lean_Structure_2__isSubobjectFieldAux___main___closed__2; +lean_object* l_Array_anyRangeMAux___main___at_Lean_findField_x3f___main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_panic(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_getStructureCtor(lean_object*, lean_object*); +lean_object* l_Lean_isStructure___boxed(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Structure_1__getStructureFieldsAux(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_getParentStructures___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_ConstructorVal_inhabited; +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Structure_3__getStructureFieldsFlattenedAux___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_isSubobjectField_x3f(lean_object*, lean_object*, lean_object*); +lean_object* lean_string_length(lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Structure_3__getStructureFieldsFlattenedAux___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_deinternalizeFieldName(lean_object*); +lean_object* l_Lean_findField_x3f(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Name_appendBefore(lean_object*, lean_object*); +lean_object* l_String_drop(lean_object*, lean_object*); +uint8_t l_Lean_isStructureLike(lean_object*, lean_object*); +lean_object* l_Lean_findField_x3f___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Structure_4__hasProjFn___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_isInternalSubobjectFieldName___boxed(lean_object*); +lean_object* l_Lean_findField_x3f___main(lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_isStructure(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Structure_3__getStructureFieldsFlattenedAux___main(lean_object*, lean_object*, lean_object*); +uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +uint8_t l_Lean_isStructureLike(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_environment_find(x_1, x_2); +if (lean_obj_tag(x_3) == 0) +{ +uint8_t x_4; +x_4 = 0; +return x_4; +} +else +{ +lean_object* x_5; +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_dec(x_3); +if (lean_obj_tag(x_5) == 5) +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +lean_dec(x_5); +x_7 = lean_ctor_get(x_6, 4); +lean_inc(x_7); +if (lean_obj_tag(x_7) == 0) +{ +uint8_t x_8; +lean_dec(x_6); +x_8 = 0; +return x_8; +} +else +{ +lean_object* x_9; +x_9 = lean_ctor_get(x_7, 1); +lean_inc(x_9); +lean_dec(x_7); +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_10; +x_10 = lean_ctor_get_uint8(x_6, sizeof(void*)*5); +lean_dec(x_6); +if (x_10 == 0) +{ +uint8_t x_11; +x_11 = 1; +return x_11; +} +else +{ +uint8_t x_12; +x_12 = 0; +return x_12; +} +} +else +{ +uint8_t x_13; +lean_dec(x_9); +lean_dec(x_6); +x_13 = 0; +return x_13; +} +} +} +else +{ +uint8_t x_14; +lean_dec(x_5); +x_14 = 0; +return x_14; +} +} +} +} +lean_object* l_Lean_isStructureLike___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Lean_isStructureLike(x_1, x_2); +x_4 = lean_box(x_3); +return x_4; +} +} +lean_object* l_Lean_mkInternalSubobjectFieldName(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Name_appendIndexAfter___closed__1; +x_3 = l_Lean_Name_appendBefore(x_1, x_2); +return x_3; +} +} +uint8_t l_Lean_isInternalSubobjectFieldName(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_2 = lean_ctor_get(x_1, 1); +x_3 = lean_string_length(x_2); +x_4 = lean_unsigned_to_nat(0u); +x_5 = lean_nat_dec_lt(x_4, x_3); +lean_dec(x_3); +if (x_5 == 0) +{ +uint8_t x_6; +x_6 = 0; +return x_6; +} +else +{ +uint32_t x_7; uint32_t x_8; uint8_t x_9; +x_7 = lean_string_utf8_get(x_2, x_4); +x_8 = 95; +x_9 = x_7 == x_8; +if (x_9 == 0) +{ +uint8_t x_10; +x_10 = 0; +return x_10; +} +else +{ +uint8_t x_11; +x_11 = 1; +return x_11; +} +} +} +else +{ +uint8_t x_12; +x_12 = 0; +return x_12; +} +} +} +lean_object* l_Lean_isInternalSubobjectFieldName___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_isInternalSubobjectFieldName(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} +lean_object* l_Lean_deinternalizeFieldName(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_3); +x_4 = lean_string_length(x_3); +x_5 = lean_unsigned_to_nat(0u); +x_6 = lean_nat_dec_lt(x_5, x_4); +lean_dec(x_4); +if (x_6 == 0) +{ +lean_dec(x_3); +lean_dec(x_2); +return x_1; +} +else +{ +uint32_t x_7; uint32_t x_8; uint8_t x_9; +x_7 = lean_string_utf8_get(x_3, x_5); +x_8 = 95; +x_9 = x_7 == x_8; +if (x_9 == 0) +{ +lean_dec(x_3); +lean_dec(x_2); +return x_1; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +lean_dec(x_1); +x_10 = lean_unsigned_to_nat(1u); +x_11 = l_String_drop(x_3, x_10); +lean_dec(x_3); +x_12 = lean_name_mk_string(x_2, x_11); +return x_12; +} +} +} +else +{ +return x_1; +} +} +} +lean_object* _init_l_Lean_getStructureCtor___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Init.Lean.Structure"); +return x_1; +} +} +lean_object* _init_l_Lean_getStructureCtor___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("structure expected"); +return x_1; +} +} +lean_object* _init_l_Lean_getStructureCtor___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_getStructureCtor___closed__1; +x_2 = lean_unsigned_to_nat(40u); +x_3 = lean_unsigned_to_nat(7u); +x_4 = l_Lean_getStructureCtor___closed__2; +x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); +return x_5; +} +} +lean_object* _init_l_Lean_getStructureCtor___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("ill-formed environment"); +return x_1; +} +} +lean_object* _init_l_Lean_getStructureCtor___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_getStructureCtor___closed__1; +x_2 = lean_unsigned_to_nat(39u); +x_3 = lean_unsigned_to_nat(9u); +x_4 = l_Lean_getStructureCtor___closed__4; +x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_getStructureCtor(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +lean_inc(x_1); +x_3 = lean_environment_find(x_1, x_2); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +lean_dec(x_1); +x_4 = l_Lean_ConstructorVal_inhabited; +x_5 = l_Lean_getStructureCtor___closed__3; +x_6 = lean_panic_fn(x_5); +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_ctor_get(x_3, 0); +lean_inc(x_7); +lean_dec(x_3); +if (lean_obj_tag(x_7) == 5) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +lean_dec(x_7); +x_9 = lean_ctor_get(x_8, 4); +lean_inc(x_9); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +lean_dec(x_8); +lean_dec(x_1); +x_10 = l_Lean_ConstructorVal_inhabited; +x_11 = l_Lean_getStructureCtor___closed__3; +x_12 = lean_panic_fn(x_11); +return x_12; +} +else +{ +lean_object* x_13; +x_13 = lean_ctor_get(x_9, 1); +lean_inc(x_13); +if (lean_obj_tag(x_13) == 0) +{ +uint8_t x_14; +x_14 = lean_ctor_get_uint8(x_8, sizeof(void*)*5); +lean_dec(x_8); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_9, 0); +lean_inc(x_15); +lean_dec(x_9); +x_16 = lean_environment_find(x_1, x_15); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = l_Lean_ConstructorVal_inhabited; +x_18 = l_Lean_getStructureCtor___closed__5; +x_19 = lean_panic_fn(x_18); +return x_19; +} +else +{ +lean_object* x_20; +x_20 = lean_ctor_get(x_16, 0); +lean_inc(x_20); +lean_dec(x_16); +if (lean_obj_tag(x_20) == 6) +{ +lean_object* x_21; +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +lean_dec(x_20); +return x_21; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +lean_dec(x_20); +x_22 = l_Lean_ConstructorVal_inhabited; +x_23 = l_Lean_getStructureCtor___closed__5; +x_24 = lean_panic_fn(x_23); +return x_24; +} +} +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +lean_dec(x_9); +lean_dec(x_1); +x_25 = l_Lean_ConstructorVal_inhabited; +x_26 = l_Lean_getStructureCtor___closed__3; +x_27 = lean_panic_fn(x_26); +return x_27; +} +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +lean_dec(x_13); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_28 = l_Lean_ConstructorVal_inhabited; +x_29 = l_Lean_getStructureCtor___closed__3; +x_30 = lean_panic_fn(x_29); +return x_30; +} +} +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +lean_dec(x_7); +lean_dec(x_1); +x_31 = l_Lean_ConstructorVal_inhabited; +x_32 = l_Lean_getStructureCtor___closed__3; +x_33 = lean_panic_fn(x_32); +return x_33; +} +} +} +} +lean_object* l___private_Init_Lean_Structure_1__getStructureFieldsAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_3) == 7) +{ +lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_3, 2); +lean_inc(x_6); +lean_dec(x_3); +x_7 = lean_nat_dec_lt(x_2, x_1); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_2, x_8); +lean_dec(x_2); +x_10 = l_Lean_deinternalizeFieldName(x_5); +x_11 = lean_array_push(x_4, x_10); +x_2 = x_9; +x_3 = x_6; +x_4 = x_11; +goto _start; +} +else +{ +lean_object* x_13; lean_object* x_14; +lean_dec(x_5); +x_13 = lean_unsigned_to_nat(1u); +x_14 = lean_nat_add(x_2, x_13); +lean_dec(x_2); +x_2 = x_14; +x_3 = x_6; +goto _start; +} +} +else +{ +lean_dec(x_3); +lean_dec(x_2); +return x_4; +} +} +} +lean_object* l___private_Init_Lean_Structure_1__getStructureFieldsAux___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l___private_Init_Lean_Structure_1__getStructureFieldsAux___main(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} +lean_object* l___private_Init_Lean_Structure_1__getStructureFieldsAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l___private_Init_Lean_Structure_1__getStructureFieldsAux___main(x_1, x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Init_Lean_Structure_1__getStructureFieldsAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l___private_Init_Lean_Structure_1__getStructureFieldsAux(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} +lean_object* l_Lean_getStructureFields(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_3 = l_Lean_getStructureCtor(x_1, x_2); +x_4 = lean_ctor_get(x_3, 3); +lean_inc(x_4); +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_dec(x_3); +x_6 = lean_ctor_get(x_5, 2); +lean_inc(x_6); +lean_dec(x_5); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Array_empty___closed__1; +x_9 = l___private_Init_Lean_Structure_1__getStructureFieldsAux___main(x_4, x_7, x_6, x_8); +lean_dec(x_4); +return x_9; +} +} +lean_object* _init_l___private_Init_Lean_Structure_2__isSubobjectFieldAux___main___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("ill-formed structure"); +return x_1; +} +} +lean_object* _init_l___private_Init_Lean_Structure_2__isSubobjectFieldAux___main___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_getStructureCtor___closed__1; +x_2 = lean_unsigned_to_nat(61u); +x_3 = lean_unsigned_to_nat(11u); +x_4 = l___private_Init_Lean_Structure_2__isSubobjectFieldAux___main___closed__1; +x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Init_Lean_Structure_2__isSubobjectFieldAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_4) == 7) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_5 = lean_ctor_get(x_4, 0); +x_6 = lean_ctor_get(x_4, 1); +x_7 = lean_ctor_get(x_4, 2); +x_8 = lean_nat_dec_lt(x_3, x_1); +if (x_8 == 0) +{ +uint8_t x_9; +x_9 = lean_name_eq(x_5, x_2); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_add(x_3, x_10); +lean_dec(x_3); +x_3 = x_11; +x_4 = x_7; +goto _start; +} +else +{ +lean_object* x_13; +lean_dec(x_3); +x_13 = l_Lean_Expr_getAppFn___main(x_6); +if (lean_obj_tag(x_13) == 4) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +lean_dec(x_13); +x_15 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_15, 0, x_14); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +lean_dec(x_13); +x_16 = lean_box(0); +x_17 = l___private_Init_Lean_Structure_2__isSubobjectFieldAux___main___closed__2; +x_18 = lean_panic_fn(x_17); +return x_18; +} +} +} +else +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_add(x_3, x_19); +lean_dec(x_3); +x_3 = x_20; +x_4 = x_7; +goto _start; +} +} +else +{ +lean_object* x_22; +lean_dec(x_3); +x_22 = lean_box(0); +return x_22; +} +} +} +lean_object* l___private_Init_Lean_Structure_2__isSubobjectFieldAux___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l___private_Init_Lean_Structure_2__isSubobjectFieldAux___main(x_1, x_2, x_3, x_4); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_5; +} +} +lean_object* l___private_Init_Lean_Structure_2__isSubobjectFieldAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l___private_Init_Lean_Structure_2__isSubobjectFieldAux___main(x_1, x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Init_Lean_Structure_2__isSubobjectFieldAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l___private_Init_Lean_Structure_2__isSubobjectFieldAux(x_1, x_2, x_3, x_4); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_5; +} +} +lean_object* l_Lean_isSubobjectField_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_4 = l_Lean_getStructureCtor(x_1, x_2); +x_5 = lean_ctor_get(x_4, 3); +lean_inc(x_5); +x_6 = l_Lean_Name_appendIndexAfter___closed__1; +x_7 = l_Lean_Name_appendBefore(x_3, x_6); +x_8 = lean_ctor_get(x_4, 0); +lean_inc(x_8); +lean_dec(x_4); +x_9 = lean_ctor_get(x_8, 2); +lean_inc(x_9); +lean_dec(x_8); +x_10 = lean_unsigned_to_nat(0u); +x_11 = l___private_Init_Lean_Structure_2__isSubobjectFieldAux___main(x_5, x_7, x_10, x_9); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_5); +return x_11; +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_getParentStructures___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; uint8_t x_7; +x_6 = lean_array_get_size(x_3); +x_7 = lean_nat_dec_lt(x_4, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_5; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_8 = lean_array_fget(x_3, x_4); +lean_inc(x_2); +lean_inc(x_1); +x_9 = l_Lean_isSubobjectField_x3f(x_1, x_2, x_8); +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_add(x_4, x_10); +lean_dec(x_4); +if (lean_obj_tag(x_9) == 0) +{ +x_4 = x_11; +goto _start; +} +else +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_9, 0); +lean_inc(x_13); +lean_dec(x_9); +x_14 = lean_array_push(x_5, x_13); +x_4 = x_11; +x_5 = x_14; +goto _start; +} +} +} +} +lean_object* l_Lean_getParentStructures(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +lean_inc(x_2); +lean_inc(x_1); +x_3 = l_Lean_getStructureFields(x_1, x_2); +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_Array_empty___closed__1; +x_6 = l_Array_iterateMAux___main___at_Lean_getParentStructures___spec__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_3); +return x_6; +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_getParentStructures___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Array_iterateMAux___main___at_Lean_getParentStructures___spec__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_3); +return x_6; +} +} +uint8_t l_Array_anyRangeMAux___main___at_Lean_findField_x3f___main___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; +x_6 = lean_nat_dec_lt(x_5, x_4); +if (x_6 == 0) +{ +uint8_t x_7; +lean_dec(x_5); +x_7 = 0; +return x_7; +} +else +{ +lean_object* x_8; uint8_t x_9; +x_8 = lean_array_fget(x_3, x_5); +x_9 = lean_name_eq(x_2, x_8); +lean_dec(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_add(x_5, x_10); +lean_dec(x_5); +x_5 = x_11; +goto _start; +} +else +{ +lean_dec(x_5); +return x_9; +} +} +} +} +uint8_t l_Array_contains___at_Lean_findField_x3f___main___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = lean_array_get_size(x_1); +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_Array_anyRangeMAux___main___at_Lean_findField_x3f___main___spec__2(x_1, x_2, x_1, x_3, x_4); +lean_dec(x_3); +return x_5; +} +} +lean_object* l_Array_findMAux___main___at_Lean_findField_x3f___main___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; uint8_t x_6; +x_5 = lean_array_get_size(x_3); +x_6 = lean_nat_dec_lt(x_4, x_5); +lean_dec(x_5); +if (x_6 == 0) +{ +lean_object* x_7; +lean_dec(x_4); +lean_dec(x_1); +x_7 = lean_box(0); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_array_fget(x_3, x_4); +lean_inc(x_1); +x_9 = l_Lean_findField_x3f___main(x_1, x_8, x_2); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_add(x_4, x_10); +lean_dec(x_4); +x_4 = x_11; +goto _start; +} +else +{ +lean_dec(x_4); +lean_dec(x_1); +return x_9; +} +} +} +} +lean_object* l_Lean_findField_x3f___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +lean_inc(x_2); +lean_inc(x_1); +x_4 = l_Lean_getStructureFields(x_1, x_2); +x_5 = l_Array_contains___at_Lean_findField_x3f___main___spec__1(x_4, x_3); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_inc(x_1); +x_6 = l_Lean_getParentStructures(x_1, x_2); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Array_findMAux___main___at_Lean_findField_x3f___main___spec__3(x_1, x_3, x_6, x_7); +lean_dec(x_6); +return x_8; +} +else +{ +lean_object* x_9; +lean_dec(x_1); +x_9 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_9, 0, x_2); +return x_9; +} +} +} +lean_object* l_Array_anyRangeMAux___main___at_Lean_findField_x3f___main___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; lean_object* x_7; +x_6 = l_Array_anyRangeMAux___main___at_Lean_findField_x3f___main___spec__2(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_7 = lean_box(x_6); +return x_7; +} +} +lean_object* l_Array_contains___at_Lean_findField_x3f___main___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Array_contains___at_Lean_findField_x3f___main___spec__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +lean_object* l_Array_findMAux___main___at_Lean_findField_x3f___main___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Array_findMAux___main___at_Lean_findField_x3f___main___spec__3(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_5; +} +} +lean_object* l_Lean_findField_x3f___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_findField_x3f___main(x_1, x_2, x_3); +lean_dec(x_3); +return x_4; +} +} +lean_object* l_Lean_findField_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_findField_x3f___main(x_1, x_2, x_3); +return x_4; +} +} +lean_object* l_Lean_findField_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_findField_x3f(x_1, x_2, x_3); +lean_dec(x_3); +return x_4; +} +} +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Structure_3__getStructureFieldsFlattenedAux___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; uint8_t x_7; +x_6 = lean_array_get_size(x_3); +x_7 = lean_nat_dec_lt(x_4, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_5; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_8 = lean_array_fget(x_3, x_4); +lean_inc(x_8); +x_9 = lean_array_push(x_5, x_8); +lean_inc(x_2); +lean_inc(x_1); +x_10 = l_Lean_isSubobjectField_x3f(x_1, x_2, x_8); +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_4, x_11); +lean_dec(x_4); +if (lean_obj_tag(x_10) == 0) +{ +x_4 = x_12; +x_5 = x_9; +goto _start; +} +else +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_10, 0); +lean_inc(x_14); +lean_dec(x_10); +lean_inc(x_1); +x_15 = l___private_Init_Lean_Structure_3__getStructureFieldsFlattenedAux___main(x_1, x_14, x_9); +x_4 = x_12; +x_5 = x_15; +goto _start; +} +} +} +} +lean_object* l___private_Init_Lean_Structure_3__getStructureFieldsFlattenedAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +lean_inc(x_2); +lean_inc(x_1); +x_4 = l_Lean_getStructureFields(x_1, x_2); +x_5 = lean_unsigned_to_nat(0u); +x_6 = l_Array_iterateMAux___main___at___private_Init_Lean_Structure_3__getStructureFieldsFlattenedAux___main___spec__1(x_1, x_2, x_4, x_5, x_3); +lean_dec(x_4); +return x_6; +} +} +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Structure_3__getStructureFieldsFlattenedAux___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Array_iterateMAux___main___at___private_Init_Lean_Structure_3__getStructureFieldsFlattenedAux___main___spec__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_3); +return x_6; +} +} +lean_object* l___private_Init_Lean_Structure_3__getStructureFieldsFlattenedAux(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l___private_Init_Lean_Structure_3__getStructureFieldsFlattenedAux___main(x_1, x_2, x_3); +return x_4; +} +} +lean_object* l_Lean_getStructureFieldsFlattened(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; +x_3 = l_Array_empty___closed__1; +x_4 = l___private_Init_Lean_Structure_3__getStructureFieldsFlattenedAux___main(x_1, x_2, x_3); +return x_4; +} +} +uint8_t l___private_Init_Lean_Structure_4__hasProjFn___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +if (lean_obj_tag(x_5) == 7) +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 2); +lean_inc(x_7); +lean_dec(x_5); +x_8 = lean_nat_dec_lt(x_4, x_3); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; uint8_t x_11; +lean_dec(x_7); +lean_dec(x_4); +x_9 = l_Lean_deinternalizeFieldName(x_6); +x_10 = l_Lean_Name_append___main(x_2, x_9); +x_11 = l_Lean_Environment_isProjectionFn(x_1, x_10); +return x_11; +} +else +{ +lean_object* x_12; lean_object* x_13; +lean_dec(x_6); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_4, x_12); +lean_dec(x_4); +x_4 = x_13; +x_5 = x_7; +goto _start; +} +} +else +{ +uint8_t x_15; +lean_dec(x_5); +lean_dec(x_4); +x_15 = 0; +return x_15; +} +} +} +lean_object* l___private_Init_Lean_Structure_4__hasProjFn___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; lean_object* x_7; +x_6 = l___private_Init_Lean_Structure_4__hasProjFn___main(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_7 = lean_box(x_6); +return x_7; +} +} +uint8_t l___private_Init_Lean_Structure_4__hasProjFn(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; +x_6 = l___private_Init_Lean_Structure_4__hasProjFn___main(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +lean_object* l___private_Init_Lean_Structure_4__hasProjFn___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; lean_object* x_7; +x_6 = l___private_Init_Lean_Structure_4__hasProjFn(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_7 = lean_box(x_6); +return x_7; +} +} +uint8_t l_Lean_isStructure(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +lean_inc(x_2); +lean_inc(x_1); +x_3 = l_Lean_isStructureLike(x_1, x_2); +if (x_3 == 0) +{ +uint8_t x_4; +lean_dec(x_2); +lean_dec(x_1); +x_4 = 0; +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +lean_inc(x_2); +lean_inc(x_1); +x_5 = l_Lean_getStructureCtor(x_1, x_2); +x_6 = lean_ctor_get(x_5, 3); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 0); +lean_inc(x_7); +lean_dec(x_5); +x_8 = lean_ctor_get(x_7, 2); +lean_inc(x_8); +lean_dec(x_7); +x_9 = lean_unsigned_to_nat(0u); +x_10 = l___private_Init_Lean_Structure_4__hasProjFn___main(x_1, x_2, x_6, x_9, x_8); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +return x_10; +} +} +} +lean_object* l_Lean_isStructure___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Lean_isStructure(x_1, x_2); +x_4 = lean_box(x_3); +return x_4; +} +} +lean_object* initialize_Init_Lean_Environment(lean_object*); +lean_object* initialize_Init_Lean_ProjFns(lean_object*); +static bool _G_initialized = false; +lean_object* initialize_Init_Lean_Structure(lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_mk_io_result(lean_box(0)); +_G_initialized = true; +res = initialize_Init_Lean_Environment(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Init_Lean_ProjFns(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_getStructureCtor___closed__1 = _init_l_Lean_getStructureCtor___closed__1(); +lean_mark_persistent(l_Lean_getStructureCtor___closed__1); +l_Lean_getStructureCtor___closed__2 = _init_l_Lean_getStructureCtor___closed__2(); +lean_mark_persistent(l_Lean_getStructureCtor___closed__2); +l_Lean_getStructureCtor___closed__3 = _init_l_Lean_getStructureCtor___closed__3(); +lean_mark_persistent(l_Lean_getStructureCtor___closed__3); +l_Lean_getStructureCtor___closed__4 = _init_l_Lean_getStructureCtor___closed__4(); +lean_mark_persistent(l_Lean_getStructureCtor___closed__4); +l_Lean_getStructureCtor___closed__5 = _init_l_Lean_getStructureCtor___closed__5(); +lean_mark_persistent(l_Lean_getStructureCtor___closed__5); +l___private_Init_Lean_Structure_2__isSubobjectFieldAux___main___closed__1 = _init_l___private_Init_Lean_Structure_2__isSubobjectFieldAux___main___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Structure_2__isSubobjectFieldAux___main___closed__1); +l___private_Init_Lean_Structure_2__isSubobjectFieldAux___main___closed__2 = _init_l___private_Init_Lean_Structure_2__isSubobjectFieldAux___main___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Structure_2__isSubobjectFieldAux___main___closed__2); +return lean_mk_io_result(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Init/Lean/Syntax.c b/stage0/stdlib/Init/Lean/Syntax.c index 2fb7613544..342a911bbf 100644 --- a/stage0/stdlib/Init/Lean/Syntax.c +++ b/stage0/stdlib/Init/Lean/Syntax.c @@ -15,10 +15,12 @@ extern "C" { #endif lean_object* l_Lean_Syntax_reprint___main___closed__1; lean_object* l_Lean_Syntax_reprint___main___boxed(lean_object*); +lean_object* l_Lean_Syntax_isIdOrAtom_x3f___boxed(lean_object*); lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Syntax_reprint___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Syntax_4__reprintLeaf(lean_object*, lean_object*); lean_object* l_Lean_fieldIdxKind; +lean_object* l_Lean_Syntax_isNatLit_x3f___boxed(lean_object*); lean_object* l___private_Init_Lean_Syntax_1__updateInfo(lean_object*, lean_object*); lean_object* l_Lean_Syntax_setTailInfoAux(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Syntax_6__decodeOctalLitAux(lean_object*, lean_object*, lean_object*); @@ -49,7 +51,6 @@ lean_object* l_Lean_Syntax_mreplace___main___boxed(lean_object*); uint8_t l_Char_isDigit(uint32_t); lean_object* l_Lean_charLitKind___closed__2; uint8_t lean_name_eq(lean_object*, lean_object*); -lean_object* l_Lean_Syntax_isStrLit___boxed(lean_object*); lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Syntax_4__reprintLeaf___boxed(lean_object*, lean_object*); lean_object* l_Lean_Syntax_reprint___main(lean_object*); @@ -61,7 +62,6 @@ lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Syntax_reprint___main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_charLitKind___closed__1; -lean_object* l_Lean_Syntax_isNatLit___boxed(lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Lean_Syntax_setAtomVal(lean_object*, lean_object*); lean_object* l_Lean_Syntax_setTailInfo(lean_object*, lean_object*); @@ -90,7 +90,6 @@ lean_object* l_Lean_SyntaxNode_getArgs(lean_object*); lean_object* l_Lean_Syntax_getKind___boxed(lean_object*); lean_object* l_Lean_Syntax_rewriteBottomUp(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Syntax_5__decodeBinLitAux___main(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Syntax_isNatLit(lean_object*); lean_object* lean_string_utf8_next(lean_object*, lean_object*); lean_object* l_Lean_Syntax_ifNode(lean_object*); lean_object* lean_mk_syntax_ident(lean_object*); @@ -100,6 +99,7 @@ lean_object* l_Lean_SyntaxNode_getIdAt(lean_object*, lean_object*); lean_object* l_Lean_Format_joinSep___main___at_Lean_Syntax_formatStx___main___spec__2___boxed(lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Lean_SyntaxNode_getKind___boxed(lean_object*); +lean_object* l_Lean_Syntax_isNatLit_x3f(lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Syntax_updateTrailing(lean_object*, lean_object*); lean_object* l_Lean_Syntax_formatStx___main___closed__3; @@ -110,8 +110,10 @@ lean_object* l_Lean_Syntax_mreplace___main___rarg(lean_object*, lean_object*, le lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_choiceKind___closed__2; lean_object* l_Lean_strLitKind; +lean_object* l_Lean_Syntax_isStrLit_x3f(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Syntax_reprint___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getId___boxed(lean_object*); +lean_object* l_Lean_Syntax_isFieldIdx_x3f(lean_object*); lean_object* l_Lean_Syntax_formatStx___main___closed__7; lean_object* l_Lean_Syntax_getHeadInfo(lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); @@ -131,7 +133,6 @@ lean_object* l_Lean_Syntax_setArgs(lean_object*, lean_object*); lean_object* l_Lean_Syntax_mreplace___main___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_repr(lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); -lean_object* l_Lean_Syntax_isStrLit(lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_choiceKind; lean_object* l_Lean_charLitKind; @@ -163,6 +164,7 @@ lean_object* l_Lean_Syntax_mrewriteBottomUp___main___rarg___lambda__1___boxed(le lean_object* l_Lean_Syntax_updateTrailing___main(lean_object*, lean_object*); lean_object* l_Lean_nullKind___closed__2; extern lean_object* l_Lean_Format_sbracket___closed__3; +lean_object* l_Lean_Syntax_isStrLit_x3f___boxed(lean_object*); lean_object* l___private_Init_Lean_Syntax_6__decodeOctalLitAux___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_mk_syntax_atom(lean_object*); lean_object* l_Lean_unreachIsNodeAtom(lean_object*, lean_object*, lean_object*, lean_object*); @@ -172,6 +174,7 @@ lean_object* l_Lean_Syntax_getHeadInfo___main(lean_object*); extern lean_object* l_Lean_formatDataValue___closed__2; uint8_t l_Lean_Syntax_isMissing(lean_object*); lean_object* l_Array_umapMAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Syntax_isIdOrAtom_x3f(lean_object*); extern lean_object* l_Lean_HasRepr___closed__1; lean_object* l_Lean_Syntax_setArg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SourceInfo_appendToTrailing(lean_object*, lean_object*); @@ -206,7 +209,6 @@ lean_object* l_Array_iterateMAux___main___at_Lean_Syntax_reprint___main___spec__ lean_object* l_Array_umapMAux___main___at_Lean_Syntax_updateLeading___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_HasToString___closed__1; lean_object* l_Array_findRevMAux___main___at_Lean_Syntax_getTailInfo___main___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Syntax_isIdOrAtom___boxed(lean_object*); lean_object* l_Lean_mkOptionalNode___closed__1; lean_object* l_Lean_Syntax_mrewriteBottomUp___main(lean_object*); lean_object* l_Lean_SyntaxNode_getIdAt___boxed(lean_object*, lean_object*); @@ -214,7 +216,6 @@ lean_object* l_Lean_Syntax_getTailInfo(lean_object*); lean_object* l_Lean_Syntax_formatStx___main(lean_object*); lean_object* l_Array_toList___rarg(lean_object*); lean_object* l_Lean_Syntax_mrewriteBottomUp___main___at_Lean_Syntax_rewriteBottomUp___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Syntax_isIdOrAtom(lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); lean_object* lean_mk_syntax_list(lean_object*); lean_object* l___private_Init_Lean_Syntax_8__decodeDecimalLitAux___main___boxed(lean_object*, lean_object*, lean_object*); @@ -239,7 +240,6 @@ lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*, lean_object* lean_object* l_Lean_mkAtomFrom___boxed(lean_object*, lean_object*); lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); lean_object* l_Lean_Syntax_mrewriteBottomUp___main___rarg___lambda__2(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Syntax_isFieldIdx(lean_object*); uint8_t l_UInt32_decLe(uint32_t, uint32_t); lean_object* l_Lean_Syntax_ifNodeKind___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_formatStx___main___closed__1; @@ -252,7 +252,7 @@ lean_object* l_Lean_Syntax_getTailInfo___main(lean_object*); lean_object* l_Lean_Syntax_formatStx___main___closed__8; lean_object* l___private_Init_Lean_Syntax_9__decodeNatLitVal___closed__1; lean_object* l_Lean_SyntaxNode_getArg(lean_object*, lean_object*); -lean_object* l_Lean_Syntax_isFieldIdx___boxed(lean_object*); +lean_object* l_Lean_Syntax_isFieldIdx_x3f___boxed(lean_object*); lean_object* l_Lean_Syntax_reprint(lean_object*); lean_object* l___private_Init_Lean_Syntax_6__decodeOctalLitAux___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_mreplace___main___rarg___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -4110,7 +4110,7 @@ x_5 = l_Lean_mkStxLit(x_4, x_2, x_3); return x_5; } } -lean_object* l_Lean_Syntax_isStrLit(lean_object* x_1) { +lean_object* l_Lean_Syntax_isStrLit_x3f(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 1) @@ -4173,11 +4173,11 @@ return x_17; } } } -lean_object* l_Lean_Syntax_isStrLit___boxed(lean_object* x_1) { +lean_object* l_Lean_Syntax_isStrLit_x3f___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Syntax_isStrLit(x_1); +x_2 = l_Lean_Syntax_isStrLit_x3f(x_1); lean_dec(x_1); return x_2; } @@ -4929,7 +4929,7 @@ lean_dec(x_1); return x_3; } } -lean_object* l_Lean_Syntax_isNatLit(lean_object* x_1) { +lean_object* l_Lean_Syntax_isNatLit_x3f(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -4938,16 +4938,16 @@ x_3 = l_Lean_Syntax_isNatLitAux(x_2, x_1); return x_3; } } -lean_object* l_Lean_Syntax_isNatLit___boxed(lean_object* x_1) { +lean_object* l_Lean_Syntax_isNatLit_x3f___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Syntax_isNatLit(x_1); +x_2 = l_Lean_Syntax_isNatLit_x3f(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Lean_Syntax_isFieldIdx(lean_object* x_1) { +lean_object* l_Lean_Syntax_isFieldIdx_x3f(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -4956,16 +4956,16 @@ x_3 = l_Lean_Syntax_isNatLitAux(x_2, x_1); return x_3; } } -lean_object* l_Lean_Syntax_isFieldIdx___boxed(lean_object* x_1) { +lean_object* l_Lean_Syntax_isFieldIdx_x3f___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Syntax_isFieldIdx(x_1); +x_2 = l_Lean_Syntax_isFieldIdx_x3f(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Lean_Syntax_isIdOrAtom(lean_object* x_1) { +lean_object* l_Lean_Syntax_isIdOrAtom_x3f(lean_object* x_1) { _start: { switch (lean_obj_tag(x_1)) { @@ -4999,11 +4999,11 @@ return x_10; } } } -lean_object* l_Lean_Syntax_isIdOrAtom___boxed(lean_object* x_1) { +lean_object* l_Lean_Syntax_isIdOrAtom_x3f___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Syntax_isIdOrAtom(x_1); +x_2 = l_Lean_Syntax_isIdOrAtom_x3f(x_1); lean_dec(x_1); return x_2; }